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) RegisterWorker(ctx context.Context, req *ateapipb.RegisterWorkerRequest) (*ateapipb.RegisterWorkerResponse, error)
- func (s *Server) RequestActorSuspend(ctx context.Context, req *ateapipb.RequestActorSuspendRequest) (*ateapipb.RequestActorSuspendResponse, 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) RegisterWorker ¶ added in v0.4.0
func (s *Server) RegisterWorker(ctx context.Context, req *ateapipb.RegisterWorkerRequest) (*ateapipb.RegisterWorkerResponse, error)
RegisterWorker records a Worker's reported capacity and the hardware identity of its node in one write. As with MintCert, the caller must be an atelet running on the Worker's node.
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.
Click to show internal directories.
Click to hide internal directories.