client-go: k8s.io/client-go/kubernetes/typed/policy/v1beta1/fake Index | Files

package fake

import "k8s.io/client-go/kubernetes/typed/policy/v1beta1/fake"

Package fake has the automatically generated clients.

Index

Package Files

doc.go fake_eviction.go fake_eviction_expansion.go fake_poddisruptionbudget.go fake_policy_client.go

type FakeEvictions Uses

type FakeEvictions struct {
    Fake *FakePolicyV1beta1
    // contains filtered or unexported fields
}

FakeEvictions implements EvictionInterface

func (*FakeEvictions) Evict Uses

func (c *FakeEvictions) Evict(eviction *policy.Eviction) error

type FakePodDisruptionBudgets Uses

type FakePodDisruptionBudgets struct {
    Fake *FakePolicyV1beta1
    // contains filtered or unexported fields
}

FakePodDisruptionBudgets implements PodDisruptionBudgetInterface

func (*FakePodDisruptionBudgets) Create Uses

func (c *FakePodDisruptionBudgets) Create(podDisruptionBudget *v1beta1.PodDisruptionBudget) (result *v1beta1.PodDisruptionBudget, err error)

Create takes the representation of a podDisruptionBudget and creates it. Returns the server's representation of the podDisruptionBudget, and an error, if there is any.

func (*FakePodDisruptionBudgets) Delete Uses

func (c *FakePodDisruptionBudgets) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the podDisruptionBudget and deletes it. Returns an error if one occurs.

func (*FakePodDisruptionBudgets) DeleteCollection Uses

func (c *FakePodDisruptionBudgets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePodDisruptionBudgets) Get Uses

func (c *FakePodDisruptionBudgets) Get(name string, options v1.GetOptions) (result *v1beta1.PodDisruptionBudget, err error)

Get takes name of the podDisruptionBudget, and returns the corresponding podDisruptionBudget object, and an error if there is any.

func (*FakePodDisruptionBudgets) List Uses

func (c *FakePodDisruptionBudgets) List(opts v1.ListOptions) (result *v1beta1.PodDisruptionBudgetList, err error)

List takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors.

func (*FakePodDisruptionBudgets) Patch Uses

func (c *FakePodDisruptionBudgets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.PodDisruptionBudget, err error)

Patch applies the patch and returns the patched podDisruptionBudget.

func (*FakePodDisruptionBudgets) Update Uses

func (c *FakePodDisruptionBudgets) Update(podDisruptionBudget *v1beta1.PodDisruptionBudget) (result *v1beta1.PodDisruptionBudget, err error)

Update takes the representation of a podDisruptionBudget and updates it. Returns the server's representation of the podDisruptionBudget, and an error, if there is any.

func (*FakePodDisruptionBudgets) UpdateStatus Uses

func (c *FakePodDisruptionBudgets) UpdateStatus(podDisruptionBudget *v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePodDisruptionBudgets) Watch Uses

func (c *FakePodDisruptionBudgets) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested podDisruptionBudgets.

type FakePolicyV1beta1 Uses

type FakePolicyV1beta1 struct {
    *testing.Fake
}

func (*FakePolicyV1beta1) Evictions Uses

func (c *FakePolicyV1beta1) Evictions(namespace string) v1beta1.EvictionInterface

func (*FakePolicyV1beta1) PodDisruptionBudgets Uses

func (c *FakePolicyV1beta1) PodDisruptionBudgets(namespace string) v1beta1.PodDisruptionBudgetInterface

func (*FakePolicyV1beta1) RESTClient Uses

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

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

Package fake imports 9 packages (graph) and is imported by 4 packages. Updated 2018-01-10. Refresh now. Tools for package owners.