Documentation
¶
Index ¶
- Constants
- type Cluster
- type ClusterID
- type ClusterIndex
- func (idx *ClusterIndex) Add(cluster Cluster) ClusterID
- func (idx *ClusterIndex) All() iter.Seq2[ClusterID, Cluster]
- func (idx *ClusterIndex) Cluster(id ClusterID) Cluster
- func (idx *ClusterIndex) Group(ids ...ClusterID) string
- func (idx *ClusterIndex) ID(name string) (ClusterID, error)
- func (idx *ClusterIndex) IDs() []ClusterID
- func (idx *ClusterIndex) Names(ids ...ClusterID) iter.Seq[string]
- type ClusterResources
- type ClusterSelector
- type Env
- type HelmChart
- type HelmGlobals
- type Kustomization
- type Patch
- type PatternSelector
- type Patterns
- type ResourceSelector
- type Selector
- type StrList
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 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) Cluster ¶
func (idx *ClusterIndex) Cluster(id ClusterID) Cluster
func (*ClusterIndex) Group ¶
func (idx *ClusterIndex) Group(ids ...ClusterID) string
func (*ClusterIndex) IDs ¶
func (idx *ClusterIndex) IDs() []ClusterID
type ClusterResources ¶
type ClusterSelector ¶
type ClusterSelector struct {
Names PatternSelector `yaml:"names"`
Tags StrList `yaml:"tags"`
}
func NewClusterSelector ¶
func NewClusterSelector(spec *apis.ClusterSelector) (ClusterSelector, error)
type HelmGlobals ¶
type HelmGlobals = types.HelmGlobals
type Kustomization ¶
type Kustomization = types.Kustomization
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 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)
Click to show internal directories.
Click to hide internal directories.