env

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package env implements environment variable templating.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transformer

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

Transformer is used to to expand gotemplates in environment variables.

func NewTransformer added in v0.4.0

func NewTransformer(
	cfg *config.Config,
	name names.Name,
	k8sClient *k8s.K8s,
) *Transformer

NewTransformer creates a new Transformer.

func (*Transformer) Get

func (trans *Transformer) Get(
	ctx context.Context,
	tplStr string,
) (string, error)

Get gets the expansion of a template.

Jump to

Keyboard shortcuts

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