vault

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 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 WithPrefix

func WithPrefix(value string) Option

WithPrefix add a prefix to path value

func WithSecretMetadata added in v0.2.0

func WithSecretMetadata(value bool) Option

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

func WithVaultMetadata added in v0.2.0

func WithVaultMetadata(value bool) Option

WithVaultMetadata add package metadata as secret metadata to be exported in Vault.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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