v1alpha2

package
v0.0.0-...-40227b4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "config.istio.io"
	Version   = "v1alpha2"
)

Variables

View Source
var (
	HandlerGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Handler",
	}
	HandlerResource = metav1.APIResource{
		Name:         "handlers",
		SingularName: "handler",
		Namespaced:   true,

		Kind: HandlerGroupVersionKind.Kind,
	}
)
View Source
var (
	InstanceGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Instance",
	}
	InstanceResource = metav1.APIResource{
		Name:         "instances",
		SingularName: "instance",
		Namespaced:   true,

		Kind: InstanceGroupVersionKind.Kind,
	}
)
View Source
var (
	QuotaSpecBindingGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "QuotaSpecBinding",
	}
	QuotaSpecBindingResource = metav1.APIResource{
		Name:         "quotaspecbindings",
		SingularName: "quotaspecbinding",
		Namespaced:   true,

		Kind: QuotaSpecBindingGroupVersionKind.Kind,
	}
)
View Source
var (
	QuotaSpecGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "QuotaSpec",
	}
	QuotaSpecResource = metav1.APIResource{
		Name:         "quotaspecs",
		SingularName: "quotaspec",
		Namespaced:   true,

		Kind: QuotaSpecGroupVersionKind.Kind,
	}
)
View Source
var (
	RuleGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Rule",
	}
	RuleResource = metav1.APIResource{
		Name:         "rules",
		SingularName: "rule",
		Namespaced:   true,

		Kind: RuleGroupVersionKind.Kind,
	}
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Factory

func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func NewHandler

func NewHandler(namespace, name string, obj v1alpha2.Handler) *v1alpha2.Handler

func NewInstance

func NewInstance(namespace, name string, obj v1alpha2.Instance) *v1alpha2.Instance

func NewQuotaSpec

func NewQuotaSpec(namespace, name string, obj v1alpha2.QuotaSpec) *v1alpha2.QuotaSpec

func NewQuotaSpecBinding

func NewQuotaSpecBinding(namespace, name string, obj v1alpha2.QuotaSpecBinding) *v1alpha2.QuotaSpecBinding

func NewRule

func NewRule(namespace, name string, obj v1alpha2.Rule) *v1alpha2.Rule

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Client) Handlers

func (c *Client) Handlers(namespace string) HandlerInterface

func (*Client) Instances

func (c *Client) Instances(namespace string) InstanceInterface

func (*Client) QuotaSpecBindings

func (c *Client) QuotaSpecBindings(namespace string) QuotaSpecBindingInterface

func (*Client) QuotaSpecs

func (c *Client) QuotaSpecs(namespace string) QuotaSpecInterface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

func (*Client) Rules

func (c *Client) Rules(namespace string) RuleInterface

func (*Client) Start

func (c *Client) Start(ctx context.Context, threadiness int) error

func (*Client) Sync

func (c *Client) Sync(ctx context.Context) error

type Clients

type Clients struct {
	Interface Interface

	Handler          HandlerClient
	Instance         InstanceClient
	Rule             RuleClient
	QuotaSpec        QuotaSpecClient
	QuotaSpecBinding QuotaSpecBindingClient
}

func ClientsFrom

func ClientsFrom(ctx context.Context) *Clients

func NewClients

func NewClients(config rest.Config) (*Clients, error)

func NewClientsFromInterface

func NewClientsFromInterface(iface Interface) *Clients

type HandlerChangeHandlerFunc

type HandlerChangeHandlerFunc func(obj *v1alpha2.Handler) (runtime.Object, error)

type HandlerClient

