Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeGuardV1alpha1
- type FakeGuardians
- func (c *FakeGuardians) Create(ctx context.Context, guardian *v1alpha1.Guardian, opts v1.CreateOptions) (result *v1alpha1.Guardian, err error)
- func (c *FakeGuardians) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeGuardians) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeGuardians) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Guardian, err error)
- func (c *FakeGuardians) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.GuardianList, err error)
- func (c *FakeGuardians) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Guardian, err error)
- func (c *FakeGuardians) Update(ctx context.Context, guardian *v1alpha1.Guardian, opts v1.UpdateOptions) (result *v1alpha1.Guardian, err error)
- func (c *FakeGuardians) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGuardV1alpha1 ¶
func (*FakeGuardV1alpha1) Guardians ¶
func (c *FakeGuardV1alpha1) Guardians(namespace string) v1alpha1.GuardianInterface
func (*FakeGuardV1alpha1) RESTClient ¶
func (c *FakeGuardV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeGuardians ¶
type FakeGuardians struct { Fake *FakeGuardV1alpha1 // contains filtered or unexported fields }
FakeGuardians implements GuardianInterface
func (*FakeGuardians) Create ¶
func (c *FakeGuardians) Create(ctx context.Context, guardian *v1alpha1.Guardian, opts v1.CreateOptions) (result *v1alpha1.Guardian, err error)
Create takes the representation of a guardian and creates it. Returns the server's representation of the guardian, and an error, if there is any.
func (*FakeGuardians) Delete ¶
func (c *FakeGuardians) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the guardian and deletes it. Returns an error if one occurs.
func (*FakeGuardians) DeleteCollection ¶
func (c *FakeGuardians) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGuardians) Get ¶
func (c *FakeGuardians) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Guardian, err error)
Get takes name of the guardian, and returns the corresponding guardian object, and an error if there is any.
func (*FakeGuardians) List ¶
func (c *FakeGuardians) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.GuardianList, err error)
List takes label and field selectors, and returns the list of Guardians that match those selectors.
func (*FakeGuardians) Patch ¶
func (c *FakeGuardians) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Guardian, err error)
Patch applies the patch and returns the patched guardian.
func (*FakeGuardians) Update ¶
func (c *FakeGuardians) Update(ctx context.Context, guardian *v1alpha1.Guardian, opts v1.UpdateOptions) (result *v1alpha1.Guardian, err error)
Update takes the representation of a guardian and updates it. Returns the server's representation of the guardian, and an error, if there is any.
func (*FakeGuardians) Watch ¶
func (c *FakeGuardians) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested guardians.