config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIG_PATH = "/.config/kade/config.yml"
)

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig()

Types

type Config

type Config struct {
	Global GlobalConfig `yaml:"global"`
}

func GetConfig

func GetConfig() *Config

type ContainerRegistryConfig

type ContainerRegistryConfig struct {
	Uri  string `yaml:"uri"`
	User string `yaml:"user"`
	Pass string `yaml:"pass"`
}

type DatabaseConfig

type DatabaseConfig struct {
	Host string `yaml:"host"`
	User string `yaml:"user"`
	Pass string `yaml:"pass"`
}

type GlobalConfig

type GlobalConfig struct {
	ContainerRegistry ContainerRegistryConfig `yaml:"containerRegistry"`
	Database          DatabaseConfig          `yaml:"database"`
}

Jump to

Keyboard shortcuts

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