barbican

package
v0.0.0-...-20b7744 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Barbican

type Barbican struct {
}

Barbican is gophercloud service client

func (*Barbican) GetSecret

func (barbican *Barbican) GetSecret(cfg Config) ([]byte, error)

GetSecret gets unencrypted secret

type BarbicanService

type BarbicanService interface {
	GetSecret(cfg Config) ([]byte, error)
}

type Config

type Config struct {
	Global struct {
		AuthURL    string `gcfg:"auth-url"`
		Username   string
		UserID     string `gcfg:"user-id"`
		Password   string
		TenantID   string `gcfg:"tenant-id"`
		TenantName string `gcfg:"tenant-name"`
		DomainID   string `gcfg:"domain-id"`
		DomainName string `gcfg:"domain-name"`
		Region     string
	}
	KeyManager KMSOpts
}

Config to read config options

type FakeBarbican

type FakeBarbican struct {
}

func (*FakeBarbican) GetSecret

func (client *FakeBarbican) GetSecret(cfg Config) ([]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