fake

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 13 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) Apply added in v1.36.0

func (c *FakeFleets) Apply(ctx context.Context, fleet *agonesv1.FleetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Fleet, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied fleet.

func (*FakeFleets) ApplyStatus added in v1.36.0

func (c *FakeFleets) ApplyStatus(ctx context.Context, fleet *agonesv1.FleetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Fleet, err error)

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

func (*FakeFleets) Create

func (c *FakeFleets) Create(ctx context.Context, fleet *v1.Fleet, opts metav1.CreateOptions) (result *v1.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 metav1.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 metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeFleets) Get

func (c *FakeFleets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.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 metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.Fleet, err error)

Patch applies the patch and returns the patched fleet.

func (*FakeFleets) Update

func (c *FakeFleets) Update(ctx context.Context, fleet *v1.Fleet, opts metav1.UpdateOptions) (result *v1.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 metav1.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 *v1.Fleet, opts metav1.UpdateOptions) (*v1.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

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) Apply added in v1.36.0

Apply takes the given apply declarative configuration, applies it and returns the applied gameServerSet.

func (*FakeGameServerSets) ApplyStatus added in v1.36.0

func (c *FakeGameServerSets) ApplyStatus(ctx context.Context, gameServerSet *agonesv1.GameServerSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.GameServerSet, err error)

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

func (*FakeGameServerSets) Create

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

DeleteCollection deletes a collection of objects.

func (*FakeGameServerSets) Get

func (c *FakeGameServerSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.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 metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.GameServerSet, err error)

Patch applies the patch and returns the patched gameServerSet.

func (*FakeGameServerSets) Update

func (c *FakeGameServerSets) Update(ctx context.Context, gameServerSet *v1.GameServerSet, opts metav1.UpdateOptions) (result *v1.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 metav1.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 *v1.GameServerSet, opts metav1.UpdateOptions) (*v1.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) Apply added in v1.36.0

Apply takes the given apply declarative configuration, applies it and returns the applied gameServer.

func (*FakeGameServers) Create

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

DeleteCollection deletes a collection of objects.

func (*FakeGameServers) Get

func (c *FakeGameServers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.GameServer, err error)

Patch applies the patch and returns the patched gameServer.

func (*FakeGameServers) Update

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