barbican

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 Config

type Config struct {
	Global     client.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