fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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 FakeCarrierV1alpha1

type FakeCarrierV1alpha1 struct {
	*testing.Fake
}

func (*FakeCarrierV1alpha1) GameServerSets

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

func (*FakeCarrierV1alpha1) GameServers

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

func (*FakeCarrierV1alpha1) RESTClient

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

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

func (*FakeCarrierV1alpha1) Squads

func (c *FakeCarrierV1alpha1) Squads(namespace string) v1alpha1.SquadInterface

func (*FakeCarrierV1alpha1) WebhookConfigurations

func (c *FakeCarrierV1alpha1) WebhookConfigurations(namespace string) v1alpha1.WebhookConfigurationInterface

type FakeGameServerSets

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

FakeGameServerSets implements GameServerSetInterface

func (*FakeGameServerSets) Create

func (c *FakeGameServerSets) Create(gameServerSet *v1alpha1.GameServerSet) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeGameServerSets) Get

func (c *FakeGameServerSets) Get(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) GetScale

func (c *FakeGameServerSets) GetScale(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.GameServerSet, err error)

Patch applies the patch and returns the patched gameServerSet.

func (*FakeGameServerSets) Update

func (c *FakeGameServerSets) Update(gameServerSet *v1alpha1.GameServerSet) (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) UpdateScale

func (c *FakeGameServerSets) UpdateScale(gameServerSetName string, scale *autoscalingv1.Scale) (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(gameServerSet *v1alpha1.GameServerSet) (*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 *FakeCarrierV1alpha1
	// contains filtered or unexported fields
}

FakeGameServers implements GameServerInterface

func (*FakeGameServers) Create

func (c *FakeGameServers) Create(gameServer *v1alpha1.GameServer) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeGameServers) Get

func (c *FakeGameServers) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.GameServer, err error)

Patch applies the patch and returns the patched gameServer.

func (*FakeGameServers) Update

func (c *FakeGameServers) Update(gameServer *v1alpha1.GameServer) (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(gameServer *v1alpha1.GameServer) (*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

func (c *FakeGameServers) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeSquads

type FakeSquads struct {
	Fake *FakeCarrierV1alpha1
	// contains filtered or unexported fields
}

FakeSquads implements SquadInterface

func (*FakeSquads) Create

func (c *FakeSquads) Create(squad *v1alpha1.Squad) (result *v1alpha1.Squad, err error)

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

func (*FakeSquads) Delete

func (c *FakeSquads) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeSquads) DeleteCollection

func (c *FakeSquads) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSquads) Get

func (c *FakeSquads) Get(name string, options v1.GetOptions) (result *v1alpha1.Squad, err error)

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

func (*FakeSquads) GetScale

func (c *FakeSquads) GetScale(squadName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakeSquads) List

func (c *FakeSquads) List(opts v1.ListOptions) (result *v1alpha1.SquadList, err error)

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

func (*FakeSquads) Patch

func (c *FakeSquads) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Squad, err error)

Patch applies the patch and returns the patched squad.

func (*FakeSquads) Update

func (c *FakeSquads) Update(squad *v1alpha1.Squad) (result *v1alpha1.Squad, err error)

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

func (*FakeSquads) UpdateScale

func (c *FakeSquads) UpdateScale(squadName string, scale *autoscalingv1.Scale) (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 (*FakeSquads) UpdateStatus

func (c *FakeSquads) UpdateStatus(squad *v1alpha1.Squad) (*v1alpha1.Squad, error)

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

func (*FakeSquads) Watch

func (c *FakeSquads) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeWebhookConfigurations

type FakeWebhookConfigurations struct {
	Fake *FakeCarrierV1alpha1
	// contains filtered or unexported fields
}

FakeWebhookConfigurations implements WebhookConfigurationInterface

func (*FakeWebhookConfigurations) Create

func (c *FakeWebhookConfigurations) Create(webhookConfiguration *v1alpha1.WebhookConfiguration) (result *v1alpha1.WebhookConfiguration, err error)

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

func (*FakeWebhookConfigurations) Delete

func (c *FakeWebhookConfigurations) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeWebhookConfigurations) DeleteCollection

func (c *FakeWebhookConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeWebhookConfigurations) Get

func (c *FakeWebhookConfigurations) Get(name string, options v1.GetOptions) (result *v1alpha1.WebhookConfiguration, err error)

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

func (*FakeWebhookConfigurations) List

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

func (*FakeWebhookConfigurations) Patch

func (c *FakeWebhookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.WebhookConfiguration, err error)

Patch applies the patch and returns the patched webhookConfiguration.

func (*FakeWebhookConfigurations) Update

func (c *FakeWebhookConfigurations) Update(webhookConfiguration *v1alpha1.WebhookConfiguration) (result *v1alpha1.WebhookConfiguration, err error)

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

func (*FakeWebhookConfigurations) Watch

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

Jump to

Keyboard shortcuts

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