model

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinPath

func JoinPath(basePath, sub string) string

JoinPath joins the UI base path with a sub-path (which must start with "/"), avoiding a duplicate leading slash that would produce a protocol-relative URL.

Types

type BadgeState

type BadgeState string

BadgeState is the visual state of a status badge.

const (
	BadgeOK      BadgeState = "ok"
	BadgeWarn    BadgeState = "warn"
	BadgeError   BadgeState = "error"
	BadgePending BadgeState = "pending"
	BadgeUnknown BadgeState = "unknown"
)

type ClusterDetail

type ClusterDetail struct {
	ClusterSummary
	Conditions  []ConditionRow
	Services    []ServiceRow
	Persistence PersistenceInfo
	Endpoints   EndpointsInfo
	Upgrade     UpgradeInfo
	Related     []RelatedResource
}

ClusterDetail is the full per-cluster view.

type ClusterSummary

type ClusterSummary struct {
	Namespace   string
	Name        string
	Version     string
	Shards      int32
	Phase       string
	Ready       BadgeState
	Persistence BadgeState
	MTLSEnabled bool
	MTLS        BadgeState
	Upgrading   bool
	Age         string
}

ClusterSummary is one row/card on the overview.

type ConditionRow

type ConditionRow struct {
	Type    string
	Status  string
	Reason  string
	Message string
	State   BadgeState
}

ConditionRow is one status condition.

type EndpointsInfo

type EndpointsInfo struct {
	Frontend string
	UI       string
	Metrics  string
}

EndpointsInfo holds resolved endpoints.

func (EndpointsInfo) HasAny added in v0.8.0

func (e EndpointsInfo) HasAny() bool

HasAny reports whether at least one endpoint is set.

type PersistenceInfo

type PersistenceInfo struct {
	Reachable   BadgeState
	SchemaReady BadgeState
}

PersistenceInfo summarizes datastore state.

type RelatedResource

type RelatedResource struct {
	Kind   string
	Name   string
	Ready  BadgeState
	Detail string
}

RelatedResource is a satellite CRD tied to a cluster.

type ServiceRow

type ServiceRow struct {
	Name    string
	Ready   int32
	Desired int32
	Version string
	State   BadgeState
}

ServiceRow reports readiness of one Temporal service.

type UpgradeInfo

type UpgradeInfo struct {
	Active       bool
	FromVersion  string
	ToVersion    string
	Phase        string
	Rollbackable bool
}

UpgradeInfo describes an in-flight upgrade.

Jump to

Keyboard shortcuts

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