sandbox

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Controller_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "containerd.services.sandbox.v1.Controller",
	HandlerType: (*ControllerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Start",
			Handler:    _Controller_Start_Handler,
		},
		{
			MethodName: "Shutdown",
			Handler:    _Controller_Shutdown_Handler,
		},
		{
			MethodName: "Wait",
			Handler:    _Controller_Wait_Handler,
		},
		{
			MethodName: "Status",
			Handler:    _Controller_Status_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/containerd/containerd/api/services/sandbox/v1/sandbox.proto",
}

Controller_ServiceDesc is the grpc.ServiceDesc for Controller service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_github_com_containerd_containerd_api_services_sandbox_v1_sandbox_proto protoreflect.FileDescriptor
View Source
var Store_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "containerd.services.sandbox.v1.Store",
	HandlerType: (*StoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Store_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Store_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Store_Delete_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Store_List_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Store_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/containerd/containerd/api/services/sandbox/v1/sandbox.proto",
}

Store_ServiceDesc is the grpc.ServiceDesc for Store service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterControllerServer

func RegisterControllerServer(s grpc.ServiceRegistrar, srv ControllerServer)

func RegisterStoreServer

func RegisterStoreServer(s grpc.ServiceRegistrar, srv StoreServer)

Types

type ControllerClient

ControllerClient is the client API for Controller service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewControllerClient

func NewControllerClient(cc grpc.ClientConnInterface) ControllerClient

type ControllerServer

ControllerServer is the server API for Controller service. All implementations must embed UnimplementedControllerServer for forward compatibility

type ControllerShutdownRequest

