pub struct SourceProvenance {
pub file_hashes: Option<HashMap<String, FileHashes>>,
pub resolved_connected_repository: Option<ConnectedRepository>,
pub resolved_git_source: Option<GitSource>,
pub resolved_repo_source: Option<RepoSource>,
pub resolved_storage_source: Option<StorageSource>,
pub resolved_storage_source_manifest: Option<StorageSourceManifest>,
}Expand description
Provenance of the source. Ways to find the original source, or verify that some source was used for this build.
This type is not used in any activity, and only used as part of another schema.
Fields§
§file_hashes: Option<HashMap<String, FileHashes>>Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that FileHashes will only be populated if BuildOptions has requested a SourceProvenanceHash. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
resolved_connected_repository: Option<ConnectedRepository>Output only. A copy of the build’s source.connected_repository, if exists, with any revisions resolved.
resolved_git_source: Option<GitSource>Output only. A copy of the build’s source.git_source, if exists, with any revisions resolved.
resolved_repo_source: Option<RepoSource>A copy of the build’s source.repo_source, if exists, with any revisions resolved.
resolved_storage_source: Option<StorageSource>A copy of the build’s source.storage_source, if exists, with any generations resolved.
resolved_storage_source_manifest: Option<StorageSourceManifest>A copy of the build’s source.storage_source_manifest, if exists, with any revisions resolved. This feature is in Preview.
Trait Implementations§
Source§impl Clone for SourceProvenance
impl Clone for SourceProvenance
Source§fn clone(&self) -> SourceProvenance
fn clone(&self) -> SourceProvenance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceProvenance
impl Debug for SourceProvenance
Source§impl Default for SourceProvenance
impl Default for SourceProvenance
Source§fn default() -> SourceProvenance
fn default() -> SourceProvenance
Source§impl<'de> Deserialize<'de> for SourceProvenance
impl<'de> Deserialize<'de> for SourceProvenance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SourceProvenance
impl Serialize for SourceProvenance
impl Part for SourceProvenance
Auto Trait Implementations§
impl Freeze for SourceProvenance
impl RefUnwindSafe for SourceProvenance
impl Send for SourceProvenance
impl Sync for SourceProvenance
impl Unpin for SourceProvenance
impl UnwindSafe for SourceProvenance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more