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 FakeServiceNetworkACLs added in v0.5.0

type FakeServiceNetworkACLs struct {
	Fake *FakeSignalrV1alpha1
	// contains filtered or unexported fields
}

FakeServiceNetworkACLs implements ServiceNetworkACLInterface

func (*FakeServiceNetworkACLs) Create added in v0.5.0

func (c *FakeServiceNetworkACLs) Create(ctx context.Context, serviceNetworkACL *v1alpha1.ServiceNetworkACL, opts v1.CreateOptions) (result *v1alpha1.ServiceNetworkACL, err error)

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

func (*FakeServiceNetworkACLs) Delete added in v0.5.0

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

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

func (*FakeServiceNetworkACLs) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceNetworkACLs) Get added in v0.5.0

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

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

func (*FakeServiceNetworkACLs) List added in v0.5.0

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

func (*FakeServiceNetworkACLs) Patch added in v0.5.0

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

Patch applies the patch and returns the patched serviceNetworkACL.

func (*FakeServiceNetworkACLs) Update added in v0.5.0

func (c *FakeServiceNetworkACLs) Update(ctx context.Context, serviceNetworkACL *v1alpha1.ServiceNetworkACL, opts v1.UpdateOptions) (result *v1alpha1.ServiceNetworkACL, err error)

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

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

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

type FakeServices

type FakeServices struct {
	Fake *FakeSignalrV1alpha1
	// contains filtered or unexported fields
}

FakeServices implements ServiceInterface

func (*FakeServices) Create

func (c *FakeServices) Create(ctx context.Context, service *v1alpha1.Service, opts v1.CreateOptions) (result *v1alpha1.Service, err error)

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

func (*FakeServices) Delete

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

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

func (*FakeServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServices) Get

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

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

func (*FakeServices) List

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

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

func (*FakeServices) Patch

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

Patch applies the patch and returns the patched service.

func (*FakeServices) Update

func (c *FakeServices) Update(ctx context.Context, service *v1alpha1.Service, opts v1.UpdateOptions) (result *v1alpha1.Service, err error)

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

func (*FakeServices) UpdateStatus

func (c *FakeServices) UpdateStatus(ctx context.Context, service *v1alpha1.Service, opts v1.UpdateOptions) (*v1alpha1.Service, error)

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

func (*FakeServices) Watch

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

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

type FakeSignalrV1alpha1

type FakeSignalrV1alpha1 struct {
	*testing.Fake
}

func (*FakeSignalrV1alpha1) RESTClient

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

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

func (*FakeSignalrV1alpha1) ServiceNetworkACLs added in v0.5.0

func (c *FakeSignalrV1alpha1) ServiceNetworkACLs(namespace string) v1alpha1.ServiceNetworkACLInterface

func (*FakeSignalrV1alpha1) Services

func (c *FakeSignalrV1alpha1) Services(namespace string) v1alpha1.ServiceInterface

Jump to

Keyboard shortcuts

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