system

package
v0.0.0-...-42d3301 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ATEClient

type ATEClient interface {
	ListActors(context.Context, string) ([]*ateapipb.Actor, error)
	ListWorkers(context.Context) ([]*ateapipb.Worker, error)
	ListActorTemplates(context.Context, string) ([]*ateapipb.ActorTemplate, error)
}

type Namespace

type Namespace struct {
	Name   string
	Status string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	kubeClient client.Client,
	observedNamespaces []string,
	authorizer auth.Authorizer,
	ateClient ATEClient,
	revisions runtimeRevisionStore,
) *Service

func (*Service) GetCurrentUser

func (s *Service) GetCurrentUser(ctx context.Context) (map[string]any, error)

func (*Service) GetSubstrateStatus

func (s *Service) GetSubstrateStatus(ctx context.Context, requestedNamespace string) (SubstrateStatus, error)

func (*Service) GetVersion

func (s *Service) GetVersion() Version

func (*Service) ListNamespaces

func (s *Service) ListNamespaces(ctx context.Context) ([]Namespace, error)

type SubstrateActor

type SubstrateActor struct {
	ActorID                string
	Atespace               string
	Status                 string
	ActorTemplateNamespace string
	ActorTemplateName      string
	AteomPodNamespace      string
	AteomPodName           string
	AteomPodIP             string
	LatestSnapshot         string
	WorkerPoolName         string
	InProgressSnapshot     string
	Version                int64
}

type SubstrateActorTemplate

type SubstrateActorTemplate struct {
	Namespace       string
	Name            string
	Phase           string
	GoldenActorID   string
	GoldenSnapshot  string
	SandboxClass    string
	WorkerSelector  string
	HarnessName     string
	ManagedByKagent bool
}

type SubstrateStatus

type SubstrateStatus struct {
	Enabled        bool
	ATEAPIError    string
	WorkerPools    []SubstrateWorkerPool
	ActorTemplates []SubstrateActorTemplate
	Actors         []SubstrateActor
	Workers        []SubstrateWorker
}

type SubstrateWorker

type SubstrateWorker struct {
	WorkerNamespace string
	WorkerPool      string
	WorkerPod       string
	ActorNamespace  string
	ActorTemplate   string
	ActorID         string
	IP              string
	Version         int64
}

type SubstrateWorkerPool

type SubstrateWorkerPool struct {
	Namespace  string
	Name       string
	Replicas   int32
	AteomImage string
}

type Version

type Version struct {
	KAgentVersion string
	GitCommit     string
	BuildDate     string
}

Jump to

Keyboard shortcuts

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