Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeRepositoriesV1alpha1
- type FakeSnapshots
- func (c *FakeSnapshots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Snapshot, err error)
- func (c *FakeSnapshots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SnapshotList, err error)
- func (c *FakeSnapshots) UpdateStatus(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (*v1alpha1.Snapshot, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRepositoriesV1alpha1 ¶
func (*FakeRepositoriesV1alpha1) RESTClient ¶
func (c *FakeRepositoriesV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeRepositoriesV1alpha1) Snapshots ¶
func (c *FakeRepositoriesV1alpha1) Snapshots(namespace string) v1alpha1.SnapshotInterface
type FakeSnapshots ¶
type FakeSnapshots struct { Fake *FakeRepositoriesV1alpha1 // contains filtered or unexported fields }
FakeSnapshots implements SnapshotInterface
func (*FakeSnapshots) Delete ¶
func (c *FakeSnapshots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the snapshot and deletes it. Returns an error if one occurs.
func (*FakeSnapshots) Get ¶
func (c *FakeSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Snapshot, err error)
Get takes name of the snapshot, and returns the corresponding snapshot object, and an error if there is any.
func (*FakeSnapshots) List ¶
func (c *FakeSnapshots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SnapshotList, err error)
List takes label and field selectors, and returns the list of Snapshots that match those selectors.
func (*FakeSnapshots) UpdateStatus ¶
func (c *FakeSnapshots) UpdateStatus(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (*v1alpha1.Snapshot, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().