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 FakeCdnV1alpha1

type FakeCdnV1alpha1 struct {
	*testing.Fake
}

func (*FakeCdnV1alpha1) EndpointCustomDomains added in v0.5.0

func (c *FakeCdnV1alpha1) EndpointCustomDomains(namespace string) v1alpha1.EndpointCustomDomainInterface

func (*FakeCdnV1alpha1) Endpoints

func (c *FakeCdnV1alpha1) Endpoints(namespace string) v1alpha1.EndpointInterface

func (*FakeCdnV1alpha1) Profiles

func (c *FakeCdnV1alpha1) Profiles(namespace string) v1alpha1.ProfileInterface

func (*FakeCdnV1alpha1) RESTClient

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

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

type FakeEndpointCustomDomains added in v0.5.0

type FakeEndpointCustomDomains struct {
	Fake *FakeCdnV1alpha1
	// contains filtered or unexported fields
}

FakeEndpointCustomDomains implements EndpointCustomDomainInterface

func (*FakeEndpointCustomDomains) Create added in v0.5.0

func (c *FakeEndpointCustomDomains) Create(ctx context.Context, endpointCustomDomain *v1alpha1.EndpointCustomDomain, opts v1.CreateOptions) (result *v1alpha1.EndpointCustomDomain, err error)

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

func (*FakeEndpointCustomDomains) Delete added in v0.5.0

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

func (*FakeEndpointCustomDomains) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeEndpointCustomDomains) Get added in v0.5.0

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

func (*FakeEndpointCustomDomains) List added in v0.5.0

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

func (*FakeEndpointCustomDomains) Patch added in v0.5.0

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

Patch applies the patch and returns the patched endpointCustomDomain.

func (*FakeEndpointCustomDomains) Update added in v0.5.0

func (c *FakeEndpointCustomDomains) Update(ctx context.Context, endpointCustomDomain *v1alpha1.EndpointCustomDomain, opts v1.UpdateOptions) (result *v1alpha1.EndpointCustomDomain, err error)

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

func (*FakeEndpointCustomDomains) 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 (*FakeEndpointCustomDomains) Watch added in v0.5.0

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

type FakeEndpoints

type FakeEndpoints struct {
	Fake *FakeCdnV1alpha1
	// contains filtered or unexported fields
}

FakeEndpoints implements EndpointInterface

func (*FakeEndpoints) Create

func (c *FakeEndpoints) Create(ctx context.Context, endpoint *v1alpha1.Endpoint, opts v1.CreateOptions) (result *v1alpha1.Endpoint, err error)

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

func (*FakeEndpoints) Delete

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

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

func (*FakeEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEndpoints) Get

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

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

func (*FakeEndpoints) List

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

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

func (*FakeEndpoints) Patch

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

Patch applies the patch and returns the patched endpoint.

func (*FakeEndpoints) Update

func (c *FakeEndpoints) Update(ctx context.Context, endpoint *v1alpha1.Endpoint, opts v1.UpdateOptions) (result *v1alpha1.Endpoint, err error)

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

func (*FakeEndpoints) UpdateStatus

func (c *FakeEndpoints) UpdateStatus(ctx context.Context, endpoint *v1alpha1.Endpoint, opts v1.UpdateOptions) (*v1alpha1.Endpoint, error)

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

func (*FakeEndpoints) Watch

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

type FakeProfiles

type FakeProfiles struct {
	Fake *FakeCdnV1alpha1
	// contains filtered or unexported fields
}

FakeProfiles implements ProfileInterface

func (*FakeProfiles) Create

func (c *FakeProfiles) Create(ctx context.Context, profile *v1alpha1.Profile, opts v1.CreateOptions) (result *v1alpha1.Profile, err error)

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

func (*FakeProfiles) Delete

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

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

func (*FakeProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProfiles) Get

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

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

func (*FakeProfiles) List

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

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

func (*FakeProfiles) Patch

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

Patch applies the patch and returns the patched profile.

func (*FakeProfiles) Update

func (c *FakeProfiles) Update(ctx context.Context, profile *v1alpha1.Profile, opts v1.UpdateOptions) (result *v1alpha1.Profile, err error)

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

func (*FakeProfiles) UpdateStatus

func (c *FakeProfiles) UpdateStatus(ctx context.Context, profile *v1alpha1.Profile, opts v1.UpdateOptions) (*v1alpha1.Profile, error)

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

func (*FakeProfiles) Watch

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

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

Jump to

Keyboard shortcuts

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