fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 FakeGameServerSets

type FakeGameServerSets struct {
	Fake *FakeGameV1alpha1
	// contains filtered or unexported fields
}

FakeGameServerSets implements GameServerSetInterface

func (*FakeGameServerSets) Create

func (c *FakeGameServerSets) Create(ctx context.Context, gameServerSet *v1alpha1.GameServerSet, opts v1.CreateOptions) (result *v1alpha1.GameServerSet, err error)

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

func (*FakeGameServerSets) Delete

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

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

func (*FakeGameServerSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGameServerSets) Get

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

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

func (*FakeGameServerSets) List

func (c *FakeGameServerSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.GameServerSetList, err error)

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

func (*FakeGameServerSets) Patch

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

Patch applies the patch and returns the patched gameServerSet.

func (*FakeGameServerSets) Update

func (c *FakeGameServerSets) Update(ctx context.Context, gameServerSet *v1alpha1.GameServerSet, opts v1.UpdateOptions) (result *v1alpha1.GameServerSet, err error)

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

func (*FakeGameServerSets) UpdateStatus

func (c *FakeGameServerSets) UpdateStatus(ctx context.Context, gameServerSet *v1alpha1.GameServerSet, opts v1.UpdateOptions) (*v1alpha1.GameServerSet, error)

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

func (*FakeGameServerSets) Watch

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

type FakeGameServers

type FakeGameServers struct {
	Fake *FakeGameV1alpha1
	// contains filtered or unexported fields
}

FakeGameServers implements GameServerInterface

func (*FakeGameServers) Create

func (c *FakeGameServers) Create(ctx context.Context, gameServer *v1alpha1.GameServer, opts v1.CreateOptions) (result *v1alpha1.GameServer, err error)

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

func (*FakeGameServers) Delete

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

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

func (*FakeGameServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGameServers) Get

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

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

func (*FakeGameServers) List

func (c *FakeGameServers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.GameServerList, err error)

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

func (*FakeGameServers) Patch

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

Patch applies the patch and returns the patched gameServer.

func (*FakeGameServers) Update

func (c *FakeGameServers) Update(ctx context.Context, gameServer *v1alpha1.GameServer, opts v1.UpdateOptions) (result *v1alpha1.GameServer, err error)

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

func (*FakeGameServers) UpdateStatus

func (c *FakeGameServers) UpdateStatus(ctx context.Context, gameServer *v1alpha1.GameServer, opts v1.UpdateOptions) (*v1alpha1.GameServer, error)

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

func (*FakeGameServers) Watch

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

type FakeGameV1alpha1

type FakeGameV1alpha1 struct {
	*testing.Fake
}

func (*FakeGameV1alpha1) GameServerSets

func (c *FakeGameV1alpha1) GameServerSets(namespace string) v1alpha1.GameServerSetInterface

func (*FakeGameV1alpha1) GameServers

func (c *FakeGameV1alpha1) GameServers(namespace string) v1alpha1.GameServerInterface

func (*FakeGameV1alpha1) RESTClient

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