common

package
v0.4.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultDeploymentsDirName = "deployments"
View Source
const DefaultImagesDirName = "images"
View Source
const DefaultInstanceDir = "."
View Source
const DefaultPackerDirName = "packer"
View Source
const DefaultProjectsDirName = "projects"
View Source
const DefaultTerraformDirName = "terraform"
View Source
const ViperDefaultInstanceDir = ViperPrefix + "default.dir"
View Source
const ViperDeploymentsDir = ViperPrefix + "deployments.dir"
View Source
const ViperImagesDir = ViperPrefix + "images.dir"
View Source
const ViperPackerDir = ViperPrefix + "packer.dir"
View Source
const ViperPrefix = "carbon."
View Source
const ViperTerraformDir = ViperPrefix + "terraform.dir"
View Source
const ViperTerraformProjectDir = ViperPrefix + "projects.dir"

Variables

This section is empty.

Functions

func ImagesDir added in v0.4.1

func ImagesDir() string

func LogLevel added in v0.3.1

func LogLevel(level slog.Level)

func Logger added in v0.3.1

func Logger() *slog.Logger

func PackerDir added in v0.4.1

func PackerDir() string

func ProjectsDir added in v0.4.1

func ProjectsDir() string

func WithGroup added in v0.3.1

func WithGroup(groupName string) *slog.Logger

Types

type CarbonConfig

type CarbonConfig struct {
	Providers map[string]ProviderConfig `yaml:"providers"`
}

type CarbonConfigFile

type CarbonConfigFile struct {
	Carbon CarbonConfig `yaml:"carbon"`
}

type ProfileConfig

type ProfileConfig struct {
	Enabled      bool            `yaml:"enabled"`
	Username     string          `yaml:"username"`
	Password     string          `yaml:"password"`
	URL          string          `yaml:"url"`
	Environments map[string]bool `yaml:"environments"`
}

type ProviderConfig

type ProviderConfig struct {
	Enabled  bool                     `yaml:"enabled"`
	Profiles map[string]ProfileConfig `yaml:"profiles"`
}

Jump to

Keyboard shortcuts

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