iotmaker_docker_communication_grpc

package module
v0.0.0-...-884d20a Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

iotmaker.docker.communication.gRPC

protoc --go_opt=paths=source_relative --go_out=plugins=grpc:. *.proto

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_containerCreate_proto protoreflect.FileDescriptor

Functions

func ConvertArrProtoPortToGoArrNatPort

func ConvertArrProtoPortToGoArrNatPort(
	portList []*TypePort,
) (err error, list []nat.Port)

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

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 (*ContainerCreateAndChangeExposedPortRequest) GetImageName

func (*ContainerCreateAndChangeExposedPortRequest) GetMountVolumes

func (*ContainerCreateAndChangeExposedPortRequest) GetRestartPolicy

func (*ContainerCreateAndChangeExposedPortRequest) ProtoMessage

func (*ContainerCreateAndChangeExposedPortRequest) ProtoReflect

func (*ContainerCreateAndChangeExposedPortRequest) Reset

func (*ContainerCreateAndChangeExposedPortRequest) 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

Deprecated: Use ContainerCreateAndExposePortsAutomaticallyRequest.ProtoReflect.Descriptor instead.

func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetContainerName

func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetContainerNetworkId

func (x *ContainerCreateAndExposePortsAutomaticallyRequest) GetContainerNetworkId() string

func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetImageName

func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetMountVolumes

func (*ContainerCreateAndExposePortsAutomaticallyRequest) GetRestartPolicy

func (*ContainerCreateAndExposePortsAutomaticallyRequest) ProtoMessage

func (*ContainerCreateAndExposePortsAutomaticallyRequest) ProtoReflect

func (*ContainerCreateAndExposePortsAutomaticallyRequest) Reset

func (*ContainerCreateAndExposePortsAutomaticallyRequest) 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 (*ContainerCreateWithoutExposePortsRequest) GetMountVolumes

func (*ContainerCreateWithoutExposePortsRequest) GetRestartPolicy

func (*ContainerCreateWithoutExposePortsRequest) ProtoMessage

func (*ContainerCreateWithoutExposePortsRequest) ProtoReflect

func (*ContainerCreateWithoutExposePortsRequest) Reset

func (*ContainerCreateWithoutExposePortsRequest) 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) Descriptor() ([]byte, []int)

Deprecated: Use TypeError.ProtoReflect.Descriptor instead.

func (*TypeError) GetMessage

func (x *TypeError) GetMessage() string

func (*TypeError) GetSuccess

func (x *TypeError) GetSuccess() bool

func (*TypeError) GetTrace

func (x *TypeError) GetTrace() []string

func (*TypeError) ProtoMessage

func (*TypeError) ProtoMessage()

func (*TypeError) ProtoReflect

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

func (*TypeError) Reset

func (x *TypeError) Reset()

func (*TypeError) String

func (x *TypeError) String() string

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 (*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 GoArrNatPortToConvertArrProtoPort

func GoArrNatPortToConvertArrProtoPort(
	portList []nat.Port,
) (list []*TypePort)

func (*TypePort) Descriptor deprecated

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

Deprecated: Use TypePort.ProtoReflect.Descriptor instead.

func (*TypePort) GetPort

func (x *TypePort) GetPort() string

func (*TypePort) GetProto

func (x *TypePort) GetProto() string

func (*TypePort) ProtoMessage

func (*TypePort) ProtoMessage()

func (*TypePort) ProtoReflect

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

func (*TypePort) Reset

func (x *TypePort) Reset()

func (*TypePort) String

func (x *TypePort) String() string

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) Enum

func (TypeRestartPolicy) EnumDescriptor deprecated

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

Deprecated: Use TypeRestartPolicy.Descriptor instead.

func (TypeRestartPolicy) Number

func (TypeRestartPolicy) String

func (x TypeRestartPolicy) String() string

func (TypeRestartPolicy) Type

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) Enum

func (TypeVolumeMountType) EnumDescriptor deprecated

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

Deprecated: Use TypeVolumeMountType.Descriptor instead.

func (TypeVolumeMountType) Number

func (TypeVolumeMountType) String

func (x TypeVolumeMountType) String() string

func (TypeVolumeMountType) Type

type UnimplementedDockerServer

type UnimplementedDockerServer struct {
}

UnimplementedDockerServer can be embedded to have forward compatible implementations.

func (*UnimplementedDockerServer) ContainerCreate

func (*UnimplementedDockerServer) ContainerCreateAndStart

func (*UnimplementedDockerServer) ContainerCreateChangeExposedPortAndStart

func (*UnimplementedDockerServer) ContainerCreateWithoutExposePortsAndStart

func (*UnimplementedDockerServer) ContainerFindIdByName

func (*UnimplementedDockerServer) ContainerFindIdByNameContains

func (*UnimplementedDockerServer) ContainerInspectJSon

func (*UnimplementedDockerServer) ContainerInspectJSonByName

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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