type HandlerClient interface {
	Create(*v1alpha2.Handler) (*v1alpha2.Handler, error)
	Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Handler, error)
	Update(*v1alpha2.Handler) (*v1alpha2.Handler, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*HandlerList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() HandlerClientCache

	OnCreate(ctx context.Context, name string, sync HandlerChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync HandlerChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync HandlerChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() HandlerInterface
}

type HandlerClientCache

type HandlerClientCache interface {
	Get(namespace, name string) (*v1alpha2.Handler, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha2.Handler, error)

	Index(name string, indexer HandlerIndexer)
	GetIndexed(name, key string) ([]*v1alpha2.Handler, error)
}

type HandlerController

type HandlerController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() HandlerLister
	AddHandler(ctx context.Context, name string, handler HandlerHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler HandlerHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type HandlerHandlerFunc

type HandlerHandlerFunc func(key string, obj *v1alpha2.Handler) (runtime.Object, error)

func NewHandlerLifecycleAdapter

func NewHandlerLifecycleAdapter(name string, clusterScoped bool, client HandlerInterface, l HandlerLifecycle) HandlerHandlerFunc

type HandlerIndexer

type HandlerIndexer func(obj *v1alpha2.Handler) ([]string, error)

type HandlerInterface

type HandlerInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha2.Handler) (*v1alpha2.Handler, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Handler, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha2.Handler, error)
	Update(*v1alpha2.Handler) (*v1alpha2.Handler, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*HandlerList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() HandlerController
	AddHandler(ctx context.Context, name string, sync HandlerHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle HandlerLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync HandlerHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle HandlerLifecycle)
}

type HandlerLifecycle

type HandlerLifecycle interface {
	Create(obj *v1alpha2.Handler) (runtime.Object, error)
	Remove(obj *v1alpha2.Handler) (runtime.Object, error)
	Updated(obj *v1alpha2.Handler) (runtime.Object, error)
}

type HandlerList

type HandlerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1alpha2.Handler
}

func (*HandlerList) DeepCopy

func (in *HandlerList) DeepCopy() *HandlerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HandlerList.

func (*HandlerList) DeepCopyInto

func (in *HandlerList) DeepCopyInto(out *HandlerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HandlerList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HandlerLister

type HandlerLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1alpha2.Handler, err error)
	Get(namespace, name string) (*v1alpha2.Handler, error)
}

type HandlersGetter

type HandlersGetter interface {
	Handlers(namespace string) HandlerInterface
}

type InstanceChangeHandlerFunc

type InstanceChangeHandlerFunc func(obj *v1alpha2.Instance) (runtime.Object, error)

type InstanceClient

type InstanceClient interface {
	Create(*v1alpha2.Instance) (*v1alpha2.Instance, error)
	Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Instance, error)
	Update(*v1alpha2.Instance) (*v1alpha2.Instance, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*InstanceList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() InstanceClientCache

	OnCreate(ctx context.Context, name string, sync InstanceChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync InstanceChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync InstanceChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() InstanceInterface
}

type InstanceClientCache

type InstanceClientCache interface {
	Get(namespace, name string) (*v1alpha2.Instance, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha2.Instance, error)

	Index(name string, indexer InstanceIndexer)
	GetIndexed(name, key string) ([]*v1alpha2.Instance, error)
}

type InstanceController

type InstanceController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() InstanceLister
	AddHandler(ctx context.Context, name string, handler InstanceHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler InstanceHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type InstanceHandlerFunc

type InstanceHandlerFunc func(key string, obj *v1alpha2.Instance) (runtime.Object, error)

func NewInstanceLifecycleAdapter

func NewInstanceLifecycleAdapter(name string, clusterScoped bool, client InstanceInterface, l InstanceLifecycle) InstanceHandlerFunc

type InstanceIndexer

type InstanceIndexer func(obj *v1alpha2.Instance) ([]string, error)

type InstanceInterface

type InstanceInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha2.Instance) (*v1alpha2.Instance, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Instance, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha2.Instance, error)
	Update(*v1alpha2.Instance) (*v1alpha2.Instance, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*InstanceList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() InstanceController
	AddHandler(ctx context.Context, name string, sync InstanceHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle InstanceLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync InstanceHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle InstanceLifecycle)
}

type InstanceLifecycle

type InstanceLifecycle interface {
	Create(obj *v1alpha2.Instance) (runtime.Object, error)
	Remove(obj *v1alpha2.Instance) (runtime.Object, error)
	Updated(obj *v1alpha2.Instance) (runtime.Object, error)
}

type InstanceList

type InstanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1alpha2.Instance
}

func (*InstanceList) DeepCopy

func (in *InstanceList) DeepCopy() *InstanceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceList.

func (*InstanceList) DeepCopyInto

func (in *InstanceList) DeepCopyInto(out *InstanceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InstanceList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InstanceLister

type InstanceLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1alpha2.Instance, err error)
	Get(namespace, name string) (*v1alpha2.Instance, error)
}

type InstancesGetter

type InstancesGetter interface {
	Instances(namespace string) InstanceInterface
}

type QuotaSpecBindingChangeHandlerFunc

type QuotaSpecBindingChangeHandlerFunc func(obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error)

type QuotaSpecBindingClient

