system

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Features

type Features struct {
	DatabaseConsoleEnabled     bool   `json:"database_console_enabled"`
	LogConsoleEnabled          bool   `json:"log_console_enabled"`
	ExternalURL                string `json:"external_url,omitempty"`
	AgentRemediationEnabled    bool   `json:"agent_remediation_enabled"`
	FreshnessEnabled           bool   `json:"freshness_enabled"`
	ContractEnforcementEnabled bool   `json:"contract_enforcement_enabled"`
}

type Node

type Node struct {
	Address      string   `json:"address"`
	Arch         string   `json:"arch"`
	Role         NodeRole `json:"role"`
	WorkersBusy  int      `json:"workers_busy"`
	WorkersTotal int      `json:"workers_total"`
}

type NodeRole

type NodeRole string
const (
	RoleVoter   NodeRole = "voter"
	RoleStandby NodeRole = "standby"
	RoleSpare   NodeRole = "spare"
	RoleWorker  NodeRole = "worker"
	RoleUnknown NodeRole = "unknown"
)

type Service

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

func New

func New(ctx context.Context) *Service

func (*Service) Features

func (s *Service) Features() (*Features, error)

func (*Service) Nodes

func (s *Service) Nodes() ([]Node, error)

Jump to

Keyboard shortcuts

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