v1beta1

package
v0.0.4-rc4 Latest Latest
Warning

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

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

Documentation

Index

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 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 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

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

func (*Client) PodDisruptionBudgets

func (c *Client) PodDisruptionBudgets(namespace string) PodDisruptionBudgetInterface

func (*Client) RESTClient

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

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

	PodDisruptionBudget PodDisruptionBudgetClient
}

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 Interface

type Interface interface {
	RESTClient() rest.Interface
	controller.Starter

	PodDisruptionBudgetsGetter
}

func From

func From(ctx context.Context) Interface

func NewForConfig

func NewForConfig(config rest.Config) (Interface, error)

type PodDisruptionBudgetChangeHandlerFunc

type PodDisruptionBudgetChangeHandlerFunc func(obj *v1beta1.PodDisruptionBudget) (runtime.Object, error)

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)

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

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
}

Jump to

Keyboard shortcuts

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