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