config

package
v0.0.0-...-e394087 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigHelp      = "(Re)creates deployment configuration files"
	ConfigHelpExtra = `` /* 787-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the subcommand.

func CreateDirAndFiles

func CreateDirAndFiles(baseDir string, force bool, customTemplate string, cfg map[string]any) error

CreateDirAndFiles creates the base directory and (re-)creates the deployment files according to the given template. Use a truthy value for force to override existing files.

func NewConfig

func NewConfig(configFileNames []string) (map[string]any, error)

NewConfig creates a configuration map by deep-merging all given files in order. Later files override existing keys and add new keys.

Types

type TemplateFunctions

type TemplateFunctions struct {
	// contains filtered or unexported fields
}

func (*TemplateFunctions) GetFuncMap

func (tf *TemplateFunctions) GetFuncMap() template.FuncMap

GetFuncMap returns the template function map with context

func (*TemplateFunctions) ReadSecret

func (tf *TemplateFunctions) ReadSecret(name string) (string, error)

ReadSecret reads a secret file from the secrets directory and returns it base64 encoded

Jump to

Keyboard shortcuts

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