#[non_exhaustive]pub struct GoModule {
pub repository_name: String,
pub repository_location: String,
pub repository_project_id: String,
pub source_path: String,
pub module_path: String,
pub module_version: String,
}Expand description
Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repository_name: StringOptional. Artifact Registry repository name.
Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo
repository_location: StringOptional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.
repository_project_id: StringOptional. Project ID of the Artifact Registry repository. Defaults to the build project.
source_path: StringOptional. Source path of the go.mod file in the build’s workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage
module_path: StringOptional. The Go module’s “module path”. e.g. example.com/foo/v2
module_version: StringOptional. The Go module’s semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
Implementations§
Source§impl GoModule
impl GoModule
Sourcepub fn set_repository_name<T: Into<String>>(self, v: T) -> Self
pub fn set_repository_name<T: Into<String>>(self, v: T) -> Self
Sets the value of repository_name.
Sourcepub fn set_repository_location<T: Into<String>>(self, v: T) -> Self
pub fn set_repository_location<T: Into<String>>(self, v: T) -> Self
Sets the value of repository_location.
Sourcepub fn set_repository_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_repository_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of repository_project_id.
Sourcepub fn set_source_path<T: Into<String>>(self, v: T) -> Self
pub fn set_source_path<T: Into<String>>(self, v: T) -> Self
Sets the value of source_path.
Sourcepub fn set_module_path<T: Into<String>>(self, v: T) -> Self
pub fn set_module_path<T: Into<String>>(self, v: T) -> Self
Sets the value of module_path.
Sourcepub fn set_module_version<T: Into<String>>(self, v: T) -> Self
pub fn set_module_version<T: Into<String>>(self, v: T) -> Self
Sets the value of module_version.