config

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 2 Imported by: 0

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

func (c *AppConfig) GetQuadletDir() string

GetQuadletDir returns the quadlet directory, using the default based on user mode if not configured.

func (*AppConfig) GetRepositoryDir added in v0.30.0

func (c *AppConfig) GetRepositoryDir() string

GetRepositoryDir returns the repository directory, using the default based on user mode if not configured.

func (*AppConfig) GetStateFilePath added in v0.30.0

func (c *AppConfig) GetStateFilePath() string

GetStateFilePath returns the path to the deployment state file.

Jump to

Keyboard shortcuts

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