fake

package
Version: v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 11 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 FakeAgonesV1

type FakeAgonesV1 struct {
	*testing.Fake
}

func (*FakeAgonesV1) Fleets

func (c *FakeAgonesV1) Fleets(namespace string) v1.FleetInterface

func (*FakeAgonesV1) GameServerSets

func (c *FakeAgonesV1) GameServerSets(namespace string) v1.GameServerSetInterface

func (*FakeAgonesV1) GameServers

func (c *FakeAgonesV1) GameServers(namespace string) v1.GameServerInterface

func (*FakeAgonesV1) RESTClient

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

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

type FakeFleets

type FakeFleets struct {
	Fake *FakeAgonesV1
	// contains filtered or unexported fields
}

FakeFleets implements FleetInterface

func (*FakeFleets) Create

func (c *FakeFleets) Create(ctx context.Context, fleet *agonesv1.Fleet, opts v1.CreateOptions) (result *agonesv1.Fleet, err error)

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

func (*FakeFleets) Delete

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

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

func (*FakeFleets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFleets) Get

func (c *FakeFleets) Get(ctx context.Context, name string, options v1.GetOptions) (result *agonesv1.Fleet, err error)

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

func (*FakeFleets) GetScale

func (c *FakeFleets) GetScale(ctx context.Context, fleetName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error)

GetScale takes name of the fleet, and returns the corresponding scale object, and an error if there is any.

func (*FakeFleets) List

func (c *FakeFleets) List(ctx context.Context, opts v1.ListOptions) (result *agonesv1.FleetList, err error)

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

func (*FakeFleets) Patch

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

Patch applies the patch and returns the patched fleet.

func (*FakeFleets) Update

func (c *FakeFleets) Update(ctx context.Context, fleet *agonesv1.Fleet, opts v1.UpdateOptions) (result *agonesv1.Fleet, err error)

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

func (*FakeFleets) UpdateScale

func (c *FakeFleets) UpdateScale(ctx context.Context, fleetName string, scale *autoscalingv1.Scale, opts v1.UpdateOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakeFleets) UpdateStatus

func (c *FakeFleets) UpdateStatus(ctx context.Context, fleet *agonesv1.Fleet, opts v1.UpdateOptions) (*agonesv1.Fleet, error)

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

func (*FakeFleets) Watch

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

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

type FakeGameServerSets

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

FakeGameServerSets implements GameServerSetInterface

func (*FakeGameServerSets) Create

func (c *FakeGameServerSets) Create(ctx context.Context, gameServerSet *agonesv1.GameServerSet, opts v1.CreateOptions) (result *agonesv1.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 *agonesv1.GameServerSet, err error)

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

func (*FakeGameServerSets) GetScale

func (c *FakeGameServerSets) GetScale(ctx context.Context, gameServerSetName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakeGameServerSets) List

func (c *FakeGameServerSets) List(ctx context.Context, opts v1.ListOptions) (result *agonesv1.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 *agonesv1.GameServerSet, err error)

Patch applies the patch and returns the patched gameServerSet.

func (*FakeGameServerSets) Update

func (c *FakeGameServerSets) Update(ctx context.Context, gameServerSet *agonesv1.GameServerSet, opts v1.UpdateOptions) (result *agonesv1.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) UpdateScale

func (c *FakeGameServerSets) UpdateScale(ctx context.Context, gameServerSetName string, scale *autoscalingv1.Scale, opts v1.UpdateOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakeGameServerSets) UpdateStatus

func (c *FakeGameServerSets) UpdateStatus(ctx context.Context, gameServerSet *agonesv1.GameServerSet, opts v1.UpdateOptions) (*agonesv1.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 *FakeAgonesV1
	// contains filtered or unexported fields
}

FakeGameServers implements GameServerInterface

func (*FakeGameServers) Create

func (c *FakeGameServers) Create(ctx context.Context, gameServer *agonesv1.GameServer, opts v1.CreateOptions) (result *agonesv1.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 *agonesv1.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 *agonesv1.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 *agonesv1.GameServer, err error)

Patch applies the patch and returns the patched gameServer.

func (*FakeGameServers) Update

func (c *FakeGameServers) Update(ctx context.Context, gameServer *agonesv1.GameServer, opts v1.UpdateOptions) (result *agonesv1.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) Watch

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

Jump to

Keyboard shortcuts

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