containerz

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

View Source
const (
	Containerz_Deploy_FullMethodName = "/gnoi.containerz.Containerz/Deploy"
	Containerz_Remove_FullMethodName = "/gnoi.containerz.Containerz/Remove"
	Containerz_List_FullMethodName   = "/gnoi.containerz.Containerz/List"
	Containerz_Start_FullMethodName  = "/gnoi.containerz.Containerz/Start"
	Containerz_Stop_FullMethodName   = "/gnoi.containerz.Containerz/Stop"
	Containerz_Log_FullMethodName    = "/gnoi.containerz.Containerz/Log"
)

Variables

View Source
var (
	RemoveResponse_Code_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "NOT_FOUND",
		2: "RUNNING",
		3: "SUCCESS",
	}
	RemoveResponse_Code_value = map[string]int32{
		"UNSPECIFIED": 0,
		"NOT_FOUND":   1,
		"RUNNING":     2,
		"SUCCESS":     3,
	}
)

Enum value maps for RemoveResponse_Code.

View Source
var (
	ListResponse_Status_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "STOPPED",
		2: "RUNNING",
		3: "PRESENT",
		4: "NOT_FOUND",
	}
	ListResponse_Status_value = map[string]int32{
		"UNSPECIFIED": 0,
		"STOPPED":     1,
		"RUNNING":     2,
		"PRESENT":     3,
		"NOT_FOUND":   4,
	}
)

Enum value maps for ListResponse_Status.

View Source
var (
	StartError_Code_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "NOT_FOUND",
		2: "PORT_USED",
	}
	StartError_Code_value = map[string]int32{
		"UNSPECIFIED": 0,
		"NOT_FOUND":   1,
		"PORT_USED":   2,
	}
)

Enum value maps for StartError_Code.

View Source
var (
	StopResponse_Code_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "BUSY",
		2: "NOT_FOUND",
		3: "SUCCESS",
	}
	StopResponse_Code_value = map[string]int32{
		"UNSPECIFIED": 0,
		"BUSY":        1,
		"NOT_FOUND":   2,
		"SUCCESS":     3,
	}
)

Enum value maps for StopResponse_Code.

View Source
var Containerz_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gnoi.containerz.Containerz",
	HandlerType: (*ContainerzServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Remove",
			Handler:    _Containerz_Remove_Handler,
		},
		{
			MethodName: "Start",
			Handler:    _Containerz_Start_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _Containerz_Stop_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Deploy",
			Handler:       _Containerz_Deploy_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "List",
			Handler:       _Containerz_List_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Log",
			Handler:       _Containerz_Log_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "containerz/containerz.proto",
}

Containerz_ServiceDesc is the grpc.ServiceDesc for Containerz 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_containerz_containerz_proto protoreflect.FileDescriptor

Functions

func RegisterContainerzServer

func RegisterContainerzServer(s grpc.ServiceRegistrar, srv ContainerzServer)

Types

type ContainerzClient

type ContainerzClient interface {
	// Deploy sets a container image on the target. The container is sent as
	// a sequential stream of messages containing up to 64KB of data. Upon
	// reception of a valid container, the target must load it into its registry.
	// Whether the registry is local or remote is target and deployment specific.
	// A valid container is one that has passed its checksum.
	Deploy(ctx context.Context, opts ...grpc.CallOption) (Containerz_DeployClient, error)
	// Remove deletes containers that match the spec defined in the request. If
	// the specified container does not exist, this operation is a no-op.
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
	// List returns all containers that match the spec defined in the request.
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (Containerz_ListClient, error)
	// Start starts a container. If the image does not exist on the target,
	// Start returns an error. A started container is identified by an instance
	// name, which  can optionally be supplied by the caller otherwise the target
	// should provide one. If the instance name already exists, the target should
	// return an error.
	Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
	// Stop stops a container. If the container does not exist or is not running
	// this operation returns an error. This operation can, optionally, force
	// (i.e. kill) a container.
	Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
	// Log streams the logs of a running container. If the container if no longer
	// running this operation streams the latest logs and returns.
	Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (Containerz_LogClient, error)
}

ContainerzClient is the client API for Containerz 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 NewContainerzClient

func NewContainerzClient(cc grpc.ClientConnInterface) ContainerzClient

type ContainerzServer

