fake

package
Version: v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: Apache-2.0, BSD-2-Clause, MIT, MPL-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 FakeCloudProfiles

type FakeCloudProfiles struct {
	Fake *FakeGarden
}

FakeCloudProfiles implements CloudProfileInterface

func (*FakeCloudProfiles) Create

func (c *FakeCloudProfiles) Create(cloudProfile *garden.CloudProfile) (result *garden.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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeCloudProfiles) Get

func (c *FakeCloudProfiles) Get(name string, options v1.GetOptions) (result *garden.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

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

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

func (*FakeCloudProfiles) Patch

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

Patch applies the patch and returns the patched cloudProfile.

func (*FakeCloudProfiles) Update

func (c *FakeCloudProfiles) Update(cloudProfile *garden.CloudProfile) (result *garden.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

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

type FakeGarden

type FakeGarden struct {
	*testing.Fake
}

func (*FakeGarden) CloudProfiles

func (*FakeGarden) Projects

func (*FakeGarden) Quotas

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

func (*FakeGarden) RESTClient

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

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

func (*FakeGarden) SecretBindings

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

func (*FakeGarden) Seeds

func (*FakeGarden) Shoots

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

type FakeProjects

type FakeProjects struct {
	Fake *FakeGarden
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create

func (c *FakeProjects) Create(project *garden.Project) (result *garden.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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get

func (c *FakeProjects) Get(name string, options v1.GetOptions) (result *garden.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

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

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

func (*FakeProjects) Patch

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update

func (c *FakeProjects) Update(project *garden.Project) (result *garden.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

func (c *FakeProjects) UpdateStatus(project *garden.Project) (*garden.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

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

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

type FakeQuotas

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

FakeQuotas implements QuotaInterface

func (*FakeQuotas) Create

func (c *FakeQuotas) Create(quota *garden.Quota) (result *garden.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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeQuotas) Get

func (c *FakeQuotas) Get(name string, options v1.GetOptions) (result *garden.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

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

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

func (*FakeQuotas) Patch

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

Patch applies the patch and returns the patched quota.

func (*FakeQuotas) Update

func (c *FakeQuotas) Update(quota *garden.Quota) (result *garden.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

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

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

type FakeSecretBindings

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

FakeSecretBindings implements SecretBindingInterface

func (*FakeSecretBindings) Create

func (c *FakeSecretBindings) Create(secretBinding *garden.SecretBinding) (result *garden.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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeSecretBindings) Get

func (c *FakeSecretBindings) Get(name string, options v1.GetOptions) (result *garden.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

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

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

func (*FakeSecretBindings) Patch

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

Patch applies the patch and returns the patched secretBinding.

func (*FakeSecretBindings) Update

func (c *FakeSecretBindings) Update(secretBinding *garden.SecretBinding) (result *garden.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

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

type FakeSeeds

type FakeSeeds struct {
	Fake *FakeGarden
}

FakeSeeds implements SeedInterface

func (*FakeSeeds) Create

func (c *FakeSeeds) Create(seed *garden.Seed) (result *garden.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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeSeeds) Get

func (c *FakeSeeds) Get(name string, options v1.GetOptions) (result *garden.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

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

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

func (*FakeSeeds) Patch

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

Patch applies the patch and returns the patched seed.

func (*FakeSeeds) Update

func (c *FakeSeeds) Update(seed *garden.Seed) (result *garden.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

func (c *FakeSeeds) UpdateStatus(seed *garden.Seed) (*garden.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

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

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

type FakeShoots

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

FakeShoots implements ShootInterface

func (*FakeShoots) Create

func (c *FakeShoots) Create(shoot *garden.Shoot) (result *garden.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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeShoots) Get

func (c *FakeShoots) Get(name string, options v1.GetOptions) (result *garden.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

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

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

func (*FakeShoots) Patch

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

Patch applies the patch and returns the patched shoot.

func (*FakeShoots) Update

func (c *FakeShoots) Update(shoot *garden.Shoot) (result *garden.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

func (c *FakeShoots) UpdateStatus(shoot *garden.Shoot) (*garden.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

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