config

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
	XDGConfigHomeLinuxEnv  = "XDG_CONFIG_HOME"
	LocalAppDataWindowsEnv = "LOCALAPPDATA"
	Dir                    = "SIMULATOR_DIR"
	FileName               = "config.yaml"
)

Variables

This section is empty.

Functions

func SimulatorDir

func SimulatorDir() (string, error)

Types

type Cli

type Cli struct {
	Dev bool `yaml:"dev,omitempty"`
}

type Config

type Config struct {
	Name      string `yaml:"name"`
	Bucket    string `yaml:"bucket"`
	BaseDir   string `yaml:"baseDir,omitempty"`
	Cli       `yaml:"cli,omitempty"`
	Container `yaml:"container"`
}

func (*Config) AdminBundleDir

func (c *Config) AdminBundleDir() (string, error)

func (*Config) ContainerUser

func (c *Config) ContainerUser() string

func (*Config) PlayerBundleDir

func (c *Config) PlayerBundleDir() (string, error)

func (*Config) Read

func (c *Config) Read() error

func (*Config) Write

func (c *Config) Write() error

type Container

type Container struct {
	Image    string `yaml:"image"`
	Rootless bool   `yaml:"rootless,omitempty"`
}

Jump to

Keyboard shortcuts

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