Documentation ¶
Index ¶
- Variables
- func ConvertArrProtoPortToGoArrNatPort(portList []*TypePort) (err error, list []nat.Port)
- func ConvertProtoMountVolumeToGoMountMount(volumes []*TypeMountMountVolume) (mountList []mount.Mount)
- func ConvertProtoTypeNatPortMapPortMapToGoNatPortMap(portMap []*TypeNatPortMap) (err error, port nat.PortMap)
- func RegisterDockerServer(s *grpc.Server, srv DockerServer)
- type ContainerCreateAndChangeExposedPortRequest
- func (*ContainerCreateAndChangeExposedPortRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerCreateAndChangeExposedPortRequest) GetChangeToPort() []*TypePort
- func (x *ContainerCreateAndChangeExposedPortRequest) GetContainerName() string
- func (x *ContainerCreateAndChangeExposedPortRequest) GetContainerNetworkId() string
- func (x *ContainerCreateAndChangeExposedPortRequest) GetCurrentPort() []*TypePort
- func (x *ContainerCreateAndChangeExposedPortRequest) GetImageName() string
- func (x *ContainerCreateAndChangeExposedPortRequest) GetMountVolumes() []*TypeMountMountVolume
- func (x *ContainerCreateAndChangeExposedPortRequest) GetRestartPolicy() TypeRestartPolicy
- func (*ContainerCreateAndChangeExposedPortRequest) ProtoMessage()
- func (x *ContainerCreateAndChangeExposedPortRequest) ProtoReflect() protoreflect.Message
- func (x *ContainerCreateAndChangeExposedPortRequest) Reset()
- func (x *ContainerCreateAndChangeExposedPortRequest) String() string
- type ContainerCreateAndExposePortsAutomaticallyRequest
- func (*ContainerCreateAndExposePortsAutomaticallyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetContainerName() string
- func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetContainerNetworkId() string
- func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetImageName() string
- func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetMountVolumes() []*TypeMountMountVolume
- func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetRestartPolicy() TypeRestartPolicy
- func (*ContainerCreateAndExposePortsAutomaticallyRequest) ProtoMessage()
- func (x *ContainerCreateAndExposePortsAutomaticallyRequest) ProtoReflect() protoreflect.Message
- func (x *ContainerCreateAndExposePortsAutomaticallyRequest) Reset()
- func (x *ContainerCreateAndExposePortsAutomaticallyRequest) String() string
- type ContainerCreateReply
- func (*ContainerCreateReply) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerCreateReply) GetContainerID() string
- func (x *ContainerCreateReply) GetError() *TypeError
- func (*ContainerCreateReply) ProtoMessage()
- func (x *ContainerCreateReply) ProtoReflect() protoreflect.Message
- func (x *ContainerCreateReply) Reset()
- func (x *ContainerCreateReply) String() string
- type ContainerCreateRequest
- func (*ContainerCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerCreateRequest) GetContainerName() string
- func (x *ContainerCreateRequest) GetContainerNetworkId() string
- func (x *ContainerCreateRequest) GetImageName() string
- func (x *ContainerCreateRequest) GetMountVolumes() []*TypeMountMountVolume
- func (x *ContainerCreateRequest) GetPortExposedList() []*TypeNatPortMap
- func (x *ContainerCreateRequest) GetRestartPolicy() TypeRestartPolicy
- func (*ContainerCreateRequest) ProtoMessage()
- func (x *ContainerCreateRequest) ProtoReflect() protoreflect.Message
- func (x *ContainerCreateRequest) Reset()
- func (x *ContainerCreateRequest) String() string
- type ContainerCreateWithoutExposePortsRequest
- func (*ContainerCreateWithoutExposePortsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerCreateWithoutExposePortsRequest) GetContainerName() string
- func (x *ContainerCreateWithoutExposePortsRequest) GetContainerNetworkId() string
- func (x *ContainerCreateWithoutExposePortsRequest) GetImageName() string
- func (x *ContainerCreateWithoutExposePortsRequest) GetMountVolumes() []*TypeMountMountVolume
- func (x *ContainerCreateWithoutExposePortsRequest) GetRestartPolicy() TypeRestartPolicy
- func (*ContainerCreateWithoutExposePortsRequest) ProtoMessage()
- func (x *ContainerCreateWithoutExposePortsRequest) ProtoReflect() protoreflect.Message
- func (x *ContainerCreateWithoutExposePortsRequest) Reset()
- func (x *ContainerCreateWithoutExposePortsRequest) String() string
- type DockerClient
- type DockerServer
- type InspectByIdReply
- func (*InspectByIdReply) Descriptor() ([]byte, []int)deprecated
- func (x *InspectByIdReply) GetError() *TypeError
- func (x *InspectByIdReply) GetJSon() string
- func (*InspectByIdReply) ProtoMessage()
- func (x *InspectByIdReply) ProtoReflect() protoreflect.Message
- func (x *InspectByIdReply) Reset()
- func (x *InspectByIdReply) String() string
- type InspectByIdRequest
- type InspectByNameReply
- func (*InspectByNameReply) Descriptor() ([]byte, []int)deprecated
- func (x *InspectByNameReply) GetError() *TypeError
- func (x *InspectByNameReply) GetJSon() string
- func (*InspectByNameReply) ProtoMessage()
- func (x *InspectByNameReply) ProtoReflect() protoreflect.Message
- func (x *InspectByNameReply) Reset()
- func (x *InspectByNameReply) String() string
- type InspectByNameRequest
- func (*InspectByNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InspectByNameRequest) GetName() string
- func (*InspectByNameRequest) ProtoMessage()
- func (x *InspectByNameRequest) ProtoReflect() protoreflect.Message
- func (x *InspectByNameRequest) Reset()
- func (x *InspectByNameRequest) String() string
- type RequestByIdRequest
- type RequestByNameReply
- func (*RequestByNameReply) Descriptor() ([]byte, []int)deprecated
- func (x *RequestByNameReply) GetError() *TypeError
- func (x *RequestByNameReply) GetId() string
- func (*RequestByNameReply) ProtoMessage()
- func (x *RequestByNameReply) ProtoReflect() protoreflect.Message
- func (x *RequestByNameReply) Reset()
- func (x *RequestByNameReply) String() string
- type RequestByNameRequest
- func (*RequestByNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RequestByNameRequest) GetName() string
- func (*RequestByNameRequest) ProtoMessage()
- func (x *RequestByNameRequest) ProtoReflect() protoreflect.Message
- func (x *RequestByNameRequest) Reset()
- func (x *RequestByNameRequest) String() string
- type TypeError
- func (*TypeError) Descriptor() ([]byte, []int)deprecated
- func (x *TypeError) GetMessage() string
- func (x *TypeError) GetSuccess() bool
- func (x *TypeError) GetTrace() []string
- func (*TypeError) ProtoMessage()
- func (x *TypeError) ProtoReflect() protoreflect.Message
- func (x *TypeError) Reset()
- func (x *TypeError) String() string
- type TypeMountMountVolume
- func (*TypeMountMountVolume) Descriptor() ([]byte, []int)deprecated
- func (x *TypeMountMountVolume) GetSource() string
- func (x *TypeMountMountVolume) GetTarget() string
- func (x *TypeMountMountVolume) GetType() TypeVolumeMountType
- func (*TypeMountMountVolume) ProtoMessage()
- func (x *TypeMountMountVolume) ProtoReflect() protoreflect.Message
- func (x *TypeMountMountVolume) Reset()
- func (x *TypeMountMountVolume) String() string
- type TypeNatPortMap
- func (*TypeNatPortMap) Descriptor() ([]byte, []int)deprecated
- func (x *TypeNatPortMap) GetPort() *TypePort
- func (x *TypeNatPortMap) GetPortBind() []*TypePortBinding
- func (*TypeNatPortMap) ProtoMessage()
- func (x *TypeNatPortMap) ProtoReflect() protoreflect.Message
- func (x *TypeNatPortMap) Reset()
- func (x *TypeNatPortMap) String() string
- type TypePort
- type TypePortBinding
- func (*TypePortBinding) Descriptor() ([]byte, []int)deprecated
- func (x *TypePortBinding) GetHostIP() string
- func (x *TypePortBinding) GetHostPort() string
- func (*TypePortBinding) ProtoMessage()
- func (x *TypePortBinding) ProtoReflect() protoreflect.Message
- func (x *TypePortBinding) Reset()
- func (x *TypePortBinding) String() string
- type TypeRestartPolicy
- func (TypeRestartPolicy) Descriptor() protoreflect.EnumDescriptor
- func (x TypeRestartPolicy) Enum() *TypeRestartPolicy
- func (TypeRestartPolicy) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeRestartPolicy) Number() protoreflect.EnumNumber
- func (x TypeRestartPolicy) String() string
- func (TypeRestartPolicy) Type() protoreflect.EnumType
- type TypeVolumeMountType
- func (TypeVolumeMountType) Descriptor() protoreflect.EnumDescriptor
- func (x TypeVolumeMountType) Enum() *TypeVolumeMountType
- func (TypeVolumeMountType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TypeVolumeMountType) Number() protoreflect.EnumNumber
- func (x TypeVolumeMountType) String() string
- func (TypeVolumeMountType) Type() protoreflect.EnumType
- type UnimplementedDockerServer
- func (*UnimplementedDockerServer) ContainerCreate(context.Context, *ContainerCreateRequest) (*ContainerCreateReply, error)
- func (*UnimplementedDockerServer) ContainerCreateAndChangeExposedPort(context.Context, *ContainerCreateAndChangeExposedPortRequest) (*ContainerCreateReply, error)
- func (*UnimplementedDockerServer) ContainerCreateAndExposePortsAutomatically(context.Context, *ContainerCreateAndExposePortsAutomaticallyRequest) (*ContainerCreateReply, error)
- func (*UnimplementedDockerServer) ContainerCreateAndStart(context.Context, *ContainerCreateRequest) (*ContainerCreateReply, error)
- func (*UnimplementedDockerServer) ContainerCreateChangeExposedPortAndStart(context.Context, *ContainerCreateAndChangeExposedPortRequest) (*ContainerCreateReply, error)
- func (*UnimplementedDockerServer) ContainerCreateExposePortsAutomaticallyAndStart(context.Context, *ContainerCreateAndExposePortsAutomaticallyRequest) (*ContainerCreateReply, error)
- func (*UnimplementedDockerServer) ContainerCreateWithoutExposePorts(context.Context, *ContainerCreateWithoutExposePortsRequest) (*ContainerCreateReply, error)
- func (*UnimplementedDockerServer) ContainerCreateWithoutExposePortsAndStart(context.Context, *ContainerCreateWithoutExposePortsRequest) (*ContainerCreateReply, error)
- func (*UnimplementedDockerServer) ContainerFindIdByName(context.Context, *RequestByNameRequest) (*RequestByNameReply, error)
- func (*UnimplementedDockerServer) ContainerFindIdByNameContains(context.Context, *RequestByNameRequest) (*RequestByNameReply, error)
- func (*UnimplementedDockerServer) ContainerInspectJSon(context.Context, *InspectByIdRequest) (*InspectByIdReply, error)
- func (*UnimplementedDockerServer) ContainerInspectJSonByName(context.Context, *InspectByIdRequest) (*InspectByIdReply, error)
Constants ¶
This section is empty.
Variables ¶
var ( TypeRestartPolicy_name = map[int32]string{ 0: "KRestartPolicyNo", 1: "KRestartPolicyOnFailure", 2: "KRestartPolicyAlways", 3: "KRestartPolicyUnlessStopped", } TypeRestartPolicy_value = map[string]int32{ "KRestartPolicyNo": 0, "KRestartPolicyOnFailure": 1, "KRestartPolicyAlways": 2, "KRestartPolicyUnlessStopped": 3, } )
Enum value maps for TypeRestartPolicy.
var ( TypeVolumeMountType_name = map[int32]string{ 0: "KVolumeMountTypeBind", 1: "KVolumeMountTypeVolume", 2: "KVolumeMountTypeTmpfs", 3: "KVolumeMountTypeNpipe", } TypeVolumeMountType_value = map[string]int32{ "KVolumeMountTypeBind": 0, "KVolumeMountTypeVolume": 1, "KVolumeMountTypeTmpfs": 2, "KVolumeMountTypeNpipe": 3, } )
Enum value maps for TypeVolumeMountType.
var File_containerCreate_proto protoreflect.FileDescriptor
Functions ¶
func ConvertProtoMountVolumeToGoMountMount ¶
func ConvertProtoMountVolumeToGoMountMount( volumes []*TypeMountMountVolume, ) (mountList []mount.Mount)
func ConvertProtoTypeNatPortMapPortMapToGoNatPortMap ¶
func ConvertProtoTypeNatPortMapPortMapToGoNatPortMap( portMap []*TypeNatPortMap, ) (err error, port nat.PortMap)
func RegisterDockerServer ¶
func RegisterDockerServer(s *grpc.Server, srv DockerServer)
Types ¶
type ContainerCreateAndChangeExposedPortRequest ¶
type ContainerCreateAndChangeExposedPortRequest struct { ImageName string `protobuf:"bytes,1,opt,name=imageName,proto3" json:"imageName,omitempty"` ContainerName string `protobuf:"bytes,2,opt,name=containerName,proto3" json:"containerName,omitempty"` RestartPolicy TypeRestartPolicy `` /* 135-byte string literal not displayed */ MountVolumes []*TypeMountMountVolume `protobuf:"bytes,4,rep,name=mountVolumes,proto3" json:"mountVolumes,omitempty"` ContainerNetworkId string `protobuf:"bytes,5,opt,name=containerNetworkId,proto3" json:"containerNetworkId,omitempty"` CurrentPort []*TypePort `protobuf:"bytes,6,rep,name=currentPort,proto3" json:"currentPort,omitempty"` ChangeToPort []*TypePort `protobuf:"bytes,7,rep,name=changeToPort,proto3" json:"changeToPort,omitempty"` // contains filtered or unexported fields }
func (*ContainerCreateAndChangeExposedPortRequest) Descriptor
deprecated
func (*ContainerCreateAndChangeExposedPortRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContainerCreateAndChangeExposedPortRequest.ProtoReflect.Descriptor instead.
func (*ContainerCreateAndChangeExposedPortRequest) GetChangeToPort ¶
func (x *ContainerCreateAndChangeExposedPortRequest) GetChangeToPort() []*TypePort
func (*ContainerCreateAndChangeExposedPortRequest) GetContainerName ¶
func (x *ContainerCreateAndChangeExposedPortRequest) GetContainerName() string
func (*ContainerCreateAndChangeExposedPortRequest) GetContainerNetworkId ¶
func (x *ContainerCreateAndChangeExposedPortRequest) GetContainerNetworkId() string
func (*ContainerCreateAndChangeExposedPortRequest) GetCurrentPort ¶
func (x *ContainerCreateAndChangeExposedPortRequest) GetCurrentPort() []*TypePort
func (*ContainerCreateAndChangeExposedPortRequest) GetImageName ¶
func (x *ContainerCreateAndChangeExposedPortRequest) GetImageName() string
func (*ContainerCreateAndChangeExposedPortRequest) GetMountVolumes ¶
func (x *ContainerCreateAndChangeExposedPortRequest) GetMountVolumes() []*TypeMountMountVolume
func (*ContainerCreateAndChangeExposedPortRequest) GetRestartPolicy ¶
func (x *ContainerCreateAndChangeExposedPortRequest) GetRestartPolicy() TypeRestartPolicy
func (*ContainerCreateAndChangeExposedPortRequest) ProtoMessage ¶
func (*ContainerCreateAndChangeExposedPortRequest) ProtoMessage()
func (*ContainerCreateAndChangeExposedPortRequest) ProtoReflect ¶
func (x *ContainerCreateAndChangeExposedPortRequest) ProtoReflect() protoreflect.Message
func (*ContainerCreateAndChangeExposedPortRequest) Reset ¶
func (x *ContainerCreateAndChangeExposedPortRequest) Reset()
func (*ContainerCreateAndChangeExposedPortRequest) String ¶
func (x *ContainerCreateAndChangeExposedPortRequest) String() string
type ContainerCreateAndExposePortsAutomaticallyRequest ¶
type ContainerCreateAndExposePortsAutomaticallyRequest struct { ImageName string `protobuf:"bytes,1,opt,name=imageName,proto3" json:"imageName,omitempty"` ContainerName string `protobuf:"bytes,2,opt,name=containerName,proto3" json:"containerName,omitempty"` RestartPolicy TypeRestartPolicy `` /* 135-byte string literal not displayed */ MountVolumes []*TypeMountMountVolume `protobuf:"bytes,4,rep,name=mountVolumes,proto3" json:"mountVolumes,omitempty"` ContainerNetworkId string `protobuf:"bytes,5,opt,name=containerNetworkId,proto3" json:"containerNetworkId,omitempty"` // contains filtered or unexported fields }
func (*ContainerCreateAndExposePortsAutomaticallyRequest) Descriptor
deprecated
func (*ContainerCreateAndExposePortsAutomaticallyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContainerCreateAndExposePortsAutomaticallyRequest.ProtoReflect.Descriptor instead.
func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetContainerName ¶
func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetContainerName() string
func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetContainerNetworkId ¶
func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetContainerNetworkId() string
func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetImageName ¶
func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetImageName() string
func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetMountVolumes ¶
func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetMountVolumes() []*TypeMountMountVolume
func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetRestartPolicy ¶
func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetRestartPolicy() TypeRestartPolicy
func (*ContainerCreateAndExposePortsAutomaticallyRequest) ProtoMessage ¶
func (*ContainerCreateAndExposePortsAutomaticallyRequest) ProtoMessage()
func (*ContainerCreateAndExposePortsAutomaticallyRequest) ProtoReflect ¶
func (x *ContainerCreateAndExposePortsAutomaticallyRequest) ProtoReflect() protoreflect.Message
func (*ContainerCreateAndExposePortsAutomaticallyRequest) Reset ¶
func (x *ContainerCreateAndExposePortsAutomaticallyRequest) Reset()
func (*ContainerCreateAndExposePortsAutomaticallyRequest) String ¶
func (x *ContainerCreateAndExposePortsAutomaticallyRequest) String() string
type ContainerCreateReply ¶
type ContainerCreateReply struct { Error *TypeError `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` ContainerID string `protobuf:"bytes,2,opt,name=ContainerID,proto3" json:"ContainerID,omitempty"` // contains filtered or unexported fields }
func (*ContainerCreateReply) Descriptor
deprecated
func (*ContainerCreateReply) Descriptor() ([]byte, []int)
Deprecated: Use ContainerCreateReply.ProtoReflect.Descriptor instead.
func (*ContainerCreateReply) GetContainerID ¶
func (x *ContainerCreateReply) GetContainerID() string
func (*ContainerCreateReply) GetError ¶
func (x *ContainerCreateReply) GetError() *TypeError
func (*ContainerCreateReply) ProtoMessage ¶
func (*ContainerCreateReply) ProtoMessage()
func (*ContainerCreateReply) ProtoReflect ¶
func (x *ContainerCreateReply) ProtoReflect() protoreflect.Message
func (*ContainerCreateReply) Reset ¶
func (x *ContainerCreateReply) Reset()
func (*ContainerCreateReply) String ¶
func (x *ContainerCreateReply) String() string
type ContainerCreateRequest ¶
type ContainerCreateRequest struct { ImageName string `protobuf:"bytes,1,opt,name=imageName,proto3" json:"imageName,omitempty"` ContainerName string `protobuf:"bytes,2,opt,name=containerName,proto3" json:"containerName,omitempty"` RestartPolicy TypeRestartPolicy `` /* 135-byte string literal not displayed */ PortExposedList []*TypeNatPortMap `protobuf:"bytes,4,rep,name=portExposedList,proto3" json:"portExposedList,omitempty"` MountVolumes []*TypeMountMountVolume `protobuf:"bytes,5,rep,name=mountVolumes,proto3" json:"mountVolumes,omitempty"` ContainerNetworkId string `protobuf:"bytes,6,opt,name=containerNetworkId,proto3" json:"containerNetworkId,omitempty"` // contains filtered or unexported fields }
func (*ContainerCreateRequest) Descriptor
deprecated
func (*ContainerCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContainerCreateRequest.ProtoReflect.Descriptor instead.
func (*ContainerCreateRequest) GetContainerName ¶
func (x *ContainerCreateRequest) GetContainerName() string
func (*ContainerCreateRequest) GetContainerNetworkId ¶
func (x *ContainerCreateRequest) GetContainerNetworkId() string
func (*ContainerCreateRequest) GetImageName ¶
func (x *ContainerCreateRequest) GetImageName() string
func (*ContainerCreateRequest) GetMountVolumes ¶
func (x *ContainerCreateRequest) GetMountVolumes() []*TypeMountMountVolume
func (*ContainerCreateRequest) GetPortExposedList ¶
func (x *ContainerCreateRequest) GetPortExposedList() []*TypeNatPortMap
func (*ContainerCreateRequest) GetRestartPolicy ¶
func (x *ContainerCreateRequest) GetRestartPolicy() TypeRestartPolicy
func (*ContainerCreateRequest) ProtoMessage ¶
func (*ContainerCreateRequest) ProtoMessage()
func (*ContainerCreateRequest) ProtoReflect ¶
func (x *ContainerCreateRequest) ProtoReflect() protoreflect.Message
func (*ContainerCreateRequest) Reset ¶
func (x *ContainerCreateRequest) Reset()
func (*ContainerCreateRequest) String ¶
func (x *ContainerCreateRequest) String() string
type ContainerCreateWithoutExposePortsRequest ¶
type ContainerCreateWithoutExposePortsRequest struct { ImageName string `protobuf:"bytes,1,opt,name=imageName,proto3" json:"imageName,omitempty"` ContainerName string `protobuf:"bytes,2,opt,name=containerName,proto3" json:"containerName,omitempty"` RestartPolicy TypeRestartPolicy `` /* 135-byte string literal not displayed */ MountVolumes []*TypeMountMountVolume `protobuf:"bytes,4,rep,name=mountVolumes,proto3" json:"mountVolumes,omitempty"` ContainerNetworkId string `protobuf:"bytes,5,opt,name=containerNetworkId,proto3" json:"containerNetworkId,omitempty"` // contains filtered or unexported fields }
func (*ContainerCreateWithoutExposePortsRequest) Descriptor
deprecated
func (*ContainerCreateWithoutExposePortsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContainerCreateWithoutExposePortsRequest.ProtoReflect.Descriptor instead.
func (*ContainerCreateWithoutExposePortsRequest) GetContainerName ¶
func (x *ContainerCreateWithoutExposePortsRequest) GetContainerName() string
func (*ContainerCreateWithoutExposePortsRequest) GetContainerNetworkId ¶
func (x *ContainerCreateWithoutExposePortsRequest) GetContainerNetworkId() string
func (*ContainerCreateWithoutExposePortsRequest) GetImageName ¶
func (x *ContainerCreateWithoutExposePortsRequest) GetImageName() string
func (*ContainerCreateWithoutExposePortsRequest) GetMountVolumes ¶
func (x *ContainerCreateWithoutExposePortsRequest) GetMountVolumes() []*TypeMountMountVolume
func (*ContainerCreateWithoutExposePortsRequest) GetRestartPolicy ¶
func (x *ContainerCreateWithoutExposePortsRequest) GetRestartPolicy() TypeRestartPolicy
func (*ContainerCreateWithoutExposePortsRequest) ProtoMessage ¶
func (*ContainerCreateWithoutExposePortsRequest) ProtoMessage()
func (*ContainerCreateWithoutExposePortsRequest) ProtoReflect ¶
func (x *ContainerCreateWithoutExposePortsRequest) ProtoReflect() protoreflect.Message
func (*ContainerCreateWithoutExposePortsRequest) Reset ¶
func (x *ContainerCreateWithoutExposePortsRequest) Reset()
func (*ContainerCreateWithoutExposePortsRequest) String ¶
func (x *ContainerCreateWithoutExposePortsRequest) String() string
type DockerClient ¶
type DockerClient interface { ContainerCreate(ctx context.Context, in *ContainerCreateRequest, opts ...grpc.CallOption) (*ContainerCreateReply, error) ContainerCreateAndStart(ctx context.Context, in *ContainerCreateRequest, opts ...grpc.CallOption) (*ContainerCreateReply, error) ContainerCreateAndChangeExposedPort(ctx context.Context, in *ContainerCreateAndChangeExposedPortRequest, opts ...grpc.CallOption) (*ContainerCreateReply, error) ContainerCreateChangeExposedPortAndStart(ctx context.Context, in *ContainerCreateAndChangeExposedPortRequest, opts ...grpc.CallOption) (*ContainerCreateReply, error) ContainerCreateAndExposePortsAutomatically(ctx context.Context, in *ContainerCreateAndExposePortsAutomaticallyRequest, opts ...grpc.CallOption) (*ContainerCreateReply, error) ContainerCreateExposePortsAutomaticallyAndStart(ctx context.Context, in *ContainerCreateAndExposePortsAutomaticallyRequest, opts ...grpc.CallOption) (*ContainerCreateReply, error) ContainerCreateWithoutExposePorts(ctx context.Context, in *ContainerCreateWithoutExposePortsRequest, opts ...grpc.CallOption) (*ContainerCreateReply, error) ContainerCreateWithoutExposePortsAndStart(ctx context.Context, in *ContainerCreateWithoutExposePortsRequest, opts ...grpc.CallOption) (*ContainerCreateReply, error) ContainerFindIdByName(ctx context.Context, in *RequestByNameRequest, opts ...grpc.CallOption) (*RequestByNameReply, error) ContainerFindIdByNameContains(ctx context.Context, in *RequestByNameRequest, opts ...grpc.CallOption) (*RequestByNameReply, error) ContainerInspectJSon(ctx context.Context, in *InspectByIdRequest, opts ...grpc.CallOption) (*InspectByIdReply, error) ContainerInspectJSonByName(ctx context.Context, in *InspectByIdRequest, opts ...grpc.CallOption) (*InspectByIdReply, error) }
DockerClient is the client API for Docker service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDockerClient ¶
func NewDockerClient(cc grpc.ClientConnInterface) DockerClient
type DockerServer ¶
type DockerServer interface { ContainerCreate(context.Context, *ContainerCreateRequest) (*ContainerCreateReply, error) ContainerCreateAndStart(context.Context, *ContainerCreateRequest) (*ContainerCreateReply, error) ContainerCreateAndChangeExposedPort(context.Context, *ContainerCreateAndChangeExposedPortRequest) (*ContainerCreateReply, error) ContainerCreateChangeExposedPortAndStart(context.Context, *ContainerCreateAndChangeExposedPortRequest) (*ContainerCreateReply, error) ContainerCreateAndExposePortsAutomatically(context.Context, *ContainerCreateAndExposePortsAutomaticallyRequest) (*ContainerCreateReply, error) ContainerCreateExposePortsAutomaticallyAndStart(context.Context, *ContainerCreateAndExposePortsAutomaticallyRequest) (*ContainerCreateReply, error) ContainerCreateWithoutExposePorts(context.Context, *ContainerCreateWithoutExposePortsRequest) (*ContainerCreateReply, error) ContainerCreateWithoutExposePortsAndStart(context.Context, *ContainerCreateWithoutExposePortsRequest) (*ContainerCreateReply, error) ContainerFindIdByName(context.Context, *RequestByNameRequest) (*RequestByNameReply, error) ContainerFindIdByNameContains(context.Context, *RequestByNameRequest) (*RequestByNameReply, error) ContainerInspectJSon(context.Context, *InspectByIdRequest) (*InspectByIdReply, error) ContainerInspectJSonByName(context.Context, *InspectByIdRequest) (*InspectByIdReply, error) }
DockerServer is the server API for Docker service.
type InspectByIdReply ¶
type InspectByIdReply struct { Error *TypeError `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` JSon string `protobuf:"bytes,2,opt,name=JSon,proto3" json:"JSon,omitempty"` // contains filtered or unexported fields }
func (*InspectByIdReply) Descriptor
deprecated
func (*InspectByIdReply) Descriptor() ([]byte, []int)
Deprecated: Use InspectByIdReply.ProtoReflect.Descriptor instead.
func (*InspectByIdReply) GetError ¶
func (x *InspectByIdReply) GetError() *TypeError
func (*InspectByIdReply) GetJSon ¶
func (x *InspectByIdReply) GetJSon() string
func (*InspectByIdReply) ProtoMessage ¶
func (*InspectByIdReply) ProtoMessage()
func (*InspectByIdReply) ProtoReflect ¶
func (x *InspectByIdReply) ProtoReflect() protoreflect.Message
func (*InspectByIdReply) Reset ¶
func (x *InspectByIdReply) Reset()
func (*InspectByIdReply) String ¶
func (x *InspectByIdReply) String() string
type InspectByIdRequest ¶
type InspectByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*InspectByIdRequest) Descriptor
deprecated
func (*InspectByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use InspectByIdRequest.ProtoReflect.Descriptor instead.
func (*InspectByIdRequest) GetId ¶
func (x *InspectByIdRequest) GetId() string
func (*InspectByIdRequest) ProtoMessage ¶
func (*InspectByIdRequest) ProtoMessage()
func (*InspectByIdRequest) ProtoReflect ¶
func (x *InspectByIdRequest) ProtoReflect() protoreflect.Message
func (*InspectByIdRequest) Reset ¶
func (x *InspectByIdRequest) Reset()
func (*InspectByIdRequest) String ¶
func (x *InspectByIdRequest) String() string
type InspectByNameReply ¶
type InspectByNameReply struct { Error *TypeError `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` JSon string `protobuf:"bytes,2,opt,name=JSon,proto3" json:"JSon,omitempty"` // contains filtered or unexported fields }
func (*InspectByNameReply) Descriptor
deprecated
func (*InspectByNameReply) Descriptor() ([]byte, []int)
Deprecated: Use InspectByNameReply.ProtoReflect.Descriptor instead.
func (*InspectByNameReply) GetError ¶
func (x *InspectByNameReply) GetError() *TypeError
func (*InspectByNameReply) GetJSon ¶
func (x *InspectByNameReply) GetJSon() string
func (*InspectByNameReply) ProtoMessage ¶
func (*InspectByNameReply) ProtoMessage()
func (*InspectByNameReply) ProtoReflect ¶
func (x *InspectByNameReply) ProtoReflect() protoreflect.Message
func (*InspectByNameReply) Reset ¶
func (x *InspectByNameReply) Reset()
func (*InspectByNameReply) String ¶
func (x *InspectByNameReply) String() string
type InspectByNameRequest ¶
type InspectByNameRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*InspectByNameRequest) Descriptor
deprecated
func (*InspectByNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use InspectByNameRequest.ProtoReflect.Descriptor instead.
func (*InspectByNameRequest) GetName ¶
func (x *InspectByNameRequest) GetName() string
func (*InspectByNameRequest) ProtoMessage ¶
func (*InspectByNameRequest) ProtoMessage()
func (*InspectByNameRequest) ProtoReflect ¶
func (x *InspectByNameRequest) ProtoReflect() protoreflect.Message
func (*InspectByNameRequest) Reset ¶
func (x *InspectByNameRequest) Reset()
func (*InspectByNameRequest) String ¶
func (x *InspectByNameRequest) String() string
type RequestByIdRequest ¶
type RequestByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RequestByIdRequest) Descriptor
deprecated
func (*RequestByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use RequestByIdRequest.ProtoReflect.Descriptor instead.
func (*RequestByIdRequest) GetId ¶
func (x *RequestByIdRequest) GetId() string
func (*RequestByIdRequest) ProtoMessage ¶
func (*RequestByIdRequest) ProtoMessage()
func (*RequestByIdRequest) ProtoReflect ¶
func (x *RequestByIdRequest) ProtoReflect() protoreflect.Message
func (*RequestByIdRequest) Reset ¶
func (x *RequestByIdRequest) Reset()
func (*RequestByIdRequest) String ¶
func (x *RequestByIdRequest) String() string
type RequestByNameReply ¶
type RequestByNameReply struct { Error *TypeError `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"` Id string `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*RequestByNameReply) Descriptor
deprecated
func (*RequestByNameReply) Descriptor() ([]byte, []int)
Deprecated: Use RequestByNameReply.ProtoReflect.Descriptor instead.
func (*RequestByNameReply) GetError ¶
func (x *RequestByNameReply) GetError() *TypeError
func (*RequestByNameReply) GetId ¶
func (x *RequestByNameReply) GetId() string
func (*RequestByNameReply) ProtoMessage ¶
func (*RequestByNameReply) ProtoMessage()
func (*RequestByNameReply) ProtoReflect ¶
func (x *RequestByNameReply) ProtoReflect() protoreflect.Message
func (*RequestByNameReply) Reset ¶
func (x *RequestByNameReply) Reset()
func (*RequestByNameReply) String ¶
func (x *RequestByNameReply) String() string
type RequestByNameRequest ¶
type RequestByNameRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*RequestByNameRequest) Descriptor
deprecated
func (*RequestByNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use RequestByNameRequest.ProtoReflect.Descriptor instead.
func (*RequestByNameRequest) GetName ¶
func (x *RequestByNameRequest) GetName() string
func (*RequestByNameRequest) ProtoMessage ¶
func (*RequestByNameRequest) ProtoMessage()
func (*RequestByNameRequest) ProtoReflect ¶
func (x *RequestByNameRequest) ProtoReflect() protoreflect.Message
func (*RequestByNameRequest) Reset ¶
func (x *RequestByNameRequest) Reset()
func (*RequestByNameRequest) String ¶
func (x *RequestByNameRequest) String() string
type TypeError ¶
type TypeError struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Trace []string `protobuf:"bytes,3,rep,name=Trace,proto3" json:"Trace,omitempty"` // contains filtered or unexported fields }
func (*TypeError) Descriptor
deprecated
func (*TypeError) GetMessage ¶
func (*TypeError) GetSuccess ¶
func (*TypeError) ProtoMessage ¶
func (*TypeError) ProtoMessage()
func (*TypeError) ProtoReflect ¶
func (x *TypeError) ProtoReflect() protoreflect.Message
type TypeMountMountVolume ¶
type TypeMountMountVolume struct { Type TypeVolumeMountType `protobuf:"varint,1,opt,name=type,proto3,enum=iotmakerDockerCommunicationGrpc.TypeVolumeMountType" json:"type,omitempty"` Source string `protobuf:"bytes,2,opt,name=Source,proto3" json:"Source,omitempty"` Target string `protobuf:"bytes,3,opt,name=Target,proto3" json:"Target,omitempty"` // contains filtered or unexported fields }
func ConvertGoMountMountToProtoMountVolume ¶
func ConvertGoMountMountToProtoMountVolume( mountList []mount.Mount, ) (volumes []*TypeMountMountVolume)
func (*TypeMountMountVolume) Descriptor
deprecated
func (*TypeMountMountVolume) Descriptor() ([]byte, []int)
Deprecated: Use TypeMountMountVolume.ProtoReflect.Descriptor instead.
func (*TypeMountMountVolume) GetSource ¶
func (x *TypeMountMountVolume) GetSource() string
func (*TypeMountMountVolume) GetTarget ¶
func (x *TypeMountMountVolume) GetTarget() string
func (*TypeMountMountVolume) GetType ¶
func (x *TypeMountMountVolume) GetType() TypeVolumeMountType
func (*TypeMountMountVolume) ProtoMessage ¶
func (*TypeMountMountVolume) ProtoMessage()
func (*TypeMountMountVolume) ProtoReflect ¶
func (x *TypeMountMountVolume) ProtoReflect() protoreflect.Message
func (*TypeMountMountVolume) Reset ¶
func (x *TypeMountMountVolume) Reset()
func (*TypeMountMountVolume) String ¶
func (x *TypeMountMountVolume) String() string
type TypeNatPortMap ¶
type TypeNatPortMap struct { Port *TypePort `protobuf:"bytes,1,opt,name=Port,proto3" json:"Port,omitempty"` PortBind []*TypePortBinding `protobuf:"bytes,2,rep,name=PortBind,proto3" json:"PortBind,omitempty"` // contains filtered or unexported fields }
func ConvertGoNatPortMapToProtoTypeNatPortMapPortMap ¶
func ConvertGoNatPortMapToProtoTypeNatPortMapPortMap( mapPort nat.PortMap, ) (protoPortMap []*TypeNatPortMap)
func (*TypeNatPortMap) Descriptor
deprecated
func (*TypeNatPortMap) Descriptor() ([]byte, []int)
Deprecated: Use TypeNatPortMap.ProtoReflect.Descriptor instead.
func (*TypeNatPortMap) GetPort ¶
func (x *TypeNatPortMap) GetPort() *TypePort
func (*TypeNatPortMap) GetPortBind ¶
func (x *TypeNatPortMap) GetPortBind() []*TypePortBinding
func (*TypeNatPortMap) ProtoMessage ¶
func (*TypeNatPortMap) ProtoMessage()
func (*TypeNatPortMap) ProtoReflect ¶
func (x *TypeNatPortMap) ProtoReflect() protoreflect.Message
func (*TypeNatPortMap) Reset ¶
func (x *TypeNatPortMap) Reset()
func (*TypeNatPortMap) String ¶
func (x *TypeNatPortMap) String() string
type TypePort ¶
type TypePort struct { Port string `protobuf:"bytes,1,opt,name=Port,proto3" json:"Port,omitempty"` Proto string `protobuf:"bytes,2,opt,name=Proto,proto3" json:"Proto,omitempty"` // contains filtered or unexported fields }
func (*TypePort) Descriptor
deprecated
func (*TypePort) ProtoMessage ¶
func (*TypePort) ProtoMessage()
func (*TypePort) ProtoReflect ¶
func (x *TypePort) ProtoReflect() protoreflect.Message
type TypePortBinding ¶
type TypePortBinding struct { // HostIP is the host IP Address HostIP string `protobuf:"bytes,1,opt,name=HostIP,proto3" json:"HostIP,omitempty"` // HostPort is the host port number HostPort string `protobuf:"bytes,2,opt,name=HostPort,proto3" json:"HostPort,omitempty"` // contains filtered or unexported fields }
func (*TypePortBinding) Descriptor
deprecated
func (*TypePortBinding) Descriptor() ([]byte, []int)
Deprecated: Use TypePortBinding.ProtoReflect.Descriptor instead.
func (*TypePortBinding) GetHostIP ¶
func (x *TypePortBinding) GetHostIP() string
func (*TypePortBinding) GetHostPort ¶
func (x *TypePortBinding) GetHostPort() string
func (*TypePortBinding) ProtoMessage ¶
func (*TypePortBinding) ProtoMessage()
func (*TypePortBinding) ProtoReflect ¶
func (x *TypePortBinding) ProtoReflect() protoreflect.Message
func (*TypePortBinding) Reset ¶
func (x *TypePortBinding) Reset()
func (*TypePortBinding) String ¶
func (x *TypePortBinding) String() string
type TypeRestartPolicy ¶
type TypeRestartPolicy int32
const ( //Do not automatically restart the container. (the default) TypeRestartPolicy_KRestartPolicyNo TypeRestartPolicy = 0 //Restart the container if it exits due to an error, which manifests as a non-zero exit //code. TypeRestartPolicy_KRestartPolicyOnFailure TypeRestartPolicy = 1 //Always restart the container if it stops. If it is manually stopped, it is restarted //only when Docker daemon restarts or the container itself is manually restarted. (See the second bullet listed in restart policy details) TypeRestartPolicy_KRestartPolicyAlways TypeRestartPolicy = 2 //Similar to always, except that when the container is stopped (manually or otherwise), //it is not restarted even after Docker daemon restarts. TypeRestartPolicy_KRestartPolicyUnlessStopped TypeRestartPolicy = 3 )
func (TypeRestartPolicy) Descriptor ¶
func (TypeRestartPolicy) Descriptor() protoreflect.EnumDescriptor
func (TypeRestartPolicy) Enum ¶
func (x TypeRestartPolicy) Enum() *TypeRestartPolicy
func (TypeRestartPolicy) EnumDescriptor
deprecated
func (TypeRestartPolicy) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeRestartPolicy.Descriptor instead.
func (TypeRestartPolicy) Number ¶
func (x TypeRestartPolicy) Number() protoreflect.EnumNumber
func (TypeRestartPolicy) String ¶
func (x TypeRestartPolicy) String() string
func (TypeRestartPolicy) Type ¶
func (TypeRestartPolicy) Type() protoreflect.EnumType
type TypeVolumeMountType ¶
type TypeVolumeMountType int32
const ( // TypeBind is the type for mounting host dir (real folder inside computer where this code work) TypeVolumeMountType_KVolumeMountTypeBind TypeVolumeMountType = 0 // TypeVolume is the type for remote storage volumes TypeVolumeMountType_KVolumeMountTypeVolume TypeVolumeMountType = 1 // TypeTmpfs is the type for mounting tmpfs TypeVolumeMountType_KVolumeMountTypeTmpfs TypeVolumeMountType = 2 // TypeNamedPipe is the type for mounting Windows named pipes TypeVolumeMountType_KVolumeMountTypeNpipe TypeVolumeMountType = 3 )
func (TypeVolumeMountType) Descriptor ¶
func (TypeVolumeMountType) Descriptor() protoreflect.EnumDescriptor
func (TypeVolumeMountType) Enum ¶
func (x TypeVolumeMountType) Enum() *TypeVolumeMountType
func (TypeVolumeMountType) EnumDescriptor
deprecated
func (TypeVolumeMountType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TypeVolumeMountType.Descriptor instead.
func (TypeVolumeMountType) Number ¶
func (x TypeVolumeMountType) Number() protoreflect.EnumNumber
func (TypeVolumeMountType) String ¶
func (x TypeVolumeMountType) String() string
func (TypeVolumeMountType) Type ¶
func (TypeVolumeMountType) Type() protoreflect.EnumType
type UnimplementedDockerServer ¶
type UnimplementedDockerServer struct { }
UnimplementedDockerServer can be embedded to have forward compatible implementations.
func (*UnimplementedDockerServer) ContainerCreate ¶
func (*UnimplementedDockerServer) ContainerCreate(context.Context, *ContainerCreateRequest) (*ContainerCreateReply, error)
func (*UnimplementedDockerServer) ContainerCreateAndChangeExposedPort ¶
func (*UnimplementedDockerServer) ContainerCreateAndChangeExposedPort(context.Context, *ContainerCreateAndChangeExposedPortRequest) (*ContainerCreateReply, error)
func (*UnimplementedDockerServer) ContainerCreateAndExposePortsAutomatically ¶
func (*UnimplementedDockerServer) ContainerCreateAndExposePortsAutomatically(context.Context, *ContainerCreateAndExposePortsAutomaticallyRequest) (*ContainerCreateReply, error)
func (*UnimplementedDockerServer) ContainerCreateAndStart ¶
func (*UnimplementedDockerServer) ContainerCreateAndStart(context.Context, *ContainerCreateRequest) (*ContainerCreateReply, error)
func (*UnimplementedDockerServer) ContainerCreateChangeExposedPortAndStart ¶
func (*UnimplementedDockerServer) ContainerCreateChangeExposedPortAndStart(context.Context, *ContainerCreateAndChangeExposedPortRequest) (*ContainerCreateReply, error)
func (*UnimplementedDockerServer) ContainerCreateExposePortsAutomaticallyAndStart ¶
func (*UnimplementedDockerServer) ContainerCreateExposePortsAutomaticallyAndStart(context.Context, *ContainerCreateAndExposePortsAutomaticallyRequest) (*ContainerCreateReply, error)
func (*UnimplementedDockerServer) ContainerCreateWithoutExposePorts ¶
func (*UnimplementedDockerServer) ContainerCreateWithoutExposePorts(context.Context, *ContainerCreateWithoutExposePortsRequest) (*ContainerCreateReply, error)
func (*UnimplementedDockerServer) ContainerCreateWithoutExposePortsAndStart ¶
func (*UnimplementedDockerServer) ContainerCreateWithoutExposePortsAndStart(context.Context, *ContainerCreateWithoutExposePortsRequest) (*ContainerCreateReply, error)
func (*UnimplementedDockerServer) ContainerFindIdByName ¶
func (*UnimplementedDockerServer) ContainerFindIdByName(context.Context, *RequestByNameRequest) (*RequestByNameReply, error)
func (*UnimplementedDockerServer) ContainerFindIdByNameContains ¶
func (*UnimplementedDockerServer) ContainerFindIdByNameContains(context.Context, *RequestByNameRequest) (*RequestByNameReply, error)
func (*UnimplementedDockerServer) ContainerInspectJSon ¶
func (*UnimplementedDockerServer) ContainerInspectJSon(context.Context, *InspectByIdRequest) (*InspectByIdReply, error)
func (*UnimplementedDockerServer) ContainerInspectJSonByName ¶
func (*UnimplementedDockerServer) ContainerInspectJSonByName(context.Context, *InspectByIdRequest) (*InspectByIdReply, error)