Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCSAServiceServer(s grpc.ServiceRegistrar, srv CSAServiceServer)
- type CSAServiceClient
- type CSAServiceServer
- type GetKeypairRequest
- type GetKeypairResponse
- func (*GetKeypairResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeypairResponse) GetKeypair() *Keypair
- func (*GetKeypairResponse) ProtoMessage()
- func (x *GetKeypairResponse) ProtoReflect() protoreflect.Message
- func (x *GetKeypairResponse) Reset()
- func (x *GetKeypairResponse) String() string
- type Keypair
- func (*Keypair) Descriptor() ([]byte, []int)deprecated
- func (x *Keypair) GetCreatedAt() *timestamppb.Timestamp
- func (x *Keypair) GetId() int64
- func (x *Keypair) GetPublicKey() string
- func (*Keypair) ProtoMessage()
- func (x *Keypair) ProtoReflect() protoreflect.Message
- func (x *Keypair) Reset()
- func (x *Keypair) String() string
- type ListKeypairsRequest
- type ListKeypairsResponse
- func (*ListKeypairsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeypairsResponse) GetKeypairs() []*Keypair
- func (*ListKeypairsResponse) ProtoMessage()
- func (x *ListKeypairsResponse) ProtoReflect() protoreflect.Message
- func (x *ListKeypairsResponse) Reset()
- func (x *ListKeypairsResponse) String() string
- type UnimplementedCSAServiceServer
- type UnsafeCSAServiceServer
Constants ¶
const ( CSAService_GetKeypair_FullMethodName = "/api.csa.v1.CSAService/GetKeypair" CSAService_ListKeypairs_FullMethodName = "/api.csa.v1.CSAService/ListKeypairs" )
Variables ¶
var CSAService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.csa.v1.CSAService", HandlerType: (*CSAServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetKeypair", Handler: _CSAService_GetKeypair_Handler, }, { MethodName: "ListKeypairs", Handler: _CSAService_ListKeypairs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "job-distributor/v1/csa/csa.proto", }
CSAService_ServiceDesc is the grpc.ServiceDesc for CSAService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_job_distributor_v1_csa_csa_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCSAServiceServer ¶
func RegisterCSAServiceServer(s grpc.ServiceRegistrar, srv CSAServiceServer)
Types ¶
type CSAServiceClient ¶
type CSAServiceClient interface { // GetKeypair retrieves the active CSA Keypair used to authenticate node connections. GetKeypair(ctx context.Context, in *GetKeypairRequest, opts ...grpc.CallOption) (*GetKeypairResponse, error) // ListKeypairs returns a list of all CSA Keypairs. ListKeypairs(ctx context.Context, in *ListKeypairsRequest, opts ...grpc.CallOption) (*ListKeypairsResponse, error) }
CSAServiceClient is the client API for CSAService 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 NewCSAServiceClient ¶
func NewCSAServiceClient(cc grpc.ClientConnInterface) CSAServiceClient
type CSAServiceServer ¶
type CSAServiceServer interface { // GetKeypair retrieves the active CSA Keypair used to authenticate node connections. GetKeypair(context.Context, *GetKeypairRequest) (*GetKeypairResponse, error) // ListKeypairs returns a list of all CSA Keypairs. ListKeypairs(context.Context, *ListKeypairsRequest) (*ListKeypairsResponse, error) // contains filtered or unexported methods }
CSAServiceServer is the server API for CSAService service. All implementations must embed UnimplementedCSAServiceServer for forward compatibility.
type GetKeypairRequest ¶
type GetKeypairRequest struct {
// contains filtered or unexported fields
}
func (*GetKeypairRequest) Descriptor
deprecated
func (*GetKeypairRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeypairRequest.ProtoReflect.Descriptor instead.
func (*GetKeypairRequest) ProtoMessage ¶
func (*GetKeypairRequest) ProtoMessage()
func (*GetKeypairRequest) ProtoReflect ¶
func (x *GetKeypairRequest) ProtoReflect() protoreflect.Message
func (*GetKeypairRequest) Reset ¶
func (x *GetKeypairRequest) Reset()
func (*GetKeypairRequest) String ¶
func (x *GetKeypairRequest) String() string
type GetKeypairResponse ¶
type GetKeypairResponse struct { Keypair *Keypair `protobuf:"bytes,1,opt,name=keypair,proto3" json:"keypair,omitempty"` // contains filtered or unexported fields }
func (*GetKeypairResponse) Descriptor
deprecated
func (*GetKeypairResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetKeypairResponse.ProtoReflect.Descriptor instead.
func (*GetKeypairResponse) GetKeypair ¶
func (x *GetKeypairResponse) GetKeypair() *Keypair
func (*GetKeypairResponse) ProtoMessage ¶
func (*GetKeypairResponse) ProtoMessage()
func (*GetKeypairResponse) ProtoReflect ¶
func (x *GetKeypairResponse) ProtoReflect() protoreflect.Message
func (*GetKeypairResponse) Reset ¶
func (x *GetKeypairResponse) Reset()
func (*GetKeypairResponse) String ¶
func (x *GetKeypairResponse) String() string
type Keypair ¶
type Keypair struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Keypair) Descriptor
deprecated
func (*Keypair) GetCreatedAt ¶
func (x *Keypair) GetCreatedAt() *timestamppb.Timestamp
func (*Keypair) GetPublicKey ¶
func (*Keypair) ProtoMessage ¶
func (*Keypair) ProtoMessage()
func (*Keypair) ProtoReflect ¶
func (x *Keypair) ProtoReflect() protoreflect.Message
type ListKeypairsRequest ¶
type ListKeypairsRequest struct {
// contains filtered or unexported fields
}
func (*ListKeypairsRequest) Descriptor
deprecated
func (*ListKeypairsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListKeypairsRequest.ProtoReflect.Descriptor instead.
func (*ListKeypairsRequest) ProtoMessage ¶
func (*ListKeypairsRequest) ProtoMessage()
func (*ListKeypairsRequest) ProtoReflect ¶
func (x *ListKeypairsRequest) ProtoReflect() protoreflect.Message
func (*ListKeypairsRequest) Reset ¶
func (x *ListKeypairsRequest) Reset()
func (*ListKeypairsRequest) String ¶
func (x *ListKeypairsRequest) String() string
type ListKeypairsResponse ¶
type ListKeypairsResponse struct { Keypairs []*Keypair `protobuf:"bytes,1,rep,name=keypairs,proto3" json:"keypairs,omitempty"` // contains filtered or unexported fields }
func (*ListKeypairsResponse) Descriptor
deprecated
func (*ListKeypairsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListKeypairsResponse.ProtoReflect.Descriptor instead.
func (*ListKeypairsResponse) GetKeypairs ¶
func (x *ListKeypairsResponse) GetKeypairs() []*Keypair
func (*ListKeypairsResponse) ProtoMessage ¶
func (*ListKeypairsResponse) ProtoMessage()
func (*ListKeypairsResponse) ProtoReflect ¶
func (x *ListKeypairsResponse) ProtoReflect() protoreflect.Message
func (*ListKeypairsResponse) Reset ¶
func (x *ListKeypairsResponse) Reset()
func (*ListKeypairsResponse) String ¶
func (x *ListKeypairsResponse) String() string
type UnimplementedCSAServiceServer ¶
type UnimplementedCSAServiceServer struct{}
UnimplementedCSAServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCSAServiceServer) GetKeypair ¶
func (UnimplementedCSAServiceServer) GetKeypair(context.Context, *GetKeypairRequest) (*GetKeypairResponse, error)
func (UnimplementedCSAServiceServer) ListKeypairs ¶
func (UnimplementedCSAServiceServer) ListKeypairs(context.Context, *ListKeypairsRequest) (*ListKeypairsResponse, error)
type UnsafeCSAServiceServer ¶
type UnsafeCSAServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCSAServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CSAServiceServer will result in compilation errors.