Documentation
¶
Overview ¶
Package workerservice serves the RPCs a Worker uses to tell the control plane about itself and what it observes.
Index ¶
- type Server
- func (s *Server) MintAteomActorCertificate(ctx context.Context, req *ateapipb.MintAteomActorCertificateRequest) (*ateapipb.MintAteomActorCertificateResponse, error)
- func (s *Server) RequestActorSuspend(ctx context.Context, req *ateapipb.RequestActorSuspendRequest) (*ateapipb.RequestActorSuspendResponse, error)
- func (s *Server) SetWorkerCapacity(ctx context.Context, req *ateapipb.SetWorkerCapacityRequest) (*ateapipb.SetWorkerCapacityResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
ateapipb.UnimplementedWorkerServiceServer
// contains filtered or unexported fields
}
Server implements ateapipb.WorkerServiceServer.
func (*Server) MintAteomActorCertificate ¶ added in v0.2.0
func (s *Server) MintAteomActorCertificate(ctx context.Context, req *ateapipb.MintAteomActorCertificateRequest) (*ateapipb.MintAteomActorCertificateResponse, error)
MintAteomActorCertificate mints a Substrate-issued SPIFFE certificate that asserts an ateom acting on behalf of a particular actor.
func (*Server) RequestActorSuspend ¶ added in v0.2.0
func (s *Server) RequestActorSuspend(ctx context.Context, req *ateapipb.RequestActorSuspendRequest) (*ateapipb.RequestActorSuspendResponse, error)
RequestActorSuspend suspends an Actor on behalf of the Worker hosting it. The caller must be an atelet running on the Worker's node.
func (*Server) SetWorkerCapacity ¶
func (s *Server) SetWorkerCapacity(ctx context.Context, req *ateapipb.SetWorkerCapacityRequest) (*ateapipb.SetWorkerCapacityResponse, error)
SetWorkerCapacity records a Worker's reported capacity. As with MintCert, the caller must be an atelet running on the Worker's node.
Click to show internal directories.
Click to hide internal directories.