Documentation ¶
Index ¶
- func K8sMap(l Labels) (map[string]string, error)
- func MustForNameK8SMap(l *Component, name string) map[string]string
- func MustK8sMap(l Labels) map[string]string
- type API
- type Component
- type IDLabels
- type InternalAPI
- type InternalComponent
- type InternalComponentProp
- type InternalManagedByProp
- type InternalName
- type InternalNameProp
- type InternalOperator
- type InternalPartofProp
- type InternalSelectable
- type InternalSelectableProp
- type InternalSelector
- type Labels
- type Name
- type Operator
- type Selectable
- type Selector
- func DeriveComponentSelector(l *Component, open bool) *Selector
- func DeriveNameSelector(l *Name, open bool) *Selector
- func OpenComponentSelector(product string, component string) *Selector
- func OpenOperatorSelector(product string, component string) *Selector
- func SelectorFrom(arbitrary map[string]string) (*Selector, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustK8sMap ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func GetAPIFromComponent ¶
func MustForAPI ¶
func MustReplaceAPI ¶
func (*API) MarshalYAML ¶
func (*API) UnmarshalYAML ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func MustForComponent ¶
func MustReplaceComponent ¶
func (*Component) MarshalYAML ¶
func (*Component) UnmarshalYAML ¶
type InternalAPI ¶
type InternalAPI struct { Kind string `yaml:"caos.ch/kind"` ApiVersion string `yaml:"caos.ch/apiversion"` InternalOperator `yaml:",inline"` }
type InternalComponent ¶
type InternalComponent struct { InternalComponentProp `yaml:",inline"` InternalAPI `yaml:",inline"` }
type InternalComponentProp ¶
type InternalComponentProp struct {
Component string `yaml:"app.kubernetes.io/component"`
}
type InternalManagedByProp ¶
type InternalManagedByProp struct {
ManagedBy string `yaml:"app.kubernetes.io/managed-by,omitempty"`
}
type InternalName ¶
type InternalName struct { InternalNameProp `yaml:",inline"` InternalComponent `yaml:",inline"` }
type InternalNameProp ¶
type InternalNameProp struct {
Name string `yaml:"app.kubernetes.io/name,omitempty"`
}
type InternalOperator ¶
type InternalOperator struct { InternalManagedByProp `yaml:",inline"` Version string `yaml:"app.kubernetes.io/version"` // Major string `yaml:"caos.ch/major"` InternalPartofProp `yaml:",inline"` }
type InternalPartofProp ¶
type InternalPartofProp struct {
PartOf string `yaml:"app.kubernetes.io/part-of,omitempty"`
}
type InternalSelectable ¶
type InternalSelectable struct { InternalSelectableProp `yaml:",inline"` InternalName `yaml:",inline"` }
type InternalSelectableProp ¶
type InternalSelectableProp struct {
Selectable string `yaml:"orbos.ch/selectable"`
}
type InternalSelector ¶
type InternalSelector struct { InternalSelectableProp `yaml:",inline"` InternalNameProp `yaml:",inline"` InternalComponentProp `yaml:",inline"` InternalManagedByProp `yaml:",inline"` InternalPartofProp `yaml:",inline"` }
type Labels ¶
type Labels interface {
yaml.Marshaler
yaml.Unmarshaler
// contains filtered or unexported methods
}
type Name ¶
type Name struct {
// contains filtered or unexported fields
}
func MustForName ¶
func (*Name) MarshalYAML ¶
func (*Name) UnmarshalYAML ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
func ForOperator ¶
func MustForOperator ¶
func NoopOperator ¶
func SelectorOperator ¶
func (*Operator) MarshalYAML ¶
func (*Operator) UnmarshalYAML ¶
type Selectable ¶
type Selectable struct {
// contains filtered or unexported fields
}
func AsSelectable ¶
func AsSelectable(l *Name) *Selectable
func (*Selectable) Equal ¶
func (l *Selectable) Equal(r comparable) bool
func (*Selectable) MarshalYAML ¶
func (l *Selectable) MarshalYAML() (interface{}, error)
func (*Selectable) Name ¶
func (l *Selectable) Name() string
func (*Selectable) UnmarshalYAML ¶
func (l *Selectable) UnmarshalYAML(node *yaml.Node) error
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
func DeriveComponentSelector ¶
func DeriveNameSelector ¶
func OpenComponentSelector ¶
func OpenOperatorSelector ¶
func (*Selector) MarshalYAML ¶
func (*Selector) UnmarshalYAML ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.