type QuotaSpecBindingClient interface {
	Create(*v1alpha2.QuotaSpecBinding) (*v1alpha2.QuotaSpecBinding, error)
	Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpecBinding, error)
	Update(*v1alpha2.QuotaSpecBinding) (*v1alpha2.QuotaSpecBinding, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*QuotaSpecBindingList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() QuotaSpecBindingClientCache

	OnCreate(ctx context.Context, name string, sync QuotaSpecBindingChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync QuotaSpecBindingChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync QuotaSpecBindingChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() QuotaSpecBindingInterface
}

type QuotaSpecBindingClientCache

type QuotaSpecBindingClientCache interface {
	Get(namespace, name string) (*v1alpha2.QuotaSpecBinding, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha2.QuotaSpecBinding, error)

	Index(name string, indexer QuotaSpecBindingIndexer)
	GetIndexed(name, key string) ([]*v1alpha2.QuotaSpecBinding, error)
}

type QuotaSpecBindingController

type QuotaSpecBindingController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() QuotaSpecBindingLister
	AddHandler(ctx context.Context, name string, handler QuotaSpecBindingHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler QuotaSpecBindingHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type QuotaSpecBindingHandlerFunc

type QuotaSpecBindingHandlerFunc func(key string, obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error)

func NewQuotaSpecBindingLifecycleAdapter

func NewQuotaSpecBindingLifecycleAdapter(name string, clusterScoped bool, client QuotaSpecBindingInterface, l QuotaSpecBindingLifecycle) QuotaSpecBindingHandlerFunc

type QuotaSpecBindingIndexer

type QuotaSpecBindingIndexer func(obj *v1alpha2.QuotaSpecBinding) ([]string, error)

type QuotaSpecBindingInterface

type QuotaSpecBindingInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha2.QuotaSpecBinding) (*v1alpha2.QuotaSpecBinding, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpecBinding, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpecBinding, error)
	Update(*v1alpha2.QuotaSpecBinding) (*v1alpha2.QuotaSpecBinding, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*QuotaSpecBindingList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() QuotaSpecBindingController
	AddHandler(ctx context.Context, name string, sync QuotaSpecBindingHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle QuotaSpecBindingLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync QuotaSpecBindingHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle QuotaSpecBindingLifecycle)
}

type QuotaSpecBindingLifecycle

type QuotaSpecBindingLifecycle interface {
	Create(obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error)
	Remove(obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error)
	Updated(obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error)
}

type QuotaSpecBindingList

type QuotaSpecBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1alpha2.QuotaSpecBinding
}

func (*QuotaSpecBindingList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaSpecBindingList.

func (*QuotaSpecBindingList) DeepCopyInto

func (in *QuotaSpecBindingList) DeepCopyInto(out *QuotaSpecBindingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*QuotaSpecBindingList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type QuotaSpecBindingLister

type QuotaSpecBindingLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1alpha2.QuotaSpecBinding, err error)
	Get(namespace, name string) (*v1alpha2.QuotaSpecBinding, error)
}

type QuotaSpecBindingsGetter

type QuotaSpecBindingsGetter interface {
	QuotaSpecBindings(namespace string) QuotaSpecBindingInterface
}

type QuotaSpecChangeHandlerFunc

type QuotaSpecChangeHandlerFunc func(obj *v1alpha2.QuotaSpec) (runtime.Object, error)

type QuotaSpecClient

