brokerchapi

package
v2.5.11 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package brokerchapi has just enough of the CredHub API to allow service broker to store binding credentials

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CredHubURL            string
	CACert                string
	UAAURL                string
	UAAClientName         string
	UAAClientSecret       string
	InsecureSkipTLSVerify bool
}

type Store

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

func New

func New(cfg Config) (*Store, error)

New creates a new CredHub API client

func (*Store) Delete

func (s *Store) Delete(path string) error

Delete will remove a credential and all its permissions from CredHub It is idempotent so does not fail if the credential does not exist

func (*Store) Save

func (s *Store) Save(path string, cred any, actor string) error

Save will add a credential to CredHub and give the specified app permissions to see the credential

Jump to

Keyboard shortcuts

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