types package - github.com/containerd/containerd/v2/api/types - Go Packages
Affected by GO-2025-3528 and 4 other vulnerabilities GO-2025-3528 : containerd has an integer overflow in User ID handling in github.com/containerd/containerd GO-2025-4100 : containerd affected by a local privilege escalation via wide permissions on CRI directory in github.com/containerd/containerd GO-2025-4108 : containerd CRI server: Host memory exhaustion through Attach goroutine leak in github.com/containerd/containerd GO-2026-6444 : containerd: CRI ExecSync Goroutine Leak Leads to Node-Level Denial of Service in github.com/containerd/containerd GO-2026-6796 : containerd: Unpack DoS via repeated opaque whiteouts in github.com/containerd/containerd Documentation ¶ Index ¶ Variables func OCIPlatformFromProto(platforms []*Platform) []oci.Platform 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 Envelope func (*Envelope) Descriptor() ([]byte, []int) deprecated func (x *Envelope) GetEvent() *anypb.Any func (x *Envelope) GetNamespace() string func (x *Envelope) GetTimestamp() *timestamppb.Timestamp func (x *Envelope) GetTopic() string func (*Envelope) ProtoMessage() func (x *Envelope) ProtoReflect() protoreflect.Message func (x *Envelope) Reset() func (x *Envelope) 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 OCIPlatformToProto(platforms []oci.Platform) []*Platform func (*Platform) Descriptor() ([]byte, []int) deprecated func (x *Platform) GetArchitecture() string func (x *Platform) GetOS() string func (x *Platform) GetOsVersion() 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 RuntimeInfo func (*RuntimeInfo) Descriptor() ([]byte, []int) deprecated func (x *RuntimeInfo) GetAnnotations() map[string]string func (x *RuntimeInfo) GetFeatures() *anypb.Any func (x *RuntimeInfo) GetName() string func (x *RuntimeInfo) GetOptions() *anypb.Any func (x *RuntimeInfo) GetVersion() *RuntimeVersion func (*RuntimeInfo) ProtoMessage() func (x *RuntimeInfo) ProtoReflect() protoreflect.Message func (x *RuntimeInfo) Reset() func (x *RuntimeInfo) String() string type RuntimeRequest func (*RuntimeRequest) Descriptor() ([]byte, []int) deprecated func (x *RuntimeRequest) GetOptions() *anypb.Any func (x *RuntimeRequest) GetRuntimePath() string func (*RuntimeRequest) ProtoMessage() func (x *RuntimeRequest) ProtoReflect() protoreflect.Message func (x *RuntimeRequest) Reset() func (x *RuntimeRequest) String() string type RuntimeVersion func (*RuntimeVersion) Descriptor() ([]byte, []int) deprecated func (x *RuntimeVersion) GetRevision() string func (x *RuntimeVersion) GetVersion() string func (*RuntimeVersion) ProtoMessage() func (x *RuntimeVersion) ProtoReflect() protoreflect.Message func (x *RuntimeVersion) Reset() func (x *RuntimeVersion) 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) GetSandboxer() 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 ¶ 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" js
The rest of this page is on the live site.