type ControllerShutdownRequest struct {
	SandboxID   string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	TimeoutSecs uint32 `protobuf:"varint,2,opt,name=timeout_secs,json=timeoutSecs,proto3" json:"timeout_secs,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerShutdownRequest) Descriptor deprecated

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

Deprecated: Use ControllerShutdownRequest.ProtoReflect.Descriptor instead.

func (*ControllerShutdownRequest) GetSandboxID

func (x *ControllerShutdownRequest) GetSandboxID() string

func (*ControllerShutdownRequest) GetTimeoutSecs

func (x *ControllerShutdownRequest) GetTimeoutSecs() uint32

func (*ControllerShutdownRequest) ProtoMessage

func (*ControllerShutdownRequest) ProtoMessage()

func (*ControllerShutdownRequest) ProtoReflect

func (*ControllerShutdownRequest) Reset

func (x *ControllerShutdownRequest) Reset()

func (*ControllerShutdownRequest) String

func (x *ControllerShutdownRequest) String() string

type ControllerShutdownResponse

type ControllerShutdownResponse struct {
	// contains filtered or unexported fields
}

func (*ControllerShutdownResponse) Descriptor deprecated

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

Deprecated: Use ControllerShutdownResponse.ProtoReflect.Descriptor instead.

func (*ControllerShutdownResponse) ProtoMessage

func (*ControllerShutdownResponse) ProtoMessage()

func (*ControllerShutdownResponse) ProtoReflect

func (*ControllerShutdownResponse) Reset

func (x *ControllerShutdownResponse) Reset()

func (*ControllerShutdownResponse) String

func (x *ControllerShutdownResponse) String() string

type ControllerStartRequest

type ControllerStartRequest struct {
	SandboxID string         `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	Rootfs    []*types.Mount `protobuf:"bytes,2,rep,name=rootfs,proto3" json:"rootfs,omitempty"`
	Options   *anypb.Any     `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerStartRequest) Descriptor deprecated

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

Deprecated: Use ControllerStartRequest.ProtoReflect.Descriptor instead.

func (*ControllerStartRequest) GetOptions

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

func (*ControllerStartRequest) GetRootfs

func (x *ControllerStartRequest) GetRootfs() []*types.Mount

func (*ControllerStartRequest) GetSandboxID

func (x *ControllerStartRequest) GetSandboxID() string

func (*ControllerStartRequest) ProtoMessage

func (*ControllerStartRequest) ProtoMessage()

func (*ControllerStartRequest) ProtoReflect

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

func (*ControllerStartRequest) Reset

func (x *ControllerStartRequest) Reset()

func (*ControllerStartRequest) String

func (x *ControllerStartRequest) String() string

type ControllerStartResponse

type ControllerStartResponse struct {
	SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	Pid       uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerStartResponse) Descriptor deprecated

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

Deprecated: Use ControllerStartResponse.ProtoReflect.Descriptor instead.

func (*ControllerStartResponse) GetPid

func (x *ControllerStartResponse) GetPid() uint32

func (*ControllerStartResponse) GetSandboxID

func (x *ControllerStartResponse) GetSandboxID() string

func (*ControllerStartResponse) ProtoMessage

func (*ControllerStartResponse) ProtoMessage()

func (*ControllerStartResponse) ProtoReflect

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

func (*ControllerStartResponse) Reset

func (x *ControllerStartResponse) Reset()

func (*ControllerStartResponse) String

func (x *ControllerStartResponse) String() string

type ControllerStatusRequest

type ControllerStatusRequest struct {
	SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerStatusRequest) Descriptor deprecated

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

Deprecated: Use ControllerStatusRequest.ProtoReflect.Descriptor instead.

func (*ControllerStatusRequest) GetSandboxID

func (x *ControllerStatusRequest) GetSandboxID() string

func (*ControllerStatusRequest) ProtoMessage

func (*ControllerStatusRequest) ProtoMessage()

func (*ControllerStatusRequest) ProtoReflect

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

func (*ControllerStatusRequest) Reset

func (x *ControllerStatusRequest) Reset()

func (*ControllerStatusRequest) String

func (x *ControllerStatusRequest) String() string

type ControllerStatusResponse

type ControllerStatusResponse struct {
	ID         string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Pid        uint32                 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	State      string                 `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	ExitStatus uint32                 `protobuf:"varint,4,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
	ExitedAt   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=exited_at,json=exitedAt,proto3" json:"exited_at,omitempty"`
	Extra      *anypb.Any             `protobuf:"bytes,6,opt,name=extra,proto3" json:"extra,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerStatusResponse) Descriptor deprecated

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

Deprecated: Use ControllerStatusResponse.ProtoReflect.Descriptor instead.

func (*ControllerStatusResponse) GetExitStatus

func (x *ControllerStatusResponse) GetExitStatus() uint32

func (*ControllerStatusResponse) GetExitedAt

func (*ControllerStatusResponse) GetExtra

func (x *ControllerStatusResponse) GetExtra() *anypb.Any

func (*ControllerStatusResponse) GetID

func (x *ControllerStatusResponse) GetID() string

func (*ControllerStatusResponse) GetPid

func (x *ControllerStatusResponse) GetPid() uint32

func (*ControllerStatusResponse) GetState

func (x *ControllerStatusResponse) GetState() string

func (*ControllerStatusResponse) ProtoMessage

func (*ControllerStatusResponse) ProtoMessage()

func (*ControllerStatusResponse) ProtoReflect

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

func (*ControllerStatusResponse) Reset

func (x *ControllerStatusResponse) Reset()

func (*ControllerStatusResponse) String

func (x *ControllerStatusResponse) String() string

type ControllerWaitRequest

type ControllerWaitRequest struct {
	SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerWaitRequest) Descriptor deprecated

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

Deprecated: Use ControllerWaitRequest.ProtoReflect.Descriptor instead.

func (*ControllerWaitRequest) GetSandboxID

func (x *ControllerWaitRequest) GetSandboxID() string

func (*ControllerWaitRequest) ProtoMessage

func (*ControllerWaitRequest) ProtoMessage()

func (*ControllerWaitRequest) ProtoReflect

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

func (*ControllerWaitRequest) Reset

func (x *ControllerWaitRequest) Reset()

func (*ControllerWaitRequest) String

func (x *ControllerWaitRequest) String() string

type ControllerWaitResponse

type ControllerWaitResponse struct {
	ExitStatus uint32                 `protobuf:"varint,1,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
	ExitedAt   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=exited_at,json=exitedAt,proto3" json:"exited_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerWaitResponse) Descriptor deprecated

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

Deprecated: Use ControllerWaitResponse.ProtoReflect.Descriptor instead.

func (*ControllerWaitResponse) GetExitStatus

func (x *ControllerWaitResponse) GetExitStatus() uint32

func (*ControllerWaitResponse) GetExitedAt

func (x *ControllerWaitResponse) GetExitedAt() *timestamppb.Timestamp

func (*ControllerWaitResponse) ProtoMessage

func (*ControllerWaitResponse) ProtoMessage()

func (*ControllerWaitResponse) ProtoReflect

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

