package types
import "github.com/containerd/containerd/api/types"
Index ¶
- Variables
- type Descriptor
- func (*Descriptor) Descriptor() ([]byte, []int)
- func (m *Descriptor) Marshal() (dAtA []byte, err error)
- func (m *Descriptor) MarshalTo(dAtA []byte) (int, error)
- func (m *Descriptor) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Descriptor) ProtoMessage()
- func (m *Descriptor) Reset()
- func (m *Descriptor) Size() (n int)
- func (this *Descriptor) String() string
- func (m *Descriptor) Unmarshal(dAtA []byte) error
- func (m *Descriptor) XXX_DiscardUnknown()
- func (m *Descriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Descriptor) XXX_Merge(src proto.Message)
- func (m *Descriptor) XXX_Size() int
- func (m *Descriptor) XXX_Unmarshal(b []byte) error
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)
- func (m *Metric) Marshal() (dAtA []byte, err error)
- func (m *Metric) MarshalTo(dAtA []byte) (int, error)
- func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metric) ProtoMessage()
- func (m *Metric) Reset()
- func (m *Metric) Size() (n int)
- func (this *Metric) String() string
- func (m *Metric) Unmarshal(dAtA []byte) error
- func (m *Metric) XXX_DiscardUnknown()
- func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metric) XXX_Merge(src proto.Message)
- func (m *Metric) XXX_Size() int
- func (m *Metric) XXX_Unmarshal(b []byte) error
- type Mount
- func (*Mount) Descriptor() ([]byte, []int)
- func (m *Mount) Marshal() (dAtA []byte, err error)
- func (m *Mount) MarshalTo(dAtA []byte) (int, error)
- func (m *Mount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Mount) ProtoMessage()
- func (m *Mount) Reset()
- func (m *Mount) Size() (n int)
- func (this *Mount) String() string
- func (m *Mount) Unmarshal(dAtA []byte) error
- func (m *Mount) XXX_DiscardUnknown()
- func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Mount) XXX_Merge(src proto.Message)
- func (m *Mount) XXX_Size() int
- func (m *Mount) XXX_Unmarshal(b []byte) error
- type Platform
- func (*Platform) Descriptor() ([]byte, []int)
- func (m *Platform) Marshal() (dAtA []byte, err error)
- func (m *Platform) MarshalTo(dAtA []byte) (int, error)
- func (m *Platform) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Platform) ProtoMessage()
- func (m *Platform) Reset()
- func (m *Platform) Size() (n int)
- func (this *Platform) String() string
- func (m *Platform) Unmarshal(dAtA []byte) error
- func (m *Platform) XXX_DiscardUnknown()
- func (m *Platform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Platform) XXX_Merge(src proto.Message)
- func (m *Platform) XXX_Size() int
- func (m *Platform) XXX_Unmarshal(b []byte) error
Variables ¶
var ( ErrInvalidLengthDescriptor = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDescriptor = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDescriptor = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMetrics = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetrics = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMount = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMount = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMount = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPlatform = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPlatform = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPlatform = fmt.Errorf("proto: unexpected end of group") )
Types ¶
type Descriptor ¶
type Descriptor struct { MediaType string `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,2,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"` Size_ int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Descriptor) Descriptor() ([]byte, []int)
func (*Descriptor) Marshal ¶
func (m *Descriptor) Marshal() (dAtA []byte, err error)
func (*Descriptor) MarshalTo ¶
func (m *Descriptor) MarshalTo(dAtA []byte) (int, error)
func (*Descriptor) MarshalToSizedBuffer ¶
func (m *Descriptor) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Descriptor) ProtoMessage ¶
func (*Descriptor) ProtoMessage()
func (*Descriptor) Reset ¶
func (m *Descriptor) Reset()
func (*Descriptor) Size ¶
func (m *Descriptor) Size() (n int)
func (*Descriptor) String ¶
func (this *Descriptor) String() string
func (*Descriptor) Unmarshal ¶
func (m *Descriptor) Unmarshal(dAtA []byte) error
func (*Descriptor) XXX_DiscardUnknown ¶
func (m *Descriptor) XXX_DiscardUnknown()
func (*Descriptor) XXX_Marshal ¶
func (m *Descriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Descriptor) XXX_Merge ¶
func (m *Descriptor) XXX_Merge(src proto.Message)
func (*Descriptor) XXX_Size ¶
func (m *Descriptor) XXX_Size() int
func (*Descriptor) XXX_Unmarshal ¶
func (m *Descriptor) XXX_Unmarshal(b []byte) error
type Metric ¶
type Metric struct { Timestamp time.Time `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"timestamp"` ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Data *types.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Metric) Descriptor ¶
func (*Metric) Marshal ¶
func (*Metric) MarshalTo ¶
func (*Metric) MarshalToSizedBuffer ¶
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) Reset ¶
func (m *Metric) Reset()
func (*Metric) Size ¶
func (*Metric) String ¶
func (*Metric) Unmarshal ¶
func (*Metric) XXX_DiscardUnknown ¶
func (m *Metric) XXX_DiscardUnknown()
func (*Metric) XXX_Marshal ¶
func (*Metric) XXX_Merge ¶
func (*Metric) XXX_Size ¶
func (*Metric) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Mount) Marshal ¶
func (*Mount) MarshalTo ¶
func (*Mount) MarshalToSizedBuffer ¶
func (*Mount) ProtoMessage ¶
func (*Mount) ProtoMessage()
func (*Mount) Reset ¶
func (m *Mount) Reset()
func (*Mount) Size ¶
func (*Mount) String ¶
func (*Mount) Unmarshal ¶
func (*Mount) XXX_DiscardUnknown ¶
func (m *Mount) XXX_DiscardUnknown()
func (*Mount) XXX_Marshal ¶
func (*Mount) XXX_Merge ¶
func (*Mount) XXX_Size ¶
func (*Mount) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Platform follows the structure of the OCI platform specification, from descriptors.
func (*Platform) Descriptor ¶
func (*Platform) Marshal ¶
func (*Platform) MarshalTo ¶
func (*Platform) MarshalToSizedBuffer ¶
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (*Platform) Reset ¶
func (m *Platform) Reset()
func (*Platform) Size ¶
func (*Platform) String ¶
func (*Platform) Unmarshal ¶
func (*Platform) XXX_DiscardUnknown ¶
func (m *Platform) XXX_DiscardUnknown()
func (*Platform) XXX_Marshal ¶
func (*Platform) XXX_Merge ¶
func (*Platform) XXX_Size ¶
func (*Platform) XXX_Unmarshal ¶
Source Files ¶
descriptor.pb.go doc.go metrics.pb.go mount.pb.go platform.pb.go
Directories ¶
Path | Synopsis |
---|---|
api/types/task | Package task defines the task service. |
- Version
- v1.6.5
- Published
- Jun 3, 2022
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 7 seconds ago –
Tools for package owners.