protoapi

package module
v0.0.0-...-44433c0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Container_Create_FullMethodName = "/Container/Create"
)

Variables

View Source
var Container_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Container",
	HandlerType: (*ContainerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Container_Create_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

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

Functions

func RegisterContainerServer

func RegisterContainerServer(s grpc.ServiceRegistrar, srv ContainerServer)

Types

type ContainerClient

type ContainerClient interface {
	Create(ctx context.Context, in *ContainerCreateParams, opts ...grpc.CallOption) (*ContainerCreateResp, error)
}

ContainerClient is the client API for Container 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 NewContainerClient

func NewContainerClient(cc grpc.ClientConnInterface) ContainerClient

type ContainerConfig

type ContainerConfig struct {
	Image        string   `protobuf:"bytes,1,opt,name=Image,proto3" json:"Image,omitempty"`
	Tty          bool     `protobuf:"varint,2,opt,name=Tty,proto3" json:"Tty,omitempty"`
	Env          []string `protobuf:"bytes,4,rep,name=Env,proto3" json:"Env,omitempty"`
	Cmd          []string `protobuf:"bytes,3,rep,name=Cmd,proto3" json:"Cmd,omitempty"`
	WorkingDir   string   `protobuf:"bytes,5,opt,name=WorkingDir,proto3" json:"WorkingDir,omitempty"`
	AttachStdin  bool     `protobuf:"varint,6,opt,name=AttachStdin,proto3" json:"AttachStdin,omitempty"`
	AttachStdout bool     `protobuf:"varint,7,opt,name=AttachStdout,proto3" json:"AttachStdout,omitempty"`
	AttachStderr bool     `protobuf:"varint,8,opt,name=AttachStderr,proto3" json:"AttachStderr,omitempty"`
	ExposedPorts []*Port  `protobuf:"bytes,9,rep,name=ExposedPorts,proto3" json:"ExposedPorts,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerConfig) Descriptor deprecated

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

Deprecated: Use ContainerConfig.ProtoReflect.Descriptor instead.

func (*ContainerConfig) GetAttachStderr

func (x *ContainerConfig) GetAttachStderr() bool

func (*ContainerConfig) GetAttachStdin

func (x *ContainerConfig) GetAttachStdin() bool

func (*ContainerConfig) GetAttachStdout

func (x *ContainerConfig) GetAttachStdout() bool

func (*ContainerConfig) GetCmd

func (x *ContainerConfig) GetCmd() []string

func (*ContainerConfig) GetEnv

func (x *ContainerConfig) GetEnv() []string

func (*ContainerConfig) GetExposedPorts

func (x *ContainerConfig) GetExposedPorts() []*Port

func (*ContainerConfig) GetImage

func (x *ContainerConfig) GetImage() string

func (*ContainerConfig) GetTty

func (x *ContainerConfig) GetTty() bool

func (*ContainerConfig) GetWorkingDir

func (x *ContainerConfig) GetWorkingDir() string

func (*ContainerConfig) ProtoMessage

func (*ContainerConfig) ProtoMessage()

func (*ContainerConfig) ProtoReflect

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

func (*ContainerConfig) Reset

func (x *ContainerConfig) Reset()

func (*ContainerConfig) String

func (x *ContainerConfig) String() string

type ContainerCreateParams

type ContainerCreateParams struct {
	Name       string               `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Config     *ContainerConfig     `protobuf:"bytes,2,opt,name=Config,proto3" json:"Config,omitempty"`
	HostConfig *ContainerHostConfig `protobuf:"bytes,3,opt,name=HostConfig,proto3" json:"HostConfig,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerCreateParams) Descriptor deprecated

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

Deprecated: Use ContainerCreateParams.ProtoReflect.Descriptor instead.

func (*ContainerCreateParams) GetConfig

func (x *ContainerCreateParams) GetConfig() *ContainerConfig

func (*ContainerCreateParams) GetHostConfig

func (x *ContainerCreateParams) GetHostConfig() *ContainerHostConfig

func (*ContainerCreateParams) GetName

func (x *ContainerCreateParams) GetName() string

func (*ContainerCreateParams) ProtoMessage

func (*ContainerCreateParams) ProtoMessage()

func (*ContainerCreateParams) ProtoReflect

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

func (*ContainerCreateParams) Reset

func (x *ContainerCreateParams) Reset()

func (*ContainerCreateParams) String

func (x *ContainerCreateParams) String() string

type ContainerCreateResp

type ContainerCreateResp struct {
	ID       string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Warnings []string `protobuf:"bytes,2,rep,name=Warnings,proto3" json:"Warnings,omitempty"`
	Error    *Error   `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerCreateResp) Descriptor deprecated

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

Deprecated: Use ContainerCreateResp.ProtoReflect.Descriptor instead.

func (*ContainerCreateResp) GetError

func (x *ContainerCreateResp) GetError() *Error

func (*ContainerCreateResp) GetID

func (x *ContainerCreateResp) GetID() string

func (*ContainerCreateResp) GetWarnings

func (x *ContainerCreateResp) GetWarnings() []string

func (*ContainerCreateResp) ProtoMessage

func (*ContainerCreateResp) ProtoMessage()

func (*ContainerCreateResp) ProtoReflect

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

func (*ContainerCreateResp) Reset

func (x *ContainerCreateResp) Reset()

func (*ContainerCreateResp) String

func (x *ContainerCreateResp) String() string

type ContainerHostConfig

type ContainerHostConfig struct {
	Binds         []string       `protobuf:"bytes,1,rep,name=Binds,proto3" json:"Binds,omitempty"`
	AutoRemove    bool           `protobuf:"varint,2,opt,name=AutoRemove,proto3" json:"AutoRemove,omitempty"`
	RestartPolicy *RestartPolicy `protobuf:"bytes,3,opt,name=RestartPolicy,proto3" json:"RestartPolicy,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerHostConfig) Descriptor deprecated

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

Deprecated: Use ContainerHostConfig.ProtoReflect.Descriptor instead.

func (*ContainerHostConfig) GetAutoRemove

func (x *ContainerHostConfig) GetAutoRemove() bool

func (*ContainerHostConfig) GetBinds

func (x *ContainerHostConfig) GetBinds() []string

func (*ContainerHostConfig) GetRestartPolicy

func (x *ContainerHostConfig) GetRestartPolicy() *RestartPolicy

func (*ContainerHostConfig) ProtoMessage

func (*ContainerHostConfig) ProtoMessage()

func (*ContainerHostConfig) ProtoReflect

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

func (*ContainerHostConfig) Reset

func (x *ContainerHostConfig) Reset()

func (*ContainerHostConfig) String

func (x *ContainerHostConfig) String() string

type ContainerServer

type ContainerServer interface {
	Create(context.Context, *ContainerCreateParams) (*ContainerCreateResp, error)
	// contains filtered or unexported methods
}

ContainerServer is the server API for Container service. All implementations must embed UnimplementedContainerServer for forward compatibility

type Error

type Error struct {
	Message    string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	StatusCode int32  `protobuf:"varint,2,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) GetStatusCode

func (x *Error) GetStatusCode() int32

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type Port

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

func (*Port) Descriptor deprecated

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

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetValue

func (x *Port) GetValue() string

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

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

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

type RestartPolicy

type RestartPolicy struct {
	Name              string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	MaximumRetryCount int32  `protobuf:"varint,2,opt,name=MaximumRetryCount,proto3" json:"MaximumRetryCount,omitempty"`
	// contains filtered or unexported fields
}

func (*RestartPolicy) Descriptor deprecated

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

Deprecated: Use RestartPolicy.ProtoReflect.Descriptor instead.

func (*RestartPolicy) GetMaximumRetryCount

func (x *RestartPolicy) GetMaximumRetryCount() int32

func (*RestartPolicy) GetName

func (x *RestartPolicy) GetName() string

func (*RestartPolicy) ProtoMessage

func (*RestartPolicy) ProtoMessage()

func (*RestartPolicy) ProtoReflect

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

func (*RestartPolicy) Reset

func (x *RestartPolicy) Reset()

func (*RestartPolicy) String

func (x *RestartPolicy) String() string

type UnimplementedContainerServer

type UnimplementedContainerServer struct {
}

UnimplementedContainerServer must be embedded to have forward compatible implementations.

func (UnimplementedContainerServer) Create

type UnsafeContainerServer

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

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

Directories

Path Synopsis
go module

Jump to

Keyboard shortcuts

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