types

package
v0.0.0-...-80744b8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ComponentKind     = types.ComponentKind
	KustomizationKind = types.KustomizationKind
)
View Source
const ClusterPlaceholder = `${CLUSTER}`

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Name string
	Tags []string
}

type ClusterID

type ClusterID uint32

type ClusterIndex

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

func BuildClusterIndex

func BuildClusterIndex(names []string, groups []ClusterSelector) *ClusterIndex

func NewClusterIndex

func NewClusterIndex() *ClusterIndex

func (*ClusterIndex) Add

func (idx *ClusterIndex) Add(cluster Cluster) ClusterID

func (*ClusterIndex) All

func (idx *ClusterIndex) All() iter.Seq2[ClusterID, Cluster]

func (*ClusterIndex) Cluster

func (idx *ClusterIndex) Cluster(id ClusterID) Cluster

func (*ClusterIndex) Group

func (idx *ClusterIndex) Group(ids ...ClusterID) string

func (*ClusterIndex) ID

func (idx *ClusterIndex) ID(name string) (ClusterID, error)

func (*ClusterIndex) IDs

func (idx *ClusterIndex) IDs() []ClusterID

func (*ClusterIndex) Names

func (idx *ClusterIndex) Names(ids ...ClusterID) iter.Seq[string]

type ClusterResources

type ClusterResources struct {
	Clusters  *ClusterIndex
	Resources map[resid.ResId]map[ClusterID]*yaml.RNode
}

func (*ClusterResources) All

func (res *ClusterResources) All(cluster *ClusterID) iter.Seq2[resid.ResId, *yaml.RNode]

type ClusterSelector

type ClusterSelector struct {
	Names PatternSelector `yaml:"names"`
	Tags  StrList         `yaml:"tags"`
}

func NewClusterSelector

func NewClusterSelector(spec *apis.ClusterSelector) (ClusterSelector, error)

type Env

type Env struct {
	WorkDir string
	Cmd     *kubectl.Cmd
	FileSys filesys.FileSystem
}

type HelmChart

type HelmChart = types.HelmChart

type HelmGlobals

type HelmGlobals = types.HelmGlobals

type Kustomization

type Kustomization = types.Kustomization

type Patch

type Patch = types.Patch

type PatternSelector

type PatternSelector struct {
	Include Patterns `json:"include" yaml:"include"`
	Exclude Patterns `json:"exclude" yaml:"exclude"`
}

func NewPatternSelector

func NewPatternSelector(spec *apis.PatternSelector) (PatternSelector, error)

func (*PatternSelector) Select

func (sel *PatternSelector) Select(names []string) []string

func (*PatternSelector) UnmarshalYAML

func (sel *PatternSelector) UnmarshalYAML(node *yaml.Node) error

type Patterns

type Patterns StrList //nolint:recvcheck

func (Patterns) Match

func (p Patterns) Match(name string) bool

func (*Patterns) UnmarshalYAML

func (p *Patterns) UnmarshalYAML(node *yaml.Node) error

type ResourceSelector

type ResourceSelector struct {
	Names          PatternSelector `yaml:"names"`
	Namespaces     PatternSelector `yaml:"namespaces"`
	Resources      PatternSelector `yaml:"apiResources"`
	LabelSelectors []string        `yaml:"labelSelectors"`
}

func NewResourceSelector

func NewResourceSelector(spec *apis.ResourceMatcher) (ResourceSelector, error)

type Selector

type Selector = types.Selector

type StrList

type StrList []string

func (*StrList) UnmarshalYAML

func (l *StrList) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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