genproto: google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/image Index | Files

package image

import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/image"

Index

Package Files

image.pb.go

Variables

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 Uses

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.

func (*Basis) Descriptor Uses

func (*Basis) Descriptor() ([]byte, []int)

Deprecated: Use Basis.ProtoReflect.Descriptor instead.

func (*Basis) GetFingerprint Uses

func (x *Basis) GetFingerprint() *Fingerprint

func (*Basis) GetResourceUrl Uses

func (x *Basis) GetResourceUrl() string

func (*Basis) ProtoMessage Uses

func (*Basis) ProtoMessage()

func (*Basis) ProtoReflect Uses

func (x *Basis) ProtoReflect() protoreflect.Message

func (*Basis) Reset Uses

func (x *Basis) Reset()

func (*Basis) String Uses

func (x *Basis) String() string

type Derived Uses

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>.

func (*Derived) Descriptor Uses

func (*Derived) Descriptor() ([]byte, []int)

Deprecated: Use Derived.ProtoReflect.Descriptor instead.

func (*Derived) GetBaseResourceUrl Uses

func (x *Derived) GetBaseResourceUrl() string

func (*Derived) GetDistance Uses

func (x *Derived) GetDistance() int32

func (*Derived) GetFingerprint Uses

func (x *Derived) GetFingerprint() *Fingerprint

func (*Derived) GetLayerInfo Uses

func (x *Derived) GetLayerInfo() []*Layer

func (*Derived) ProtoMessage Uses

func (*Derived) ProtoMessage()

func (*Derived) ProtoReflect Uses

func (x *Derived) ProtoReflect() protoreflect.Message

func (*Derived) Reset Uses

func (x *Derived) Reset()

func (*Derived) String Uses

func (x *Derived) String() string

type Details Uses

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.

func (*Details) Descriptor Uses

func (*Details) Descriptor() ([]byte, []int)

Deprecated: Use Details.ProtoReflect.Descriptor instead.

func (*Details) GetDerivedImage Uses

func (x *Details) GetDerivedImage() *Derived

func (*Details) ProtoMessage Uses

func (*Details) ProtoMessage()

func (*Details) ProtoReflect Uses

func (x *Details) ProtoReflect() protoreflect.Message

func (*Details) Reset Uses

func (x *Details) Reset()

func (*Details) String Uses

func (x *Details) String() string

type Fingerprint Uses

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 Uses

func (*Fingerprint) Descriptor() ([]byte, []int)

Deprecated: Use Fingerprint.ProtoReflect.Descriptor instead.

func (*Fingerprint) GetV1Name Uses

func (x *Fingerprint) GetV1Name() string

func (*Fingerprint) GetV2Blob Uses

func (x *Fingerprint) GetV2Blob() []string

func (*Fingerprint) GetV2Name Uses

func (x *Fingerprint) GetV2Name() string

func (*Fingerprint) ProtoMessage Uses

func (*Fingerprint) ProtoMessage()

func (*Fingerprint) ProtoReflect Uses

func (x *Fingerprint) ProtoReflect() protoreflect.Message

func (*Fingerprint) Reset Uses

func (x *Fingerprint) Reset()

func (*Fingerprint) String Uses

func (x *Fingerprint) String() string

type Layer Uses

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.

func (*Layer) Descriptor Uses

func (*Layer) Descriptor() ([]byte, []int)

Deprecated: Use Layer.ProtoReflect.Descriptor instead.

func (*Layer) GetArguments Uses

func (x *Layer) GetArguments() string

func (*Layer) GetDirective Uses

func (x *Layer) GetDirective() Layer_Directive

func (*Layer) ProtoMessage Uses

func (*Layer) ProtoMessage()

func (*Layer) ProtoReflect Uses

func (x *Layer) ProtoReflect() protoreflect.Message

func (*Layer) Reset Uses

func (x *Layer) Reset()

func (*Layer) String Uses

func (x *Layer) String() string

type Layer_Directive Uses

type Layer_Directive int32

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 Uses

func (Layer_Directive) Descriptor() protoreflect.EnumDescriptor

func (Layer_Directive) Enum Uses

func (x Layer_Directive) Enum() *Layer_Directive

func (Layer_Directive) EnumDescriptor Uses

func (Layer_Directive) EnumDescriptor() ([]byte, []int)

Deprecated: Use Layer_Directive.Descriptor instead.

func (Layer_Directive) Number Uses

func (x Layer_Directive) Number() protoreflect.EnumNumber

func (Layer_Directive) String Uses

func (x Layer_Directive) String() string

func (Layer_Directive) Type Uses

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.