pterodactyl

package
v0.0.0-...-0d12cdc Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func NewClient

func NewClient(apiAppUrl, apiClientUrl *url.URL, apiAppToken, apiClientToken string, pool *workerpool.WorkerPool, pterodactylFetchInterval time.Duration) (Client, 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

Jump to

Keyboard shortcuts

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