pb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DockerHandle_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.DockerHandle",
	HandlerType: (*DockerHandleServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Operation",
			Handler:       _DockerHandle_Operation_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "GetPullImageLog",
			Handler:       _DockerHandle_GetPullImageLog_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetContainerLog",
			Handler:       _DockerHandle_GetContainerLog_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "dockerhandle.proto",
}

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

View Source
var File_dockerhandle_proto protoreflect.FileDescriptor

Functions

func RegisterDockerHandleServer

func RegisterDockerHandleServer(s grpc.ServiceRegistrar, srv DockerHandleServer)

Types

type DialogueReply

type DialogueReply struct {

	// Types that are assignable to Info:
	//	*DialogueReply_Data
	//	*DialogueReply_Meta
	Info isDialogueReply_Info `protobuf_oneof:"info"`
	// contains filtered or unexported fields
}

func (*DialogueReply) Descriptor deprecated

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

Deprecated: Use DialogueReply.ProtoReflect.Descriptor instead.

func (*DialogueReply) GetData

func (x *DialogueReply) GetData() string

func (*DialogueReply) GetInfo

func (m *DialogueReply) GetInfo() isDialogueReply_Info

func (*DialogueReply) GetMeta

func (x *DialogueReply) GetMeta() *DialogueReplyMeta

func (*DialogueReply) ProtoMessage

func (*DialogueReply) ProtoMessage()

func (*DialogueReply) ProtoReflect

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

func (*DialogueReply) Reset

func (x *DialogueReply) Reset()

func (*DialogueReply) String

func (x *DialogueReply) String() string

type DialogueReplyMeta

type DialogueReplyMeta struct {
	Code     int32  `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	Errormes string `protobuf:"bytes,3,opt,name=errormes,proto3" json:"errormes,omitempty"`
	Duration int32  `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"` //operte duration second
	// contains filtered or unexported fields
}

func (*DialogueReplyMeta) Descriptor deprecated

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

Deprecated: Use DialogueReplyMeta.ProtoReflect.Descriptor instead.

func (*DialogueReplyMeta) GetCode

func (x *DialogueReplyMeta) GetCode() int32

func (*DialogueReplyMeta) GetDuration

func (x *DialogueReplyMeta) GetDuration() int32

func (*DialogueReplyMeta) GetErrormes

func (x *DialogueReplyMeta) GetErrormes() string

func (*DialogueReplyMeta) ProtoMessage

func (*DialogueReplyMeta) ProtoMessage()

func (*DialogueReplyMeta) ProtoReflect

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

func (*DialogueReplyMeta) Reset

func (x *DialogueReplyMeta) Reset()

func (*DialogueReplyMeta) String

func (x *DialogueReplyMeta) String() string

type DialogueReply_Data

type DialogueReply_Data struct {
	Data string `protobuf:"bytes,1,opt,name=data,proto3,oneof"`
}

type DialogueReply_Meta

type DialogueReply_Meta struct {
	Meta *DialogueReplyMeta `protobuf:"bytes,2,opt,name=meta,proto3,oneof"`
}

type DockerHandleClient

type DockerHandleClient interface {
	// Sends and recv data
	Operation(ctx context.Context, opts ...grpc.CallOption) (DockerHandle_OperationClient, error)
	// Get pull image log
	GetPullImageLog(ctx context.Context, in *GetPullImageLogRequest, opts ...grpc.CallOption) (DockerHandle_GetPullImageLogClient, error)
	// Get container log
	GetContainerLog(ctx context.Context, in *GetContainerRequest, opts ...grpc.CallOption) (DockerHandle_GetContainerLogClient, error)
}

DockerHandleClient is the client API for DockerHandle 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.

type DockerHandleServer

type DockerHandleServer interface {
	// Sends and recv data
	Operation(DockerHandle_OperationServer) error
	// Get pull image log
	GetPullImageLog(*GetPullImageLogRequest, DockerHandle_GetPullImageLogServer) error
	// Get container log
	GetContainerLog(*GetContainerRequest, DockerHandle_GetContainerLogServer) error
	// contains filtered or unexported methods
}

