fake

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 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 FakeCloudProfiles added in v1.0.0

type FakeCloudProfiles struct {
	Fake *FakeCore
}

FakeCloudProfiles implements CloudProfileInterface

func (*FakeCloudProfiles) Create added in v1.0.0

func (c *FakeCloudProfiles) Create(cloudProfile *core.CloudProfile) (result *core.CloudProfile, err error)

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

func (*FakeCloudProfiles) Delete added in v1.0.0

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

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

func (*FakeCloudProfiles) DeleteCollection added in v1.0.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCloudProfiles) Get added in v1.0.0

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

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

func (*FakeCloudProfiles) List added in v1.0.0

func (c *FakeCloudProfiles) List(opts v1.ListOptions) (result *core.CloudProfileList, err error)

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

func (*FakeCloudProfiles) Patch added in v1.0.0

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

Patch applies the patch and returns the patched cloudProfile.

func (*FakeCloudProfiles) Update added in v1.0.0

func (c *FakeCloudProfiles) Update(cloudProfile *core.CloudProfile) (result *core.CloudProfile, err error)

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

func (*FakeCloudProfiles) Watch added in v1.0.0

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

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) CloudProfiles added in v1.0.0

func (c *FakeCore) CloudProfiles() internalversion.CloudProfileInterface

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) Projects added in v1.0.0

func (*FakeCore) Quotas added in v1.0.0

func (c *FakeCore) Quotas(namespace string) internalversion.QuotaInterface

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) SecretBindings added in v1.0.0

func (c *FakeCore) SecretBindings(namespace string) internalversion.SecretBindingInterface

func (*FakeCore) Seeds added in v1.0.0

func (*FakeCore) ShootStates added in v0.33.0

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

func (*FakeCore) Shoots added in v1.0.0

func (c *FakeCore) Shoots(namespace string) internalversion.ShootInterface

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 FakeProjects added in v1.0.0

type FakeProjects struct {
	Fake *FakeCore
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create added in v1.0.0

func (c *FakeProjects) Create(project *core.Project) (result *core.Project, err error)

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

func (*FakeProjects) Delete added in v1.0.0

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

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

func (*FakeProjects) DeleteCollection added in v1.0.0

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get added in v1.0.0

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

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

func (*FakeProjects) List added in v1.0.0

func (c *FakeProjects) List(opts v1.ListOptions) (result *core.ProjectList, err error)

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

func (*FakeProjects) Patch added in v1.0.0

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update added in v1.0.0

func (c *FakeProjects) Update(project *core.Project) (result *core.Project, err error)

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

func (*FakeProjects) UpdateStatus added in v1.0.0

func (c *FakeProjects) UpdateStatus(project *core.Project) (*core.Project, error)

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

func (*FakeProjects) Watch added in v1.0.0

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

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

type FakeQuotas added in v1.0.0

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

FakeQuotas implements QuotaInterface

func (*FakeQuotas) Create added in v1.0.0

func (c *FakeQuotas) Create(quota *core.Quota) (result *core.Quota, err error)

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

func (*FakeQuotas) Delete added in v1.0.0

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

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

func (*FakeQuotas) DeleteCollection added in v1.0.0

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

DeleteCollection deletes a collection of objects.

func (*FakeQuotas) Get added in v1.0.0

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

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

func (*FakeQuotas) List added in v1.0.0

func (c *FakeQuotas) List(opts v1.ListOptions) (result *core.QuotaList, err error)

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

func (*FakeQuotas) Patch added in v1.0.0

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

Patch applies the patch and returns the patched quota.

func (*FakeQuotas) Update added in v1.0.0

func (c *FakeQuotas) Update(quota *core.Quota) (result *core.Quota, err error)

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

func (*FakeQuotas) Watch added in v1.0.0

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

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

type FakeSecretBindings added in v1.0.0

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

FakeSecretBindings implements SecretBindingInterface

func (*FakeSecretBindings) Create added in v1.0.0

func (c *FakeSecretBindings) Create(secretBinding *core.SecretBinding) (result *core.SecretBinding, err error)

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

func (*FakeSecretBindings) Delete added in v1.0.0

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

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

func (*FakeSecretBindings) DeleteCollection added in v1.0.0

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

DeleteCollection deletes a collection of objects.

func (*FakeSecretBindings) Get added in v1.0.0

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

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

func (*FakeSecretBindings) List added in v1.0.0

func (c *FakeSecretBindings) List(opts v1.ListOptions) (result *core.SecretBindingList, err error)

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

func (*FakeSecretBindings) Patch added in v1.0.0

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

Patch applies the patch and returns the patched secretBinding.

func (*FakeSecretBindings) Update added in v1.0.0

func (c *FakeSecretBindings) Update(secretBinding *core.SecretBinding) (result *core.SecretBinding, err error)

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

func (*FakeSecretBindings) Watch added in v1.0.0

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

type FakeSeeds added in v1.0.0

type FakeSeeds struct {
	Fake *FakeCore
}

FakeSeeds implements SeedInterface

func (*FakeSeeds) Create added in v1.0.0

func (c *FakeSeeds) Create(seed *core.Seed) (result *core.Seed, err error)

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

func (*FakeSeeds) Delete added in v1.0.0

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

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

func (*FakeSeeds) DeleteCollection added in v1.0.0

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

DeleteCollection deletes a collection of objects.

func (*FakeSeeds) Get added in v1.0.0

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

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

func (*FakeSeeds) List added in v1.0.0

func (c *FakeSeeds) List(opts v1.ListOptions) (result *core.SeedList, err error)

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

func (*FakeSeeds) Patch added in v1.0.0

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

Patch applies the patch and returns the patched seed.

func (*FakeSeeds) Update added in v1.0.0

func (c *FakeSeeds) Update(seed *core.Seed) (result *core.Seed, err error)

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

func (*FakeSeeds) UpdateStatus added in v1.0.0

func (c *FakeSeeds) UpdateStatus(seed *core.Seed) (*core.Seed, error)

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

func (*FakeSeeds) Watch added in v1.0.0

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

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

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.

type FakeShoots added in v1.0.0

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

FakeShoots implements ShootInterface

func (*FakeShoots) Create added in v1.0.0

func (c *FakeShoots) Create(shoot *core.Shoot) (result *core.Shoot, err error)

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

func (*FakeShoots) Delete added in v1.0.0

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

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

func (*FakeShoots) DeleteCollection added in v1.0.0

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

DeleteCollection deletes a collection of objects.

func (*FakeShoots) Get added in v1.0.0

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

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

func (*FakeShoots) List added in v1.0.0

func (c *FakeShoots) List(opts v1.ListOptions) (result *core.ShootList, err error)

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

func (*FakeShoots) Patch added in v1.0.0

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

Patch applies the patch and returns the patched shoot.

func (*FakeShoots) Update added in v1.0.0

func (c *FakeShoots) Update(shoot *core.Shoot) (result *core.Shoot, err error)

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

func (*FakeShoots) UpdateStatus added in v1.0.0

func (c *FakeShoots) UpdateStatus(shoot *core.Shoot) (*core.Shoot, error)

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

func (*FakeShoots) Watch added in v1.0.0

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

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

Jump to

Keyboard shortcuts

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