types

package
v2.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional bool fieldpath = 64400;
	E_Fieldpath = &file_github_com_containerd_containerd_api_types_fieldpath_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional bool fieldpath_all = 63300;
	E_FieldpathAll = &file_github_com_containerd_containerd_api_types_fieldpath_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var File_github_com_containerd_containerd_api_types_descriptor_proto protoreflect.FileDescriptor
View Source
var File_github_com_containerd_containerd_api_types_event_proto protoreflect.FileDescriptor
View Source
var File_github_com_containerd_containerd_api_types_fieldpath_proto protoreflect.FileDescriptor
View Source
var File_github_com_containerd_containerd_api_types_introspection_proto protoreflect.FileDescriptor
View Source
var File_github_com_containerd_containerd_api_types_metrics_proto protoreflect.FileDescriptor
View Source
var File_github_com_containerd_containerd_api_types_mount_proto protoreflect.FileDescriptor
View Source
var File_github_com_containerd_containerd_api_types_platform_proto protoreflect.FileDescriptor
View Source
var File_github_com_containerd_containerd_api_types_sandbox_proto protoreflect.FileDescriptor

Functions

func OCIPlatformFromProto

func OCIPlatformFromProto(platforms []*Platform) []oci.Platform

OCIPlatformFromProto converts a slice of the protobuf definition Platform to a slice of OCI [specs.Platform].

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

func (x *Descriptor) GetAnnotations() map[string]string

func (*Descriptor) GetDigest

func (x *Descriptor) GetDigest() string

func (*Descriptor) GetMediaType

func (x *Descriptor) GetMediaType() string

func (*Descriptor) GetSize

func (x *Descriptor) GetSize() int64

func (*Descriptor) ProtoMessage

func (*Descriptor) ProtoMessage()

func (*Descriptor) ProtoReflect

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

func (*Descriptor) Reset

func (x *Descriptor) Reset()

func (*Descriptor) String

func (x *Descriptor) String() string

type Envelope

type Envelope struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Namespace string                 `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Topic     string                 `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
	Event     *anypb.Any             `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*Envelope) Descriptor deprecated

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

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetEvent

func (x *Envelope) GetEvent() *anypb.Any

func (*Envelope) GetNamespace

func (x *Envelope) GetNamespace() string

func (*Envelope) GetTimestamp

func (x *Envelope) GetTimestamp() *timestamppb.Timestamp

func (*Envelope) GetTopic

func (x *Envelope) GetTopic() string

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

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

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) String

func (x *Envelope) 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) Descriptor() ([]byte, []int)

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetData

func (x *Metric) GetData() *anypb.Any

func (*Metric) GetID

func (x *Metric) GetID() string

func (*Metric) GetTimestamp

func (x *Metric) GetTimestamp() *timestamppb.Timestamp

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect

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

func (*Metric) Reset

func (x *Metric) Reset()

func (*Metric) String

func (x *Metric) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Mount.ProtoReflect.Descriptor instead.

func (*Mount) GetOptions

func (x *Mount) GetOptions() []string

func (*Mount) GetSource

func (x *Mount) GetSource() string

func (*Mount) GetTarget

func (x *Mount) GetTarget() string

func (*Mount) GetType

func (x *Mount) GetType() string

func (*Mount) ProtoMessage

func (*Mount) ProtoMessage()

func (*Mount) ProtoReflect

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

func (*Mount) Reset

func (x *Mount) Reset()

func (*Mount) String

func (x *Mount) String() string

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"`
	OSVersion    string `protobuf:"bytes,4,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
	// contains filtered or unexported fields
}

Platform follows the structure of the OCI platform specification, from descriptors.

func OCIPlatformToProto

func OCIPlatformToProto(platforms []oci.Platform) []*Platform

OCIPlatformToProto converts from a slice of OCI [specs.Platform] to a slice of the protobuf definition Platform.

func (*Platform) Descriptor deprecated

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

Deprecated: Use Platform.ProtoReflect.Descriptor instead.

func (*Platform) GetArchitecture

func (x *Platform) GetArchitecture() string

func (*Platform) GetOS

func (x *Platform) GetOS() string

func (*Platform) GetOsVersion

func (x *Platform) GetOsVersion() string

func (*Platform) GetVariant

func (x *Platform) GetVariant() string

func (*Platform) ProtoMessage

func (*Platform) ProtoMessage()

func (*Platform) ProtoReflect

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

func (*Platform) Reset

func (x *Platform) Reset()

func (*Platform) String

func (x *Platform) String() string

type RuntimeInfo

type RuntimeInfo struct {
	Name    string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version *RuntimeVersion `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Options correspond to RuntimeInfoRequest.Options (contains runc binary path, etc.)
	Options *anypb.Any `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// OCI-compatible runtimes should use https://github.com/opencontainers/runtime-spec/blob/main/features.md
	Features *anypb.Any `protobuf:"bytes,4,opt,name=features,proto3" json:"features,omitempty"`
	// Annotations of the shim. Irrelevant to features.Annotations.
	Annotations map[string]string `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RuntimeInfo) Descriptor deprecated

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

