auth

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options *session.Options, streams *environment.Streams) *cobra.Command

New builds the auth login/list/use/remove/check command tree.

func NewCheck

func NewCheck(options *session.Options, streams *environment.Streams) *cobra.Command

NewCheck verifies the saved token with the server without changing account state.

func NewList

func NewList(streams *environment.Streams) *cobra.Command

NewList builds the auth list command.

func NewLogin

func NewLogin(options *session.Options, streams *environment.Streams) *cobra.Command

NewLogin builds the auth login command.

func NewRemove

func NewRemove(streams *environment.Streams) *cobra.Command

NewRemove builds the auth remove command.

func NewUse

func NewUse(streams *environment.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