hashicorp

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Kvv2Client
	PluginClient
	SetToken(token string)
	UnwrapToken(token string) (*hashicorp.Secret, error)
	Mount(path string, mountInfo *hashicorp.MountInput) error
	HealthCheck() error
}

type Kvv2Client

type Kvv2Client interface {
	ReadData(id string, data map[string][]string) (*hashicorp.Secret, error)
	ReadMetadata(id string) (*hashicorp.Secret, error)
	SetSecret(id string, data map[string]interface{}) (*hashicorp.Secret, error)
	ListSecrets() (*hashicorp.Secret, error)
	DeleteSecret(id string, data map[string][]string) error
	RestoreSecret(id string, data map[string][]string) error
	DestroySecret(id string, data map[string][]string) error
}

type PluginClient

type PluginClient interface {
	GetKey(id string) (*hashicorp.Secret, error)
	CreateKey(data map[string]interface{}) (*hashicorp.Secret, error)
	ImportKey(data map[string]interface{}) (*hashicorp.Secret, error)
	ListKeys() (*hashicorp.Secret, error)
	UpdateKey(id string, data map[string]interface{}) (*hashicorp.Secret, error)
	DestroyKey(id string) error
	Sign(id string, data []byte) (*hashicorp.Secret, error)
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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