lib

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvToYaml added in v0.2.0

func EnvToYaml(r, envr io.Reader, w io.Writer, ypath string) error

EnvToYaml fill some yaml node with entries from and .env-formatted file

func EnvToYamlFile added in v0.2.0

func EnvToYamlFile(envFilename, yamlFilename, ypath string) error

EnvToYamlFile fill some yaml node with entries from and .env-formatted file. Reads and writes directly into files, instead of readers and writers.

func ExportSettings

func ExportSettings(inputs []io.Reader, output io.Writer) error

ExportSettings exports settings

func GenerateConfigMap added in v0.4.0

func GenerateConfigMap(params GenerateConfigMapParams) (string, error)

func PatchNuget

func PatchNuget(reader io.Reader, writer io.Writer, source, username, password string) error

PatchNuget adds clear text password to a nuget config

func PatchNugetFile

func PatchNugetFile(path, source, username, password string) error

PatchNugetFile adds clear text password to a nuget config file

func ReferenceSecrets added in v0.3.1

func ReferenceSecrets(r io.Reader, w io.Writer, ypath, secretname, prefix, suffix string) error

ReferenceSecrets adds a secret key reference variable to a yaml file. The file is tipically a kubernetes Deployment or Pod resource file.

func ReferenceSecretsFile added in v0.3.1

func ReferenceSecretsFile(path, ypath, secretname, prefix, suffix string) error

ReferenceSecretsFile adds a secret key reference variable to a yaml file. The file is tipically a kubernetes Deployment or Pod resource file. Reads and writes directly into files, instead of readers and writers.

Types

type GenerateConfigMapParams added in v0.4.0

type GenerateConfigMapParams struct {
	Name            string
	FromEnvironment bool
	Prefix          string
	StripPrefix     bool
	IgnoreCase      bool
}

func (GenerateConfigMapParams) Validate added in v0.4.0

func (p GenerateConfigMapParams) Validate() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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