io

package
v2.1.45 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigStore

type ConfigStore interface {
	// Write saves some secret data to the store
	Write(name string, bytes []byte) error

	// Read reads some secret data from the store
	Read(name string) ([]byte, error)

	// WriteObject writes a named object to the store
	WriteObject(name string, object interface{}) error

	// ReadObject reads an object from the store
	ReadObject(name string, object interface{}) error
}

ConfigStore provides an interface for storing configs

func NewFileStore

func NewFileStore() ConfigStore

NewFileStore creates a ConfigStore that stores its data to the filesystem

func NewVaultStore

func NewVaultStore(client vault.Client, path string) ConfigStore

NewVaultStore creates a new store which stores its data in Vault

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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