fake

package
v1.116.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 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 FakeGKEHubFeatureMemberships

type FakeGKEHubFeatureMemberships struct {
	Fake *FakeGkehubV1beta1
	// contains filtered or unexported fields
}

FakeGKEHubFeatureMemberships implements GKEHubFeatureMembershipInterface

func (*FakeGKEHubFeatureMemberships) Create

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

func (*FakeGKEHubFeatureMemberships) Delete

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

func (*FakeGKEHubFeatureMemberships) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGKEHubFeatureMemberships) Get

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

func (*FakeGKEHubFeatureMemberships) List

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

func (*FakeGKEHubFeatureMemberships) Patch

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

Patch applies the patch and returns the patched gKEHubFeatureMembership.

func (*FakeGKEHubFeatureMemberships) Update

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

func (*FakeGKEHubFeatureMemberships) UpdateStatus

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

func (*FakeGKEHubFeatureMemberships) Watch

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

type FakeGKEHubFeatures

type FakeGKEHubFeatures struct {
	Fake *FakeGkehubV1beta1
	// contains filtered or unexported fields
}

FakeGKEHubFeatures implements GKEHubFeatureInterface

func (*FakeGKEHubFeatures) Create

func (c *FakeGKEHubFeatures) Create(ctx context.Context, gKEHubFeature *v1beta1.GKEHubFeature, opts v1.CreateOptions) (result *v1beta1.GKEHubFeature, err error)

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

func (*FakeGKEHubFeatures) Delete

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

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

func (*FakeGKEHubFeatures) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGKEHubFeatures) Get

func (c *FakeGKEHubFeatures) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.GKEHubFeature, err error)

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

func (*FakeGKEHubFeatures) List

func (c *FakeGKEHubFeatures) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.GKEHubFeatureList, err error)

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

func (*FakeGKEHubFeatures) Patch

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

Patch applies the patch and returns the patched gKEHubFeature.

func (*FakeGKEHubFeatures) Update

func (c *FakeGKEHubFeatures) Update(ctx context.Context, gKEHubFeature *v1beta1.GKEHubFeature, opts v1.UpdateOptions) (result *v1beta1.GKEHubFeature, err error)

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

func (*FakeGKEHubFeatures) UpdateStatus

func (c *FakeGKEHubFeatures) UpdateStatus(ctx context.Context, gKEHubFeature *v1beta1.GKEHubFeature, opts v1.UpdateOptions) (*v1beta1.GKEHubFeature, error)

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

func (*FakeGKEHubFeatures) Watch

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

type FakeGKEHubMemberships

type FakeGKEHubMemberships struct {
	Fake *FakeGkehubV1beta1
	// contains filtered or unexported fields
}

FakeGKEHubMemberships implements GKEHubMembershipInterface

func (*FakeGKEHubMemberships) Create

func (c *FakeGKEHubMemberships) Create(ctx context.Context, gKEHubMembership *v1beta1.GKEHubMembership, opts v1.CreateOptions) (result *v1beta1.GKEHubMembership, err error)

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

func (*FakeGKEHubMemberships) Delete

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

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

func (*FakeGKEHubMemberships) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGKEHubMemberships) Get

func (c *FakeGKEHubMemberships) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.GKEHubMembership, err error)

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

func (*FakeGKEHubMemberships) List

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

func (*FakeGKEHubMemberships) Patch

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

Patch applies the patch and returns the patched gKEHubMembership.

func (*FakeGKEHubMemberships) Update

func (c *FakeGKEHubMemberships) Update(ctx context.Context, gKEHubMembership *v1beta1.GKEHubMembership, opts v1.UpdateOptions) (result *v1beta1.GKEHubMembership, err error)

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

func (*FakeGKEHubMemberships) UpdateStatus

func (c *FakeGKEHubMemberships) UpdateStatus(ctx context.Context, gKEHubMembership *v1beta1.GKEHubMembership, opts v1.UpdateOptions) (*v1beta1.GKEHubMembership, error)

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

func (*FakeGKEHubMemberships) Watch

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

type FakeGkehubV1beta1

type FakeGkehubV1beta1 struct {
	*testing.Fake
}

func (*FakeGkehubV1beta1) GKEHubFeatureMemberships

func (c *FakeGkehubV1beta1) GKEHubFeatureMemberships(namespace string) v1beta1.GKEHubFeatureMembershipInterface

func (*FakeGkehubV1beta1) GKEHubFeatures

func (c *FakeGkehubV1beta1) GKEHubFeatures(namespace string) v1beta1.GKEHubFeatureInterface

func (*FakeGkehubV1beta1) GKEHubMemberships

func (c *FakeGkehubV1beta1) GKEHubMemberships(namespace string) v1beta1.GKEHubMembershipInterface

func (*FakeGkehubV1beta1) RESTClient

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

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

Jump to

Keyboard shortcuts

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