import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/image"
var ( Layer_Directive_name = map[int32]string{ 0: "DIRECTIVE_UNSPECIFIED", 1: "MAINTAINER", 2: "RUN", 3: "CMD", 4: "LABEL", 5: "EXPOSE", 6: "ENV", 7: "ADD", 8: "COPY", 9: "ENTRYPOINT", 10: "VOLUME", 11: "USER", 12: "WORKDIR", 13: "ARG", 14: "ONBUILD", 15: "STOPSIGNAL", 16: "HEALTHCHECK", 17: "SHELL", } Layer_Directive_value = map[string]int32{ "DIRECTIVE_UNSPECIFIED": 0, "MAINTAINER": 1, "RUN": 2, "CMD": 3, "LABEL": 4, "EXPOSE": 5, "ENV": 6, "ADD": 7, "COPY": 8, "ENTRYPOINT": 9, "VOLUME": 10, "USER": 11, "WORKDIR": 12, "ARG": 13, "ONBUILD": 14, "STOPSIGNAL": 15, "HEALTHCHECK": 16, "SHELL": 17, } )
Enum value maps for Layer_Directive.
var File_google_devtools_containeranalysis_v1beta1_image_image_proto protoreflect.FileDescriptor
type Basis struct { // Required. Immutable. The resource_url for the resource representing the // basis of associated occurrence images. ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"` // Required. Immutable. The fingerprint of the base image. Fingerprint *Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` // contains filtered or unexported fields }
Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via:
FROM <Basis.resource_url>
Or an equivalent reference, e.g. a tag of the resource_url.
Deprecated: Use Basis.ProtoReflect.Descriptor instead.
func (x *Basis) GetFingerprint() *Fingerprint
func (x *Basis) ProtoReflect() protoreflect.Message
type Derived struct { // Required. The fingerprint of the derived image. Fingerprint *Fingerprint `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` // Output only. The number of layers by which this image differs from the // associated image basis. Distance int32 `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"` // This contains layer-specific metadata, if populated it has length // "distance" and is ordered with [distance] being the layer immediately // following the base image and [1] being the final layer. LayerInfo []*Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo,proto3" json:"layer_info,omitempty"` // Output only. This contains the base image URL for the derived image // occurrence. BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl,proto3" json:"base_resource_url,omitempty"` // contains filtered or unexported fields }
Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM <DockerImage.Basis in attached Note>.
Deprecated: Use Derived.ProtoReflect.Descriptor instead.
func (x *Derived) GetFingerprint() *Fingerprint
func (x *Derived) ProtoReflect() protoreflect.Message
type Details struct { // Required. Immutable. The child image derived from the base image. DerivedImage *Derived `protobuf:"bytes,1,opt,name=derived_image,json=derivedImage,proto3" json:"derived_image,omitempty"` // contains filtered or unexported fields }
Details of an image occurrence.
Deprecated: Use Details.ProtoReflect.Descriptor instead.
func (x *Details) ProtoReflect() protoreflect.Message
type Fingerprint struct { // Required. The layer ID of the final layer in the Docker image's v1 // representation. V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name,proto3" json:"v1_name,omitempty"` // Required. The ordered list of v2 blobs that represent a given image. V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob,proto3" json:"v2_blob,omitempty"` // Output only. The name of the image's v2 blobs computed via: // [bottom] := v2_blob[bottom] // [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) // Only the name of the final blob is kept. V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name,proto3" json:"v2_name,omitempty"` // contains filtered or unexported fields }
A set of properties that uniquely identify a given Docker image.
func (*Fingerprint) Descriptor() ([]byte, []int)
Deprecated: Use Fingerprint.ProtoReflect.Descriptor instead.
func (x *Fingerprint) GetV1Name() string
func (x *Fingerprint) GetV2Blob() []string
func (x *Fingerprint) GetV2Name() string
func (*Fingerprint) ProtoMessage()
func (x *Fingerprint) ProtoReflect() protoreflect.Message
func (x *Fingerprint) Reset()
func (x *Fingerprint) String() string
type Layer struct { // Required. The recovered Dockerfile directive used to construct this layer. Directive Layer_Directive `protobuf:"varint,1,opt,name=directive,proto3,enum=grafeas.v1beta1.image.Layer_Directive" json:"directive,omitempty"` // The recovered arguments to the Dockerfile directive. Arguments string `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"` // contains filtered or unexported fields }
Layer holds metadata specific to a layer of a Docker image.
Deprecated: Use Layer.ProtoReflect.Descriptor instead.
func (x *Layer) GetDirective() Layer_Directive
func (x *Layer) ProtoReflect() protoreflect.Message
Instructions from Dockerfile.
const ( // Default value for unsupported/missing directive. Layer_DIRECTIVE_UNSPECIFIED Layer_Directive = 0 // https://docs.docker.com/engine/reference/builder/ Layer_MAINTAINER Layer_Directive = 1 // https://docs.docker.com/engine/reference/builder/ Layer_RUN Layer_Directive = 2 // https://docs.docker.com/engine/reference/builder/ Layer_CMD Layer_Directive = 3 // https://docs.docker.com/engine/reference/builder/ Layer_LABEL Layer_Directive = 4 // https://docs.docker.com/engine/reference/builder/ Layer_EXPOSE Layer_Directive = 5 // https://docs.docker.com/engine/reference/builder/ Layer_ENV Layer_Directive = 6 // https://docs.docker.com/engine/reference/builder/ Layer_ADD Layer_Directive = 7 // https://docs.docker.com/engine/reference/builder/ Layer_COPY Layer_Directive = 8 // https://docs.docker.com/engine/reference/builder/ Layer_ENTRYPOINT Layer_Directive = 9 // https://docs.docker.com/engine/reference/builder/ Layer_VOLUME Layer_Directive = 10 // https://docs.docker.com/engine/reference/builder/ Layer_USER Layer_Directive = 11 // https://docs.docker.com/engine/reference/builder/ Layer_WORKDIR Layer_Directive = 12 // https://docs.docker.com/engine/reference/builder/ Layer_ARG Layer_Directive = 13 // https://docs.docker.com/engine/reference/builder/ Layer_ONBUILD Layer_Directive = 14 // https://docs.docker.com/engine/reference/builder/ Layer_STOPSIGNAL Layer_Directive = 15 // https://docs.docker.com/engine/reference/builder/ Layer_HEALTHCHECK Layer_Directive = 16 // https://docs.docker.com/engine/reference/builder/ Layer_SHELL Layer_Directive = 17 )
func (Layer_Directive) Descriptor() protoreflect.EnumDescriptor
func (x Layer_Directive) Enum() *Layer_Directive
func (Layer_Directive) EnumDescriptor() ([]byte, []int)
Deprecated: Use Layer_Directive.Descriptor instead.
func (x Layer_Directive) Number() protoreflect.EnumNumber
func (x Layer_Directive) String() string
func (Layer_Directive) Type() protoreflect.EnumType
Package image imports 5 packages (graph) and is imported by 2 packages. Updated 2020-09-28. Refresh now. Tools for package owners.