Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func NewPodDisruptionBudget(namespace, name string, obj v1beta1.PodDisruptionBudget) *v1beta1.PodDisruptionBudget
- func Resource(resource string) schema.GroupResource
- type Client
- type Clients
- type Interface
- type PodDisruptionBudgetChangeHandlerFunc
- type PodDisruptionBudgetClient
- type PodDisruptionBudgetClientCache
- type PodDisruptionBudgetController
- type PodDisruptionBudgetHandlerFunc
- type PodDisruptionBudgetIndexer
- type PodDisruptionBudgetInterface
- type PodDisruptionBudgetLifecycle
- type PodDisruptionBudgetList
- type PodDisruptionBudgetLister
- type PodDisruptionBudgetsGetter
Constants ¶
View Source
const ( GroupName = "policy" Version = "v1beta1" )
Variables ¶
View Source
var ( PodDisruptionBudgetGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "PodDisruptionBudget", } PodDisruptionBudgetResource = metav1.APIResource{ Name: "poddisruptionbudgets", SingularName: "poddisruptionbudget", Namespaced: true, Kind: PodDisruptionBudgetGroupVersionKind.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 NewPodDisruptionBudget ¶
func NewPodDisruptionBudget(namespace, name string, obj v1beta1.PodDisruptionBudget) *v1beta1.PodDisruptionBudget
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) PodDisruptionBudgets ¶
func (c *Client) PodDisruptionBudgets(namespace string) PodDisruptionBudgetInterface
func (*Client) RESTClient ¶
type Clients ¶
type Clients struct { Interface Interface PodDisruptionBudget PodDisruptionBudgetClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter PodDisruptionBudgetsGetter }
type PodDisruptionBudgetChangeHandlerFunc ¶
type PodDisruptionBudgetChangeHandlerFunc func(obj *v1beta1.PodDisruptionBudget) (runtime.Object, error)
type PodDisruptionBudgetClient ¶
type PodDisruptionBudgetClient interface { Create(*v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error) Get(namespace, name string, opts metav1.GetOptions) (*v1beta1.PodDisruptionBudget, error) Update(*v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*PodDisruptionBudgetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() PodDisruptionBudgetClientCache OnCreate(ctx context.Context, name string, sync PodDisruptionBudgetChangeHandlerFunc) OnChange(ctx context.Context, name string, sync PodDisruptionBudgetChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync PodDisruptionBudgetChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() PodDisruptionBudgetInterface }
type PodDisruptionBudgetClientCache ¶
type PodDisruptionBudgetClientCache interface { Get(namespace, name string) (*v1beta1.PodDisruptionBudget, error) List(namespace string, selector labels.Selector) ([]*v1beta1.PodDisruptionBudget, error) Index(name string, indexer PodDisruptionBudgetIndexer) GetIndexed(name, key string) ([]*v1beta1.PodDisruptionBudget, error) }
type PodDisruptionBudgetController ¶
type PodDisruptionBudgetController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() PodDisruptionBudgetLister AddHandler(ctx context.Context, name string, handler PodDisruptionBudgetHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler PodDisruptionBudgetHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type PodDisruptionBudgetHandlerFunc ¶
type PodDisruptionBudgetHandlerFunc func(key string, obj *v1beta1.PodDisruptionBudget) (runtime.Object, error)
func NewPodDisruptionBudgetLifecycleAdapter ¶
func NewPodDisruptionBudgetLifecycleAdapter(name string, clusterScoped bool, client PodDisruptionBudgetInterface, l PodDisruptionBudgetLifecycle) PodDisruptionBudgetHandlerFunc
type PodDisruptionBudgetIndexer ¶
type PodDisruptionBudgetIndexer func(obj *v1beta1.PodDisruptionBudget) ([]string, error)
type PodDisruptionBudgetInterface ¶
type PodDisruptionBudgetInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta1.PodDisruptionBudget, error) Get(name string, opts metav1.GetOptions) (*v1beta1.PodDisruptionBudget, error) Update(*v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PodDisruptionBudgetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PodDisruptionBudgetController AddHandler(ctx context.Context, name string, sync PodDisruptionBudgetHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle PodDisruptionBudgetLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync PodDisruptionBudgetHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle PodDisruptionBudgetLifecycle) }
type PodDisruptionBudgetLifecycle ¶
type PodDisruptionBudgetLifecycle interface { Create(obj *v1beta1.PodDisruptionBudget) (runtime.Object, error) Remove(obj *v1beta1.PodDisruptionBudget) (runtime.Object, error) Updated(obj *v1beta1.PodDisruptionBudget) (runtime.Object, error) }
type PodDisruptionBudgetList ¶
type PodDisruptionBudgetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1beta1.PodDisruptionBudget }
func (*PodDisruptionBudgetList) DeepCopy ¶
func (in *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList.
func (*PodDisruptionBudgetList) DeepCopyInto ¶
func (in *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodDisruptionBudgetList) DeepCopyObject ¶
func (in *PodDisruptionBudgetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodDisruptionBudgetLister ¶
type PodDisruptionBudgetLister interface { List(namespace string, selector labels.Selector) (ret []*v1beta1.PodDisruptionBudget, err error) Get(namespace, name string) (*v1beta1.PodDisruptionBudget, error) }
type PodDisruptionBudgetsGetter ¶
type PodDisruptionBudgetsGetter interface {
PodDisruptionBudgets(namespace string) PodDisruptionBudgetInterface
}
Click to show internal directories.
Click to hide internal directories.