Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (in *ConfigurationDistributionRule) DeepCopyInto(out *ConfigurationDistributionRule)
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 ¶
type RuleInterface interface { List(opts metav1.ListOptions) (*ConfigurationDistributionRuleList, error) Get(name string, opts metav1.GetOptions) (*ConfigurationDistributionRule, error) Create(copier *ConfigurationDistributionRule, opts metav1.CreateOptions) (*ConfigurationDistributionRule, error) Watch(opts metav1.ListOptions) (watch.Interface, error) }
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.