fake

package
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, + 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 FakeCloudProfiles

type FakeCloudProfiles struct {
	Fake *FakeGardenV1beta1
}

FakeCloudProfiles implements CloudProfileInterface

func (*FakeCloudProfiles) Create

func (c *FakeCloudProfiles) Create(cloudProfile *v1beta1.CloudProfile) (result *v1beta1.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 *v1beta1.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 *v1beta1.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 *v1beta1.CloudProfile, err error)

Patch applies the patch and returns the patched cloudProfile.

func (*FakeCloudProfiles) Update

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

type FakeGardenV1beta1 struct {
	*testing.Fake
}

func (*FakeGardenV1beta1) CloudProfiles

func (c *FakeGardenV1beta1) CloudProfiles() v1beta1.CloudProfileInterface

func (*FakeGardenV1beta1) Projects

func (*FakeGardenV1beta1) Quotas

func (c *FakeGardenV1beta1) Quotas(namespace string) v1beta1.QuotaInterface

func (*FakeGardenV1beta1) RESTClient

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

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

func (*FakeGardenV1beta1) SecretBindings

func (c *FakeGardenV1beta1) SecretBindings(namespace string) v1beta1.SecretBindingInterface

func (*FakeGardenV1beta1) Seeds

func (*FakeGardenV1beta1) Shoots

func (c *FakeGardenV1beta1) Shoots(namespace string) v1beta1.ShootInterface

type FakeProjects

type FakeProjects struct {
	Fake *FakeGardenV1beta1
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create

func (c *FakeProjects) Create(project *v1beta1.Project) (result *v1beta1.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 *v1beta1.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 *v1beta1.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 *v1beta1.Project, err error)

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update

func (c *FakeProjects) Update(project *v1beta1.Project) (result *v1beta1.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 *v1beta1.Project) (*v1beta1.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 *FakeGardenV1beta1
	// contains filtered or unexported fields
}

FakeQuotas implements QuotaInterface

func (*FakeQuotas) Create

func (c *FakeQuotas) Create(quota *v1beta1.Quota) (result *v1beta1.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 *v1beta1.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 *v1beta1.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 *v1beta1.Quota, err error)

Patch applies the patch and returns the patched quota.

func (*FakeQuotas) Update

func (c *FakeQuotas) Update(quota *v1beta1.Quota) (result *v1beta1.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 *FakeGardenV1beta1
	// contains filtered or unexported fields
}

FakeSecretBindings implements SecretBindingInterface

func (*FakeSecretBindings) Create

func (c *FakeSecretBindings) Create(secretBinding *v1beta1.SecretBinding) (result *v1beta1.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 *v1beta1.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 *v1beta1.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 *v1beta1.SecretBinding, err error)

Patch applies the patch and returns the patched secretBinding.

func (*FakeSecretBindings) Update

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

FakeSeeds implements SeedInterface

func (*FakeSeeds) Create

func (c *FakeSeeds) Create(seed *v1beta1.Seed) (result *v1beta1.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 *v1beta1.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 *v1beta1.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 *v1beta1.Seed, err error)

Patch applies the patch and returns the patched seed.

func (*FakeSeeds) Update

func (c *FakeSeeds) Update(seed *v1beta1.Seed) (result *v1beta1.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 *v1beta1.Seed) (*v1beta1.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 *FakeGardenV1beta1
	// contains filtered or unexported fields
}

FakeShoots implements ShootInterface

func (*FakeShoots) Create

func (c *FakeShoots) Create(shoot *v1beta1.Shoot) (result *v1beta1.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 *v1beta1.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 *v1beta1.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 *v1beta1.Shoot, err error)

Patch applies the patch and returns the patched shoot.

func (*FakeShoots) Update

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