fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 10 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 FakeSiteCustomDomains added in v0.5.0

type FakeSiteCustomDomains struct {
	Fake *FakeStaticV1alpha1
	// contains filtered or unexported fields
}

FakeSiteCustomDomains implements SiteCustomDomainInterface

func (*FakeSiteCustomDomains) Create added in v0.5.0

func (c *FakeSiteCustomDomains) Create(ctx context.Context, siteCustomDomain *v1alpha1.SiteCustomDomain, opts v1.CreateOptions) (result *v1alpha1.SiteCustomDomain, err error)

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

func (*FakeSiteCustomDomains) Delete added in v0.5.0

func (c *FakeSiteCustomDomains) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeSiteCustomDomains) DeleteCollection added in v0.5.0

func (c *FakeSiteCustomDomains) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSiteCustomDomains) Get added in v0.5.0

func (c *FakeSiteCustomDomains) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SiteCustomDomain, err error)

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

func (*FakeSiteCustomDomains) List added in v0.5.0

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

func (*FakeSiteCustomDomains) Patch added in v0.5.0

func (c *FakeSiteCustomDomains) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SiteCustomDomain, err error)

Patch applies the patch and returns the patched siteCustomDomain.

func (*FakeSiteCustomDomains) Update added in v0.5.0

func (c *FakeSiteCustomDomains) Update(ctx context.Context, siteCustomDomain *v1alpha1.SiteCustomDomain, opts v1.UpdateOptions) (result *v1alpha1.SiteCustomDomain, err error)

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

func (*FakeSiteCustomDomains) UpdateStatus added in v0.5.0

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

func (*FakeSiteCustomDomains) Watch added in v0.5.0

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

type FakeSites

type FakeSites struct {
	Fake *FakeStaticV1alpha1
	// contains filtered or unexported fields
}

FakeSites implements SiteInterface

func (*FakeSites) Create

func (c *FakeSites) Create(ctx context.Context, site *v1alpha1.Site, opts v1.CreateOptions) (result *v1alpha1.Site, err error)

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

func (*FakeSites) Delete

func (c *FakeSites) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeSites) DeleteCollection

func (c *FakeSites) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSites) Get

func (c *FakeSites) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Site, err error)

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

func (*FakeSites) List

func (c *FakeSites) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SiteList, err error)

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

func (*FakeSites) Patch

func (c *FakeSites) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Site, err error)

Patch applies the patch and returns the patched site.

func (*FakeSites) Update

func (c *FakeSites) Update(ctx context.Context, site *v1alpha1.Site, opts v1.UpdateOptions) (result *v1alpha1.Site, err error)

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

func (*FakeSites) UpdateStatus

func (c *FakeSites) UpdateStatus(ctx context.Context, site *v1alpha1.Site, opts v1.UpdateOptions) (*v1alpha1.Site, error)

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

func (*FakeSites) Watch

func (c *FakeSites) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeStaticV1alpha1

type FakeStaticV1alpha1 struct {
	*testing.Fake
}

func (*FakeStaticV1alpha1) RESTClient

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

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

func (*FakeStaticV1alpha1) SiteCustomDomains added in v0.5.0

func (c *FakeStaticV1alpha1) SiteCustomDomains(namespace string) v1alpha1.SiteCustomDomainInterface

func (*FakeStaticV1alpha1) Sites

func (c *FakeStaticV1alpha1) Sites(namespace string) v1alpha1.SiteInterface

Jump to

Keyboard shortcuts

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