options

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonOptions

type CommonOptions struct {
	VaultAddress string        // VAULT_ADDR
	Timeout      time.Duration // VAULT_CLIENT_TIMEOUT
	MaxRetries   int           // VAULT_MAX_RETRIES

	RateLimit      time.Duration
	RateLimitBurst int
}

func (*CommonOptions) VaultApiConfig

func (o *CommonOptions) VaultApiConfig() *api.Config

type CommonTemplateOptions added in v0.3.1

type CommonTemplateOptions struct {
	Role string

	// Template file to be rendered (deprecated)
	TemplateFileName string

	// Template file or directory to be rendered
	TemplatePath string
	// Location of output file or directory
	OutputPath string

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

func (*CommonTemplateOptions) IsValid added in v0.3.1

func (o *CommonTemplateOptions) IsValid() bool

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

Jump to

Keyboard shortcuts

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