Documentation
¶
Index ¶
- func HealthcheckHandler(w http.ResponseWriter, r *http.Request)
- type AccountsHandler
- func (ah *AccountsHandler) Create2FA(w http.ResponseWriter, r *http.Request)
- func (ah *AccountsHandler) CreateAccount(w http.ResponseWriter, r *http.Request)
- func (ah *AccountsHandler) Delete2FA(w http.ResponseWriter, r *http.Request)
- func (ah *AccountsHandler) Generate2FA(w http.ResponseWriter, r *http.Request)
- func (ah *AccountsHandler) Get2FA(w http.ResponseWriter, r *http.Request)
- func (ah *AccountsHandler) GetAccount(w http.ResponseWriter, r *http.Request)
- func (ah *AccountsHandler) Validate2FA(w http.ResponseWriter, r *http.Request)
- func (ah *AccountsHandler) Verify2FA(w http.ResponseWriter, r *http.Request)
- type Create2FABody
- type CreateAccountBody
- type DeploymentsHandler
- type Generate2FAResponse
- type Get2FAResponse
- type GetDeploymentsResponse
- type Healthcheck
- type Verify2FAResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthcheckHandler ¶
func HealthcheckHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type AccountsHandler ¶
type AccountsHandler struct {
// contains filtered or unexported fields
}
func NewAccountsHandler ¶
func NewAccountsHandler(logger *zap.Logger, accountsClient *accounts.AccountsClient) *AccountsHandler
func (*AccountsHandler) Create2FA ¶
func (ah *AccountsHandler) Create2FA(w http.ResponseWriter, r *http.Request)
func (*AccountsHandler) CreateAccount ¶
func (ah *AccountsHandler) CreateAccount(w http.ResponseWriter, r *http.Request)
func (*AccountsHandler) Delete2FA ¶
func (ah *AccountsHandler) Delete2FA(w http.ResponseWriter, r *http.Request)
func (*AccountsHandler) Generate2FA ¶
func (ah *AccountsHandler) Generate2FA(w http.ResponseWriter, r *http.Request)
func (*AccountsHandler) Get2FA ¶
func (ah *AccountsHandler) Get2FA(w http.ResponseWriter, r *http.Request)
func (*AccountsHandler) GetAccount ¶
func (ah *AccountsHandler) GetAccount(w http.ResponseWriter, r *http.Request)
func (*AccountsHandler) Validate2FA ¶
func (ah *AccountsHandler) Validate2FA(w http.ResponseWriter, r *http.Request)
func (*AccountsHandler) Verify2FA ¶
func (ah *AccountsHandler) Verify2FA(w http.ResponseWriter, r *http.Request)
type Create2FABody ¶
type Create2FABody struct {
Secret string
}
type CreateAccountBody ¶
type DeploymentsHandler ¶ added in v1.0.1
type DeploymentsHandler struct {
// contains filtered or unexported fields
}
func NewDeploymentsClient ¶ added in v1.0.1
func NewDeploymentsClient(logger *zap.Logger, deploymentsClient *deployments.DeploymentsClient) *DeploymentsHandler
func (*DeploymentsHandler) GetDeployments ¶ added in v1.0.1
func (dh *DeploymentsHandler) GetDeployments(w http.ResponseWriter, r *http.Request)
type Generate2FAResponse ¶
type Get2FAResponse ¶
type Get2FAResponse struct {
Status string `json:"status"`
}
type GetDeploymentsResponse ¶ added in v1.0.1
type GetDeploymentsResponse struct {
Deployments []deployments.Deployment `json:"deployments"`
}
type Healthcheck ¶
type Healthcheck struct {
Healthy bool `json:"healthy"`
}
type Verify2FAResponse ¶
type Verify2FAResponse struct {
Verified bool `json:"verified"`
}
Click to show internal directories.
Click to hide internal directories.