type ContainerzServer interface {
	// Deploy sets a container image on the target. The container is sent as
	// a sequential stream of messages containing up to 64KB of data. Upon
	// reception of a valid container, the target must load it into its registry.
	// Whether the registry is local or remote is target and deployment specific.
	// A valid container is one that has passed its checksum.
	Deploy(Containerz_DeployServer) error
	// Remove deletes containers that match the spec defined in the request. If
	// the specified container does not exist, this operation is a no-op.
	Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
	// List returns all containers that match the spec defined in the request.
	List(*ListRequest, Containerz_ListServer) error
	// Start starts a container. If the image does not exist on the target,
	// Start returns an error. A started container is identified by an instance
	// name, which  can optionally be supplied by the caller otherwise the target
	// should provide one. If the instance name already exists, the target should
	// return an error.
	Start(context.Context, *StartRequest) (*StartResponse, error)
	// Stop stops a container. If the container does not exist or is not running
	// this operation returns an error. This operation can, optionally, force
	// (i.e. kill) a container.
	Stop(context.Context, *StopRequest) (*StopResponse, error)
	// Log streams the logs of a running container. If the container if no longer
	// running this operation streams the latest logs and returns.
	Log(*LogRequest, Containerz_LogServer) error
	// contains filtered or unexported methods
}

ContainerzServer is the server API for Containerz service. All implementations must embed UnimplementedContainerzServer for forward compatibility

type Containerz_DeployClient

type Containerz_DeployClient interface {
	Send(*DeployRequest) error
	Recv() (*DeployResponse, error)
	grpc.ClientStream
}

type Containerz_DeployServer

type Containerz_DeployServer interface {
	Send(*DeployResponse) error
	Recv() (*DeployRequest, error)
	grpc.ServerStream
}

type Containerz_ListClient

type Containerz_ListClient interface {
	Recv() (*ListResponse, error)
	grpc.ClientStream
}

type Containerz_ListServer

type Containerz_ListServer interface {
	Send(*ListResponse) error
	grpc.ServerStream
}

type Containerz_LogClient

type Containerz_LogClient interface {
	Recv() (*LogResponse, error)
	grpc.ClientStream
}

type Containerz_LogServer

type Containerz_LogServer interface {
	Send(*LogResponse) error
	grpc.ServerStream
}

type DeployRequest

type DeployRequest struct {

	// Types that are assignable to Request:
	//
	//	*DeployRequest_ImageTransfer
	//	*DeployRequest_Content
	//	*DeployRequest_ImageTransferEnd
	Request isDeployRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*DeployRequest) Descriptor deprecated

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

Deprecated: Use DeployRequest.ProtoReflect.Descriptor instead.

func (*DeployRequest) GetContent

func (x *DeployRequest) GetContent() []byte

func (*DeployRequest) GetImageTransfer

func (x *DeployRequest) GetImageTransfer() *ImageTransfer

func (*DeployRequest) GetImageTransferEnd

func (x *DeployRequest) GetImageTransferEnd() *ImageTransferEnd

func (*DeployRequest) GetRequest

func (m *DeployRequest) GetRequest() isDeployRequest_Request

func (*DeployRequest) ProtoMessage

func (*DeployRequest) ProtoMessage()

func (*DeployRequest) ProtoReflect

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

func (*DeployRequest) Reset

func (x *DeployRequest) Reset()

func (*DeployRequest) String

func (x *DeployRequest) String() string

type DeployRequest_Content

type DeployRequest_Content struct {
	Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"`
}

type DeployRequest_ImageTransfer

type DeployRequest_ImageTransfer struct {
	ImageTransfer *ImageTransfer `protobuf:"bytes,1,opt,name=image_transfer,json=imageTransfer,proto3,oneof"`
}

type DeployRequest_ImageTransferEnd

type DeployRequest_ImageTransferEnd struct {
	ImageTransferEnd *ImageTransferEnd `protobuf:"bytes,3,opt,name=image_transfer_end,json=imageTransferEnd,proto3,oneof"`
}

type DeployResponse

type DeployResponse struct {

	// Types that are assignable to Response:
	//
	//	*DeployResponse_ImageTransferReady
	//	*DeployResponse_ImageTransferProgress
	//	*DeployResponse_ImageTransferSuccess
	//	*DeployResponse_ImageTransferError
	Response isDeployResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*DeployResponse) Descriptor deprecated

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

Deprecated: Use DeployResponse.ProtoReflect.Descriptor instead.