type QuotaSpecClient interface {
	Create(*v1alpha2.QuotaSpec) (*v1alpha2.QuotaSpec, error)
	Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpec, error)
	Update(*v1alpha2.QuotaSpec) (*v1alpha2.QuotaSpec, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*QuotaSpecList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() QuotaSpecClientCache

	OnCreate(ctx context.Context, name string, sync QuotaSpecChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync QuotaSpecChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync QuotaSpecChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() QuotaSpecInterface
}

type QuotaSpecClientCache

type QuotaSpecClientCache interface {
	Get(namespace, name string) (*v1alpha2.QuotaSpec, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha2.QuotaSpec, error)

	Index(name string, indexer QuotaSpecIndexer)
	GetIndexed(name, key string) ([]*v1alpha2.QuotaSpec, error)
}

type QuotaSpecController

type QuotaSpecController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() QuotaSpecLister
	AddHandler(ctx context.Context, name string, handler QuotaSpecHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler QuotaSpecHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type QuotaSpecHandlerFunc

type QuotaSpecHandlerFunc func(key string, obj *v1alpha2.QuotaSpec) (runtime.Object, error)

func NewQuotaSpecLifecycleAdapter

func NewQuotaSpecLifecycleAdapter(name string, clusterScoped bool, client QuotaSpecInterface, l QuotaSpecLifecycle) QuotaSpecHandlerFunc

type QuotaSpecIndexer

type QuotaSpecIndexer func(obj *v1alpha2.QuotaSpec) ([]string, error)

type QuotaSpecInterface

type QuotaSpecInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha2.QuotaSpec) (*v1alpha2.QuotaSpec, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpec, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpec, error)
	Update(*v1alpha2.QuotaSpec) (*v1alpha2.QuotaSpec, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*QuotaSpecList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() QuotaSpecController
	AddHandler(ctx context.Context, name string, sync QuotaSpecHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle QuotaSpecLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync QuotaSpecHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle QuotaSpecLifecycle)
}

type QuotaSpecLifecycle

type QuotaSpecLifecycle interface {
	Create(obj *v1alpha2.QuotaSpec) (runtime.Object, error)
	Remove(obj *v1alpha2.QuotaSpec) (runtime.Object, error)
	Updated(obj *v1alpha2.QuotaSpec) (runtime.Object, error)
}

type QuotaSpecList

type QuotaSpecList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1alpha2.QuotaSpec
}

func (*QuotaSpecList) DeepCopy

func (in *QuotaSpecList) DeepCopy() *QuotaSpecList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaSpecList.

func (*QuotaSpecList) DeepCopyInto

func (in *QuotaSpecList) DeepCopyInto(out *QuotaSpecList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*QuotaSpecList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type QuotaSpecLister

type QuotaSpecLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1alpha2.QuotaSpec, err error)
	Get(namespace, name string) (*v1alpha2.QuotaSpec, error)
}

type QuotaSpecsGetter

type QuotaSpecsGetter interface {
	QuotaSpecs(namespace string) QuotaSpecInterface
}

type RuleChangeHandlerFunc

type RuleChangeHandlerFunc func(obj *v1alpha2.Rule) (runtime.Object, error)

type RuleClient

type RuleClient interface {
	Create(*v1alpha2.Rule) (*v1alpha2.Rule, error)
	Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Rule, error)
	Update(*v1alpha2.Rule) (*v1alpha2.Rule, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*RuleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() RuleClientCache

	OnCreate(ctx context.Context, name string, sync RuleChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync RuleChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync RuleChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() RuleInterface
}

type RuleClientCache

type RuleClientCache interface {
	Get(namespace, name string) (*v1alpha2.Rule, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha2.Rule, error)

	Index(name string, indexer RuleIndexer)
	GetIndexed(name, key string) ([]*v1alpha2.Rule, error)
}

type RuleController

type RuleController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() RuleLister
	AddHandler(ctx context.Context, name string, handler RuleHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler RuleHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type RuleHandlerFunc

type RuleHandlerFunc func(key string, obj *v1alpha2.Rule) (runtime.Object, error)

func NewRuleLifecycleAdapter

func NewRuleLifecycleAdapter(name string, clusterScoped bool, client RuleInterface, l RuleLifecycle) RuleHandlerFunc

type RuleIndexer

type RuleIndexer func(obj *v1alpha2.Rule) ([]string, error)

type RuleInterface

type RuleInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha2.Rule) (*v1alpha2.Rule, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Rule, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha2.Rule, error)
	Update(*v1alpha2.Rule) (*v1alpha2.Rule, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*RuleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() RuleController
	AddHandler(ctx context.Context, name string, sync RuleHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle RuleLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync RuleHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle RuleLifecycle)
}

type RuleLifecycle

type RuleLifecycle interface {
	Create(obj *v1alpha2.Rule) (runtime.Object, error)
	Remove(obj *v1alpha2.Rule) (runtime.Object, error)
	Updated(obj *v1alpha2.Rule) (runtime.Object, error)
}

type RuleList

type RuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1alpha2.Rule
}

func (*RuleList) DeepCopy

func (in *RuleList) DeepCopy() *RuleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList.

func (*RuleList) DeepCopyInto

func (in *RuleList) DeepCopyInto(out *RuleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RuleList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RuleLister

type RuleLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1alpha2.Rule, err error)
	Get(namespace, name string) (*v1alpha2.Rule, error)
}

type RulesGetter

type RulesGetter interface {
	Rules(namespace string) RuleInterface
}

Jump to

Keyboard shortcuts

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