template

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(logger hclog.Logger, options *Options) error

Types

type Options

type Options struct {
	options.CommonOptions
	// Kubernetes auth role to use
	Role string

	// Template file to be rendered
	TemplateFileName string
	// Location of the output file
	OutputFileName string
	// Secrets file location, where the secret leases are stored
	SecretsOutputFileName string

	// Optional, for setting variables to test the templating without vault connection.
	Variables map[string]string
}

Options customizes the parameters of templating.

func (*Options) IsValid

func (o *Options) IsValid() bool

IsValid returns true if some values are filled into the options.

type VaultifyTemplate

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

func New

func New(logger hclog.Logger, secretReader secrets.SecretReader) *VaultifyTemplate

func (*VaultifyTemplate) RenderToFile

func (t *VaultifyTemplate) RenderToFile(templateFile string, outputFile string) (*secrets.Secrets, error)

Jump to

Keyboard shortcuts

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