Documentation
¶
Index ¶
- Variables
- type Basis
- func (*Basis) Descriptor() ([]byte, []int)
- func (m *Basis) GetFingerprint() *Fingerprint
- func (m *Basis) GetResourceUrl() string
- func (*Basis) ProtoMessage()
- func (m *Basis) Reset()
- func (m *Basis) String() string
- func (m *Basis) XXX_DiscardUnknown()
- func (m *Basis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Basis) XXX_Merge(src proto.Message)
- func (m *Basis) XXX_Size() int
- func (m *Basis) XXX_Unmarshal(b []byte) error
- type Derived
- func (*Derived) Descriptor() ([]byte, []int)
- func (m *Derived) GetBaseResourceUrl() string
- func (m *Derived) GetDistance() int32
- func (m *Derived) GetFingerprint() *Fingerprint
- func (m *Derived) GetLayerInfo() []*Layer
- func (*Derived) ProtoMessage()
- func (m *Derived) Reset()
- func (m *Derived) String() string
- func (m *Derived) XXX_DiscardUnknown()
- func (m *Derived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Derived) XXX_Merge(src proto.Message)
- func (m *Derived) XXX_Size() int
- func (m *Derived) XXX_Unmarshal(b []byte) error
- type Details
- func (*Details) Descriptor() ([]byte, []int)
- func (m *Details) GetDerivedImage() *Derived
- func (*Details) ProtoMessage()
- func (m *Details) Reset()
- func (m *Details) String() string
- func (m *Details) XXX_DiscardUnknown()
- func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Details) XXX_Merge(src proto.Message)
- func (m *Details) XXX_Size() int
- func (m *Details) XXX_Unmarshal(b []byte) error
- type Fingerprint
- func (*Fingerprint) Descriptor() ([]byte, []int)
- func (m *Fingerprint) GetV1Name() string
- func (m *Fingerprint) GetV2Blob() []string
- func (m *Fingerprint) GetV2Name() string
- func (*Fingerprint) ProtoMessage()
- func (m *Fingerprint) Reset()
- func (m *Fingerprint) String() string
- func (m *Fingerprint) XXX_DiscardUnknown()
- func (m *Fingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Fingerprint) XXX_Merge(src proto.Message)
- func (m *Fingerprint) XXX_Size() int
- func (m *Fingerprint) XXX_Unmarshal(b []byte) error
- type Layer
- func (*Layer) Descriptor() ([]byte, []int)
- func (m *Layer) GetArguments() string
- func (m *Layer) GetDirective() Layer_Directive
- func (*Layer) ProtoMessage()
- func (m *Layer) Reset()
- func (m *Layer) String() string
- func (m *Layer) XXX_DiscardUnknown()
- func (m *Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Layer) XXX_Merge(src proto.Message)
- func (m *Layer) XXX_Size() int
- func (m *Layer) XXX_Unmarshal(b []byte) error
- type Layer_Directive
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",
}
View Source
var 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,
}
Functions ¶
This section is empty.
Types ¶
type Basis ¶
type Basis struct { // 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"` // The fingerprint of the base image. Fingerprint *Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Basis) GetFingerprint ¶
func (m *Basis) GetFingerprint() *Fingerprint
func (*Basis) GetResourceUrl ¶
func (*Basis) ProtoMessage ¶
func (*Basis) ProtoMessage()
func (*Basis) XXX_DiscardUnknown ¶
func (m *Basis) XXX_DiscardUnknown()
func (*Basis) XXX_Marshal ¶
func (*Basis) XXX_Unmarshal ¶
type Derived ¶
type Derived struct { // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Derived) GetBaseResourceUrl ¶
func (*Derived) GetDistance ¶
func (*Derived) GetFingerprint ¶
func (m *Derived) GetFingerprint() *Fingerprint
func (*Derived) GetLayerInfo ¶
func (*Derived) ProtoMessage ¶
func (*Derived) ProtoMessage()
func (*Derived) XXX_DiscardUnknown ¶
func (m *Derived) XXX_DiscardUnknown()
func (*Derived) XXX_Marshal ¶
func (*Derived) XXX_Unmarshal ¶
type Details ¶
type Details struct { // The child image derived from the base image. DerivedImage *Derived `protobuf:"bytes,1,opt,name=derived_image,json=derivedImage,proto3" json:"derived_image,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Details of an image occurrence.
func (*Details) Descriptor ¶
func (*Details) GetDerivedImage ¶
func (*Details) ProtoMessage ¶
func (*Details) ProtoMessage()
func (*Details) XXX_DiscardUnknown ¶
func (m *Details) XXX_DiscardUnknown()
func (*Details) XXX_Marshal ¶
func (*Details) XXX_Unmarshal ¶
type Fingerprint ¶
type Fingerprint struct { // 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"` // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A set of properties that uniquely identify a given Docker image.
func (*Fingerprint) Descriptor ¶
func (*Fingerprint) Descriptor() ([]byte, []int)
func (*Fingerprint) GetV1Name ¶
func (m *Fingerprint) GetV1Name() string
func (*Fingerprint) GetV2Blob ¶
func (m *Fingerprint) GetV2Blob() []string
func (*Fingerprint) GetV2Name ¶
func (m *Fingerprint) GetV2Name() string
func (*Fingerprint) ProtoMessage ¶
func (*Fingerprint) ProtoMessage()
func (*Fingerprint) Reset ¶
func (m *Fingerprint) Reset()
func (*Fingerprint) String ¶
func (m *Fingerprint) String() string
func (*Fingerprint) XXX_DiscardUnknown ¶
func (m *Fingerprint) XXX_DiscardUnknown()
func (*Fingerprint) XXX_Marshal ¶
func (m *Fingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Fingerprint) XXX_Merge ¶
func (dst *Fingerprint) XXX_Merge(src proto.Message)
func (*Fingerprint) XXX_Size ¶
func (m *Fingerprint) XXX_Size() int
func (*Fingerprint) XXX_Unmarshal ¶
func (m *Fingerprint) XXX_Unmarshal(b []byte) error
type Layer ¶
type Layer struct { // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Layer holds metadata specific to a layer of a Docker image.
func (*Layer) Descriptor ¶
func (*Layer) GetArguments ¶
func (*Layer) GetDirective ¶
func (m *Layer) GetDirective() Layer_Directive
func (*Layer) ProtoMessage ¶
func (*Layer) ProtoMessage()
func (*Layer) XXX_DiscardUnknown ¶
func (m *Layer) XXX_DiscardUnknown()
func (*Layer) XXX_Marshal ¶
func (*Layer) XXX_Unmarshal ¶
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/reference/builder/#maintainer Layer_MAINTAINER Layer_Directive = 1 // https://docs.docker.com/reference/builder/#run Layer_RUN Layer_Directive = 2 // https://docs.docker.com/reference/builder/#cmd Layer_CMD Layer_Directive = 3 // https://docs.docker.com/reference/builder/#label Layer_LABEL Layer_Directive = 4 // https://docs.docker.com/reference/builder/#expose Layer_EXPOSE Layer_Directive = 5 // https://docs.docker.com/reference/builder/#env Layer_ENV Layer_Directive = 6 // https://docs.docker.com/reference/builder/#add Layer_ADD Layer_Directive = 7 // https://docs.docker.com/reference/builder/#copy Layer_COPY Layer_Directive = 8 // https://docs.docker.com/reference/builder/#entrypoint Layer_ENTRYPOINT Layer_Directive = 9 // https://docs.docker.com/reference/builder/#volume Layer_VOLUME Layer_Directive = 10 // https://docs.docker.com/reference/builder/#user Layer_USER Layer_Directive = 11 // https://docs.docker.com/reference/builder/#workdir Layer_WORKDIR Layer_Directive = 12 // https://docs.docker.com/reference/builder/#arg Layer_ARG Layer_Directive = 13 // https://docs.docker.com/reference/builder/#onbuild Layer_ONBUILD Layer_Directive = 14 // https://docs.docker.com/reference/builder/#stopsignal Layer_STOPSIGNAL Layer_Directive = 15 // https://docs.docker.com/reference/builder/#healthcheck Layer_HEALTHCHECK Layer_Directive = 16 // https://docs.docker.com/reference/builder/#shell Layer_SHELL Layer_Directive = 17 )
func (Layer_Directive) EnumDescriptor ¶
func (Layer_Directive) EnumDescriptor() ([]byte, []int)
func (Layer_Directive) String ¶
func (x Layer_Directive) String() string
Click to show internal directories.
Click to hide internal directories.