Documentation ¶
Index ¶
- type Allocation
- type Client
- func (this *Client) CreateServer(serverInfo Server) error
- func (this *Client) CreateUser(userInfo interface{}) error
- func (this *Client) DeleteServer(serverExternalID string) error
- func (this *Client) DeleteUser(externalID string) error
- func (this *Client) GetAllEggs(nestID int) ([]Egg, error)
- func (this *Client) GetAllNests() ([]Nest, error)
- func (this *Client) GetAllServers() ([]Server, error)
- func (this *Client) GetAllUsers() ([]User, error)
- func (this *Client) GetAllocations(nodeID int) ([]Allocation, error)
- func (this *Client) GetEgg(nestID int, eggID int) (*Egg, error)
- func (this *Client) GetEnv(nestID int, eggID int) (map[string]string, error)
- func (this *Client) GetNest(nestID int) (*Nest, error)
- func (this *Client) GetNode(nodeID int) (*Node, error)
- func (this *Client) GetServer(ID interface{}, isExternal bool) (*Server, error)
- func (this *Client) GetServerID(serverExternalID string) int
- func (this *Client) GetUser(ID interface{}, isExternal bool) (*User, error)
- func (this *Client) HostName() string
- func (this *Client) ReinstallServer(serverExternalID string) error
- func (this *Client) SuspendServer(serverExternalID string) error
- func (this *Client) TestConnection()
- func (this *Client) UnsuspendServer(serverExternalID string) error
- func (this *Client) UpdateServerBuild(externalID string, build PostUpdateBuild) error
- func (this *Client) UpdateServerDetail(externalID string, details PostUpdateDetails) error
- func (this *Client) UpdateServerStartup(externalID string, packID int) error
- type ContainerInfo
- type Egg
- type FeatureLimit
- type Nest
- type Node
- type PostPteUser
- type PostUpdateBuild
- type PostUpdateDetails
- type ScriptInfo
- type Server
- type ServerLimit
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocation ¶ added in v0.2.3
type Client ¶ added in v0.2.3
type Client struct {
// contains filtered or unexported fields
}
Client Pterodactyl API client
func (*Client) CreateServer ¶ added in v0.2.3
func (*Client) CreateUser ¶ added in v0.2.3
func (*Client) DeleteServer ¶ added in v0.2.3
func (*Client) DeleteUser ¶ added in v0.2.3
func (*Client) GetAllEggs ¶ added in v0.2.3
func (*Client) GetAllNests ¶ added in v0.2.3
func (*Client) GetAllServers ¶ added in v0.2.3
func (*Client) GetAllUsers ¶ added in v0.2.3
func (*Client) GetAllocations ¶ added in v0.2.3
func (this *Client) GetAllocations(nodeID int) ([]Allocation, error)
func (*Client) GetServerID ¶ added in v0.2.3
func (*Client) ReinstallServer ¶ added in v0.2.3
func (*Client) SuspendServer ¶ added in v0.2.3
func (*Client) TestConnection ¶ added in v0.2.3
func (this *Client) TestConnection()
func (*Client) UnsuspendServer ¶ added in v0.2.3
func (*Client) UpdateServerBuild ¶ added in v0.2.3
func (this *Client) UpdateServerBuild(externalID string, build PostUpdateBuild) error
func (*Client) UpdateServerDetail ¶ added in v0.2.3
func (this *Client) UpdateServerDetail(externalID string, details PostUpdateDetails) error
type ContainerInfo ¶ added in v0.2.4
type Egg ¶ added in v0.2.3
type Egg struct { Id int `json:"id"` Uuid string `json:"uuid"` Name string `json:"name"` Nest int `json:"nest"` Author string `json:"author"` Description string `json:"Description"` DockerImage string `json:"docker_image"` DockerImages map[string]string `json:"docker_images"` Config map[string]interface{} `json:"config"` Script ScriptInfo `json:"script"` StartUp string `json:"startup"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type FeatureLimit ¶ added in v0.2.4
type Node ¶ added in v0.2.3
type Node struct { Id int `json:"id"` Public bool `json:"public"` Name string `json:"name"` Description string `json:"Description"` LocationId int `json:"location_id"` FQDN string `json:"fqdn"` Scheme string `json:"scheme"` BehindProxy bool `json:"behind_proxy"` MaintenanceMode bool `json:"maintenance_mode"` Memory int `json:"memory"` MemoryOverAllocate int `json:"memory_overallocate"` Disk int `json:"disk"` DiskOverAllocate int `json:"disk_overallocate"` UploadSize int `json:"upload_size"` DaemonListen int `json:"daemon_listen"` DaemonSftp int `json:"daemon_sftp"` DaemonBase string `json:"daemon_base"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type PostPteUser ¶
type PostPteUser struct { ExternalId string `json:"external_id"` Username string `json:"username"` Email string `json:"email"` Language string `json:"language"` RootAdmin bool `json:"root_admin"` Password string `json:"password"` FirstName string `json:"first_name"` LastName string `json:"last_name"` }
type PostUpdateBuild ¶
type PostUpdateDetails ¶
type ScriptInfo ¶ added in v0.2.4
type Server ¶ added in v0.2.3
type Server struct { Id int `json:"id"` ExternalId string `json:"external_id"` Uuid string `json:"uuid"` Identifier string `json:"identifier"` Name string `json:"name"` Description string `json:"Description"` Suspended bool `json:"suspended"` Limits ServerLimit `json:"limits"` FeatureLimits FeatureLimit `json:"feature_limits"` UserId int `json:"user"` NodeId int `json:"node"` Allocation int `json:"allocation"` NestId int `json:"nest"` EggId int `json:"egg"` Container ContainerInfo `json:"container"` UpdatedAt time.Time `json:"updated_at"` CreatedAt time.Time `json:"created_at"` }
type ServerLimit ¶ added in v0.2.3
type User ¶ added in v0.2.3
type User struct { Uid int `json:"id"` ExternalId string `json:"external_id"` Uuid string `json:"uuid"` UserName string `json:"username"` Email string `json:"email"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Language string `json:"language"` RootAdmin bool `json:"root_admin"` TwoFA bool `json:"2fa"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.