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