v1alpha1

package
v0.0.0-...-4e750e8 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion describes the CRD.
	SchemeGroupVersion = schema.GroupVersion{Group: groupName, Version: groupVersion}

	// SchemeBuilder creates a scheme builder for the known types.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme points to a function to create the known types.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ConfigurationDistributionRule

type ConfigurationDistributionRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ConfigurationDistributionRuleSpec `json:"spec"`
}

ConfigurationDistributionRule contains the Kubernetes base informations and the spec.

func (*ConfigurationDistributionRule) DeepCopyInto

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (*ConfigurationDistributionRule) DeepCopyObject

func (in *ConfigurationDistributionRule) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of a rule.

type ConfigurationDistributionRuleList

type ConfigurationDistributionRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ConfigurationDistributionRule `json:"items"`
}

ConfigurationDistributionRuleList contains the Kubernetes base informations and a list of copiers.

func (*ConfigurationDistributionRuleList) DeepCopyObject

func (in *ConfigurationDistributionRuleList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of a rule list.

type ConfigurationDistributionRuleSpec

type ConfigurationDistributionRuleSpec struct {
	Mode       string   `json:"mode"`
	Selector   string   `json:"selector"`
	Namespaces []string `json:"namespaces"`
}

ConfigurationDistributionRuleSpec specifies one configuration distribution rule.

type NamespaceableRuleInterface

type NamespaceableRuleInterface interface {
	Namespace(namespace string) RuleInterface
}

NamespaceableRuleInterface defines the interface to access a rule in a namespace.

func NewForConfig

func NewForConfig(config *rest.Config) (NamespaceableRuleInterface, error)

NewForConfig creates a client for accessing the rules in a namespace.

type RuleInformer

type RuleInformer interface {
	Informer() cache.SharedIndexInformer
	Lister() RuleLister
}

RuleInformer provides access to a shared informer and lister for Rules.

func NewRuleInformerWithInterface

func NewRuleInformerWithInterface(rif RuleInterface) RuleInformer

NewRuleInformerWithInterface creates a new rule informer instance based on a given interface.

type RuleInterface

RuleInterface defines the interface to access a rule.

type RuleLister

type RuleLister interface {
	List(selector labels.Selector) ([]*ConfigurationDistributionRule, error)
	Get(name string) (*ConfigurationDistributionRule, error)
}

RuleLister helps list Rules.

Jump to

Keyboard shortcuts

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