fake

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 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 FakeGameServerAllocationPolicies

type FakeGameServerAllocationPolicies struct {
	Fake *FakeMulticlusterV1
	// contains filtered or unexported fields
}

FakeGameServerAllocationPolicies implements GameServerAllocationPolicyInterface

func (*FakeGameServerAllocationPolicies) Create

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

func (*FakeGameServerAllocationPolicies) Delete

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

func (*FakeGameServerAllocationPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGameServerAllocationPolicies) Get

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

func (*FakeGameServerAllocationPolicies) List

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

func (*FakeGameServerAllocationPolicies) Patch

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

Patch applies the patch and returns the patched gameServerAllocationPolicy.

func (*FakeGameServerAllocationPolicies) Update

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

func (*FakeGameServerAllocationPolicies) Watch

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

type FakeMulticlusterV1

type FakeMulticlusterV1 struct {
	*testing.Fake
}

func (*FakeMulticlusterV1) GameServerAllocationPolicies

func (c *FakeMulticlusterV1) GameServerAllocationPolicies(namespace string) v1.GameServerAllocationPolicyInterface

func (*FakeMulticlusterV1) RESTClient

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