Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAgonesV1
- type FakeFleets
- func (c *FakeFleets) Create(fleet *agonesv1.Fleet) (result *agonesv1.Fleet, err error)
- func (c *FakeFleets) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeFleets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeFleets) Get(name string, options v1.GetOptions) (result *agonesv1.Fleet, err error)
- func (c *FakeFleets) GetScale(fleetName string, options v1.GetOptions) (result *v1beta1.Scale, err error)
- func (c *FakeFleets) List(opts v1.ListOptions) (result *agonesv1.FleetList, err error)
- func (c *FakeFleets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *agonesv1.Fleet, err error)
- func (c *FakeFleets) Update(fleet *agonesv1.Fleet) (result *agonesv1.Fleet, err error)
- func (c *FakeFleets) UpdateScale(fleetName string, scale *v1beta1.Scale) (result *v1beta1.Scale, err error)
- func (c *FakeFleets) UpdateStatus(fleet *agonesv1.Fleet) (*agonesv1.Fleet, error)
- func (c *FakeFleets) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeGameServerSets
- func (c *FakeGameServerSets) Create(gameServerSet *agonesv1.GameServerSet) (result *agonesv1.GameServerSet, err error)
- func (c *FakeGameServerSets) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeGameServerSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeGameServerSets) Get(name string, options v1.GetOptions) (result *agonesv1.GameServerSet, err error)
- func (c *FakeGameServerSets) GetScale(gameServerSetName string, options v1.GetOptions) (result *v1beta1.Scale, err error)
- func (c *FakeGameServerSets) List(opts v1.ListOptions) (result *agonesv1.GameServerSetList, err error)
- func (c *FakeGameServerSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *agonesv1.GameServerSet, err error)
- func (c *FakeGameServerSets) Update(gameServerSet *agonesv1.GameServerSet) (result *agonesv1.GameServerSet, err error)
- func (c *FakeGameServerSets) UpdateScale(gameServerSetName string, scale *v1beta1.Scale) (result *v1beta1.Scale, err error)
- func (c *FakeGameServerSets) UpdateStatus(gameServerSet *agonesv1.GameServerSet) (*agonesv1.GameServerSet, error)
- func (c *FakeGameServerSets) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeGameServers
- func (c *FakeGameServers) Create(gameServer *agonesv1.GameServer) (result *agonesv1.GameServer, err error)
- func (c *FakeGameServers) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeGameServers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeGameServers) Get(name string, options v1.GetOptions) (result *agonesv1.GameServer, err error)
- func (c *FakeGameServers) List(opts v1.ListOptions) (result *agonesv1.GameServerList, err error)
- func (c *FakeGameServers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *agonesv1.GameServer, err error)
- func (c *FakeGameServers) Update(gameServer *agonesv1.GameServer) (result *agonesv1.GameServer, err error)
- func (c *FakeGameServers) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAgonesV1 ¶
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 ¶
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 *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(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 *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(name string, pt types.PatchType, data []byte, subresources ...string) (result *agonesv1.Fleet, err error)
Patch applies the patch and returns the patched fleet.
func (*FakeFleets) Update ¶
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(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 ¶
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 FakeGameServerSets ¶
type FakeGameServerSets struct { Fake *FakeAgonesV1 // contains filtered or unexported fields }
FakeGameServerSets implements GameServerSetInterface
func (*FakeGameServerSets) Create ¶
func (c *FakeGameServerSets) Create(gameServerSet *agonesv1.GameServerSet) (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(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 *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(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 *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(name string, pt types.PatchType, data []byte, subresources ...string) (result *agonesv1.GameServerSet, err error)
Patch applies the patch and returns the patched gameServerSet.
func (*FakeGameServerSets) Update ¶
func (c *FakeGameServerSets) Update(gameServerSet *agonesv1.GameServerSet) (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(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 ¶
func (c *FakeGameServerSets) UpdateStatus(gameServerSet *agonesv1.GameServerSet) (*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 ¶
func (c *FakeGameServerSets) Watch(opts v1.ListOptions) (watch.Interface, error)
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(gameServer *agonesv1.GameServer) (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(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 *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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *agonesv1.GameServer, err error)
Patch applies the patch and returns the patched gameServer.
func (*FakeGameServers) Update ¶
func (c *FakeGameServers) Update(gameServer *agonesv1.GameServer) (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 ¶
func (c *FakeGameServers) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested gameServers.