fake

package
v0.0.0-...-686bfca Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 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 FakeCceV1

type FakeCceV1 struct {
	*testing.Fake
}

func (*FakeCceV1) RESTClient

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

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

func (*FakeCceV1) Subnets

func (c *FakeCceV1) Subnets() v1.SubnetInterface

type FakeSubnets

type FakeSubnets struct {
	Fake *FakeCceV1
}

FakeSubnets implements SubnetInterface

func (*FakeSubnets) Create

func (c *FakeSubnets) Create(ctx context.Context, subnet *ccebaidubcecomv1.Subnet, opts v1.CreateOptions) (result *ccebaidubcecomv1.Subnet, err error)

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

func (*FakeSubnets) Delete

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

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

func (*FakeSubnets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSubnets) Get

func (c *FakeSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *ccebaidubcecomv1.Subnet, err error)

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

func (*FakeSubnets) List

func (c *FakeSubnets) List(ctx context.Context, opts v1.ListOptions) (result *ccebaidubcecomv1.SubnetList, err error)

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

func (*FakeSubnets) Patch

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

Patch applies the patch and returns the patched subnet.

func (*FakeSubnets) Update

func (c *FakeSubnets) Update(ctx context.Context, subnet *ccebaidubcecomv1.Subnet, opts v1.UpdateOptions) (result *ccebaidubcecomv1.Subnet, err error)

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

func (*FakeSubnets) UpdateStatus

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

func (*FakeSubnets) Watch

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

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

Jump to

Keyboard shortcuts

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