Documentation
¶
Overview ¶
Package config provides application configuration structures and utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUserMode ¶ added in v0.30.0
func IsUserMode() bool
IsUserMode returns true if running as non-root user (uid != 0).
Types ¶
type AppConfig ¶ added in v0.30.0
type AppConfig struct {
RepositoryDir string `yaml:"repositoryDir,omitempty"`
QuadletDir string `yaml:"quadletDir,omitempty"`
Repositories []struct {
Name string `yaml:"name"`
URL string `yaml:"url"`
Ref string `yaml:"ref,omitempty"`
ComposeDir string `yaml:"composeDir,omitempty"`
} `yaml:"repositories"`
}
AppConfig represents the application configuration loaded from a YAML file.
func (*AppConfig) GetQuadletDir ¶ added in v0.30.0
GetQuadletDir returns the quadlet directory, using the default based on user mode if not configured.
func (*AppConfig) GetRepositoryDir ¶ added in v0.30.0
GetRepositoryDir returns the repository directory, using the default based on user mode if not configured.
func (*AppConfig) GetStateFilePath ¶ added in v0.30.0
GetStateFilePath returns the path to the deployment state file.
Click to show internal directories.
Click to hide internal directories.