auth

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(options command.Options) *cobra.Command

func NewCmdLogin added in v0.2.0

func NewCmdLogin(options command.Options) *cobra.Command

func NewCmdRandom

func NewCmdRandom(options command.Options) *cobra.Command

func NewCmdRegister added in v0.2.0

func NewCmdRegister(options command.Options) *cobra.Command

Types

type CommandLogin added in v0.2.0

type CommandLogin struct {
	Writer  io.Writer
	Config  configs.Config
	Service service.APIServiceInterface

	Email    string
	Password string
}

func (*CommandLogin) Complete added in v0.2.0

func (command *CommandLogin) Complete(cmd *cobra.Command, args []string) error

func (*CommandLogin) Run added in v0.2.0

func (command *CommandLogin) Run() error

func (*CommandLogin) Validate added in v0.2.0

func (command *CommandLogin) Validate() error

type CommandRand

type CommandRand struct {
	Writer  io.Writer
	Config  configs.Config
	Service service.APIServiceInterface
}

func (*CommandRand) Complete

func (command *CommandRand) Complete(cmd *cobra.Command, args []string) error

func (*CommandRand) Run

func (command *CommandRand) Run() error

func (*CommandRand) Validate

func (command *CommandRand) Validate() error

type CommandRegister added in v0.2.0

type CommandRegister struct {
	Writer  io.Writer
	Config  configs.Config
	Service service.APIServiceInterface

	Username string
	Password string

	Domain string
	Login  bool
	// contains filtered or unexported fields
}

func (*CommandRegister) Complete added in v0.2.0

func (command *CommandRegister) Complete(cmd *cobra.Command, args []string) error

func (*CommandRegister) Run added in v0.2.0

func (command *CommandRegister) Run() error

func (*CommandRegister) Validate added in v0.2.0

func (command *CommandRegister) Validate() error

Jump to

Keyboard shortcuts

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