Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeEvictions
- type FakePodDisruptionBudgets
- func (c *FakePodDisruptionBudgets) Create(podDisruptionBudget *v1beta1.PodDisruptionBudget) (result *v1beta1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePodDisruptionBudgets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePodDisruptionBudgets) Get(name string, options v1.GetOptions) (result *v1beta1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) List(opts v1.ListOptions) (result *v1beta1.PodDisruptionBudgetList, err error)
- func (c *FakePodDisruptionBudgets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) Update(podDisruptionBudget *v1beta1.PodDisruptionBudget) (result *v1beta1.PodDisruptionBudget, err error)
- func (c *FakePodDisruptionBudgets) UpdateStatus(podDisruptionBudget *v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error)
- func (c *FakePodDisruptionBudgets) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakePodSecurityPolicies
- func (c *FakePodSecurityPolicies) Create(podSecurityPolicy *v1beta1.PodSecurityPolicy) (result *v1beta1.PodSecurityPolicy, err error)
- func (c *FakePodSecurityPolicies) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePodSecurityPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePodSecurityPolicies) Get(name string, options v1.GetOptions) (result *v1beta1.PodSecurityPolicy, err error)
- func (c *FakePodSecurityPolicies) List(opts v1.ListOptions) (result *v1beta1.PodSecurityPolicyList, err error)
- func (c *FakePodSecurityPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.PodSecurityPolicy, err error)
- func (c *FakePodSecurityPolicies) Update(podSecurityPolicy *v1beta1.PodSecurityPolicy) (result *v1beta1.PodSecurityPolicy, err error)
- func (c *FakePodSecurityPolicies) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakePolicyV1beta1
- func (c *FakePolicyV1beta1) Evictions(namespace string) v1beta1.EvictionInterface
- func (c *FakePolicyV1beta1) PodDisruptionBudgets(namespace string) v1beta1.PodDisruptionBudgetInterface
- func (c *FakePolicyV1beta1) PodSecurityPolicies() v1beta1.PodSecurityPolicyInterface
- func (c *FakePolicyV1beta1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeEvictions ¶
type FakeEvictions struct { Fake *FakePolicyV1beta1 // contains filtered or unexported fields }
FakeEvictions implements EvictionInterface
type FakePodDisruptionBudgets ¶
type FakePodDisruptionBudgets struct { Fake *FakePolicyV1beta1 // contains filtered or unexported fields }
FakePodDisruptionBudgets implements PodDisruptionBudgetInterface
func (*FakePodDisruptionBudgets) Create ¶
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 ¶
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 ¶
func (c *FakePodDisruptionBudgets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePodDisruptionBudgets) Get ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *FakePodDisruptionBudgets) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested podDisruptionBudgets.
type FakePodSecurityPolicies ¶
type FakePodSecurityPolicies struct {
Fake *FakePolicyV1beta1
}
FakePodSecurityPolicies implements PodSecurityPolicyInterface
func (*FakePodSecurityPolicies) Create ¶
func (c *FakePodSecurityPolicies) Create(podSecurityPolicy *v1beta1.PodSecurityPolicy) (result *v1beta1.PodSecurityPolicy, err error)
Create takes the representation of a podSecurityPolicy and creates it. Returns the server's representation of the podSecurityPolicy, and an error, if there is any.
func (*FakePodSecurityPolicies) Delete ¶
func (c *FakePodSecurityPolicies) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the podSecurityPolicy and deletes it. Returns an error if one occurs.
func (*FakePodSecurityPolicies) DeleteCollection ¶
func (c *FakePodSecurityPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePodSecurityPolicies) Get ¶
func (c *FakePodSecurityPolicies) Get(name string, options v1.GetOptions) (result *v1beta1.PodSecurityPolicy, err error)
Get takes name of the podSecurityPolicy, and returns the corresponding podSecurityPolicy object, and an error if there is any.
func (*FakePodSecurityPolicies) List ¶
func (c *FakePodSecurityPolicies) List(opts v1.ListOptions) (result *v1beta1.PodSecurityPolicyList, err error)
List takes label and field selectors, and returns the list of PodSecurityPolicies that match those selectors.
func (*FakePodSecurityPolicies) Patch ¶
func (c *FakePodSecurityPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.PodSecurityPolicy, err error)
Patch applies the patch and returns the patched podSecurityPolicy.
func (*FakePodSecurityPolicies) Update ¶
func (c *FakePodSecurityPolicies) Update(podSecurityPolicy *v1beta1.PodSecurityPolicy) (result *v1beta1.PodSecurityPolicy, err error)
Update takes the representation of a podSecurityPolicy and updates it. Returns the server's representation of the podSecurityPolicy, and an error, if there is any.
func (*FakePodSecurityPolicies) Watch ¶
func (c *FakePodSecurityPolicies) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested podSecurityPolicies.
type FakePolicyV1beta1 ¶
func (*FakePolicyV1beta1) Evictions ¶
func (c *FakePolicyV1beta1) Evictions(namespace string) v1beta1.EvictionInterface
func (*FakePolicyV1beta1) PodDisruptionBudgets ¶
func (c *FakePolicyV1beta1) PodDisruptionBudgets(namespace string) v1beta1.PodDisruptionBudgetInterface
func (*FakePolicyV1beta1) PodSecurityPolicies ¶
func (c *FakePolicyV1beta1) PodSecurityPolicies() v1beta1.PodSecurityPolicyInterface
func (*FakePolicyV1beta1) RESTClient ¶
func (c *FakePolicyV1beta1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.