credhubbroker

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredHubBroker

type CredHubBroker struct {
	apiserver.CombinedBroker
	// contains filtered or unexported fields
}

func New

func New(broker apiserver.CombinedBroker,
	credStore CredentialStore,
	serviceName string,
	loggerFactory *loggerfactory.LoggerFactory,
) *CredHubBroker

func (*CredHubBroker) Bind

func (b *CredHubBroker) Bind(ctx context.Context, instanceID, bindingID string, details brokerapi.BindDetails) (brokerapi.Binding, error)

func (*CredHubBroker) Unbind added in v0.18.0

func (b *CredHubBroker) Unbind(ctx context.Context, instanceID, bindingID string, details brokerapi.UnbindDetails) error

type CredHubStore

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

func NewCredHubStore

func NewCredHubStore(APIURL string, options ...credhub.Option) (*CredHubStore, error)

func (*CredHubStore) AddPermissions added in v0.18.0

func (c *CredHubStore) AddPermissions(name string, permissions []permissions.Permission) ([]permissions.Permission, error)

func (*CredHubStore) Authenticate

func (credhubStore *CredHubStore) Authenticate() error

func (*CredHubStore) Delete

func (credHubStore *CredHubStore) Delete(key string) error

func (*CredHubStore) Set

func (credHubStore *CredHubStore) Set(key string, value interface{}) error

type CredentialStore

type CredentialStore interface {
	Set(key string, value interface{}) error
	Delete(key string) error
	Authenticate() error
	AddPermissions(credentialName string, perms []permissions.Permission) ([]permissions.Permission, error)
}

type CredentialStoreFactory added in v0.18.0

type CredentialStoreFactory interface {
	New() (CredentialStore, error)
}

type CredhubFactory added in v0.18.0

type CredhubFactory struct {
	Conf config.Config
}

func (CredhubFactory) New added in v0.18.0

func (factory CredhubFactory) New() (CredentialStore, 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