Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeEvictions
- type FakePodDisruptionBudgets
- func (c *FakePodDisruptionBudgets) Apply(ctx context.Context, ...) (result *policyv1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) ApplyStatus(ctx context.Context, ...) (result *policyv1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) Create(ctx context.Context, podDisruptionBudget *policyv1.PodDisruptionBudget, ...) (result *policyv1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePodDisruptionBudgets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePodDisruptionBudgets) Get(ctx context.Context, name string, options v1.GetOptions) (result *policyv1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) List(ctx context.Context, opts v1.ListOptions) (result *policyv1.PodDisruptionBudgetList, err error)
- func (c *FakePodDisruptionBudgets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *policyv1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) Update(ctx context.Context, podDisruptionBudget *policyv1.PodDisruptionBudget, ...) (result *policyv1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) UpdateStatus(ctx context.Context, podDisruptionBudget *policyv1.PodDisruptionBudget, ...) (*policyv1.PodDisruptionBudget, error)
- func (c *FakePodDisruptionBudgets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePolicyV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeEvictions ¶
type FakeEvictions struct { Fake *FakePolicyV1 // contains filtered or unexported fields }
FakeEvictions implements EvictionInterface
type FakePodDisruptionBudgets ¶
type FakePodDisruptionBudgets struct { Fake *FakePolicyV1 // contains filtered or unexported fields }
FakePodDisruptionBudgets implements PodDisruptionBudgetInterface
func (*FakePodDisruptionBudgets) Apply ¶
func (c *FakePodDisruptionBudgets) Apply(ctx context.Context, podDisruptionBudget *applyconfigurationspolicyv1.PodDisruptionBudgetApplyConfiguration, opts v1.ApplyOptions) (result *policyv1.PodDisruptionBudget, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied podDisruptionBudget.
func (*FakePodDisruptionBudgets) ApplyStatus ¶
func (c *FakePodDisruptionBudgets) ApplyStatus(ctx context.Context, podDisruptionBudget *applyconfigurationspolicyv1.PodDisruptionBudgetApplyConfiguration, opts v1.ApplyOptions) (result *policyv1.PodDisruptionBudget, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakePodDisruptionBudgets) Create ¶
func (c *FakePodDisruptionBudgets) Create(ctx context.Context, podDisruptionBudget *policyv1.PodDisruptionBudget, opts v1.CreateOptions) (result *policyv1.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 ¶
func (c *FakePodDisruptionBudgets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the podDisruptionBudget and deletes it. Returns an error if one occurs.
func (*FakePodDisruptionBudgets) DeleteCollection ¶
func (c *FakePodDisruptionBudgets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePodDisruptionBudgets) Get ¶
func (c *FakePodDisruptionBudgets) Get(ctx context.Context, name string, options v1.GetOptions) (result *policyv1.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 ¶
func (c *FakePodDisruptionBudgets) List(ctx context.Context, opts v1.ListOptions) (result *policyv1.PodDisruptionBudgetList, err error)
List takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors.
func (*FakePodDisruptionBudgets) Patch ¶
func (c *FakePodDisruptionBudgets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *policyv1.PodDisruptionBudget, err error)
Patch applies the patch and returns the patched podDisruptionBudget.
func (*FakePodDisruptionBudgets) Update ¶
func (c *FakePodDisruptionBudgets) Update(ctx context.Context, podDisruptionBudget *policyv1.PodDisruptionBudget, opts v1.UpdateOptions) (result *policyv1.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 ¶
func (c *FakePodDisruptionBudgets) UpdateStatus(ctx context.Context, podDisruptionBudget *policyv1.PodDisruptionBudget, opts v1.UpdateOptions) (*policyv1.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 ¶
func (c *FakePodDisruptionBudgets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested podDisruptionBudgets.
type FakePolicyV1 ¶
func (*FakePolicyV1) Evictions ¶
func (c *FakePolicyV1) Evictions(namespace string) v1.EvictionInterface
func (*FakePolicyV1) PodDisruptionBudgets ¶
func (c *FakePolicyV1) PodDisruptionBudgets(namespace string) v1.PodDisruptionBudgetInterface
func (*FakePolicyV1) RESTClient ¶
func (c *FakePolicyV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.