DockerHandleServer is the server API for DockerHandle service. All implementations must embed UnimplementedDockerHandleServer for forward compatibility

type DockerHandle_GetContainerLogClient

type DockerHandle_GetContainerLogClient interface {
	Recv() (*DialogueReply, error)
	grpc.ClientStream
}

type DockerHandle_GetContainerLogServer

type DockerHandle_GetContainerLogServer interface {
	Send(*DialogueReply) error
	grpc.ServerStream
}

type DockerHandle_GetPullImageLogClient

type DockerHandle_GetPullImageLogClient interface {
	Recv() (*DialogueReply, error)
	grpc.ClientStream
}

type DockerHandle_GetPullImageLogServer

type DockerHandle_GetPullImageLogServer interface {
	Send(*DialogueReply) error
	grpc.ServerStream
}

type DockerHandle_OperationClient

type DockerHandle_OperationClient interface {
	Send(*OperationRequest) error
	Recv() (*DialogueReply, error)
	grpc.ClientStream
}

type DockerHandle_OperationServer

type DockerHandle_OperationServer interface {
	Send(*DialogueReply) error
	Recv() (*OperationRequest, error)
	grpc.ServerStream
}

type GetContainerRequest

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

func (*GetContainerRequest) Descriptor deprecated

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

Deprecated: Use GetContainerRequest.ProtoReflect.Descriptor instead.

func (*GetContainerRequest) GetContainerId

func (x *GetContainerRequest) GetContainerId() string

func (*GetContainerRequest) ProtoMessage

func (*GetContainerRequest) ProtoMessage()

func (*GetContainerRequest) ProtoReflect

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

func (*GetContainerRequest) Reset

func (x *GetContainerRequest) Reset()

func (*GetContainerRequest) String

func (x *GetContainerRequest) String() string

type GetPullImageLogRequest

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

func (*GetPullImageLogRequest) Descriptor deprecated

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

Deprecated: Use GetPullImageLogRequest.ProtoReflect.Descriptor instead.

func (*GetPullImageLogRequest) GetImageId

func (x *GetPullImageLogRequest) GetImageId() string

func (*GetPullImageLogRequest) ProtoMessage

func (*GetPullImageLogRequest) ProtoMessage()

func (*GetPullImageLogRequest) ProtoReflect

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

func (*GetPullImageLogRequest) Reset

func (x *GetPullImageLogRequest) Reset()

func (*GetPullImageLogRequest) String

func (x *GetPullImageLogRequest) String() string

type OperationRequest

type OperationRequest struct {

	// Types that are assignable to Info:
	//	*OperationRequest_ContainerId
	//	*OperationRequest_Data
	Info isOperationRequest_Info `protobuf_oneof:"info"`
	// contains filtered or unexported fields
}

func (*OperationRequest) Descriptor deprecated

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

Deprecated: Use OperationRequest.ProtoReflect.Descriptor instead.

func (*OperationRequest) GetContainerId

func (x *OperationRequest) GetContainerId() string

func (*OperationRequest) GetData

func (x *OperationRequest) GetData() []byte

func (*OperationRequest) GetInfo

func (m *OperationRequest) GetInfo() isOperationRequest_Info

func (*OperationRequest) ProtoMessage

func (*OperationRequest) ProtoMessage()

func (*OperationRequest) ProtoReflect

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

func (*OperationRequest) Reset

func (x *OperationRequest) Reset()

func (*OperationRequest) String

func (x *OperationRequest) String() string

type OperationRequest_ContainerId

type OperationRequest_ContainerId struct {
	ContainerId string `protobuf:"bytes,1,opt,name=containerId,proto3,oneof"`
}

type OperationRequest_Data

type OperationRequest_Data struct {
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}

type UnimplementedDockerHandleServer

type UnimplementedDockerHandleServer struct {
}

UnimplementedDockerHandleServer must be embedded to have forward compatible implementations.

func (UnimplementedDockerHandleServer) GetContainerLog

func (UnimplementedDockerHandleServer) Operation

type UnsafeDockerHandleServer

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

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

Jump to

Keyboard shortcuts

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