Documentation
¶
Overview ¶
Package accountcommand presents the engine's shared official-service account.
Index ¶
Constants ¶
const Synopsis = " " + command.Name + " account status [--json] | register | refresh\n" + " " + command.Name + " account login <username> | password <username> [--password-stdin]\n" + " " + command.Name + " account email <address> | verify <code> | revoke <credential>"
Synopsis is the single source of truth for account command lines shared between accountcommand.Usage and top-level wind usage.
const Usage = "Usage:\n" + Synopsis
Variables ¶
This section is empty.
Functions ¶
func IdentityLines ¶ added in v0.1.5
Types ¶
type Request ¶ added in v0.1.6
type Request struct {
// contains filtered or unexported fields
}
Request is a validated account subcommand ready to execute against a Service.
type Runner ¶
type Runner struct {
Service Service
Input io.Reader
Output command.LineOutput
JSONOutput io.Writer
}
type Service ¶
type Service interface {
Snapshot() (account.Snapshot, <-chan struct{})
RefreshOnce(context.Context) (account.RefreshOutcome, error)
Register(context.Context) error
Login(context.Context, string, string) error
SetPassword(context.Context, string, string, string) error
RequestEmail(context.Context, string) error
VerifyEmail(context.Context, string) error
RevokeCredential(context.Context, string, [16]byte) error
}