Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterClientServer(s grpc.ServiceRegistrar, srv ClientServer)
- type ClientClient
- type ClientServer
- type GetJobListRequest
- type GetJobListResponse
- type GetJobRequest
- type GetJobResponse
- type GetStatusRequest
- type GetStatusResponse
- type Image
- type RegisterJobRequest
- func (*RegisterJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterJobRequest) GetName() string
- func (x *RegisterJobRequest) GetTask() []*Task
- func (*RegisterJobRequest) ProtoMessage()
- func (x *RegisterJobRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterJobRequest) Reset()
- func (x *RegisterJobRequest) String() string
- type RegisterJobResponse
- func (*RegisterJobResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterJobResponse) GetId() string
- func (x *RegisterJobResponse) GetName() string
- func (*RegisterJobResponse) ProtoMessage()
- func (x *RegisterJobResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterJobResponse) Reset()
- func (x *RegisterJobResponse) String() string
- type Task
- type UnimplementedClientServer
- func (UnimplementedClientServer) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error)
- func (UnimplementedClientServer) GetJobList(context.Context, *GetJobListRequest) (*GetJobListResponse, error)
- func (UnimplementedClientServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
- func (UnimplementedClientServer) RegisterJob(context.Context, *RegisterJobRequest) (*RegisterJobResponse, error)
- type UnsafeClientServer
Constants ¶
const ( Client_RegisterJob_FullMethodName = "/client.Client/RegisterJob" Client_GetJob_FullMethodName = "/client.Client/GetJob" Client_GetJobList_FullMethodName = "/client.Client/GetJobList" Client_GetStatus_FullMethodName = "/client.Client/GetStatus" )
Variables ¶
var Client_ServiceDesc = grpc.ServiceDesc{ ServiceName: "client.Client", HandlerType: (*ClientServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterJob", Handler: _Client_RegisterJob_Handler, }, { MethodName: "GetJob", Handler: _Client_GetJob_Handler, }, { MethodName: "GetJobList", Handler: _Client_GetJobList_Handler, }, { MethodName: "GetStatus", Handler: _Client_GetStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "client.proto", }
Client_ServiceDesc is the grpc.ServiceDesc for Client service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_client_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClientServer ¶
func RegisterClientServer(s grpc.ServiceRegistrar, srv ClientServer)
Types ¶
type ClientClient ¶
type ClientClient interface { RegisterJob(ctx context.Context, in *RegisterJobRequest, opts ...grpc.CallOption) (*RegisterJobResponse, error) GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) GetJobList(ctx context.Context, in *GetJobListRequest, opts ...grpc.CallOption) (*GetJobListResponse, error) GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) }
ClientClient is the client API for Client 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 NewClientClient ¶
func NewClientClient(cc grpc.ClientConnInterface) ClientClient
type ClientServer ¶
type ClientServer interface { RegisterJob(context.Context, *RegisterJobRequest) (*RegisterJobResponse, error) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error) GetJobList(context.Context, *GetJobListRequest) (*GetJobListResponse, error) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) // contains filtered or unexported methods }
ClientServer is the server API for Client service. All implementations must embed UnimplementedClientServer for forward compatibility
type GetJobListRequest ¶
type GetJobListRequest struct {
// contains filtered or unexported fields
}
func (*GetJobListRequest) Descriptor
deprecated
func (*GetJobListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJobListRequest.ProtoReflect.Descriptor instead.
func (*GetJobListRequest) ProtoMessage ¶
func (*GetJobListRequest) ProtoMessage()
func (*GetJobListRequest) ProtoReflect ¶
func (x *GetJobListRequest) ProtoReflect() protoreflect.Message
func (*GetJobListRequest) Reset ¶
func (x *GetJobListRequest) Reset()
func (*GetJobListRequest) String ¶
func (x *GetJobListRequest) String() string
type GetJobListResponse ¶
type GetJobListResponse struct {
// contains filtered or unexported fields
}
func (*GetJobListResponse) Descriptor
deprecated
func (*GetJobListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetJobListResponse.ProtoReflect.Descriptor instead.
func (*GetJobListResponse) ProtoMessage ¶
func (*GetJobListResponse) ProtoMessage()
func (*GetJobListResponse) ProtoReflect ¶
func (x *GetJobListResponse) ProtoReflect() protoreflect.Message
func (*GetJobListResponse) Reset ¶
func (x *GetJobListResponse) Reset()
func (*GetJobListResponse) String ¶
func (x *GetJobListResponse) String() string
type GetJobRequest ¶
type GetJobRequest struct {
// contains filtered or unexported fields
}
func (*GetJobRequest) Descriptor
deprecated
func (*GetJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.
func (*GetJobRequest) ProtoMessage ¶
func (*GetJobRequest) ProtoMessage()
func (*GetJobRequest) ProtoReflect ¶
func (x *GetJobRequest) ProtoReflect() protoreflect.Message
func (*GetJobRequest) Reset ¶
func (x *GetJobRequest) Reset()
func (*GetJobRequest) String ¶
func (x *GetJobRequest) String() string
type GetJobResponse ¶
type GetJobResponse struct {
// contains filtered or unexported fields
}
func (*GetJobResponse) Descriptor
deprecated
func (*GetJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetJobResponse.ProtoReflect.Descriptor instead.
func (*GetJobResponse) ProtoMessage ¶
func (*GetJobResponse) ProtoMessage()
func (*GetJobResponse) ProtoReflect ¶
func (x *GetJobResponse) ProtoReflect() protoreflect.Message
func (*GetJobResponse) Reset ¶
func (x *GetJobResponse) Reset()
func (*GetJobResponse) String ¶
func (x *GetJobResponse) String() string
type GetStatusRequest ¶
type GetStatusRequest struct {
// contains filtered or unexported fields
}
func (*GetStatusRequest) Descriptor
deprecated
func (*GetStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead.
func (*GetStatusRequest) ProtoMessage ¶
func (*GetStatusRequest) ProtoMessage()
func (*GetStatusRequest) ProtoReflect ¶
func (x *GetStatusRequest) ProtoReflect() protoreflect.Message
func (*GetStatusRequest) Reset ¶
func (x *GetStatusRequest) Reset()
func (*GetStatusRequest) String ¶
func (x *GetStatusRequest) String() string
type GetStatusResponse ¶
type GetStatusResponse struct {
// contains filtered or unexported fields
}
func (*GetStatusResponse) Descriptor
deprecated
func (*GetStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusResponse.ProtoReflect.Descriptor instead.
func (*GetStatusResponse) ProtoMessage ¶
func (*GetStatusResponse) ProtoMessage()
func (*GetStatusResponse) ProtoReflect ¶
func (x *GetStatusResponse) ProtoReflect() protoreflect.Message
func (*GetStatusResponse) Reset ¶
func (x *GetStatusResponse) Reset()
func (*GetStatusResponse) String ¶
func (x *GetStatusResponse) String() string
type Image ¶
type Image struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type RegisterJobRequest ¶
type RegisterJobRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Task []*Task `protobuf:"bytes,2,rep,name=task,proto3" json:"task,omitempty"` // contains filtered or unexported fields }
func (*RegisterJobRequest) Descriptor
deprecated
func (*RegisterJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterJobRequest.ProtoReflect.Descriptor instead.
func (*RegisterJobRequest) GetName ¶
func (x *RegisterJobRequest) GetName() string
func (*RegisterJobRequest) GetTask ¶
func (x *RegisterJobRequest) GetTask() []*Task
func (*RegisterJobRequest) ProtoMessage ¶
func (*RegisterJobRequest) ProtoMessage()
func (*RegisterJobRequest) ProtoReflect ¶
func (x *RegisterJobRequest) ProtoReflect() protoreflect.Message
func (*RegisterJobRequest) Reset ¶
func (x *RegisterJobRequest) Reset()
func (*RegisterJobRequest) String ¶
func (x *RegisterJobRequest) String() string
type RegisterJobResponse ¶
type RegisterJobResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*RegisterJobResponse) Descriptor
deprecated
func (*RegisterJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterJobResponse.ProtoReflect.Descriptor instead.
func (*RegisterJobResponse) GetId ¶
func (x *RegisterJobResponse) GetId() string
func (*RegisterJobResponse) GetName ¶
func (x *RegisterJobResponse) GetName() string
func (*RegisterJobResponse) ProtoMessage ¶
func (*RegisterJobResponse) ProtoMessage()
func (*RegisterJobResponse) ProtoReflect ¶
func (x *RegisterJobResponse) ProtoReflect() protoreflect.Message
func (*RegisterJobResponse) Reset ¶
func (x *RegisterJobResponse) Reset()
func (*RegisterJobResponse) String ¶
func (x *RegisterJobResponse) String() string
type Task ¶
type Task struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Image *Image `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*Task) Descriptor
deprecated
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type UnimplementedClientServer ¶
type UnimplementedClientServer struct { }
UnimplementedClientServer must be embedded to have forward compatible implementations.
func (UnimplementedClientServer) GetJob ¶
func (UnimplementedClientServer) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error)
func (UnimplementedClientServer) GetJobList ¶
func (UnimplementedClientServer) GetJobList(context.Context, *GetJobListRequest) (*GetJobListResponse, error)
func (UnimplementedClientServer) GetStatus ¶
func (UnimplementedClientServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
func (UnimplementedClientServer) RegisterJob ¶
func (UnimplementedClientServer) RegisterJob(context.Context, *RegisterJobRequest) (*RegisterJobResponse, error)
type UnsafeClientServer ¶
type UnsafeClientServer interface {
// contains filtered or unexported methods
}
UnsafeClientServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientServer will result in compilation errors.