server

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlreadyExists

func AlreadyExists(resource string) error

func InvalidPageToken

func InvalidPageToken(err error) error

func NotFound

func NotFound(resource string) error

func PermissionDenied

func PermissionDenied() error

Types

type AlreadyExistsError

type AlreadyExistsError struct {
	Resource string
}

func (*AlreadyExistsError) Error

func (e *AlreadyExistsError) Error() string

type InvalidPageTokenError

type InvalidPageTokenError struct {
	Err error
}

func (*InvalidPageTokenError) Error

func (e *InvalidPageTokenError) Error() string

func (*InvalidPageTokenError) Unwrap

func (e *InvalidPageTokenError) Unwrap() error

type NotFoundError

type NotFoundError struct {
	Resource string
}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type Options

type Options struct {
	Pool                 dbPool
	IdentityClient       identityv1.IdentityServiceClient
	AuthorizationClient  authorizationv1.AuthorizationServiceClient
	AgentsClient         agentsClient
	ZitiManagementClient zitimanagementv1.ZitiManagementServiceClient
	NotificationsClient  notificationsv1.NotificationsServiceClient
	ZitiDialer           ZitiDialer
}

Options defines required inputs for constructing a Server.

type PermissionDeniedError

type PermissionDeniedError struct{}

func (*PermissionDeniedError) Error

func (e *PermissionDeniedError) Error() string

type Server

type Server struct {
	runnersv1.UnimplementedRunnersServiceServer
	// contains filtered or unexported fields
}

Server implements the RunnersService gRPC API.

func New

func New(options Options) *Server

New constructs a RunnersService server.

func (*Server) CreateVolume

func (*Server) DeleteRunner

func (*Server) EnrollRunner

func (*Server) GetRunner

func (*Server) GetVolume

GetVolume reads one volume on the same terms the list RPCs read many: an identified caller must be allowed to view its organization's volumes, while an internal caller holds no identity and is served. Requiring one here left the Orchestrator, which strips its identity for exactly these reads, unable to inspect a volume record it had just been told already exists -- so every retried start failed on the read rather than the write.

func (*Server) GetWorkload

func (*Server) ListFlavors added in v0.5.13

ListFlavors returns catalog entries, optionally narrowed to one runner. Deprecated entries are hidden unless asked for: they still resolve and schedule, but pickers should steer new references away from them.

func (*Server) ListRunners

func (*Server) ListStorageClasses added in v0.5.13

ListStorageClasses mirrors ListFlavors for the storage half of the catalog.

func (*Server) ListVolumes

func (*Server) ListVolumesByAgentInstance added in v0.5.13

func (*Server) ListWorkloadsByAgentInstance added in v0.5.13

func (*Server) ReportRunnerCatalog added in v0.5.13

ReportRunnerCatalog replaces a runner's stored catalog with the reported state. The report is declarative and validated as a whole: any violation rejects it entirely and leaves the previously stored catalog in place, so a runner rolling out a bad configuration cannot half-apply it and strand the environments that reference the old entries.

func (*Server) RunWorkloadActivitySweep

func (s *Server) RunWorkloadActivitySweep(ctx context.Context, interval, keepaliveGrace time.Duration)

func (*Server) UpdateRunner

func (*Server) UpdateVolume

type ZitiDialer

type ZitiDialer interface {
	DialContext(ctx context.Context, service string) (edge.Conn, error)
	NotifyAuthFailure(ctx context.Context)
}

Jump to

Keyboard shortcuts

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