Documentation
¶
Overview ¶
Package auth 提供真实的 auth 命令组与交互式凭据输入。
Index ¶
- func New(options *invocation.RootOptions, streams *invocation.Streams) *cobra.Command
- func NewCheck(options *invocation.RootOptions, streams *invocation.Streams) *cobra.Command
- func NewList(streams *invocation.Streams) *cobra.Command
- func NewLogin(options *invocation.RootOptions, streams *invocation.Streams) *cobra.Command
- func NewRemove(streams *invocation.Streams) *cobra.Command
- func NewUse(streams *invocation.Streams) *cobra.Command
- func PromptPassword(out io.Writer) (string, error)
- func PromptUsername(in io.Reader, out io.Writer) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(options *invocation.RootOptions, streams *invocation.Streams) *cobra.Command
New builds the auth login/list/use/remove/check command tree.
func NewCheck ¶
func NewCheck(options *invocation.RootOptions, streams *invocation.Streams) *cobra.Command
NewCheck builds the auth check command (does not print the token).
func NewList ¶
func NewList(streams *invocation.Streams) *cobra.Command
NewList builds the auth list command.
func NewLogin ¶
func NewLogin(options *invocation.RootOptions, streams *invocation.Streams) *cobra.Command
NewLogin builds the auth login command.
func NewRemove ¶
func NewRemove(streams *invocation.Streams) *cobra.Command
NewRemove builds the auth remove command.
func NewUse ¶
func NewUse(streams *invocation.Streams) *cobra.Command
NewUse builds the auth use command.
func PromptPassword ¶
PromptPassword reads a password without echo when stdin is a TTY.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.