labels

package
v1.5.14-0...-e6cd0ce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func K8sMap

func K8sMap(l Labels) (map[string]string, error)

func MustForNameK8SMap

func MustForNameK8SMap(l *Component, name string) map[string]string

func MustK8sMap

func MustK8sMap(l Labels) map[string]string

Types

type API

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

func ForAPI

func ForAPI(l *Operator, kind, version string) (*API, error)

func GetAPIFromComponent

func GetAPIFromComponent(l *Component) *API

func MustForAPI

func MustForAPI(l *Operator, kind, version string) *API

func MustReplaceAPI

func MustReplaceAPI(l *API, kind, version string) *API

func NoopAPI

func NoopAPI(l *Operator) *API

func (*API) Equal

func (l *API) Equal(r comparable) bool

func (*API) MarshalYAML

func (l *API) MarshalYAML() (interface{}, error)

func (*API) UnmarshalYAML

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

type Component

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

func ForComponent

func ForComponent(l *API, component string) (*Component, error)

func MustForComponent

func MustForComponent(l *API, component string) *Component

func MustReplaceComponent

func MustReplaceComponent(l *Component, component string) *Component

func (*Component) Equal

func (l *Component) Equal(r comparable) bool
func (l *Component) Major() int8 {
	return l.base.Major()
}

func (*Component) MarshalYAML

func (l *Component) MarshalYAML() (interface{}, error)

func (*Component) UnmarshalYAML

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

type IDLabels

type IDLabels interface {
	Labels
	Name() string
}

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 ForName

func ForName(l *Component, name string) (*Name, error)

func MustForName

func MustForName(l *Component, name string) *Name

func NameFrom

func NameFrom(arbitrary map[string]string) (*Name, error)

func (*Name) Equal

func (l *Name) Equal(r comparable) bool

func (*Name) MarshalYAML

func (l *Name) MarshalYAML() (interface{}, error)

func (*Name) Name

func (l *Name) Name() string

func (*Name) UnmarshalYAML

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

type Operator

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

func ForOperator

func ForOperator(product, operator, version string) (*Operator, error)

func MustForOperator

func MustForOperator(product, operator, version string) *Operator

func NoopOperator

func NoopOperator(product string) *Operator

func SelectorOperator

func SelectorOperator(product, operator string) *Operator

func (*Operator) Equal

func (l *Operator) Equal(r comparable) bool

func (*Operator) MarshalYAML

func (l *Operator) MarshalYAML() (interface{}, error)

func (*Operator) UnmarshalYAML

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

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 DeriveComponentSelector(l *Component, open bool) *Selector

func DeriveNameSelector

func DeriveNameSelector(l *Name, open bool) *Selector

func OpenComponentSelector

func OpenComponentSelector(product string, component string) *Selector

func OpenOperatorSelector

func OpenOperatorSelector(product string, component string) *Selector

func SelectorFrom

func SelectorFrom(arbitrary map[string]string) (*Selector, error)

func (*Selector) Equal

func (l *Selector) Equal(r comparable) bool

func (*Selector) MarshalYAML

func (l *Selector) MarshalYAML() (interface{}, error)

func (*Selector) UnmarshalYAML

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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