fake

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 9 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) 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) 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) 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) Watch

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

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

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) 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) 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) 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) 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