fake

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 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 FakeFleetAllocations

type FakeFleetAllocations struct {
	Fake *FakeStableV1alpha1
	// contains filtered or unexported fields
}

FakeFleetAllocations implements FleetAllocationInterface

func (*FakeFleetAllocations) Create

func (c *FakeFleetAllocations) Create(fleetAllocation *v1alpha1.FleetAllocation) (result *v1alpha1.FleetAllocation, err error)

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

func (*FakeFleetAllocations) Delete

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

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

func (*FakeFleetAllocations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFleetAllocations) Get

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

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

func (*FakeFleetAllocations) List

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

func (*FakeFleetAllocations) Patch

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

Patch applies the patch and returns the patched fleetAllocation.

func (*FakeFleetAllocations) Update

func (c *FakeFleetAllocations) Update(fleetAllocation *v1alpha1.FleetAllocation) (result *v1alpha1.FleetAllocation, err error)

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

func (*FakeFleetAllocations) UpdateStatus added in v0.7.0

func (c *FakeFleetAllocations) UpdateStatus(fleetAllocation *v1alpha1.FleetAllocation) (*v1alpha1.FleetAllocation, error)

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

func (*FakeFleetAllocations) Watch

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

type FakeFleetAutoscalers added in v0.5.0

type FakeFleetAutoscalers struct {
	Fake *FakeStableV1alpha1
	// contains filtered or unexported fields
}

FakeFleetAutoscalers implements FleetAutoscalerInterface

func (*FakeFleetAutoscalers) Create added in v0.5.0

func (c *FakeFleetAutoscalers) Create(fleetAutoscaler *v1alpha1.FleetAutoscaler) (result *v1alpha1.FleetAutoscaler, err error)

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

func (*FakeFleetAutoscalers) Delete added in v0.5.0

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

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

func (*FakeFleetAutoscalers) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeFleetAutoscalers) Get added in v0.5.0

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

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

func (*FakeFleetAutoscalers) List added in v0.5.0

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

func (*FakeFleetAutoscalers) Patch added in v0.5.0

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

Patch applies the patch and returns the patched fleetAutoscaler.

func (*FakeFleetAutoscalers) Update added in v0.5.0

func (c *FakeFleetAutoscalers) Update(fleetAutoscaler *v1alpha1.FleetAutoscaler) (result *v1alpha1.FleetAutoscaler, err error)

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

func (*FakeFleetAutoscalers) UpdateStatus added in v0.7.0

func (c *FakeFleetAutoscalers) UpdateStatus(fleetAutoscaler *v1alpha1.FleetAutoscaler) (*v1alpha1.FleetAutoscaler, error)

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

func (*FakeFleetAutoscalers) Watch added in v0.5.0

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

type FakeFleets

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

FakeFleets implements FleetInterface

func (*FakeFleets) Create

func (c *FakeFleets) Create(fleet *v1alpha1.Fleet) (result *v1alpha1.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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeFleets) Get

func (c *FakeFleets) Get(name string, options v1.GetOptions) (result *v1alpha1.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 added in v0.8.0

func (c *FakeFleets) GetScale(fleetName string, options v1.GetOptions) (result *v1beta1.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(opts v1.ListOptions) (result *v1alpha1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Fleet, err error)

Patch applies the patch and returns the patched fleet.

func (*FakeFleets) Update

func (c *FakeFleets) Update(fleet *v1alpha1.Fleet) (result *v1alpha1.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 added in v0.8.0

func (c *FakeFleets) UpdateScale(fleetName string, scale *v1beta1.Scale) (result *v1beta1.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 added in v0.7.0

func (c *FakeFleets) UpdateStatus(fleet *v1alpha1.Fleet) (*v1alpha1.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(opts v1.ListOptions) (watch.Interface, error)

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

type FakeGameServerAllocations added in v0.8.0

type FakeGameServerAllocations struct {
	Fake *FakeStableV1alpha1
	// contains filtered or unexported fields
}

FakeGameServerAllocations implements GameServerAllocationInterface

func (*FakeGameServerAllocations) Create added in v0.8.0

func (c *FakeGameServerAllocations) Create(gameServerAllocation *v1alpha1.GameServerAllocation) (result *v1alpha1.GameServerAllocation, err error)

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

func (*FakeGameServerAllocations) Delete added in v0.8.0

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

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

func (*FakeGameServerAllocations) DeleteCollection added in v0.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeGameServerAllocations) Get added in v0.8.0

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

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

func (*FakeGameServerAllocations) List added in v0.8.0

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

func (*FakeGameServerAllocations) Patch added in v0.8.0

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

Patch applies the patch and returns the patched gameServerAllocation.

func (*FakeGameServerAllocations) Update added in v0.8.0

func (c *FakeGameServerAllocations) Update(gameServerAllocation *v1alpha1.GameServerAllocation) (result *v1alpha1.GameServerAllocation, err error)

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

func (*FakeGameServerAllocations) UpdateStatus added in v0.8.0

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

func (*FakeGameServerAllocations) Watch added in v0.8.0

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

type FakeGameServerSets

type FakeGameServerSets struct {
	Fake *FakeStableV1alpha1
	// 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 added in v0.8.0

func (c *FakeGameServerSets) GetScale(gameServerSetName string, options v1.GetOptions) (result *v1beta1.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 added in v0.8.0

func (c *FakeGameServerSets) UpdateScale(gameServerSetName string, scale *v1beta1.Scale) (result *v1beta1.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 added in v0.7.0

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 *FakeStableV1alpha1
	// 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 added in v0.7.0

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 FakeStableV1alpha1

type FakeStableV1alpha1 struct {
	*testing.Fake
}

func (*FakeStableV1alpha1) FleetAllocations

func (c *FakeStableV1alpha1) FleetAllocations(namespace string) v1alpha1.FleetAllocationInterface

func (*FakeStableV1alpha1) FleetAutoscalers added in v0.5.0

func (c *FakeStableV1alpha1) FleetAutoscalers(namespace string) v1alpha1.FleetAutoscalerInterface

func (*FakeStableV1alpha1) Fleets

func (c *FakeStableV1alpha1) Fleets(namespace string) v1alpha1.FleetInterface

func (*FakeStableV1alpha1) GameServerAllocations added in v0.8.0

func (c *FakeStableV1alpha1) GameServerAllocations(namespace string) v1alpha1.GameServerAllocationInterface

func (*FakeStableV1alpha1) GameServerSets

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

func (*FakeStableV1alpha1) GameServers

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

func (*FakeStableV1alpha1) RESTClient

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