image

package
v0.0.0-...-8c6c420 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
var File_google_devtools_containeranalysis_v1beta1_image_image_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Basis

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 deprecated

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

Deprecated: Use Basis.ProtoReflect.Descriptor instead.

func (*Basis) GetFingerprint

func (x *Basis) GetFingerprint() *Fingerprint

func (*Basis) GetResourceUrl

func (x *Basis) GetResourceUrl() string

func (*Basis) ProtoMessage

func (*Basis) ProtoMessage()

func (*Basis) ProtoReflect

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

func (*Basis) Reset

func (x *Basis) Reset()

func (*Basis) String

func (x *Basis) String() string

type Derived

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 deprecated

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

Deprecated: Use Derived.ProtoReflect.Descriptor instead.

func (*Derived) GetBaseResourceUrl

func (x *Derived) GetBaseResourceUrl() string

func (*Derived) GetDistance

func (x *Derived) GetDistance() int32

func (*Derived) GetFingerprint

func (x *Derived) GetFingerprint() *Fingerprint

func (*Derived) GetLayerInfo

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

func (*Derived) ProtoMessage

func (*Derived) ProtoMessage()

func (*Derived) ProtoReflect

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

func (*Derived) Reset

func (x *Derived) Reset()

func (*Derived) String

func (x *Derived) String() string

type Details

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 deprecated

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

Deprecated: Use Details.ProtoReflect.Descriptor instead.

func (*Details) GetDerivedImage

func (x *Details) GetDerivedImage() *Derived

func (*Details) ProtoMessage

func (*Details) ProtoMessage()

func (*Details) ProtoReflect

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

func (*Details) Reset

func (x *Details) Reset()

func (*Details) String

func (x *Details) String() string

type Fingerprint

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 deprecated

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

Deprecated: Use Fingerprint.ProtoReflect.Descriptor instead.

func (*Fingerprint) GetV1Name

func (x *Fingerprint) GetV1Name() string

func (*Fingerprint) GetV2Blob

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

func (*Fingerprint) GetV2Name

func (x *Fingerprint) GetV2Name() string

func (*Fingerprint) ProtoMessage

func (*Fingerprint) ProtoMessage()

func (*Fingerprint) ProtoReflect

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

func (*Fingerprint) Reset

func (x *Fingerprint) Reset()

func (*Fingerprint) String

func (x *Fingerprint) String() string

type Layer

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 deprecated

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

Deprecated: Use Layer.ProtoReflect.Descriptor instead.

func (*Layer) GetArguments

func (x *Layer) GetArguments() string

func (*Layer) GetDirective

func (x *Layer) GetDirective() Layer_Directive

func (*Layer) ProtoMessage

func (*Layer) ProtoMessage()

func (*Layer) ProtoReflect

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

func (*Layer) Reset

func (x *Layer) Reset()

func (*Layer) String

func (x *Layer) String() string

type Layer_Directive

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

func (Layer_Directive) Enum

func (x Layer_Directive) Enum() *Layer_Directive

func (Layer_Directive) EnumDescriptor deprecated

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

Deprecated: Use Layer_Directive.Descriptor instead.

func (Layer_Directive) Number

func (Layer_Directive) String

func (x Layer_Directive) String() string

func (Layer_Directive) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL