Reference documentation and code samples for the Grafeas V1 Client class Source.
Source describes the location of the source used for the build.
Generated from protobuf message grafeas.v1.Source
Namespace
Grafeas \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ artifact_storage_source_uri
string
If provided, the input binary artifacts for the build came from this location.
↳ file_hashes
array| Google\Protobuf\Internal\MapField
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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.
↳ context
↳ additional_contexts
array< SourceContext
>
If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
getArtifactStorageSourceUri
If provided, the input binary artifacts for the build came from this location.
string
setArtifactStorageSourceUri
If provided, the input binary artifacts for the build came from this location.
var
string
$this
getFileHashes
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.
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.
setFileHashes
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.
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.
$this
getContext
If provided, the source code used for the build came from this location.
hasContext
clearContext
setContext
If provided, the source code used for the build came from this location.
$this
getAdditionalContexts
If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
setAdditionalContexts
If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
$this