Documentation ¶
Index ¶
- Constants
- type Client
- type ClientImpl
- func (c *ClientImpl) CreateNewServer() (*crocgodyl.AppServer, error)
- func (c *ClientImpl) DeleteServer(serverId int) error
- func (c *ClientImpl) FindExistingServerForMatch(matchid string) (*crocgodyl.AppServer, error)
- func (c *ClientImpl) GetBestFittingSuspendedServer(eggId int) (*crocgodyl.AppServer, error)
- func (c *ClientImpl) GetNodeAllocation(nodeId, allocationId int) (*crocgodyl.Allocation, error)
- func (c *ClientImpl) PreinstallServer(gsTemplate *config.GamerServerConfigTemplate) (*crocgodyl.AppServer, error)
- func (c *ClientImpl) ReuseExistingServer(serverId int, serverDetails crocgodyl.ServerDetailsDescriptor, ...) error
- func (c *ClientImpl) SuspendServer() error
Constants ¶
View Source
const ( ServerPreInstallDescription = "unwindia_preinstall" ServerUseDescription = "Unwindia_Match_%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetBestFittingSuspendedServer(eggId int) (*crocgodyl.AppServer, error) ReuseExistingServer(serverId int, serverDetails crocgodyl.ServerDetailsDescriptor, serverStartup crocgodyl.ServerStartupDescriptor) error CreateNewServer() (*crocgodyl.AppServer, error) DeleteServer(serverId int) error SuspendServer() error PreinstallServer(gsTemplate *config.GamerServerConfigTemplate) (*crocgodyl.AppServer, error) FindExistingServerForMatch(matchid string) (*crocgodyl.AppServer, error) GetNodeAllocation(nodeId, allocationId int) (*crocgodyl.Allocation, error) }
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
func (*ClientImpl) CreateNewServer ¶
func (c *ClientImpl) CreateNewServer() (*crocgodyl.AppServer, error)
func (*ClientImpl) DeleteServer ¶
func (c *ClientImpl) DeleteServer(serverId int) error
func (*ClientImpl) FindExistingServerForMatch ¶
func (c *ClientImpl) FindExistingServerForMatch(matchid string) (*crocgodyl.AppServer, error)
func (*ClientImpl) GetBestFittingSuspendedServer ¶
func (c *ClientImpl) GetBestFittingSuspendedServer(eggId int) (*crocgodyl.AppServer, error)
func (*ClientImpl) GetNodeAllocation ¶
func (c *ClientImpl) GetNodeAllocation(nodeId, allocationId int) (*crocgodyl.Allocation, error)
func (*ClientImpl) PreinstallServer ¶
func (c *ClientImpl) PreinstallServer(gsTemplate *config.GamerServerConfigTemplate) (*crocgodyl.AppServer, error)
func (*ClientImpl) ReuseExistingServer ¶
func (c *ClientImpl) ReuseExistingServer(serverId int, serverDetails crocgodyl.ServerDetailsDescriptor, serverStartup crocgodyl.ServerStartupDescriptor) error
func (*ClientImpl) SuspendServer ¶
func (c *ClientImpl) SuspendServer() error
Click to show internal directories.
Click to hide internal directories.