Deprecated: Use RuntimeInfo.ProtoReflect.Descriptor instead.

func (*RuntimeInfo) GetAnnotations

func (x *RuntimeInfo) GetAnnotations() map[string]string

func (*RuntimeInfo) GetFeatures

func (x *RuntimeInfo) GetFeatures() *anypb.Any

func (*RuntimeInfo) GetName

func (x *RuntimeInfo) GetName() string

func (*RuntimeInfo) GetOptions

func (x *RuntimeInfo) GetOptions() *anypb.Any

func (*RuntimeInfo) GetVersion

func (x *RuntimeInfo) GetVersion() *RuntimeVersion

func (*RuntimeInfo) ProtoMessage

func (*RuntimeInfo) ProtoMessage()

func (*RuntimeInfo) ProtoReflect

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

func (*RuntimeInfo) Reset

func (x *RuntimeInfo) Reset()

func (*RuntimeInfo) String

func (x *RuntimeInfo) String() string

type RuntimeRequest

type RuntimeRequest struct {
	RuntimePath string `protobuf:"bytes,1,opt,name=runtime_path,json=runtimePath,proto3" json:"runtime_path,omitempty"`
	// Options correspond to CreateTaskRequest.options.
	// This is needed to pass the runc binary path, etc.
	Options *anypb.Any `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*RuntimeRequest) Descriptor deprecated

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

Deprecated: Use RuntimeRequest.ProtoReflect.Descriptor instead.

func (*RuntimeRequest) GetOptions

func (x *RuntimeRequest) GetOptions() *anypb.Any

func (*RuntimeRequest) GetRuntimePath

func (x *RuntimeRequest) GetRuntimePath() string

func (*RuntimeRequest) ProtoMessage

func (*RuntimeRequest) ProtoMessage()

func (*RuntimeRequest) ProtoReflect

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

func (*RuntimeRequest) Reset

func (x *RuntimeRequest) Reset()

func (*RuntimeRequest) String

func (x *RuntimeRequest) String() string

type RuntimeVersion

type RuntimeVersion struct {
	Version  string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
	// contains filtered or unexported fields
}

func (*RuntimeVersion) Descriptor deprecated

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

Deprecated: Use RuntimeVersion.ProtoReflect.Descriptor instead.

func (*RuntimeVersion) GetRevision

func (x *RuntimeVersion) GetRevision() string

func (*RuntimeVersion) GetVersion

func (x *RuntimeVersion) GetVersion() string

func (*RuntimeVersion) ProtoMessage

func (*RuntimeVersion) ProtoMessage()

func (*RuntimeVersion) ProtoReflect

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

func (*RuntimeVersion) Reset

func (x *RuntimeVersion) Reset()

func (*RuntimeVersion) String

func (x *RuntimeVersion) String() string

type Sandbox

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 */
	// Sandboxer is the name of the sandbox controller who manages the sandbox.
	Sandboxer string `protobuf:"bytes,10,opt,name=sandboxer,proto3" json:"sandboxer,omitempty"`
	// 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

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

Deprecated: Use Sandbox.ProtoReflect.Descriptor instead.

func (*Sandbox) GetCreatedAt

func (x *Sandbox) GetCreatedAt() *timestamppb.Timestamp

func (*Sandbox) GetExtensions

func (x *Sandbox) GetExtensions() map[string]*anypb.Any

func (*Sandbox) GetLabels

func (x *Sandbox) GetLabels() map[string]string

func (*Sandbox) GetRuntime

func (x *Sandbox) GetRuntime() *Sandbox_Runtime

func (*Sandbox) GetSandboxID

func (x *Sandbox) GetSandboxID() string

func (*Sandbox) GetSandboxer

func (x *Sandbox) GetSandboxer() string

func (*Sandbox) GetSpec

func (x *Sandbox) GetSpec() *anypb.Any

func (*Sandbox) GetUpdatedAt

func (x *Sandbox) GetUpdatedAt() *timestamppb.Timestamp

func (*Sandbox) ProtoMessage

func (*Sandbox) ProtoMessage()

func (*Sandbox) ProtoReflect

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

func (*Sandbox) Reset

func (x *Sandbox) Reset()

func (*Sandbox) String

func (x *Sandbox) String() string

type Sandbox_Runtime

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

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

Deprecated: Use Sandbox_Runtime.ProtoReflect.Descriptor instead.

func (*Sandbox_Runtime) GetName

func (x *Sandbox_Runtime) GetName() string

func (*Sandbox_Runtime) GetOptions

func (x *Sandbox_Runtime) GetOptions() *anypb.Any

func (*Sandbox_Runtime) ProtoMessage

func (*Sandbox_Runtime) ProtoMessage()

func (*Sandbox_Runtime) ProtoReflect

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

func (*Sandbox_Runtime) Reset

func (x *Sandbox_Runtime) Reset()

func (*Sandbox_Runtime) String

func (x *Sandbox_Runtime) String() string

Directories

Path Synopsis
Package task defines the task service.
Package task defines the task service.
Package transfer defines the transfer types.
Package transfer defines the transfer types.

Jump to

Keyboard shortcuts

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