fake

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 9 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 FakeArkV1

type FakeArkV1 struct {
	*testing.Fake
}

func (*FakeArkV1) Backups

func (c *FakeArkV1) Backups(namespace string) v1.BackupInterface

func (*FakeArkV1) Configs

func (c *FakeArkV1) Configs(namespace string) v1.ConfigInterface

func (*FakeArkV1) DownloadRequests added in v0.4.0

func (c *FakeArkV1) DownloadRequests(namespace string) v1.DownloadRequestInterface

func (*FakeArkV1) RESTClient

func (c *FakeArkV1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeArkV1) Restores

func (c *FakeArkV1) Restores(namespace string) v1.RestoreInterface

func (*FakeArkV1) Schedules

func (c *FakeArkV1) Schedules(namespace string) v1.ScheduleInterface

type FakeBackups

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

FakeBackups implements BackupInterface

func (*FakeBackups) Create

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

func (*FakeBackups) Delete

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

func (*FakeBackups) DeleteCollection

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

func (*FakeBackups) Get

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

func (*FakeBackups) List

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

func (*FakeBackups) Patch

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

Patch applies the patch and returns the patched backup.

func (*FakeBackups) Update

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

func (*FakeBackups) UpdateStatus

func (c *FakeBackups) UpdateStatus(backup *v1.Backup) (*v1.Backup, error)

func (*FakeBackups) Watch

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

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

type FakeConfigs

type FakeConfigs struct {
	Fake *FakeArkV1
	// contains filtered or unexported fields
}

FakeConfigs implements ConfigInterface

func (*FakeConfigs) Create

func (c *FakeConfigs) Create(config *v1.Config) (result *v1.Config, err error)

func (*FakeConfigs) Delete

func (c *FakeConfigs) Delete(name string, options *meta_v1.DeleteOptions) error

func (*FakeConfigs) DeleteCollection

func (c *FakeConfigs) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*FakeConfigs) Get

func (c *FakeConfigs) Get(name string, options meta_v1.GetOptions) (result *v1.Config, err error)

func (*FakeConfigs) List

func (c *FakeConfigs) List(opts meta_v1.ListOptions) (result *v1.ConfigList, err error)

func (*FakeConfigs) Patch

func (c *FakeConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Config, err error)

Patch applies the patch and returns the patched config.

func (*FakeConfigs) Update

func (c *FakeConfigs) Update(config *v1.Config) (result *v1.Config, err error)

func (*FakeConfigs) Watch

func (c *FakeConfigs) Watch(opts meta_v1.ListOptions) (watch.Interface, error)

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

type FakeDownloadRequests added in v0.4.0

type FakeDownloadRequests struct {
	Fake *FakeArkV1
	// contains filtered or unexported fields
}

FakeDownloadRequests implements DownloadRequestInterface

func (*FakeDownloadRequests) Create added in v0.4.0

func (c *FakeDownloadRequests) Create(downloadRequest *v1.DownloadRequest) (result *v1.DownloadRequest, err error)

func (*FakeDownloadRequests) Delete added in v0.4.0

func (c *FakeDownloadRequests) Delete(name string, options *meta_v1.DeleteOptions) error

func (*FakeDownloadRequests) DeleteCollection added in v0.4.0

func (c *FakeDownloadRequests) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*FakeDownloadRequests) Get added in v0.4.0

func (c *FakeDownloadRequests) Get(name string, options meta_v1.GetOptions) (result *v1.DownloadRequest, err error)

func (*FakeDownloadRequests) List added in v0.4.0

func (c *FakeDownloadRequests) List(opts meta_v1.ListOptions) (result *v1.DownloadRequestList, err error)

func (*FakeDownloadRequests) Patch added in v0.4.0

func (c *FakeDownloadRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.DownloadRequest, err error)

Patch applies the patch and returns the patched downloadRequest.

func (*FakeDownloadRequests) Update added in v0.4.0

func (c *FakeDownloadRequests) Update(downloadRequest *v1.DownloadRequest) (result *v1.DownloadRequest, err error)

func (*FakeDownloadRequests) UpdateStatus added in v0.4.0

func (c *FakeDownloadRequests) UpdateStatus(downloadRequest *v1.DownloadRequest) (*v1.DownloadRequest, error)

func (*FakeDownloadRequests) Watch added in v0.4.0

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

type FakeRestores

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

FakeRestores implements RestoreInterface

func (*FakeRestores) Create

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

func (*FakeRestores) Delete

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

func (*FakeRestores) DeleteCollection

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

func (*FakeRestores) Get

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

func (*FakeRestores) List

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

func (*FakeRestores) Patch

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

Patch applies the patch and returns the patched restore.

func (*FakeRestores) Update

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

func (*FakeRestores) UpdateStatus

func (c *FakeRestores) UpdateStatus(restore *v1.Restore) (*v1.Restore, error)

func (*FakeRestores) Watch

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

type FakeSchedules

type FakeSchedules struct {
	Fake *FakeArkV1
	// contains filtered or unexported fields
}

FakeSchedules implements ScheduleInterface

func (*FakeSchedules) Create

func (c *FakeSchedules) Create(schedule *v1.Schedule) (result *v1.Schedule, err error)

func (*FakeSchedules) Delete

func (c *FakeSchedules) Delete(name string, options *meta_v1.DeleteOptions) error

func (*FakeSchedules) DeleteCollection

func (c *FakeSchedules) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*FakeSchedules) Get

func (c *FakeSchedules) Get(name string, options meta_v1.GetOptions) (result *v1.Schedule, err error)

func (*FakeSchedules) List

func (c *FakeSchedules) List(opts meta_v1.ListOptions) (result *v1.ScheduleList, err error)

func (*FakeSchedules) Patch

func (c *FakeSchedules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Schedule, err error)

Patch applies the patch and returns the patched schedule.

func (*FakeSchedules) Update

func (c *FakeSchedules) Update(schedule *v1.Schedule) (result *v1.Schedule, err error)

func (*FakeSchedules) UpdateStatus

func (c *FakeSchedules) UpdateStatus(schedule *v1.Schedule) (*v1.Schedule, error)

func (*FakeSchedules) Watch

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

Jump to

Keyboard shortcuts

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