auth

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package auth 提供真实的 auth 命令组与交互式凭据输入。

Index

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

func PromptPassword(out io.Writer) (string, error)

PromptPassword reads a password without echo when stdin is a TTY.

func PromptUsername

func PromptUsername(in io.Reader, out io.Writer) (string, error)

PromptUsername reads a non-empty username from in (or interactive stdin).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL