#[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,
/* private fields */
}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.
§Example
let x = GoModule::new().set_repository_name("example");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.
§Example
let x = GoModule::new().set_repository_location("example");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.
§Example
let x = GoModule::new().set_repository_project_id("example");Sourcepub fn set_source_path<T: Into<String>>(self, v: T) -> Self
pub fn set_source_path<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_module_path<T: Into<String>>(self, v: T) -> Self
pub fn set_module_path<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_module_version<T: Into<String>>(self, v: T) -> Self
pub fn set_module_version<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
impl StructuralPartialEq for GoModule
Auto Trait Implementations§
impl Freeze for GoModule
impl RefUnwindSafe for GoModule
impl Send for GoModule
impl Sync for GoModule
impl Unpin for GoModule
impl UnsafeUnpin for GoModule
impl UnwindSafe for GoModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request