squareconfig

package
v0.0.0-...-8415d4e Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

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