func (*DeployResponse) GetImageTransferError

func (x *DeployResponse) GetImageTransferError() *status.Status

func (*DeployResponse) GetImageTransferProgress

func (x *DeployResponse) GetImageTransferProgress() *ImageTransferProgress

func (*DeployResponse) GetImageTransferReady

func (x *DeployResponse) GetImageTransferReady() *ImageTransferReady

func (*DeployResponse) GetImageTransferSuccess

func (x *DeployResponse) GetImageTransferSuccess() *ImageTransferSuccess

func (*DeployResponse) GetResponse

func (m *DeployResponse) GetResponse() isDeployResponse_Response

func (*DeployResponse) ProtoMessage

func (*DeployResponse) ProtoMessage()

func (*DeployResponse) ProtoReflect

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

func (*DeployResponse) Reset

func (x *DeployResponse) Reset()

func (*DeployResponse) String

func (x *DeployResponse) String() string

type DeployResponse_ImageTransferError

type DeployResponse_ImageTransferError struct {
	ImageTransferError *status.Status `protobuf:"bytes,4,opt,name=image_transfer_error,json=imageTransferError,proto3,oneof"`
}

type DeployResponse_ImageTransferProgress

type DeployResponse_ImageTransferProgress struct {
	ImageTransferProgress *ImageTransferProgress `protobuf:"bytes,2,opt,name=image_transfer_progress,json=imageTransferProgress,proto3,oneof"`
}

type DeployResponse_ImageTransferReady

type DeployResponse_ImageTransferReady struct {
	ImageTransferReady *ImageTransferReady `protobuf:"bytes,1,opt,name=image_transfer_ready,json=imageTransferReady,proto3,oneof"`
}

type DeployResponse_ImageTransferSuccess

type DeployResponse_ImageTransferSuccess struct {
	ImageTransferSuccess *ImageTransferSuccess `protobuf:"bytes,3,opt,name=image_transfer_success,json=imageTransferSuccess,proto3,oneof"`
}

type ImageTransfer

type ImageTransfer struct {

	// The image name. This is the name the container image must have after the
	// is completed.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tag is a version identifier for this container image. After the
	// transfer successfully completes, the tag must be applied to the
	// container image.
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// Optional. Indicates the size (in bytes) of the container image.
	ImageSize uint64 `protobuf:"varint,3,opt,name=image_size,json=imageSize,proto3" json:"image_size,omitempty"`
	// Optional. Instructs the target to fetch the image from a remote location.
	// The above name and tag must be applied to the container once downloaded.
	RemoteDownload *common.RemoteDownload `protobuf:"bytes,4,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageTransfer) Descriptor deprecated

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

Deprecated: Use ImageTransfer.ProtoReflect.Descriptor instead.

func (*ImageTransfer) GetImageSize

func (x *ImageTransfer) GetImageSize() uint64

func (*ImageTransfer) GetName

func (x *ImageTransfer) GetName() string

func (*ImageTransfer) GetRemoteDownload

func (x *ImageTransfer) GetRemoteDownload() *common.RemoteDownload

func (*ImageTransfer) GetTag

func (x *ImageTransfer) GetTag() string

func (*ImageTransfer) ProtoMessage

func (*ImageTransfer) ProtoMessage()

func (*ImageTransfer) ProtoReflect

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

func (*ImageTransfer) Reset

func (x *ImageTransfer) Reset()

func (*ImageTransfer) String

func (x *ImageTransfer) String() string

type ImageTransferEnd

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

ImageTransferEnd indicates to the target that the client is finished sending and therefore no more content will be sent. Any content sent after this message should be discarded. This message serves as a signal to the target to begin integrity verifications on the received data.

func (*ImageTransferEnd) Descriptor deprecated

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

Deprecated: Use ImageTransferEnd.ProtoReflect.Descriptor instead.

func (*ImageTransferEnd) ProtoMessage

func (*ImageTransferEnd) ProtoMessage()

func (*ImageTransferEnd) ProtoReflect

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

func (*ImageTransferEnd) Reset

func (x *ImageTransferEnd) Reset()

func (*ImageTransferEnd) String

func (x *ImageTransferEnd) String() string

type ImageTransferProgress

type ImageTransferProgress struct {

	// The number of bytes transferred so far.
	BytesReceived uint64 `protobuf:"varint,1,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"`
	// contains filtered or unexported fields
}

ImageTransferProgress is sent periodically to the client during the transfer.

func (*ImageTransferProgress) Descriptor deprecated

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

Deprecated: Use ImageTransferProgress.ProtoReflect.Descriptor instead.

func (*ImageTransferProgress) GetBytesReceived

func (x *ImageTransferProgress) GetBytesReceived() uint64

func (*ImageTransferProgress) ProtoMessage

func (*ImageTransferProgress) ProtoMessage()

func (*ImageTransferProgress) ProtoReflect

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

func (*ImageTransferProgress) Reset

func (x *ImageTransferProgress) Reset()

func (*ImageTransferProgress) String

func (x *ImageTransferProgress) String() string

type ImageTransferReady

type ImageTransferReady struct {

	// Indicates the size of the chunks that the client should break the
	// container into as it is transferred.
	ChunkSize int32 `protobuf:"varint,1,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
	// contains filtered or unexported fields
}

