Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeRecoveries
- func (c *FakeRecoveries) Create(ctx context.Context, recovery *v1alpha1.Recovery, opts v1.CreateOptions) (result *v1alpha1.Recovery, err error)
- func (c *FakeRecoveries) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRecoveries) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRecoveries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Recovery, err error)
- func (c *FakeRecoveries) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RecoveryList, err error)
- func (c *FakeRecoveries) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Recovery, err error)
- func (c *FakeRecoveries) Update(ctx context.Context, recovery *v1alpha1.Recovery, opts v1.UpdateOptions) (result *v1alpha1.Recovery, err error)
- func (c *FakeRecoveries) UpdateStatus(ctx context.Context, recovery *v1alpha1.Recovery, opts v1.UpdateOptions) (*v1alpha1.Recovery, error)
- func (c *FakeRecoveries) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeRepositories
- func (c *FakeRepositories) Create(ctx context.Context, repository *v1alpha1.Repository, opts v1.CreateOptions) (result *v1alpha1.Repository, err error)
- func (c *FakeRepositories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRepositories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRepositories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Repository, err error)
- func (c *FakeRepositories) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RepositoryList, err error)
- func (c *FakeRepositories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Repository, err error)
- func (c *FakeRepositories) Update(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (result *v1alpha1.Repository, err error)
- func (c *FakeRepositories) UpdateStatus(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (*v1alpha1.Repository, error)
- func (c *FakeRepositories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeRestics
- func (c *FakeRestics) Create(ctx context.Context, restic *v1alpha1.Restic, opts v1.CreateOptions) (result *v1alpha1.Restic, err error)
- func (c *FakeRestics) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRestics) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRestics) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Restic, err error)
- func (c *FakeRestics) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ResticList, err error)
- func (c *FakeRestics) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Restic, err error)
- func (c *FakeRestics) Update(ctx context.Context, restic *v1alpha1.Restic, opts v1.UpdateOptions) (result *v1alpha1.Restic, err error)
- func (c *FakeRestics) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeStashV1alpha1
- func (c *FakeStashV1alpha1) RESTClient() rest.Interface
- func (c *FakeStashV1alpha1) Recoveries(namespace string) v1alpha1.RecoveryInterface
- func (c *FakeStashV1alpha1) Repositories(namespace string) v1alpha1.RepositoryInterface
- func (c *FakeStashV1alpha1) Restics(namespace string) v1alpha1.ResticInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRecoveries ¶
type FakeRecoveries struct { Fake *FakeStashV1alpha1 // contains filtered or unexported fields }
FakeRecoveries implements RecoveryInterface
func (*FakeRecoveries) Create ¶
func (c *FakeRecoveries) Create(ctx context.Context, recovery *v1alpha1.Recovery, opts v1.CreateOptions) (result *v1alpha1.Recovery, err error)
Create takes the representation of a recovery and creates it. Returns the server's representation of the recovery, and an error, if there is any.
func (*FakeRecoveries) Delete ¶
func (c *FakeRecoveries) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the recovery and deletes it. Returns an error if one occurs.
func (*FakeRecoveries) DeleteCollection ¶
func (c *FakeRecoveries) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRecoveries) Get ¶
func (c *FakeRecoveries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Recovery, err error)
Get takes name of the recovery, and returns the corresponding recovery object, and an error if there is any.
func (*FakeRecoveries) List ¶
func (c *FakeRecoveries) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RecoveryList, err error)
List takes label and field selectors, and returns the list of Recoveries that match those selectors.
func (*FakeRecoveries) Patch ¶
func (c *FakeRecoveries) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Recovery, err error)
Patch applies the patch and returns the patched recovery.
func (*FakeRecoveries) Update ¶
func (c *FakeRecoveries) Update(ctx context.Context, recovery *v1alpha1.Recovery, opts v1.UpdateOptions) (result *v1alpha1.Recovery, err error)
Update takes the representation of a recovery and updates it. Returns the server's representation of the recovery, and an error, if there is any.
func (*FakeRecoveries) UpdateStatus ¶
func (c *FakeRecoveries) UpdateStatus(ctx context.Context, recovery *v1alpha1.Recovery, opts v1.UpdateOptions) (*v1alpha1.Recovery, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeRecoveries) Watch ¶
func (c *FakeRecoveries) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested recoveries.
type FakeRepositories ¶
type FakeRepositories struct { Fake *FakeStashV1alpha1 // contains filtered or unexported fields }
FakeRepositories implements RepositoryInterface
func (*FakeRepositories) Create ¶
func (c *FakeRepositories) Create(ctx context.Context, repository *v1alpha1.Repository, opts v1.CreateOptions) (result *v1alpha1.Repository, err error)
Create takes the representation of a repository and creates it. Returns the server's representation of the repository, and an error, if there is any.
func (*FakeRepositories) Delete ¶
func (c *FakeRepositories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the repository and deletes it. Returns an error if one occurs.
func (*FakeRepositories) DeleteCollection ¶
func (c *FakeRepositories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRepositories) Get ¶
func (c *FakeRepositories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Repository, err error)
Get takes name of the repository, and returns the corresponding repository object, and an error if there is any.
func (*FakeRepositories) List ¶
func (c *FakeRepositories) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RepositoryList, err error)
List takes label and field selectors, and returns the list of Repositories that match those selectors.
func (*FakeRepositories) Patch ¶
func (c *FakeRepositories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Repository, err error)
Patch applies the patch and returns the patched repository.
func (*FakeRepositories) Update ¶
func (c *FakeRepositories) Update(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (result *v1alpha1.Repository, err error)
Update takes the representation of a repository and updates it. Returns the server's representation of the repository, and an error, if there is any.
func (*FakeRepositories) UpdateStatus ¶
func (c *FakeRepositories) UpdateStatus(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (*v1alpha1.Repository, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeRepositories) Watch ¶
func (c *FakeRepositories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested repositories.
type FakeRestics ¶
type FakeRestics struct { Fake *FakeStashV1alpha1 // contains filtered or unexported fields }
FakeRestics implements ResticInterface
func (*FakeRestics) Create ¶
func (c *FakeRestics) Create(ctx context.Context, restic *v1alpha1.Restic, opts v1.CreateOptions) (result *v1alpha1.Restic, err error)
Create takes the representation of a restic and creates it. Returns the server's representation of the restic, and an error, if there is any.
func (*FakeRestics) Delete ¶
func (c *FakeRestics) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the restic and deletes it. Returns an error if one occurs.
func (*FakeRestics) DeleteCollection ¶
func (c *FakeRestics) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRestics) Get ¶
func (c *FakeRestics) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Restic, err error)
Get takes name of the restic, and returns the corresponding restic object, and an error if there is any.
func (*FakeRestics) List ¶
func (c *FakeRestics) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ResticList, err error)
List takes label and field selectors, and returns the list of Restics that match those selectors.
func (*FakeRestics) Patch ¶
func (c *FakeRestics) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Restic, err error)
Patch applies the patch and returns the patched restic.
func (*FakeRestics) Update ¶
func (c *FakeRestics) Update(ctx context.Context, restic *v1alpha1.Restic, opts v1.UpdateOptions) (result *v1alpha1.Restic, err error)
Update takes the representation of a restic and updates it. Returns the server's representation of the restic, and an error, if there is any.
func (*FakeRestics) Watch ¶
func (c *FakeRestics) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested restics.
type FakeStashV1alpha1 ¶
func (*FakeStashV1alpha1) RESTClient ¶
func (c *FakeStashV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeStashV1alpha1) Recoveries ¶
func (c *FakeStashV1alpha1) Recoveries(namespace string) v1alpha1.RecoveryInterface
func (*FakeStashV1alpha1) Repositories ¶
func (c *FakeStashV1alpha1) Repositories(namespace string) v1alpha1.RepositoryInterface
func (*FakeStashV1alpha1) Restics ¶
func (c *FakeStashV1alpha1) Restics(namespace string) v1alpha1.ResticInterface