Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMercuryServiceServer(s grpc.ServiceRegistrar, srv MercuryServiceServer)
- type MercuryServiceClient
- type MercuryServiceServer
- type MercuryService_LogStreamClient
- type MercuryService_LogStreamServer
- type MercuryService_ShellClient
- type MercuryService_ShellServer
- type UnimplementedMercuryServiceServer
- func (UnimplementedMercuryServiceServer) Deploy(context.Context, *_go.DeployReq) (*_go.InspectRsp, error)
- func (UnimplementedMercuryServiceServer) Event(context.Context, *_go.NameReq) (*_go.EventListRsp, error)
- func (UnimplementedMercuryServiceServer) Exec(context.Context, *_go.ExecReq) (*_go.ExecRsp, error)
- func (UnimplementedMercuryServiceServer) Inspect(context.Context, *_go.NameReq) (*_go.InspectRsp, error)
- func (UnimplementedMercuryServiceServer) InspectPod(context.Context, *_go.NameReq) (*_go.PodListRsp, error)
- func (UnimplementedMercuryServiceServer) List(context.Context, *_go.ListReq) (*_go.ListRsp, error)
- func (UnimplementedMercuryServiceServer) Log(context.Context, *_go.NameReq) (*_go.LogRsp, error)
- func (UnimplementedMercuryServiceServer) LogStream(*_go.NameReq, MercuryService_LogStreamServer) error
- func (UnimplementedMercuryServiceServer) Remove(context.Context, *_go.NameReq) (*_go.Empty, error)
- func (UnimplementedMercuryServiceServer) Shell(MercuryService_ShellServer) error
- func (UnimplementedMercuryServiceServer) Watch(context.Context, *_go.NameReq) (*_go.WatchRsp, error)
- type UnsafeMercuryServiceServer
Constants ¶
const ( MercuryService_Deploy_FullMethodName = "/mercury.MercuryService/Deploy" MercuryService_Inspect_FullMethodName = "/mercury.MercuryService/Inspect" MercuryService_Watch_FullMethodName = "/mercury.MercuryService/Watch" MercuryService_InspectPod_FullMethodName = "/mercury.MercuryService/InspectPod" MercuryService_Remove_FullMethodName = "/mercury.MercuryService/Remove" MercuryService_List_FullMethodName = "/mercury.MercuryService/List" MercuryService_Event_FullMethodName = "/mercury.MercuryService/Event" MercuryService_Log_FullMethodName = "/mercury.MercuryService/Log" MercuryService_Exec_FullMethodName = "/mercury.MercuryService/Exec" MercuryService_LogStream_FullMethodName = "/mercury.MercuryService/LogStream" MercuryService_Shell_FullMethodName = "/mercury.MercuryService/Shell" )
Variables ¶
var MercuryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mercury.MercuryService", HandlerType: (*MercuryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Deploy", Handler: _MercuryService_Deploy_Handler, }, { MethodName: "Inspect", Handler: _MercuryService_Inspect_Handler, }, { MethodName: "Watch", Handler: _MercuryService_Watch_Handler, }, { MethodName: "InspectPod", Handler: _MercuryService_InspectPod_Handler, }, { MethodName: "Remove", Handler: _MercuryService_Remove_Handler, }, { MethodName: "List", Handler: _MercuryService_List_Handler, }, { MethodName: "Event", Handler: _MercuryService_Event_Handler, }, { MethodName: "Log", Handler: _MercuryService_Log_Handler, }, { MethodName: "Exec", Handler: _MercuryService_Exec_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "LogStream", Handler: _MercuryService_LogStream_Handler, ServerStreams: true, }, { StreamName: "Shell", Handler: _MercuryService_Shell_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "mercury.proto", }
MercuryService_ServiceDesc is the grpc.ServiceDesc for MercuryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMercuryServiceServer ¶
func RegisterMercuryServiceServer(s grpc.ServiceRegistrar, srv MercuryServiceServer)
Types ¶
type MercuryServiceClient ¶
type MercuryServiceClient interface { Deploy(ctx context.Context, in *_go.DeployReq, opts ...grpc.CallOption) (*_go.InspectRsp, error) Inspect(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.InspectRsp, error) Watch(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.WatchRsp, error) InspectPod(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.PodListRsp, error) Remove(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.Empty, error) List(ctx context.Context, in *_go.ListReq, opts ...grpc.CallOption) (*_go.ListRsp, error) Event(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.EventListRsp, error) Log(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.LogRsp, error) Exec(ctx context.Context, in *_go.ExecReq, opts ...grpc.CallOption) (*_go.ExecRsp, error) LogStream(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (MercuryService_LogStreamClient, error) Shell(ctx context.Context, opts ...grpc.CallOption) (MercuryService_ShellClient, error) }
MercuryServiceClient is the client API for MercuryService 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 NewMercuryServiceClient ¶
func NewMercuryServiceClient(cc grpc.ClientConnInterface) MercuryServiceClient
type MercuryServiceServer ¶
type MercuryServiceServer interface { Deploy(context.Context, *_go.DeployReq) (*_go.InspectRsp, error) Inspect(context.Context, *_go.NameReq) (*_go.InspectRsp, error) Watch(context.Context, *_go.NameReq) (*_go.WatchRsp, error) InspectPod(context.Context, *_go.NameReq) (*_go.PodListRsp, error) Remove(context.Context, *_go.NameReq) (*_go.Empty, error) List(context.Context, *_go.ListReq) (*_go.ListRsp, error) Event(context.Context, *_go.NameReq) (*_go.EventListRsp, error) Log(context.Context, *_go.NameReq) (*_go.LogRsp, error) Exec(context.Context, *_go.ExecReq) (*_go.ExecRsp, error) LogStream(*_go.NameReq, MercuryService_LogStreamServer) error Shell(MercuryService_ShellServer) error }
MercuryServiceServer is the server API for MercuryService service. All implementations should embed UnimplementedMercuryServiceServer for forward compatibility
type MercuryService_LogStreamClient ¶
type MercuryService_LogStreamClient interface { Recv() (*_go.LogRsp_Log, error) grpc.ClientStream }
type MercuryService_LogStreamServer ¶
type MercuryService_LogStreamServer interface { Send(*_go.LogRsp_Log) error grpc.ServerStream }
type MercuryService_ShellClient ¶
type MercuryService_ShellServer ¶
type UnimplementedMercuryServiceServer ¶
type UnimplementedMercuryServiceServer struct { }
UnimplementedMercuryServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedMercuryServiceServer) Deploy ¶
func (UnimplementedMercuryServiceServer) Deploy(context.Context, *_go.DeployReq) (*_go.InspectRsp, error)
func (UnimplementedMercuryServiceServer) Event ¶
func (UnimplementedMercuryServiceServer) Event(context.Context, *_go.NameReq) (*_go.EventListRsp, error)
func (UnimplementedMercuryServiceServer) Exec ¶
func (UnimplementedMercuryServiceServer) Inspect ¶
func (UnimplementedMercuryServiceServer) Inspect(context.Context, *_go.NameReq) (*_go.InspectRsp, error)
func (UnimplementedMercuryServiceServer) InspectPod ¶
func (UnimplementedMercuryServiceServer) InspectPod(context.Context, *_go.NameReq) (*_go.PodListRsp, error)
func (UnimplementedMercuryServiceServer) List ¶
func (UnimplementedMercuryServiceServer) Log ¶
func (UnimplementedMercuryServiceServer) LogStream ¶
func (UnimplementedMercuryServiceServer) LogStream(*_go.NameReq, MercuryService_LogStreamServer) error
func (UnimplementedMercuryServiceServer) Remove ¶
func (UnimplementedMercuryServiceServer) Shell ¶
func (UnimplementedMercuryServiceServer) Shell(MercuryService_ShellServer) error
type UnsafeMercuryServiceServer ¶
type UnsafeMercuryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMercuryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MercuryServiceServer will result in compilation errors.