ImageTransferReady indicates to the client that the target is ready to receive the container image content.

func (*ImageTransferReady) Descriptor deprecated

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

Deprecated: Use ImageTransferReady.ProtoReflect.Descriptor instead.

func (*ImageTransferReady) GetChunkSize

func (x *ImageTransferReady) GetChunkSize() int32

func (*ImageTransferReady) ProtoMessage

func (*ImageTransferReady) ProtoMessage()

func (*ImageTransferReady) ProtoReflect

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

func (*ImageTransferReady) Reset

func (x *ImageTransferReady) Reset()

func (*ImageTransferReady) String

func (x *ImageTransferReady) String() string

type ImageTransferSuccess

type ImageTransferSuccess struct {

	// The name of the container image.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tag of the container image.
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// The total size of the image.
	ImageSize uint64 `protobuf:"varint,3,opt,name=image_size,json=imageSize,proto3" json:"image_size,omitempty"`
	// contains filtered or unexported fields
}

ImageTransferSuccess indicates to the client that the container image transfer was successful.

func (*ImageTransferSuccess) Descriptor deprecated

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

Deprecated: Use ImageTransferSuccess.ProtoReflect.Descriptor instead.

func (*ImageTransferSuccess) GetImageSize

func (x *ImageTransferSuccess) GetImageSize() uint64

func (*ImageTransferSuccess) GetName

func (x *ImageTransferSuccess) GetName() string

func (*ImageTransferSuccess) GetTag

func (x *ImageTransferSuccess) GetTag() string

func (*ImageTransferSuccess) ProtoMessage

func (*ImageTransferSuccess) ProtoMessage()

func (*ImageTransferSuccess) ProtoReflect

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

func (*ImageTransferSuccess) Reset

func (x *ImageTransferSuccess) Reset()

func (*ImageTransferSuccess) String

func (x *ImageTransferSuccess) String() string

type ListRequest

