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 EnableAuthRequest
- type ErrorResponse
- type HealthResponse
- type InitRequest
- type InitResponse
- type InitStatusResponse
- type LeaderResponse
- type LogicalResponse
- type MountRequest
- type RemountRequest
- type RenewRequest
- type SealStatusResponse
- type UnsealRequest
Constants ¶
View Source
const AuthCookieName = "token"
AuthCookieName is the name of the cookie containing the token.
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 EnableAuthRequest ¶
type ErrorResponse ¶
type ErrorResponse struct {
Errors []string `json:"errors"`
}
type HealthResponse ¶
type InitRequest ¶
type InitRequest struct { SecretThreshold int `json:"secret_threshold"` }
type InitResponse ¶
type InitStatusResponse ¶
type InitStatusResponse struct {
Initialized bool `json:"initialized"`
}
type LeaderResponse ¶
type LogicalResponse ¶
type MountRequest ¶
type RemountRequest ¶
type RenewRequest ¶
type RenewRequest struct {
Increment int `json:"increment"`
}
type SealStatusResponse ¶
type UnsealRequest ¶
type UnsealRequest struct {
Key string
}
Click to show internal directories.
Click to hide internal directories.