vault

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Config *api.Config
	Client *api.Client
}

API is main struct of Vault.

func NewAPI

func NewAPI(options APIOptions) (API, error)

NewAPI creates AI struct for Vault.

func (API) SealStatus

func (a API) SealStatus() (api.SealStatusResponse, error)

SealStatus returns status of seal.

func (API) Unseal

func (a API) Unseal(shard string) (api.SealStatusResponse, error)

Unseal starts to unseal with given shard.

type APIInterface

type APIInterface interface {
	SealStatus() (api.SealStatusResponse, error)
	Unseal(shard string) (api.SealStatusResponse, error)
}

APIInterface is an interface for API.

type APIOptions added in v0.6.0

type APIOptions struct {
	Address       string
	TLSSkipVerify bool
	CustomHeaders map[string]string
}

APIOptions is options for API.

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