/
model_api_artifact.go
21 lines (19 loc) · 1.28 KB
/
model_api_artifact.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* Grafeas API
*
* An API to insert and retrieve annotations on cloud artifacts.
*
* API version: v1alpha1
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package grafeas
// Artifact describes a build product.
type ApiArtifact struct {
// Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Name string `json:"name,omitempty"`
// Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
Checksum string `json:"checksum,omitempty"`
Id string `json:"id,omitempty"`
// Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
Names []string `json:"names,omitempty"`
}