type ListRequest struct {

	// List all containers, by default only running ones are returned.
	All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"`
	// Only return limit number of containers.
	Limit  int32               `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Filter *ListRequest_Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetAll

func (x *ListRequest) GetAll() bool

func (*ListRequest) GetFilter

func (x *ListRequest) GetFilter() *ListRequest_Filter

func (*ListRequest) GetLimit

func (x *ListRequest) GetLimit() int32

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListRequest_Filter

type ListRequest_Filter struct {
	Key   string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A filter is a mapping from a key to a list of values. TODO(alshabib) document possible keys

func (*ListRequest_Filter) Descriptor deprecated

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

Deprecated: Use ListRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListRequest_Filter) GetKey

func (x *ListRequest_Filter) GetKey() string

func (*ListRequest_Filter) GetValue

func (x *ListRequest_Filter) GetValue() []string

func (*ListRequest_Filter) ProtoMessage

func (*ListRequest_Filter) ProtoMessage()

func (*ListRequest_Filter) ProtoReflect

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

func (*ListRequest_Filter) Reset

func (x *ListRequest_Filter) Reset()

func (*ListRequest_Filter) String

func (x *ListRequest_Filter) String() string

type ListResponse

type ListResponse struct {
	Id        string              `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string              `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ImageName string              `protobuf:"bytes,3,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"`
	Status    ListResponse_Status `protobuf:"varint,4,opt,name=status,proto3,enum=gnoi.containerz.ListResponse_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetId

func (x *ListResponse) GetId() string

func (*ListResponse) GetImageName

func (x *ListResponse) GetImageName() string

func (*ListResponse) GetName

func (x *ListResponse) GetName() string

func (*ListResponse) GetStatus

func (x *ListResponse) GetStatus() ListResponse_Status

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type ListResponse_Status

type ListResponse_Status int32
const (
	// An unspecified state.
	ListResponse_UNSPECIFIED ListResponse_Status = 0
	// Container was running and is now stopped.
	ListResponse_STOPPED ListResponse_Status = 1
	// Container is running.
	ListResponse_RUNNING ListResponse_Status = 2
	// Container has never been run but exists on the target.
	ListResponse_PRESENT ListResponse_Status = 3
	// The container does not exist on the target.
	ListResponse_NOT_FOUND ListResponse_Status = 4
)

func (ListResponse_Status) Descriptor

func (ListResponse_Status) Enum

func (ListResponse_Status) EnumDescriptor deprecated

func (ListResponse_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListResponse_Status.Descriptor instead.

func (ListResponse_Status) Number

func (ListResponse_Status) String

func (x ListResponse_Status) String() string

func (ListResponse_Status) Type

type LogRequest

type LogRequest struct {
	InstanceName string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
	// If set, the stream remains open until the client cancels it.
	Follow bool `protobuf:"varint,2,opt,name=follow,proto3" json:"follow,omitempty"`
	// contains filtered or unexported fields
}

func (*LogRequest) Descriptor deprecated

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

Deprecated: Use LogRequest.ProtoReflect.Descriptor instead.

func (*LogRequest) GetFollow

func (x *LogRequest) GetFollow() bool

func (*LogRequest) GetInstanceName

func (x *LogRequest) GetInstanceName() string

func (*LogRequest) ProtoMessage

func (*LogRequest) ProtoMessage()

func (*LogRequest) ProtoReflect

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

func (*LogRequest) Reset

func (x *LogRequest) Reset()

func (*LogRequest) String

func (x *LogRequest) String() string

type LogResponse

type LogResponse struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*LogResponse) Descriptor deprecated

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

Deprecated: Use LogResponse.ProtoReflect.Descriptor instead.

func (*LogResponse) GetMsg

func (x *LogResponse) GetMsg() string

func (*LogResponse) ProtoMessage

func (*LogResponse) ProtoMessage()

func (*LogResponse) ProtoReflect

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

func (*LogResponse) Reset

func (x *LogResponse) Reset()

func (*LogResponse) String

func (x *LogResponse) String() string

type RemoveRequest

type RemoveRequest struct {

	// The container image name to be removed.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The container tag to be removed.
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// If force is set, the target should attempt to forcibly remove the
	// container.
	Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated

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

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) GetForce

func (x *RemoveRequest) GetForce() bool

func (*RemoveRequest) GetName

func (x *RemoveRequest) GetName() string

func (*RemoveRequest) GetTag

func (x *RemoveRequest) GetTag() string

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) ProtoReflect

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

func (*RemoveRequest) Reset

func (x *RemoveRequest) Reset()

func (*RemoveRequest) String

func (x *RemoveRequest) String() string

type RemoveResponse

type RemoveResponse struct {
	Code   RemoveResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=gnoi.containerz.RemoveResponse_Code" json:"code,omitempty"`
	Detail string              `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveResponse) Descriptor deprecated

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

Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.

func (*RemoveResponse) GetCode

func (x *RemoveResponse) GetCode() RemoveResponse_Code

func (*RemoveResponse) GetDetail

func (x *RemoveResponse) GetDetail() string

func (*RemoveResponse) ProtoMessage

func (*RemoveResponse) ProtoMessage()

func (*RemoveResponse) ProtoReflect

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

func (*RemoveResponse) Reset

func (x *RemoveResponse) Reset()

func (*RemoveResponse) String

func (x *RemoveResponse) String() string

type RemoveResponse_Code

type RemoveResponse_Code int32
const (
	// An unspecified error. Must use the detail value to describe the issue.
	RemoveResponse_UNSPECIFIED RemoveResponse_Code = 0
	// Indicates the image was not found in the remote location.
	RemoveResponse_NOT_FOUND RemoveResponse_Code = 1
	// Indicates that a container using this image is running.
	RemoveResponse_RUNNING RemoveResponse_Code = 2
	// The container image was successfully removed.
	RemoveResponse_SUCCESS RemoveResponse_Code = 3
)

func (RemoveResponse_Code) Descriptor

func (RemoveResponse_Code) Enum

func (RemoveResponse_Code) EnumDescriptor deprecated

func (RemoveResponse_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use RemoveResponse_Code.Descriptor instead.

func (RemoveResponse_Code) Number

func (RemoveResponse_Code) String

func (x RemoveResponse_Code) String() string

func (RemoveResponse_Code) Type

type StartError

type StartError struct {
	ErrorCode StartError_Code `` /* 126-byte string literal not displayed */
	Details   string          `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*StartError) Descriptor deprecated

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

