meta

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Annotation AnnotationType
	Label      LabelType
)

Functions

This section is empty.

Types

type AnnotationType

type AnnotationType struct {
	// ConfigVersion is standard "config.giantswarm.io/version" annotation.
	ConfigVersion
	// XAppInfo is set on generated ConfigMap and Secret to show what App
	// they were generated for.
	XAppInfo
	// XCreator is used in the CLI mode. The value is OS username. It is
	// set on generated ConfigMap and Secret.
	XCreator
	// XInstallation s set on generated ConfigMap and Secret to show what
	// installation they were generated for.
	XInstallation
	// XObjectHash is set on objects managed by the controllers. It is used
	// to determine whether the managed object needs update.
	XObjectHash
	// XPreviousConfig is set on Config CRs to allow orphaned ConfigMap and
	// Secret cleanup.
	XPreviousConfig
	// XProjectVersion is set on generated ConfigMap and Secret to show what
	// version of config-controller was used to generate them.
	XProjectVersion
}

type ConfigVersion

type ConfigVersion struct{}

func (ConfigVersion) Key

func (ConfigVersion) Key() string

type LabelType

type LabelType struct {
	// ManagedBy is standard "giantswarm.io/managed-by" label.
	ManagedBy
	// Version is standard "config-controller.giantswarm.io/version" label.
	Version
}

type ManagedBy

type ManagedBy struct{}

func (ManagedBy) Default

func (ManagedBy) Default() string

func (ManagedBy) Key

func (ManagedBy) Key() string

type Object

type Object interface {
	GetAnnotations() map[string]string
	SetAnnotations(map[string]string)

	GetLabels() map[string]string
	SetLabels(map[string]string)
}

type Version

type Version struct{}

func (Version) Key

func (Version) Key() string

func (Version) Selector

func (Version) Selector(uniqueApp bool) (labels.Selector, error)

func (Version) Val

func (Version) Val(uniqueApp bool) string

type XAppInfo

type XAppInfo struct{}

func (XAppInfo) Key

func (XAppInfo) Key() string

func (XAppInfo) Val

func (XAppInfo) Val(catalog, app, version string) string

func (XAppInfo) ValFromConfig

func (XAppInfo) ValFromConfig(c *v1alpha1.Config) string

type XCreator

type XCreator struct{}

func (XCreator) Default

func (XCreator) Default() string

func (XCreator) Key

func (XCreator) Key() string

type XInstallation

type XInstallation struct{}

func (XInstallation) Key

func (XInstallation) Key() string

type XObjectHash

type XObjectHash struct{}

func (XObjectHash) Key

func (XObjectHash) Key() string

type XPreviousConfig

type XPreviousConfig struct{}

func (XPreviousConfig) Get

func (XPreviousConfig) Key

func (XPreviousConfig) Key() string

func (XPreviousConfig) Set

type XProjectVersion

type XProjectVersion struct{}

func (XProjectVersion) Key

func (XProjectVersion) Key() string

func (XProjectVersion) Val

func (XProjectVersion) Val(unique bool) string

Jump to

Keyboard shortcuts

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