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.DeployConfig) (*_go.InspectRsp, error)
- func (UnimplementedMercuryServiceServer) Inspect(context.Context, *_go.NameReq) (*_go.InspectRsp, error)
- func (UnimplementedMercuryServiceServer) InspectPods(context.Context, *_go.NameReq) (*_go.PodListRsp, error)
- func (UnimplementedMercuryServiceServer) List(context.Context, *_go.Empty) (*_go.ListRsp, error)
- func (UnimplementedMercuryServiceServer) LogStream(*_go.NameReq, MercuryService_LogStreamServer) error
- func (UnimplementedMercuryServiceServer) Logs(context.Context, *_go.NameReq) (*_go.LogsRsp, error)
- func (UnimplementedMercuryServiceServer) Remove(context.Context, *_go.NameReq) (*_go.Empty, error)
- func (UnimplementedMercuryServiceServer) Shell(MercuryService_ShellServer) error
- type UnsafeMercuryServiceServer
Constants ¶
const ( MercuryService_Deploy_FullMethodName = "/mercury.MercuryService/Deploy" MercuryService_Inspect_FullMethodName = "/mercury.MercuryService/Inspect" MercuryService_InspectPods_FullMethodName = "/mercury.MercuryService/InspectPods" MercuryService_Logs_FullMethodName = "/mercury.MercuryService/Logs" MercuryService_LogStream_FullMethodName = "/mercury.MercuryService/LogStream" MercuryService_Shell_FullMethodName = "/mercury.MercuryService/Shell" MercuryService_Remove_FullMethodName = "/mercury.MercuryService/Remove" MercuryService_List_FullMethodName = "/mercury.MercuryService/List" )
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: "InspectPods", Handler: _MercuryService_InspectPods_Handler, }, { MethodName: "Logs", Handler: _MercuryService_Logs_Handler, }, { MethodName: "Remove", Handler: _MercuryService_Remove_Handler, }, { MethodName: "List", Handler: _MercuryService_List_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.DeployConfig, opts ...grpc.CallOption) (*_go.InspectRsp, error) Inspect(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.InspectRsp, error) InspectPods(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.PodListRsp, error) Logs(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.LogsRsp, error) LogStream(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (MercuryService_LogStreamClient, error) Shell(ctx context.Context, opts ...grpc.CallOption) (MercuryService_ShellClient, error) Remove(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.Empty, error) List(ctx context.Context, in *_go.Empty, opts ...grpc.CallOption) (*_go.ListRsp, 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.DeployConfig) (*_go.InspectRsp, error) Inspect(context.Context, *_go.NameReq) (*_go.InspectRsp, error) InspectPods(context.Context, *_go.NameReq) (*_go.PodListRsp, error) Logs(context.Context, *_go.NameReq) (*_go.LogsRsp, error) LogStream(*_go.NameReq, MercuryService_LogStreamServer) error Shell(MercuryService_ShellServer) error Remove(context.Context, *_go.NameReq) (*_go.Empty, error) List(context.Context, *_go.Empty) (*_go.ListRsp, 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.LogsRsp_Log, error) grpc.ClientStream }
type MercuryService_LogStreamServer ¶
type MercuryService_LogStreamServer interface { Send(*_go.LogsRsp_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.DeployConfig) (*_go.InspectRsp, error)
func (UnimplementedMercuryServiceServer) Inspect ¶
func (UnimplementedMercuryServiceServer) Inspect(context.Context, *_go.NameReq) (*_go.InspectRsp, error)
func (UnimplementedMercuryServiceServer) InspectPods ¶
func (UnimplementedMercuryServiceServer) InspectPods(context.Context, *_go.NameReq) (*_go.PodListRsp, error)
func (UnimplementedMercuryServiceServer) List ¶
func (UnimplementedMercuryServiceServer) LogStream ¶
func (UnimplementedMercuryServiceServer) LogStream(*_go.NameReq, MercuryService_LogStreamServer) error
func (UnimplementedMercuryServiceServer) Logs ¶
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.