template

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MPL-2.0 Imports: 14 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
	options.CommonTemplateOptions

	// Secrets file location, where the secret leases are stored
	SecretsOutputFileName 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) RenderToDirectory added in v0.3.1

func (t *VaultifyTemplate) RenderToDirectory(templateDir string, outputDir string) (*secrets.Secrets, error)

func (*VaultifyTemplate) RenderToFile

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

func (*VaultifyTemplate) RenderToPath added in v0.3.1

func (t *VaultifyTemplate) RenderToPath(options options.CommonTemplateOptions) (*secrets.Secrets, error)

Jump to

Keyboard shortcuts

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