Documentation ¶
Index ¶
- Variables
- type Descriptor
- func (*Descriptor) Descriptor() ([]byte, []int)deprecated
- func (x *Descriptor) GetAnnotations() map[string]string
- func (x *Descriptor) GetDigest() string
- func (x *Descriptor) GetMediaType() string
- func (x *Descriptor) GetSize() int64
- func (*Descriptor) ProtoMessage()
- func (x *Descriptor) ProtoReflect() protoreflect.Message
- func (x *Descriptor) Reset()
- func (x *Descriptor) String() string
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)deprecated
- func (x *Metric) GetData() *anypb.Any
- func (x *Metric) GetID() string
- func (x *Metric) GetTimestamp() *timestamppb.Timestamp
- func (*Metric) ProtoMessage()
- func (x *Metric) ProtoReflect() protoreflect.Message
- func (x *Metric) Reset()
- func (x *Metric) String() string
- type Mount
- func (*Mount) Descriptor() ([]byte, []int)deprecated
- func (x *Mount) GetOptions() []string
- func (x *Mount) GetSource() string
- func (x *Mount) GetTarget() string
- func (x *Mount) GetType() string
- func (*Mount) ProtoMessage()
- func (x *Mount) ProtoReflect() protoreflect.Message
- func (x *Mount) Reset()
- func (x *Mount) String() string
- type Platform
- func (*Platform) Descriptor() ([]byte, []int)deprecated
- func (x *Platform) GetArchitecture() string
- func (x *Platform) GetOS() string
- func (x *Platform) GetVariant() string
- func (*Platform) ProtoMessage()
- func (x *Platform) ProtoReflect() protoreflect.Message
- func (x *Platform) Reset()
- func (x *Platform) String() string
- type Sandbox
- func (*Sandbox) Descriptor() ([]byte, []int)deprecated
- func (x *Sandbox) GetCreatedAt() *timestamppb.Timestamp
- func (x *Sandbox) GetExtensions() map[string]*anypb.Any
- func (x *Sandbox) GetLabels() map[string]string
- func (x *Sandbox) GetRuntime() *Sandbox_Runtime
- func (x *Sandbox) GetSandboxID() string
- func (x *Sandbox) GetSpec() *anypb.Any
- func (x *Sandbox) GetUpdatedAt() *timestamppb.Timestamp
- func (*Sandbox) ProtoMessage()
- func (x *Sandbox) ProtoReflect() protoreflect.Message
- func (x *Sandbox) Reset()
- func (x *Sandbox) String() string
- type Sandbox_Runtime
- func (*Sandbox_Runtime) Descriptor() ([]byte, []int)deprecated
- func (x *Sandbox_Runtime) GetName() string
- func (x *Sandbox_Runtime) GetOptions() *anypb.Any
- func (*Sandbox_Runtime) ProtoMessage()
- func (x *Sandbox_Runtime) ProtoReflect() protoreflect.Message
- func (x *Sandbox_Runtime) Reset()
- func (x *Sandbox_Runtime) String() string
Constants ¶
This section is empty.
Variables ¶
var File_github_com_containerd_containerd_api_types_descriptor_proto protoreflect.FileDescriptor
var File_github_com_containerd_containerd_api_types_metrics_proto protoreflect.FileDescriptor
var File_github_com_containerd_containerd_api_types_mount_proto protoreflect.FileDescriptor
var File_github_com_containerd_containerd_api_types_platform_proto protoreflect.FileDescriptor
var File_github_com_containerd_containerd_api_types_sandbox_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
type Descriptor struct { MediaType string `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Annotations map[string]string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
Descriptor describes a blob in a content store.
This descriptor can be used to reference content from an oci descriptor found in a manifest. See https://godoc.org/github.com/opencontainers/image-spec/specs-go/v1#Descriptor
func (*Descriptor) Descriptor
deprecated
func (*Descriptor) Descriptor() ([]byte, []int)
Deprecated: Use Descriptor.ProtoReflect.Descriptor instead.
func (*Descriptor) GetAnnotations ¶ added in v1.7.0
func (x *Descriptor) GetAnnotations() map[string]string
func (*Descriptor) GetDigest ¶ added in v1.7.0
func (x *Descriptor) GetDigest() string
func (*Descriptor) GetMediaType ¶ added in v1.7.0
func (x *Descriptor) GetMediaType() string
func (*Descriptor) GetSize ¶ added in v1.7.0
func (x *Descriptor) GetSize() int64
func (*Descriptor) ProtoMessage ¶
func (*Descriptor) ProtoMessage()
func (*Descriptor) ProtoReflect ¶ added in v1.7.0
func (x *Descriptor) ProtoReflect() protoreflect.Message
func (*Descriptor) Reset ¶
func (x *Descriptor) Reset()
func (*Descriptor) String ¶
func (x *Descriptor) String() string
type Metric ¶
type Metric struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Metric) Descriptor
deprecated
func (*Metric) GetTimestamp ¶ added in v1.7.0
func (x *Metric) GetTimestamp() *timestamppb.Timestamp
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) ProtoReflect ¶ added in v1.7.0
func (x *Metric) ProtoReflect() protoreflect.Message
type Mount ¶
type Mount struct { // Type defines the nature of the mount. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Source specifies the name of the mount. Depending on mount type, this // may be a volume name or a host path, or even ignored. Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // Target path in container Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Options specifies zero or more fstab style mount options. Options []string `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
Mount describes mounts for a container.
This type is the lingua franca of ContainerD. All services provide mounts to be used with the container at creation time.
The Mount type follows the structure of the mount syscall, including a type, source, target and options.
func (*Mount) Descriptor
deprecated
func (*Mount) GetOptions ¶ added in v1.7.0
func (*Mount) ProtoMessage ¶
func (*Mount) ProtoMessage()
func (*Mount) ProtoReflect ¶ added in v1.7.0
func (x *Mount) ProtoReflect() protoreflect.Message
type Platform ¶
type Platform struct { OS string `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"` Architecture string `protobuf:"bytes,2,opt,name=architecture,proto3" json:"architecture,omitempty"` Variant string `protobuf:"bytes,3,opt,name=variant,proto3" json:"variant,omitempty"` // contains filtered or unexported fields }
Platform follows the structure of the OCI platform specification, from descriptors.
func (*Platform) Descriptor
deprecated
func (*Platform) GetArchitecture ¶ added in v1.7.0
func (*Platform) GetVariant ¶ added in v1.7.0
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (*Platform) ProtoReflect ¶ added in v1.7.0
func (x *Platform) ProtoReflect() protoreflect.Message
type Sandbox ¶ added in v1.7.0
type Sandbox struct { // SandboxID is a unique instance identifier within namespace SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"` // Runtime specifies which runtime to use for executing this container. Runtime *Sandbox_Runtime `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` // Spec is sandbox configuration (kin of OCI runtime spec), spec's data will be written to a config.json file in the // bundle directory (similary to OCI spec). Spec *anypb.Any `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` // Labels provides an area to include arbitrary data on containers. Labels map[string]string `` /* 153-byte string literal not displayed */ // CreatedAt is the time the container was first created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // UpdatedAt is the last time the container was mutated. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Extensions allow clients to provide optional blobs that can be handled by runtime. Extensions map[string]*anypb.Any `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
Sandbox represents a sandbox metadata object that keeps all info required by controller to work with a particular instance.
func (*Sandbox) Descriptor
deprecated
added in
v1.7.0
func (*Sandbox) GetCreatedAt ¶ added in v1.7.0
func (x *Sandbox) GetCreatedAt() *timestamppb.Timestamp
func (*Sandbox) GetExtensions ¶ added in v1.7.0
func (*Sandbox) GetRuntime ¶ added in v1.7.0
func (x *Sandbox) GetRuntime() *Sandbox_Runtime
func (*Sandbox) GetSandboxID ¶ added in v1.7.0
func (*Sandbox) GetUpdatedAt ¶ added in v1.7.0
func (x *Sandbox) GetUpdatedAt() *timestamppb.Timestamp
func (*Sandbox) ProtoMessage ¶ added in v1.7.0
func (*Sandbox) ProtoMessage()
func (*Sandbox) ProtoReflect ¶ added in v1.7.0
func (x *Sandbox) ProtoReflect() protoreflect.Message
type Sandbox_Runtime ¶ added in v1.7.0
type Sandbox_Runtime struct { // Name is the name of the runtime. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Options specify additional runtime initialization options for the shim (this data will be available in StartShim). // Typically this data expected to be runtime shim implementation specific. Options *anypb.Any `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*Sandbox_Runtime) Descriptor
deprecated
added in
v1.7.0
func (*Sandbox_Runtime) Descriptor() ([]byte, []int)
Deprecated: Use Sandbox_Runtime.ProtoReflect.Descriptor instead.
func (*Sandbox_Runtime) GetName ¶ added in v1.7.0
func (x *Sandbox_Runtime) GetName() string
func (*Sandbox_Runtime) GetOptions ¶ added in v1.7.0
func (x *Sandbox_Runtime) GetOptions() *anypb.Any
func (*Sandbox_Runtime) ProtoMessage ¶ added in v1.7.0
func (*Sandbox_Runtime) ProtoMessage()
func (*Sandbox_Runtime) ProtoReflect ¶ added in v1.7.0
func (x *Sandbox_Runtime) ProtoReflect() protoreflect.Message
func (*Sandbox_Runtime) Reset ¶ added in v1.7.0
func (x *Sandbox_Runtime) Reset()
func (*Sandbox_Runtime) String ¶ added in v1.7.0
func (x *Sandbox_Runtime) String() string