Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SquareConfigNames = []string{"squarecloud.config", "squarecloud.app"}
)
Functions ¶
func GetConfigFile ¶
func GetConfigFile() string
func GetDefaultConfig ¶
func GetDefaultConfig() string
Types ¶
type SquareConfig ¶
type SquareConfig struct {
ID string `properties:"ID"`
DisplayName string `properties:"DISPLAY_NAME"`
Description string `properties:"DESCRIPTION"`
Main string `properties:"MAIN"`
Version string `properties:"VERSION"`
Memory string `properties:"MEMORY"`
Subdomain string `properties:"SUBDOMAIN"`
Start string `properties:"START"`
AutoRestart string `properties:"AUTORESTART"`
// contains filtered or unexported fields
}
SquareConfig refers to "squarecloud.app" file
func Load ¶
func Load() (*SquareConfig, error)
func New ¶
func New(path string) *SquareConfig
func (*SquareConfig) IsCreated ¶
func (c *SquareConfig) IsCreated() bool
func (*SquareConfig) LoadFromReader ¶
func (c *SquareConfig) LoadFromReader(reader io.Reader) error
func (*SquareConfig) Save ¶
func (c *SquareConfig) Save() (tmpErr error)
Click to show internal directories.
Click to hide internal directories.