Documentation ¶
Index ¶
- Constants
- func Handler(core *vault.Core) http.Handler
- func TestListener(t *testing.T) (net.Listener, string)
- func TestServer(t *testing.T, core *vault.Core) (net.Listener, string)
- func TestServerAuth(t *testing.T, addr string, token string)
- func TestServerWithListener(t *testing.T, ln net.Listener, addr string, core *vault.Core)
- type Auth
- type ErrorResponse
- type HealthResponse
- type InitRequest
- type InitResponse
- type InitStatusResponse
- type LeaderResponse
- type LogicalResponse
- type RekeyRequest
- type RekeyStatusResponse
- type RekeyUpdateRequest
- type RekeyUpdateResponse
- type SealStatusResponse
- type UnsealRequest
Constants ¶
View Source
const AuthHeaderName = "X-Vault-Token"
AuthHeaderName is the name of the header containing the token.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Errors []string `json:"errors"`
}
type HealthResponse ¶
type InitRequest ¶
type InitResponse ¶
type InitStatusResponse ¶
type InitStatusResponse struct {
Initialized bool `json:"initialized"`
}
type LeaderResponse ¶
type LogicalResponse ¶
type RekeyRequest ¶ added in v0.2.0
type RekeyStatusResponse ¶ added in v0.2.0
type RekeyUpdateRequest ¶ added in v0.2.0
type RekeyUpdateRequest struct {
Key string
}
type RekeyUpdateResponse ¶ added in v0.2.0
type SealStatusResponse ¶
type UnsealRequest ¶
type UnsealRequest struct {
Key string
}
Click to show internal directories.
Click to hide internal directories.