platform

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package platform names the platform a provider runs on and the capabilities it offers. Clients branch on capabilities, never on the platform name (D-016).

Index

Constants

View Source
const (
	// Scope means installs have a namespace scope: the scope tile and filters.
	Scope = "scope"
	// Workloads means controllers and proxies run as Deployments the UI reads:
	// Deployment links and replica wording.
	Workloads = "workloads"
)

Capabilities defined in Phase 1. Only capabilities a client reads are defined.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// Name is for display only, for example "Kubernetes".
	Name string
	// Capabilities is a set of capability names.
	Capabilities []string
}

Info describes a platform.

func Kubernetes

func Kubernetes() Info

Kubernetes is the platform of the Kubernetes provider.

func (Info) Has

func (i Info) Has(c string) bool

Has reports whether the platform offers capability c.

func (Info) IsZero

func (i Info) IsZero() bool

IsZero reports whether i is the zero Info: no name and no capabilities. Defaults treat only the zero Info as Kubernetes, never a name check.

Jump to

Keyboard shortcuts

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