legacy

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AuthToken    string `json:"authToken"`
	ServerFolder string `json:"serverFolder"`
	DataFolder   string `json:"dataFolder"`
}

type DataObject

type DataObject struct {
	Description  string      `json:"desc,omitempty"`
	Display      string      `json:"display,omitempty"`
	Internal     bool        `json:"internal,omitempty"`
	Required     bool        `json:"required,omitempty"`
	Value        interface{} `json:"value,omitempty"`
	UserEditable bool        `json:"userEdit,omitempty"`
}

type InstallSection

type InstallSection struct {
	Operations []map[string]interface{} `json:"commands,,omitempty"`
}

type MysqlConfig

type MysqlConfig struct {
	Host     string    `json:"host"`
	Database string    `json:"database"`
	Username string    `json:"username"`
	Password string    `json:"password"`
	Port     string    `json:"port"`
	Ssl      SslConfig `json:"ssl"`
}

type Node

type Node struct {
	Id           uint
	Name         string
	FQDN         string
	Ip           string
	Port         uint16 `gorm:"column:daemon_listen"`
	Sftp         uint16 `gorm:"column:daemon_sftp"`
	DaemonSecret string `gorm:"column:daemon_secret"`
}

type PanelConfig

type PanelConfig struct {
	Mysql MysqlConfig `json:"mysql"`
}

type Permission added in v2.4.0

type Permission struct {
	Id         uint
	UserId     uint `gorm:"column:user"`
	ServerId   uint `gorm:"column:server"`
	Permission string
}

type ProgramData

type ProgramData struct {
	Data            map[string]DataObject  `json:"data,omitempty"`
	Display         string                 `json:"display,omitempty"`
	EnvironmentData map[string]interface{} `json:"environment,omitempty"`
	InstallData     InstallSection         `json:"install,omitempty"`
	UninstallData   InstallSection         `json:"uninstall,omitempty"`
	Type            string                 `json:"type,omitempty"`
	Identifier      string                 `json:"id,omitempty"`
	RunData         RunObject              `json:"run,omitempty"`
	Template        string                 `json:"template,omitempty"`
}

type RunObject

type RunObject struct {
	Arguments               []string                 `json:"arguments,omitempty"`
	Program                 string                   `json:"program,omitempty"`
	Stop                    string                   `json:"stop,omitempty"`
	Enabled                 bool                     `json:"enabled,omitempty"`
	AutoStart               bool                     `json:"autostart,omitempty"`
	AutoRestartFromCrash    bool                     `json:"autorecover,omitempty"`
	AutoRestartFromGraceful bool                     `json:"autorestart,omitempty"`
	Pre                     []map[string]interface{} `json:"pre,omitempty"`
	Post                    []map[string]interface{} `json:"post,omitempty"`
	StopCode                int                      `json:"stopCode,omitempty"`
	EnvironmentVariables    map[string]string        `json:"environmentVars,omitempty"`
}

type Server

type Server struct {
	Id           uint
	Hash         uuid.UUID
	DaemonSecret string
	Node         uint
	Name         string
	OwnerId      uint `gorm:"column:owner_id"`
}

type ServerJson

type ServerJson struct {
	ProgramData ProgramData `json:"pufferd"`
}

type Setting added in v2.4.0

type Setting struct {
	Name  string `gorm:"column:setting_ref"`
	Value string `gorm:"column:setting_val"`
}

type SslConfig

type SslConfig struct {
	Use        bool   `json:"use"`
	ClientKey  string `json:"client-key"`
	ClientCert string `json:"client-cert"`
	CaCert     string `json:"ca-cert"`
}

type User

type User struct {
	Id        uint
	Username  string
	Email     string
	Password  string
	RootAdmin bool `gorm:"column:root_admin"`
}

Jump to

Keyboard shortcuts

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