Documentation ¶
Index ¶
- Variables
- func New(parent charm.Command, f *flag.FlagSet) (charm.Command, error)
- func NewLoginCommand(parent charm.Command, f *flag.FlagSet) (charm.Command, error)
- func NewLogoutCommand(parent charm.Command, f *flag.FlagSet) (charm.Command, error)
- func NewMethod(parent charm.Command, f *flag.FlagSet) (charm.Command, error)
- func NewStore(parent charm.Command, f *flag.FlagSet) (charm.Command, error)
- func NewVerify(parent charm.Command, f *flag.FlagSet) (charm.Command, error)
- type Command
- type LoginCommand
- type LogoutCommand
- type MethodCommand
- type StoreCommand
- type VerifyCommand
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 NewLoginCommand ¶
func NewLogoutCommand ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.