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 FakeEndpointsV1alpha1

type FakeEndpointsV1alpha1 struct {
	*testing.Fake
}

func (*FakeEndpointsV1alpha1) RESTClient

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

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

func (*FakeEndpointsV1alpha1) ServiceIamBindings

func (c *FakeEndpointsV1alpha1) ServiceIamBindings(namespace string) v1alpha1.ServiceIamBindingInterface

func (*FakeEndpointsV1alpha1) ServiceIamMembers

func (c *FakeEndpointsV1alpha1) ServiceIamMembers(namespace string) v1alpha1.ServiceIamMemberInterface

func (*FakeEndpointsV1alpha1) ServiceIamPolicies

func (c *FakeEndpointsV1alpha1) ServiceIamPolicies(namespace string) v1alpha1.ServiceIamPolicyInterface

func (*FakeEndpointsV1alpha1) Services

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

type FakeServiceIamBindings

type FakeServiceIamBindings struct {
	Fake *FakeEndpointsV1alpha1
	// contains filtered or unexported fields
}

FakeServiceIamBindings implements ServiceIamBindingInterface

func (*FakeServiceIamBindings) Create

func (c *FakeServiceIamBindings) Create(ctx context.Context, serviceIamBinding *v1alpha1.ServiceIamBinding, opts v1.CreateOptions) (result *v1alpha1.ServiceIamBinding, err error)

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

func (*FakeServiceIamBindings) Delete

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

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

func (*FakeServiceIamBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceIamBindings) Get

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

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

func (*FakeServiceIamBindings) List

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

func (*FakeServiceIamBindings) Patch

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

Patch applies the patch and returns the patched serviceIamBinding.

func (*FakeServiceIamBindings) Update

func (c *FakeServiceIamBindings) Update(ctx context.Context, serviceIamBinding *v1alpha1.ServiceIamBinding, opts v1.UpdateOptions) (result *v1alpha1.ServiceIamBinding, err error)

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

func (*FakeServiceIamBindings) UpdateStatus

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

func (*FakeServiceIamBindings) Watch

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

type FakeServiceIamMembers

type FakeServiceIamMembers struct {
	Fake *FakeEndpointsV1alpha1
	// contains filtered or unexported fields
}

FakeServiceIamMembers implements ServiceIamMemberInterface

func (*FakeServiceIamMembers) Create

func (c *FakeServiceIamMembers) Create(ctx context.Context, serviceIamMember *v1alpha1.ServiceIamMember, opts v1.CreateOptions) (result *v1alpha1.ServiceIamMember, err error)

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

func (*FakeServiceIamMembers) Delete

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

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

func (*FakeServiceIamMembers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceIamMembers) Get

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

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

func (*FakeServiceIamMembers) List

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

func (*FakeServiceIamMembers) Patch

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

Patch applies the patch and returns the patched serviceIamMember.

func (*FakeServiceIamMembers) Update

func (c *FakeServiceIamMembers) Update(ctx context.Context, serviceIamMember *v1alpha1.ServiceIamMember, opts v1.UpdateOptions) (result *v1alpha1.ServiceIamMember, err error)

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

func (*FakeServiceIamMembers) UpdateStatus

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

func (*FakeServiceIamMembers) Watch

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

type FakeServiceIamPolicies

type FakeServiceIamPolicies struct {
	Fake *FakeEndpointsV1alpha1
	// contains filtered or unexported fields
}

FakeServiceIamPolicies implements ServiceIamPolicyInterface

func (*FakeServiceIamPolicies) Create

func (c *FakeServiceIamPolicies) Create(ctx context.Context, serviceIamPolicy *v1alpha1.ServiceIamPolicy, opts v1.CreateOptions) (result *v1alpha1.ServiceIamPolicy, err error)

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

func (*FakeServiceIamPolicies) Delete

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

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

func (*FakeServiceIamPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceIamPolicies) Get

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

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

func (*FakeServiceIamPolicies) List

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

func (*FakeServiceIamPolicies) Patch

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

Patch applies the patch and returns the patched serviceIamPolicy.

func (*FakeServiceIamPolicies) Update

func (c *FakeServiceIamPolicies) Update(ctx context.Context, serviceIamPolicy *v1alpha1.ServiceIamPolicy, opts v1.UpdateOptions) (result *v1alpha1.ServiceIamPolicy, err error)

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

func (*FakeServiceIamPolicies) UpdateStatus

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

func (*FakeServiceIamPolicies) Watch

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

type FakeServices

type FakeServices struct {
	Fake *FakeEndpointsV1alpha1
	// 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.

Jump to

Keyboard shortcuts

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