credhub

package
v0.0.0-...-fb356ce Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 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, options ...credhub.SetOption) (credentials.JSON, error)
	SetValue(name string, value values.Value, options ...credhub.SetOption) (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

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

func (*Store) BulkDelete

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

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