csa

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const (
	CSAService_GetKeypair_FullMethodName   = "/api.csa.v1.CSAService/GetKeypair"
	CSAService_ListKeypairs_FullMethodName = "/api.csa.v1.CSAService/ListKeypairs"
)

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Keypair.ProtoReflect.Descriptor instead.

func (*Keypair) GetCreatedAt

func (x *Keypair) GetCreatedAt() *timestamppb.Timestamp

func (*Keypair) GetId

func (x *Keypair) GetId() int64

func (*Keypair) GetPublicKey

func (x *Keypair) GetPublicKey() string

func (*Keypair) ProtoMessage

func (*Keypair) ProtoMessage()

func (*Keypair) ProtoReflect

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

func (*Keypair) Reset

func (x *Keypair) Reset()

func (*Keypair) String

func (x *Keypair) String() string

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) ListKeypairs

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.

Jump to

Keyboard shortcuts

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