Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCoreV1
- type FakePolicies
- func (c *FakePolicies) Create(policy *v1.Policy) (result *v1.Policy, err error)
- func (c *FakePolicies) Delete(name string, options *api_v1.DeleteOptions) error
- func (c *FakePolicies) DeleteCollection(options *api_v1.DeleteOptions, listOptions api_v1.ListOptions) error
- func (c *FakePolicies) Get(name string) (result *v1.Policy, err error)
- func (c *FakePolicies) List(opts api_v1.ListOptions) (result *v1.PolicyList, err error)
- func (c *FakePolicies) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Policy, err error)
- func (c *FakePolicies) Update(policy *v1.Policy) (result *v1.Policy, err error)
- func (c *FakePolicies) Watch(opts api_v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCoreV1 ¶
func (*FakeCoreV1) Policies ¶
func (c *FakeCoreV1) Policies(namespace string) v1.PolicyInterface
func (*FakeCoreV1) RESTClient ¶
func (c *FakeCoreV1) RESTClient() restclient.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakePolicies ¶
type FakePolicies struct { Fake *FakeCoreV1 // contains filtered or unexported fields }
FakePolicies implements PolicyInterface
func (*FakePolicies) Delete ¶
func (c *FakePolicies) Delete(name string, options *api_v1.DeleteOptions) error
func (*FakePolicies) DeleteCollection ¶
func (c *FakePolicies) DeleteCollection(options *api_v1.DeleteOptions, listOptions api_v1.ListOptions) error
func (*FakePolicies) List ¶
func (c *FakePolicies) List(opts api_v1.ListOptions) (result *v1.PolicyList, err error)
func (*FakePolicies) Patch ¶
func (c *FakePolicies) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Policy, err error)
Patch applies the patch and returns the patched policy.
func (*FakePolicies) Watch ¶
func (c *FakePolicies) Watch(opts api_v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested policies.
Click to show internal directories.
Click to hide internal directories.