Deprecated: Use StartError.ProtoReflect.Descriptor instead.

func (*StartError) GetDetails

func (x *StartError) GetDetails() string

func (*StartError) GetErrorCode

func (x *StartError) GetErrorCode() StartError_Code

func (*StartError) ProtoMessage

func (*StartError) ProtoMessage()

func (*StartError) ProtoReflect

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

func (*StartError) Reset

func (x *StartError) Reset()

func (*StartError) String

func (x *StartError) String() string

type StartError_Code

type StartError_Code int32
const (
	// An unspecified error. The details field should provide more information.
	StartError_UNSPECIFIED StartError_Code = 0
	// The container image was not found.
	StartError_NOT_FOUND StartError_Code = 1
	// Exposed port is already used by another container.
	StartError_PORT_USED StartError_Code = 2
)

func (StartError_Code) Descriptor

func (StartError_Code) Enum

func (x StartError_Code) Enum() *StartError_Code

func (StartError_Code) EnumDescriptor deprecated

func (StartError_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use StartError_Code.Descriptor instead.

func (StartError_Code) Number

func (StartError_Code) String

func (x StartError_Code) String() string

func (StartError_Code) Type

type StartOK

type StartOK struct {

	// The running containers name.
	InstanceName string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
	// contains filtered or unexported fields
}

func (*StartOK) Descriptor deprecated

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

Deprecated: Use StartOK.ProtoReflect.Descriptor instead.

func (*StartOK) GetInstanceName

func (x *StartOK) GetInstanceName() string

func (*StartOK) ProtoMessage

func (*StartOK) ProtoMessage()

func (*StartOK) ProtoReflect

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

func (*StartOK) Reset

func (x *StartOK) Reset()

func (*StartOK) String

func (x *StartOK) String() string

type StartRequest

type StartRequest struct {

	// The name and tag of the container to start.
	ImageName string `protobuf:"bytes,1,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"`
	Tag       string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	Cmd       string `protobuf:"bytes,3,opt,name=cmd,proto3" json:"cmd,omitempty"`
	// Optional. The name to give the running continer. If none is specified,
	// the target should assign one.
	InstanceName string `protobuf:"bytes,4,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
	// List of internal ports to expose outside the container.
	Ports []*StartRequest_Port `protobuf:"bytes,5,rep,name=ports,proto3" json:"ports,omitempty"`
	// Environment to set in the container.
	Environment map[string]string `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StartRequest) Descriptor deprecated

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

Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.

func (*StartRequest) GetCmd

func (x *StartRequest) GetCmd() string

func (*StartRequest) GetEnvironment

func (x *StartRequest) GetEnvironment() map[string]string

func (*StartRequest) GetImageName

func (x *StartRequest) GetImageName() string

func (*StartRequest) GetInstanceName

func (x *StartRequest) GetInstanceName() string

func (*StartRequest) GetPorts

func (x *StartRequest) GetPorts() []*StartRequest_Port

func (*StartRequest) GetTag

func (x *StartRequest) GetTag() string

func (*StartRequest) ProtoMessage

func (*StartRequest) ProtoMessage()

func (*StartRequest) ProtoReflect

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

func (*StartRequest) Reset

func (x *StartRequest) Reset()

func (*StartRequest) String

func (x *StartRequest) String() string

type StartRequest_Port

type StartRequest_Port struct {
	Internal uint32 `protobuf:"varint,1,opt,name=internal,proto3" json:"internal,omitempty"`
	External uint32 `protobuf:"varint,2,opt,name=external,proto3" json:"external,omitempty"`
	// contains filtered or unexported fields
}

func (*StartRequest_Port) Descriptor deprecated

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

Deprecated: Use StartRequest_Port.ProtoReflect.Descriptor instead.

func (*StartRequest_Port) GetExternal

func (x *StartRequest_Port) GetExternal() uint32

func (*StartRequest_Port) GetInternal

func (x *StartRequest_Port) GetInternal() uint32

func (*StartRequest_Port) ProtoMessage

func (*StartRequest_Port) ProtoMessage()

func (*StartRequest_Port) ProtoReflect

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

func (*StartRequest_Port) Reset

func (x *StartRequest_Port) Reset()

func (*StartRequest_Port) String

func (x *StartRequest_Port) String() string

type StartResponse

type StartResponse struct {

	// Types that are assignable to Response:
	//
	//	*StartResponse_StartOk
	//	*StartResponse_StartError
	Response isStartResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*StartResponse) Descriptor deprecated

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

Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.

func (*StartResponse) GetResponse

func (m *StartResponse) GetResponse() isStartResponse_Response

func (*StartResponse) GetStartError

func (x *StartResponse) GetStartError() *StartError

func (*StartResponse) GetStartOk

func (x *StartResponse) GetStartOk() *StartOK

func (*StartResponse) ProtoMessage

func (*StartResponse) ProtoMessage()

func (*StartResponse) ProtoReflect

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

func (*StartResponse) Reset

func (x *StartResponse) Reset()

func (*StartResponse) String

func (x *StartResponse) String() string

type StartResponse_StartError

type StartResponse_StartError struct {
	StartError *StartError `protobuf:"bytes,2,opt,name=start_error,json=startError,proto3,oneof"`
}

type StartResponse_StartOk

type StartResponse_StartOk struct {
	StartOk *StartOK `protobuf:"bytes,1,opt,name=start_ok,json=startOk,proto3,oneof"`
}

type StopRequest

type StopRequest struct {
	InstanceName string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
	// If force is set, the target should attempt to forcibly kill the container.
	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*StopRequest) Descriptor deprecated

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

Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.

func (*StopRequest) GetForce

func (x *StopRequest) GetForce() bool

func (*StopRequest) GetInstanceName

func (x *StopRequest) GetInstanceName() string

func (*StopRequest) ProtoMessage

func (*StopRequest) ProtoMessage()

func (*StopRequest) ProtoReflect

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

func (*StopRequest) Reset

func (x *StopRequest) Reset()

func (*StopRequest) String

func (x *StopRequest) String() string

type StopResponse

type StopResponse struct {
	Code    StopResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=gnoi.containerz.StopResponse_Code" json:"code,omitempty"`
	Details string            `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*StopResponse) Descriptor deprecated

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

Deprecated: Use StopResponse.ProtoReflect.Descriptor instead.

func (*StopResponse) GetCode

func (x *StopResponse) GetCode() StopResponse_Code

func (*StopResponse) GetDetails

func (x *StopResponse) GetDetails() string

func (*StopResponse) ProtoMessage

func (*StopResponse) ProtoMessage()

func (*StopResponse) ProtoReflect

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

func (*StopResponse) Reset

func (x *StopResponse) Reset()

func (*StopResponse) String

func (x *StopResponse) String() string

type StopResponse_Code

type StopResponse_Code int32
const (
	// An unspecified error. The details field should provide more information.
	StopResponse_UNSPECIFIED StopResponse_Code = 0
	// Container is busy.
	StopResponse_BUSY StopResponse_Code = 1
	// Instance was not found on the target.
	StopResponse_NOT_FOUND StopResponse_Code = 2
	// The container was removed.
	StopResponse_SUCCESS StopResponse_Code = 3
)

func (StopResponse_Code) Descriptor

func (StopResponse_Code) Enum

func (StopResponse_Code) EnumDescriptor deprecated

func (StopResponse_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use StopResponse_Code.Descriptor instead.

func (StopResponse_Code) Number

func (StopResponse_Code) String

func (x StopResponse_Code) String() string

func (StopResponse_Code) Type

type UnimplementedContainerzServer

type UnimplementedContainerzServer struct {
}

UnimplementedContainerzServer must be embedded to have forward compatible implementations.

func (UnimplementedContainerzServer) Deploy

func (UnimplementedContainerzServer) List

func (UnimplementedContainerzServer) Log

func (UnimplementedContainerzServer) Remove

func (UnimplementedContainerzServer) Start

func (UnimplementedContainerzServer) Stop

type UnsafeContainerzServer

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

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

Jump to

Keyboard shortcuts

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