workerservice

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package workerservice serves the RPCs a Worker uses to tell the control plane about itself and what it observes.

Index

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 New

func New(store store.Interface, control actorControl, ateletSPIFFEID string, actorIDCAPool localca.Pool, actorJWTIssuer string, actorIDJWTPool localjwtauthority.Pool) *Server

func (*Server) AcquireWorkerEpoch

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

MintWorkerActorCertificate mints a Substrate-issued SPIFFE certificate that asserts a worker acting on behalf of a particular actor.

func (*Server) RegisterWorker

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

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

ReportActorSnapshotState records the snapshot state that the calling atelet reports for an Actor on its node.

func (*Server) RequestActorSuspend

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

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.

Jump to

Keyboard shortcuts

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