barbican

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBarbicanClient added in v1.17.0

func NewBarbicanClient(cfg Config) (*gophercloud.ServiceClient, error)

NewBarbicanClient creates new BarbicanClient

Types

type Barbican

type Barbican struct {
	Client *gophercloud.ServiceClient
}

Barbican is gophercloud service client

func (*Barbican) GetSecret

func (barbican *Barbican) GetSecret(keyID string) ([]byte, error)

GetSecret gets unencrypted secret

type BarbicanService

type BarbicanService interface {
	GetSecret(keyID string) ([]byte, error)
}

type Config

type Config struct {
	Global     openstack_provider.AuthOpts
	KeyManager KMSOpts
}

Config to read config options

type FakeBarbican

type FakeBarbican struct {
}

func (*FakeBarbican) GetSecret

func (client *FakeBarbican) GetSecret(keyID string) ([]byte, error)

type KMSOpts

type KMSOpts struct {
	KeyID string `gcfg:"key-id"`
}

Jump to

Keyboard shortcuts

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