fake

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more 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 FakeNodeGroups

type FakeNodeGroups struct {
	Fake *FakeSiteV1alpha2
}

FakeNodeGroups implements NodeGroupInterface

func (*FakeNodeGroups) Create

func (c *FakeNodeGroups) Create(ctx context.Context, nodeGroup *v1alpha2.NodeGroup, opts v1.CreateOptions) (result *v1alpha2.NodeGroup, err error)

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

func (*FakeNodeGroups) Delete

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

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

func (*FakeNodeGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeGroups) Get

func (c *FakeNodeGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.NodeGroup, err error)

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

func (*FakeNodeGroups) List

func (c *FakeNodeGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.NodeGroupList, err error)

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

func (*FakeNodeGroups) Patch

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

Patch applies the patch and returns the patched nodeGroup.

func (*FakeNodeGroups) Update

func (c *FakeNodeGroups) Update(ctx context.Context, nodeGroup *v1alpha2.NodeGroup, opts v1.UpdateOptions) (result *v1alpha2.NodeGroup, err error)

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

func (*FakeNodeGroups) UpdateStatus

func (c *FakeNodeGroups) UpdateStatus(ctx context.Context, nodeGroup *v1alpha2.NodeGroup, opts v1.UpdateOptions) (*v1alpha2.NodeGroup, error)

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

func (*FakeNodeGroups) Watch

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

type FakeNodeUnits

type FakeNodeUnits struct {
	Fake *FakeSiteV1alpha2
}

FakeNodeUnits implements NodeUnitInterface

func (*FakeNodeUnits) Create

func (c *FakeNodeUnits) Create(ctx context.Context, nodeUnit *v1alpha2.NodeUnit, opts v1.CreateOptions) (result *v1alpha2.NodeUnit, err error)

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

func (*FakeNodeUnits) Delete

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

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

func (*FakeNodeUnits) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeUnits) Get

func (c *FakeNodeUnits) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.NodeUnit, err error)

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

func (*FakeNodeUnits) List

func (c *FakeNodeUnits) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.NodeUnitList, err error)

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

func (*FakeNodeUnits) Patch

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

Patch applies the patch and returns the patched nodeUnit.

func (*FakeNodeUnits) Update

func (c *FakeNodeUnits) Update(ctx context.Context, nodeUnit *v1alpha2.NodeUnit, opts v1.UpdateOptions) (result *v1alpha2.NodeUnit, err error)

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

func (*FakeNodeUnits) UpdateStatus

func (c *FakeNodeUnits) UpdateStatus(ctx context.Context, nodeUnit *v1alpha2.NodeUnit, opts v1.UpdateOptions) (*v1alpha2.NodeUnit, error)

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

func (*FakeNodeUnits) Watch

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

type FakeSiteV1alpha2

type FakeSiteV1alpha2 struct {
	*testing.Fake
}

func (*FakeSiteV1alpha2) NodeGroups

func (*FakeSiteV1alpha2) NodeUnits

func (*FakeSiteV1alpha2) RESTClient

func (c *FakeSiteV1alpha2) 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