typeconfig

package
Version: v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 44

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTypeConfigName added in v0.0.4

func CheckTypeConfigName(typeConfig Interface) error

CheckTypeConfigName checks that the name of the type config is '<target plural name>[.<target group name>]'.

func GroupQualifiedName added in v0.0.4

func GroupQualifiedName(apiResource metav1.APIResource) string

GroupQualifiedName returns the plural name of the api resource optionally qualified by its group:

'<target plural name>[.<target group name>]'

This is the naming scheme for FederatedTypeConfig resources. The scheme ensures that, for a given federation control plane, federation of a target type will be configured by at most one FederatedTypeConfig.

Types

type Interface

type Interface interface {
	GetObjectMeta() metav1.ObjectMeta
	GetTarget() metav1.APIResource
	GetNamespaced() bool
	GetPropagationEnabled() bool
	GetFederatedType() metav1.APIResource
	GetStatus() *metav1.APIResource
	GetEnableStatus() bool
	GetFederatedNamespaced() bool
	IsNamespace() bool
}

Interface defines how to interact with a FederatedTypeConfig

Jump to

Keyboard shortcuts

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