Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dependencies ¶
type Dependencies struct {
Input io.Reader
Output io.Writer
ErrorOutput io.Writer
Stdin *os.File
Stdout *os.File
Environment map[string]string
HTTPClient *http.Client
Now func() time.Time
Sleep func(context.Context, time.Duration) error
Version string
IsInteractive func() bool
IsOutputInteractive func() bool
NewIdempotencyKey func() (string, error)
// OpenURL opens a safe verification or approval URL in the user's browser.
// Device login opens directly; confirmation flows first ask the user.
OpenURL func(string) error
// ReadSecret reads one factor without echoing it. Workspace lock PINs and
// recovery phrases have no other input path: no flag, environment variable
// or piped stdin carries them, so a non-interactive run refuses instead of
// falling back.
ReadSecret func(prompt string) (string, error)
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.