auth

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &charm.Spec{
	Name:  "auth",
	Usage: "auth [subcommand]",
	Short: "authentication and authorization commands",
	Long:  ``,
	New:   New,
}
View Source
var Login = &charm.Spec{
	Name:  "login",
	Usage: "auth login",
	Short: "log in to Zed lake service and save credentials",
	Long:  ``,
	New:   NewLoginCommand,
}
View Source
var Logout = &charm.Spec{
	Name:  "logout",
	Usage: "auth logout",
	Short: "remove saved credentials for a Zed lake service",
	Long:  ``,
	New:   NewLogoutCommand,
}
View Source
var Method = &charm.Spec{
	Name:  "method",
	Usage: "auth method",
	Short: "display authentication method supported by Zed lake service",
	Long:  ``,
	New:   NewMethod,
}
View Source
var Store = &charm.Spec{
	Name:   "store",
	Usage:  "auth store",
	Short:  "store raw tokens",
	Long:   ``,
	New:    NewStore,
	Hidden: true,
}
View Source
var Verify = &charm.Spec{
	Name:  "verify",
	Usage: "auth verify",
	Short: "verify authentication credentials",
	Long:  ``,
	New:   NewVerify,
}

Functions

func New

func New(parent charm.Command, f *flag.FlagSet) (charm.Command, error)

func NewLoginCommand

func NewLoginCommand(parent charm.Command, f *flag.FlagSet) (charm.Command, error)

func NewLogoutCommand

func NewLogoutCommand(parent charm.Command, f *flag.FlagSet) (charm.Command, error)

func NewMethod

func NewMethod(parent charm.Command, f *flag.FlagSet) (charm.Command, error)

func NewStore

func NewStore(parent charm.Command, f *flag.FlagSet) (charm.Command, error)

func NewVerify

func NewVerify(parent charm.Command, f *flag.FlagSet) (charm.Command, error)

Types

type Command

type Command struct {
	*root.Command
}

func (*Command) Run

func (c *Command) Run(args []string) error

type LoginCommand

type LoginCommand struct {
	*Command
	// contains filtered or unexported fields
}

func (*LoginCommand) Run

func (c *LoginCommand) Run(args []string) error

type LogoutCommand

type LogoutCommand struct {
	*Command
}

func (*LogoutCommand) Run

func (c *LogoutCommand) Run(args []string) error

type MethodCommand

type MethodCommand struct {
	*Command
}

func (*MethodCommand) Run

func (c *MethodCommand) Run(args []string) error

type StoreCommand

type StoreCommand struct {
	*Command
	// contains filtered or unexported fields
}

func (*StoreCommand) Run

func (c *StoreCommand) Run(args []string) error

type VerifyCommand

type VerifyCommand struct {
	*Command
}

func (*VerifyCommand) Run

func (c *VerifyCommand) Run(args []string) error

Jump to

Keyboard shortcuts

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