vault

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 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 WithContinueOnError

func WithContinueOnError(value bool) Option

WithContinueOnError enable/disable stop processing on failure.

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

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

func WithSecretMetadata(value bool) Option

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

func WithVaultMetadata

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