Documentation
¶
Overview ¶
Package domain defines core business types and category enums for the toolkit application.
Index ¶
- Variables
- type Category
- func (e Category) Aliases() []string
- func (e Category) Definition() Category
- func (e Category) FilterableFields() []string
- func (e Category) GetName() string
- func (e Category) IsFaulty() bool
- func (e Category) IsScope() bool
- func (e Category) IsScopeOf(o Category) bool
- func (e Category) NeedsKubeConfig() bool
- func (e Category) ScopedCategories() []Category
- func (i Category) String() string
- type Scope
Constants ¶
This section is empty.
Variables ¶
var ( // Aliases contains all known aliases for categories. Aliases []string // Categories contains all defined categories. Categories []Category )
var ErrUnknownCategory = errors.New("unknown category")
ErrUnknownCategory is returned when a string cannot be parsed into a known Category.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category int
Category represents a logical grouping for toolkit data.
const ( // CategoryUnknown is the zero value for Category. CategoryUnknown Category = iota // Tenant is a category for tenant-level data. Tenant // LimitDefinition is a category for limit definitions. LimitDefinition // ConsolePropertyDefinition is a category for console property definitions. ConsolePropertyDefinition // PropertyDefinition is a category for property definitions. PropertyDefinition // LimitTenancyOverride is a category for limit tenancy overrides. LimitTenancyOverride // ConsolePropertyTenancyOverride is a category for console property tenancy overrides. ConsolePropertyTenancyOverride // PropertyTenancyOverride is a category for property tenancy overrides. PropertyTenancyOverride // LimitRegionalOverride is a category for limit regional overrides. LimitRegionalOverride // ConsolePropertyRegionalOverride is a category for console property regional overrides. ConsolePropertyRegionalOverride // PropertyRegionalOverride is a category for property regional overrides. PropertyRegionalOverride // BaseModel is a category for base models. BaseModel // ImportedModel is a category for tenant-imported models — // either a namespaced ome.io BaseModel CR or a ClusterBaseModel // CR carrying a `tenancy-id` label. Complementary to BaseModel, // which is the shared / public catalog. ImportedModel // ModelArtifact is a category for model artifacts. ModelArtifact // Environment is a category for environments. Environment // ServiceTenancy is a category for service tenancies. ServiceTenancy // GPUPool is a category for GPU pools. GPUPool // GPUNode is a category for GPU nodes. GPUNode // DedicatedAICluster is a category for dedicated AI clusters. DedicatedAICluster // Alias is a category for reporting all aliases. Alias )
func ParseCategory ¶
ParseCategory parses a string (case-insensitive, with common aliases) into a Category enum.
func (Category) Definition ¶
Definition returns the definition category for the receiver.
func (Category) FilterableFields ¶ added in v0.6.0
FilterableFields returns the filterable fields for the Category.
func (Category) IsFaulty ¶ added in v0.1.4
IsFaulty always returns false. Category exists in the Filterable interface set but has no faulty notion of its own; the method is here only so Category satisfies models.Filterable alongside the real domain types.
func (Category) IsScopeOf ¶
IsScopeOf returns true if the receiver is a scope of the given category.
func (Category) NeedsKubeConfig ¶ added in v0.2.0
NeedsKubeConfig reports whether loading this category requires a kubeconfig. These categories are sourced from a live cluster; the rest come from the on-disk repo.
func (Category) ScopedCategories ¶
ScopedCategories returns the categories that are scoped by the receiver.
type Scope ¶ added in v0.6.0
Scope is a (Category, Name) pair identifying a parent under which child rows are listed — e.g. Scope{Tenant, "MyTenant"} selects the DACs / ImportedModels owned by that tenant. Used by the TUI's table renderer to filter grouped categories and by the CLI to resolve --filter / --context flags.