Documentation ¶
Index ¶
- Constants
- Variables
- func ActivateAccount(c *resty.Client, a *auth.Token) (*auth.Token, error)
- func ActivateAsyncWait(b bool)
- func AutomaticJobSave(b bool)
- func ChangeAccountPassword(c *resty.Client, r bool, a *auth.Token) (*auth.Token, error)
- func ConfigureCache(c *db.DB)
- func ConfigureClient(c *resty.Client)
- func CopyFile(dst, src string) (written int64, err error)
- func DeleteReq(p string) (*resty.Response, error)
- func DeleteReqBody(body interface{}, p string) (*resty.Response, error)
- func EvaluatePassword(minScore int, sl ...string) (bool, error)
- func FormatOut(c *cli.Context, resp *resty.Response, cmd string) error
- func GetReq(p string) (*resty.Response, error)
- func KeyExchange(c *resty.Client) (*auth.Kex, error)
- func PatchReqBody(body interface{}, p string) (*resty.Response, error)
- func PostReqBody(body interface{}, p string) (*resty.Response, error)
- func PutReq(p string) (*resty.Response, error)
- func PutReqBody(body interface{}, p string) (*resty.Response, error)
- func Read(style string) (string, error)
- func ReadConfirmed(style string) (string, error)
- func ReadVerified(style string) string
- func RequestToken(c *resty.Client, a *auth.Token) (*auth.Token, error)
- func ValidateToken(c *resty.Client, user, token string) error
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 ActivateAsyncWait ¶
func ActivateAsyncWait(b bool)
func AutomaticJobSave ¶
func AutomaticJobSave(b bool)
func ChangeAccountPassword ¶
func ConfigureCache ¶
func ConfigureClient ¶
func ConfigureClient(c *resty.Client)
func DeleteReqBody ¶
func KeyExchange ¶
func PutReqBody ¶
func ReadConfirmed ¶
func ReadVerified ¶
func ValidateToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.