fake

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more 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 FakeBackupBuckets

type FakeBackupBuckets struct {
	Fake *FakeCore
}

FakeBackupBuckets implements BackupBucketInterface

func (*FakeBackupBuckets) Create

func (c *FakeBackupBuckets) Create(backupBucket *core.BackupBucket) (result *core.BackupBucket, err error)

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

func (*FakeBackupBuckets) Delete

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

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

func (*FakeBackupBuckets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackupBuckets) Get

func (c *FakeBackupBuckets) Get(name string, options v1.GetOptions) (result *core.BackupBucket, err error)

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

func (*FakeBackupBuckets) List

func (c *FakeBackupBuckets) List(opts v1.ListOptions) (result *core.BackupBucketList, err error)

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

func (*FakeBackupBuckets) Patch

func (c *FakeBackupBuckets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core.BackupBucket, err error)

Patch applies the patch and returns the patched backupBucket.

func (*FakeBackupBuckets) Update

func (c *FakeBackupBuckets) Update(backupBucket *core.BackupBucket) (result *core.BackupBucket, err error)

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

func (*FakeBackupBuckets) UpdateStatus

func (c *FakeBackupBuckets) UpdateStatus(backupBucket *core.BackupBucket) (*core.BackupBucket, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeBackupBuckets) Watch

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

type FakeBackupEntries

type FakeBackupEntries struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakeBackupEntries implements BackupEntryInterface

func (*FakeBackupEntries) Create

func (c *FakeBackupEntries) Create(backupEntry *core.BackupEntry) (result *core.BackupEntry, err error)

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

func (*FakeBackupEntries) Delete

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

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

func (*FakeBackupEntries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackupEntries) Get

func (c *FakeBackupEntries) Get(name string, options v1.GetOptions) (result *core.BackupEntry, err error)

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

func (*FakeBackupEntries) List

func (c *FakeBackupEntries) List(opts v1.ListOptions) (result *core.BackupEntryList, err error)

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

func (*FakeBackupEntries) Patch

func (c *FakeBackupEntries) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core.BackupEntry, err error)

Patch applies the patch and returns the patched backupEntry.

func (*FakeBackupEntries) Update

func (c *FakeBackupEntries) Update(backupEntry *core.BackupEntry) (result *core.BackupEntry, err error)

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

func (*FakeBackupEntries) UpdateStatus

func (c *FakeBackupEntries) UpdateStatus(backupEntry *core.BackupEntry) (*core.BackupEntry, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeBackupEntries) Watch

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

type FakeControllerInstallations

type FakeControllerInstallations struct {
	Fake *FakeCore
}

FakeControllerInstallations implements ControllerInstallationInterface

func (*FakeControllerInstallations) Create

func (c *FakeControllerInstallations) Create(controllerInstallation *core.ControllerInstallation) (result *core.ControllerInstallation, err error)

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

func (*FakeControllerInstallations) Delete

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

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

func (*FakeControllerInstallations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeControllerInstallations) Get

func (c *FakeControllerInstallations) Get(name string, options v1.GetOptions) (result *core.ControllerInstallation, err error)

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

func (*FakeControllerInstallations) List

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

func (*FakeControllerInstallations) Patch

func (c *FakeControllerInstallations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core.ControllerInstallation, err error)

Patch applies the patch and returns the patched controllerInstallation.

func (*FakeControllerInstallations) Update

func (c *FakeControllerInstallations) Update(controllerInstallation *core.ControllerInstallation) (result *core.ControllerInstallation, err error)

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

func (*FakeControllerInstallations) UpdateStatus

func (c *FakeControllerInstallations) UpdateStatus(controllerInstallation *core.ControllerInstallation) (*core.ControllerInstallation, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeControllerInstallations) Watch

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

type FakeControllerRegistrations

type FakeControllerRegistrations struct {
	Fake *FakeCore
}

FakeControllerRegistrations implements ControllerRegistrationInterface

func (*FakeControllerRegistrations) Create

