Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Init ¶
func (c *Client) Init(ctx context.Context, opts *InitRequest) (*InitResponse, error)
func (*Client) Unseal ¶
func (c *Client) Unseal(ctx context.Context, opts *UnsealRequest) (*UnsealResponse, error)
type EncryptionBackend ¶
type InitRequest ¶
type InitRequest struct { SecretThreshold int `json:"secret_threshold"` }
type InitResponse ¶
type StorageBackend ¶
type UnsealRequest ¶
type UnsealRequest struct {
Key string `json:"key"`
}
type UnsealResponse ¶
type VaultClient ¶
type VaultClient interface { Health(ctx context.Context) (*http.Response, error) Init(ctx context.Context, opts *InitRequest) (*InitResponse, error) Unseal(ctx context.Context, opts *UnsealRequest) (*UnsealResponse, error) }
type VaultInit ¶
type VaultInit struct {
// contains filtered or unexported fields
}
func NewVaultInit ¶
func NewVaultInit(client VaultClient, encryption EncryptionBackend, storage StorageBackend, once bool, checkInterval time.Duration) *VaultInit
Click to show internal directories.
Click to hide internal directories.