fake

package
v0.0.0-...-0f0168f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBackups

type FakeBackups struct {
	Fake *FakeInfluxdataV1alpha1
	// contains filtered or unexported fields
}

FakeBackups implements BackupInterface

func (*FakeBackups) Create

func (c *FakeBackups) Create(backup *v1alpha1.Backup) (result *v1alpha1.Backup, err error)

Create takes the representation of a backup and creates it. Returns the server's representation of the backup, and an error, if there is any.

func (*FakeBackups) Delete

func (c *FakeBackups) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the backup and deletes it. Returns an error if one occurs.

func (*FakeBackups) DeleteCollection

func (c *FakeBackups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeBackups) Get

func (c *FakeBackups) Get(name string, options v1.GetOptions) (result *v1alpha1.Backup, err error)

Get takes name of the backup, and returns the corresponding backup object, and an error if there is any.

func (*FakeBackups) List

func (c *FakeBackups) List(opts v1.ListOptions) (result *v1alpha1.BackupList, err error)

List takes label and field selectors, and returns the list of Backups that match those selectors.

func (*FakeBackups) Patch

func (c *FakeBackups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Backup, err error)

Patch applies the patch and returns the patched backup.

func (*FakeBackups) Update

func (c *FakeBackups) Update(backup *v1alpha1.Backup) (result *v1alpha1.Backup, err error)

Update takes the representation of a backup and updates it. Returns the server's representation of the backup, and an error, if there is any.

func (*FakeBackups) Watch

func (c *FakeBackups) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested backups.

type FakeRestores

type FakeRestores struct {
	Fake *FakeInfluxdataV1alpha1
	// contains filtered or unexported fields
}

FakeRestores implements RestoreInterface

func (*FakeRestores) Create

func (c *FakeRestores) Create(restore *v1alpha1.Restore) (result *v1alpha1.Restore, err error)

Create takes the representation of a restore and creates it. Returns the server's representation of the restore, and an error, if there is any.

func (*FakeRestores) Delete

func (c *FakeRestores) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the restore and deletes it. Returns an error if one occurs.

func (*FakeRestores) DeleteCollection

func (c *FakeRestores) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRestores) Get

func (c *FakeRestores) Get(name string, options v1.GetOptions) (result *v1alpha1.Restore, err error)

Get takes name of the restore, and returns the corresponding restore object, and an error if there is any.

func (*FakeRestores) List

func (c *FakeRestores) List(opts v1.ListOptions) (result *v1alpha1.RestoreList, err error)

List takes label and field selectors, and returns the list of Restores that match those selectors.

func (*FakeRestores) Patch

func (c *FakeRestores) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Restore, err error)

Patch applies the patch and returns the patched restore.

func (*FakeRestores) Update

func (c *FakeRestores) Update(restore *v1alpha1.Restore) (result *v1alpha1.Restore, err error)

Update takes the representation of a restore and updates it. Returns the server's representation of the restore, and an error, if there is any.

func (*FakeRestores) Watch

func (c *FakeRestores) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested restores.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL