adm

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS = "\xe2\x9c\x94"
	FAILURE = "\xe2\x9c\x98"

	RED   = "\x1b[31m"
	GREEN = "\x1b[32m"
	CLEAR = "\x1b[0m"
)

Variables

View Source
var ErrPMismatch = errors.New(`Passwords did not match`)
View Source
var ErrTMismatch = errors.New(`Tokens did not match`)

Functions

func ActivateAccount

func ActivateAccount(c *resty.Client, a *auth.Token) (*auth.Token, error)

func ActivateAsyncWait

func ActivateAsyncWait(b bool)

func AutomaticJobSave

func AutomaticJobSave(b bool)

func ChangeAccountPassword

func ChangeAccountPassword(c *resty.Client, r bool, a *auth.Token) (*auth.Token, error)

func ConfigureCache

func ConfigureCache(c *db.DB)

func ConfigureClient

func ConfigureClient(c *resty.Client)

func CopyFile

func CopyFile(dst, src string) (written int64, err error)

func DeleteReq

func DeleteReq(p string) (*resty.Response, error)

DELETE

func DeleteReqBody

func DeleteReqBody(body interface{}, p string) (*resty.Response, error)

func EvaluatePassword

func EvaluatePassword(minScore int, sl ...string) (bool, error)

func FormatOut

func FormatOut(c *cli.Context, resp *resty.Response, cmd string) error

func GetReq

func GetReq(p string) (*resty.Response, error)

GET

func KeyExchange

func KeyExchange(c *resty.Client) (*auth.Kex, error)

func PatchReqBody

func PatchReqBody(body interface{}, p string) (*resty.Response, error)

PATCH

func PostReqBody

func PostReqBody(body interface{}, p string) (*resty.Response, error)

POST

func PutReq

func PutReq(p string) (*resty.Response, error)

PUT

func PutReqBody

func PutReqBody(body interface{}, p string) (*resty.Response, error)

func Read

func Read(style string) (string, error)

func ReadConfirmed

func ReadConfirmed(style string) (string, error)

func ReadVerified

func ReadVerified(style string) string

func RequestToken

func RequestToken(c *resty.Client, a *auth.Token) (*auth.Token, error)

func ValidateToken

func ValidateToken(c *resty.Client, user, token string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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