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) AcquireWorkerEpoch(ctx context.Context, req *ateapi.AcquireWorkerEpochRequest) (*ateapi.AcquireWorkerEpochResponse, error)
- func (s *Server) MintWorkerActorCertificate(ctx context.Context, req *ateapi.MintWorkerActorCertificateRequest) (*ateapi.MintWorkerActorCertificateResponse, error)
- func (s *Server) MintWorkerActorJwt(ctx context.Context, req *ateapi.MintWorkerActorJwtRequest) (*ateapi.MintWorkerActorJwtResponse, error)
- func (s *Server) RegisterWorker(ctx context.Context, req *ateapi.RegisterWorkerRequest) (*ateapi.RegisterWorkerResponse, error)
- func (s *Server) ReportActorCrashed(ctx context.Context, req *ateapi.ReportActorCrashedRequest) (*ateapi.ReportActorCrashedResponse, error)
- func (s *Server) ReportActorSnapshotState(ctx context.Context, req *ateapi.ReportActorSnapshotStateRequest) (*ateapi.ReportActorSnapshotStateResponse, error)
- func (s *Server) RequestActorSuspend(ctx context.Context, req *ateapi.RequestActorSuspendRequest) (*ateapi.RequestActorSuspendResponse, error)
- func (s *Server) SetWorkerSandboxRuntimes(ctx context.Context, req *ateapi.SetWorkerSandboxRuntimesRequest) (*ateapi.SetWorkerSandboxRuntimesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
ateapi.UnimplementedWorkerServiceServer
// contains filtered or unexported fields
}
Server implements ateapi.WorkerServiceServer.
func (*Server) AcquireWorkerEpoch ¶
func (s *Server) AcquireWorkerEpoch(ctx context.Context, req *ateapi.AcquireWorkerEpochRequest) (*ateapi.AcquireWorkerEpochResponse, error)
AcquireWorkerEpoch hands out the next epoch of a Worker. As with MintCert, the caller must be an atelet running on the Worker's node.
func (*Server) MintWorkerActorCertificate ¶
func (s *Server) MintWorkerActorCertificate(ctx context.Context, req *ateapi.MintWorkerActorCertificateRequest) (*ateapi.MintWorkerActorCertificateResponse, error)
MintWorkerActorCertificate mints a Substrate-issued SPIFFE certificate that asserts a worker acting on behalf of a particular actor.
func (*Server) MintWorkerActorJwt ¶
func (s *Server) MintWorkerActorJwt(ctx context.Context, req *ateapi.MintWorkerActorJwtRequest) (*ateapi.MintWorkerActorJwtResponse, error)
func (*Server) RegisterWorker ¶
func (s *Server) RegisterWorker(ctx context.Context, req *ateapi.RegisterWorkerRequest) (*ateapi.RegisterWorkerResponse, error)
RegisterWorker activates the epoch a worker process acquired and records its pod IPs and capacity in one write. As with MintCert, the caller must be an atelet running on the Worker's node.
func (*Server) ReportActorCrashed ¶
func (s *Server) ReportActorCrashed(ctx context.Context, req *ateapi.ReportActorCrashedRequest) (*ateapi.ReportActorCrashedResponse, error)
ReportActorCrashed crashes a RUNNING Actor whose sandbox died, on behalf of the Worker hosting it. The caller must be an atelet running on the Worker's node.
func (*Server) ReportActorSnapshotState ¶
func (s *Server) ReportActorSnapshotState(ctx context.Context, req *ateapi.ReportActorSnapshotStateRequest) (*ateapi.ReportActorSnapshotStateResponse, error)
ReportActorSnapshotState records the snapshot state that the calling atelet reports for an Actor on its node.
func (*Server) RequestActorSuspend ¶
func (s *Server) RequestActorSuspend(ctx context.Context, req *ateapi.RequestActorSuspendRequest) (*ateapi.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) SetWorkerSandboxRuntimes ¶
func (s *Server) SetWorkerSandboxRuntimes(ctx context.Context, req *ateapi.SetWorkerSandboxRuntimesRequest) (*ateapi.SetWorkerSandboxRuntimesResponse, error)
SetWorkerSandboxRuntimes records the sandbox classes and runtimes of the registered worker process. As with MintCert, the caller must be an atelet running on the Worker's node.