func (c *FakeControllerRegistrations) Create(controllerRegistration *core.ControllerRegistration) (result *core.ControllerRegistration, err error)

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

func (*FakeControllerRegistrations) Delete

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

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

func (*FakeControllerRegistrations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeControllerRegistrations) Get

func (c *FakeControllerRegistrations) Get(name string, options v1.GetOptions) (result *core.ControllerRegistration, err error)

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

func (*FakeControllerRegistrations) List

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

func (*FakeControllerRegistrations) Patch

func (c *FakeControllerRegistrations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core.ControllerRegistration, err error)

Patch applies the patch and returns the patched controllerRegistration.

func (*FakeControllerRegistrations) Update

func (c *FakeControllerRegistrations) Update(controllerRegistration *core.ControllerRegistration) (result *core.ControllerRegistration, err error)

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

func (*FakeControllerRegistrations) Watch

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

type FakeCore

type FakeCore struct {
	*testing.Fake
}

func (*FakeCore) BackupBuckets

func (c *FakeCore) BackupBuckets() internalversion.BackupBucketInterface

func (*FakeCore) BackupEntries

func (c *FakeCore) BackupEntries(namespace string) internalversion.BackupEntryInterface

func (*FakeCore) ControllerInstallations

func (c *FakeCore) ControllerInstallations() internalversion.ControllerInstallationInterface

func (*FakeCore) ControllerRegistrations

func (c *FakeCore) ControllerRegistrations() internalversion.ControllerRegistrationInterface

func (*FakeCore) Plants

func (c *FakeCore) Plants(namespace string) internalversion.PlantInterface

func (*FakeCore) RESTClient

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

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

func (*FakeCore) ShootStates added in v0.33.0

func (c *FakeCore) ShootStates(namespace string) internalversion.ShootStateInterface

type FakePlants

type FakePlants struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakePlants implements PlantInterface

func (*FakePlants) Create

func (c *FakePlants) Create(plant *core.Plant) (result *core.Plant, err error)

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

func (*FakePlants) Delete

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

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

func (*FakePlants) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePlants) Get

func (c *FakePlants) Get(name string, options v1.GetOptions) (result *core.Plant, err error)

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

func (*FakePlants) List

func (c *FakePlants) List(opts v1.ListOptions) (result *core.PlantList, err error)

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

func (*FakePlants) Patch

func (c *FakePlants) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core.Plant, err error)

Patch applies the patch and returns the patched plant.

func (*FakePlants) Update

func (c *FakePlants) Update(plant *core.Plant) (result *core.Plant, err error)

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

func (*FakePlants) UpdateStatus

func (c *FakePlants) UpdateStatus(plant *core.Plant) (*core.Plant, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePlants) Watch

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

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

type FakeShootStates added in v0.33.0

type FakeShootStates struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakeShootStates implements ShootStateInterface

func (*FakeShootStates) Create added in v0.33.0

func (c *FakeShootStates) Create(shootState *core.ShootState) (result *core.ShootState, err error)

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

func (*FakeShootStates) Delete added in v0.33.0

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

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

func (*FakeShootStates) DeleteCollection added in v0.33.0

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

DeleteCollection deletes a collection of objects.

func (*FakeShootStates) Get added in v0.33.0

func (c *FakeShootStates) Get(name string, options v1.GetOptions) (result *core.ShootState, err error)

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

func (*FakeShootStates) List added in v0.33.0

func (c *FakeShootStates) List(opts v1.ListOptions) (result *core.ShootStateList, err error)

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

func (*FakeShootStates) Patch added in v0.33.0

func (c *FakeShootStates) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core.ShootState, err error)

Patch applies the patch and returns the patched shootState.

func (*FakeShootStates) Update added in v0.33.0

func (c *FakeShootStates) Update(shootState *core.ShootState) (result *core.ShootState, err error)

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

func (*FakeShootStates) Watch added in v0.33.0

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

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

Jump to

Keyboard shortcuts

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