credhub

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredhubClient

type CredhubClient interface {
	GetById(id string) (credentials.Credential, error)
	GetLatestVersion(name string) (credentials.Credential, error)
	FindByPartialName(partialName string) (credentials.FindResults, error)
	SetJSON(name string, value values.JSON) (credentials.JSON, error)
	SetValue(name string, value values.Value) (credentials.Value, error)
	AddPermission(credName string, actor string, ops []string) (*permissions.Permission, error)
	Delete(name string) error
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func Build

func Build(APIURL string, options ...credhub.Option) (*Store, error)

func New

func New(credhubClient CredhubClient) *Store

func (*Store) AddPermission added in v0.24.0

func (c *Store) AddPermission(credName string, actor string, ops []string) (*permissions.Permission, error)

func (*Store) BulkDelete added in v0.23.0

func (c *Store) BulkDelete(paths []string, logger *log.Logger) error

func (*Store) BulkGet

func (c *Store) BulkGet(secretsToFetch map[string]boshdirector.Variable, logger *log.Logger) (map[string]string, error)

func (*Store) BulkSet

func (c *Store) BulkSet(secretsToSet []broker.ManifestSecret) error

func (*Store) Delete

func (c *Store) Delete(key string) error

func (*Store) FindNameLike added in v0.23.0

func (c *Store) FindNameLike(name string, logger *log.Logger) ([]string, error)

func (*Store) Set

func (c *Store) Set(key string, value interface{}) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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