vault

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pull

func Pull(ctx context.Context, client *api.Client, paths []string, opts ...Option) (*bundlev1.Bundle, error)

Pull all given path as a bundle.

func Push

func Push(ctx context.Context, b *bundlev1.Bundle, client *api.Client, opts ...Option) error

Push the given bundle in Hashicorp Vault.

Types

type Option

type Option func(*options) error

Option defines the functional pattern for bundle operation settings.

func WithExcludePath

func WithExcludePath(value string) Option

WithExcludePath register a path exclusion regexp

func WithIncludePath

func WithIncludePath(value string) Option

WithIncludePath register a path inclusion regexp

func WithMaxWorkerCount added in v0.1.8

func WithMaxWorkerCount(value int64) Option

WithMaxWorkerCount sets the maximum count of active operation worker count.

func WithMetadata

func WithMetadata(value bool) Option

WithMetadata add package metadata as secret value to be exported in Vault.

func WithPrefix

func WithPrefix(value string) Option

WithPrefix add a prefix to path value

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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