func (*ControllerWaitResponse) Reset

func (x *ControllerWaitResponse) Reset()

func (*ControllerWaitResponse) String

func (x *ControllerWaitResponse) String() string

type StoreClient

StoreClient is the client API for Store service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewStoreClient

func NewStoreClient(cc grpc.ClientConnInterface) StoreClient

type StoreCreateRequest

type StoreCreateRequest struct {
	Sandbox *types.Sandbox `protobuf:"bytes,1,opt,name=sandbox,proto3" json:"sandbox,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreCreateRequest) Descriptor deprecated

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

Deprecated: Use StoreCreateRequest.ProtoReflect.Descriptor instead.

func (*StoreCreateRequest) GetSandbox

func (x *StoreCreateRequest) GetSandbox() *types.Sandbox

func (*StoreCreateRequest) ProtoMessage

func (*StoreCreateRequest) ProtoMessage()

func (*StoreCreateRequest) ProtoReflect

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

func (*StoreCreateRequest) Reset

func (x *StoreCreateRequest) Reset()

func (*StoreCreateRequest) String

func (x *StoreCreateRequest) String() string

type StoreCreateResponse

type StoreCreateResponse struct {
	Sandbox *types.Sandbox `protobuf:"bytes,1,opt,name=sandbox,proto3" json:"sandbox,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreCreateResponse) Descriptor deprecated

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

Deprecated: Use StoreCreateResponse.ProtoReflect.Descriptor instead.

func (*StoreCreateResponse) GetSandbox

func (x *StoreCreateResponse) GetSandbox() *types.Sandbox

func (*StoreCreateResponse) ProtoMessage

func (*StoreCreateResponse) ProtoMessage()

func (*StoreCreateResponse) ProtoReflect

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

func (*StoreCreateResponse) Reset

func (x *StoreCreateResponse) Reset()

func (*StoreCreateResponse) String

func (x *StoreCreateResponse) String() string

type StoreDeleteRequest

type StoreDeleteRequest struct {
	SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreDeleteRequest) Descriptor deprecated

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

Deprecated: Use StoreDeleteRequest.ProtoReflect.Descriptor instead.

func (*StoreDeleteRequest) GetSandboxID

func (x *StoreDeleteRequest) GetSandboxID() string

func (*StoreDeleteRequest) ProtoMessage

func (*StoreDeleteRequest) ProtoMessage()

func (*StoreDeleteRequest) ProtoReflect

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

func (*StoreDeleteRequest) Reset

func (x *StoreDeleteRequest) Reset()

func (*StoreDeleteRequest) String

func (x *StoreDeleteRequest) String() string

type StoreDeleteResponse

type StoreDeleteResponse struct {
	// contains filtered or unexported fields
}

func (*StoreDeleteResponse) Descriptor deprecated

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

Deprecated: Use StoreDeleteResponse.ProtoReflect.Descriptor instead.

func (*StoreDeleteResponse) ProtoMessage

func (*StoreDeleteResponse) ProtoMessage()

func (*StoreDeleteResponse) ProtoReflect

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

func (*StoreDeleteResponse) Reset

func (x *StoreDeleteResponse) Reset()

func (*StoreDeleteResponse) String

func (x *StoreDeleteResponse) String() string

type StoreGetRequest

type StoreGetRequest struct {
	SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreGetRequest) Descriptor deprecated

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

Deprecated: Use StoreGetRequest.ProtoReflect.Descriptor instead.

func (*StoreGetRequest) GetSandboxID

func (x *StoreGetRequest) GetSandboxID() string

func (*StoreGetRequest) ProtoMessage

func (*StoreGetRequest) ProtoMessage()

func (*StoreGetRequest) ProtoReflect

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

func (*StoreGetRequest) Reset

func (x *StoreGetRequest) Reset()

func (*StoreGetRequest) String

func (x *StoreGetRequest) String() string

type StoreGetResponse

type StoreGetResponse struct {
	Sandbox *types.Sandbox `protobuf:"bytes,1,opt,name=sandbox,proto3" json:"sandbox,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreGetResponse) Descriptor deprecated

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

Deprecated: Use StoreGetResponse.ProtoReflect.Descriptor instead.

func (*StoreGetResponse) GetSandbox

func (x *StoreGetResponse) GetSandbox() *types.Sandbox

func (*StoreGetResponse) ProtoMessage

func (*StoreGetResponse) ProtoMessage()

func (*StoreGetResponse) ProtoReflect

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

func (*StoreGetResponse) Reset

func (x *StoreGetResponse) Reset()

func (*StoreGetResponse) String

func (x *StoreGetResponse) String() string

type StoreListRequest

type StoreListRequest struct {
	Filters []string `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreListRequest) Descriptor deprecated

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

Deprecated: Use StoreListRequest.ProtoReflect.Descriptor instead.

func (*StoreListRequest) GetFilters

func (x *StoreListRequest) GetFilters() []string

func (*StoreListRequest) ProtoMessage

func (*StoreListRequest) ProtoMessage()

func (*StoreListRequest) ProtoReflect

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

func (*StoreListRequest) Reset

func (x *StoreListRequest) Reset()

func (*StoreListRequest) String

func (x *StoreListRequest) String() string

type StoreListResponse

type StoreListResponse struct {
	List []*types.Sandbox `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreListResponse) Descriptor deprecated

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

Deprecated: Use StoreListResponse.ProtoReflect.Descriptor instead.

func (*StoreListResponse) GetList

func (x *StoreListResponse) GetList() []*types.Sandbox

func (*StoreListResponse) ProtoMessage

func (*StoreListResponse) ProtoMessage()

func (*StoreListResponse) ProtoReflect

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

func (*StoreListResponse) Reset

func (x *StoreListResponse) Reset()

func (*StoreListResponse) String

func (x *StoreListResponse) String() string

type StoreServer

StoreServer is the server API for Store service. All implementations must embed UnimplementedStoreServer for forward compatibility

type StoreUpdateRequest

type StoreUpdateRequest struct {
	Sandbox *types.Sandbox `protobuf:"bytes,1,opt,name=sandbox,proto3" json:"sandbox,omitempty"`
	Fields  []string       `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreUpdateRequest) Descriptor deprecated

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

Deprecated: Use StoreUpdateRequest.ProtoReflect.Descriptor instead.

func (*StoreUpdateRequest) GetFields

func (x *StoreUpdateRequest) GetFields() []string

func (*StoreUpdateRequest) GetSandbox

func (x *StoreUpdateRequest) GetSandbox() *types.Sandbox

func (*StoreUpdateRequest) ProtoMessage

func (*StoreUpdateRequest) ProtoMessage()

func (*StoreUpdateRequest) ProtoReflect

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

func (*StoreUpdateRequest) Reset

func (x *StoreUpdateRequest) Reset()

func (*StoreUpdateRequest) String

func (x *StoreUpdateRequest) String() string

type StoreUpdateResponse

type StoreUpdateResponse struct {
	Sandbox *types.Sandbox `protobuf:"bytes,1,opt,name=sandbox,proto3" json:"sandbox,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreUpdateResponse) Descriptor deprecated

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

Deprecated: Use StoreUpdateResponse.ProtoReflect.Descriptor instead.

func (*StoreUpdateResponse) GetSandbox

func (x *StoreUpdateResponse) GetSandbox() *types.Sandbox

func (*StoreUpdateResponse) ProtoMessage

func (*StoreUpdateResponse) ProtoMessage()

func (*StoreUpdateResponse) ProtoReflect

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

func (*StoreUpdateResponse) Reset

func (x *StoreUpdateResponse) Reset()

func (*StoreUpdateResponse) String

func (x *StoreUpdateResponse) String() string

type UnimplementedControllerServer

type UnimplementedControllerServer struct {
}

UnimplementedControllerServer must be embedded to have forward compatible implementations.

func (UnimplementedControllerServer) Wait

type UnimplementedStoreServer

type UnimplementedStoreServer struct {
}

UnimplementedStoreServer must be embedded to have forward compatible implementations.

func (UnimplementedStoreServer) Create

func (UnimplementedStoreServer) Delete

func (UnimplementedStoreServer) Get

func (UnimplementedStoreServer) List

func (UnimplementedStoreServer) Update

type UnsafeControllerServer

type UnsafeControllerServer interface {
	// contains filtered or unexported methods
}

UnsafeControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ControllerServer will result in compilation errors.

type UnsafeStoreServer

type UnsafeStoreServer interface {
	// contains filtered or unexported methods
}

UnsafeStoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StoreServer will result in compilation errors.

Jump to

Keyboard shortcuts

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