Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterContainerServer(s grpc.ServiceRegistrar, srv ContainerServer)
- type ContainerClient
- type ContainerConfig
- func (*ContainerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerConfig) GetAttachStderr() bool
- func (x *ContainerConfig) GetAttachStdin() bool
- func (x *ContainerConfig) GetAttachStdout() bool
- func (x *ContainerConfig) GetCmd() []string
- func (x *ContainerConfig) GetEnv() []string
- func (x *ContainerConfig) GetExposedPorts() []*Port
- func (x *ContainerConfig) GetImage() string
- func (x *ContainerConfig) GetTty() bool
- func (x *ContainerConfig) GetWorkingDir() string
- func (*ContainerConfig) ProtoMessage()
- func (x *ContainerConfig) ProtoReflect() protoreflect.Message
- func (x *ContainerConfig) Reset()
- func (x *ContainerConfig) String() string
- type ContainerCreateParams
- func (*ContainerCreateParams) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerCreateParams) GetConfig() *ContainerConfig
- func (x *ContainerCreateParams) GetHostConfig() *ContainerHostConfig
- func (x *ContainerCreateParams) GetName() string
- func (*ContainerCreateParams) ProtoMessage()
- func (x *ContainerCreateParams) ProtoReflect() protoreflect.Message
- func (x *ContainerCreateParams) Reset()
- func (x *ContainerCreateParams) String() string
- type ContainerCreateResp
- func (*ContainerCreateResp) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerCreateResp) GetError() *Error
- func (x *ContainerCreateResp) GetID() string
- func (x *ContainerCreateResp) GetWarnings() []string
- func (*ContainerCreateResp) ProtoMessage()
- func (x *ContainerCreateResp) ProtoReflect() protoreflect.Message
- func (x *ContainerCreateResp) Reset()
- func (x *ContainerCreateResp) String() string
- type ContainerHostConfig
- func (*ContainerHostConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerHostConfig) GetAutoRemove() bool
- func (x *ContainerHostConfig) GetBinds() []string
- func (x *ContainerHostConfig) GetRestartPolicy() *RestartPolicy
- func (*ContainerHostConfig) ProtoMessage()
- func (x *ContainerHostConfig) ProtoReflect() protoreflect.Message
- func (x *ContainerHostConfig) Reset()
- func (x *ContainerHostConfig) String() string
- type ContainerServer
- type Error
- type Port
- type RestartPolicy
- func (*RestartPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *RestartPolicy) GetMaximumRetryCount() int32
- func (x *RestartPolicy) GetName() string
- func (*RestartPolicy) ProtoMessage()
- func (x *RestartPolicy) ProtoReflect() protoreflect.Message
- func (x *RestartPolicy) Reset()
- func (x *RestartPolicy) String() string
- type UnimplementedContainerServer
- type UnsafeContainerServer
Constants ¶
const (
Container_Create_FullMethodName = "/Container/Create"
)
Variables ¶
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)
var File_api_proto protoreflect.FileDescriptor
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) GetMessage ¶
func (*Error) GetStatusCode ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶
func (x *Port) ProtoReflect() protoreflect.Message
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 ¶
func (UnimplementedContainerServer) Create(context.Context, *ContainerCreateParams) (*ContainerCreateResp, error)
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.