Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Opts options
Opts are the options set through the command line
Functions ¶
func GetClientAndInfo ¶
GetClientAndInfo is a simple wrapper that will fetch the vault, account info from the given vault and an authenticated api client. Since this is used a lot, we created a separate function for this. This will take care of a lot of code duplication.
func GetReadTime ¶
GetReadTime will return the last saved reading time or 0 when no time-file is found
func JwtErrorFunc ¶
JwtErrorFunc is a generic error handling function that can be attached to an API client. This will automatically trigger whenever an error (https response >= 400) is found. In this case, it will only check for the token-time error, which is returned when the time of the client is off.
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner is a structure that will display a nice spinning char to inform that the system is busy with something
func NewSpinner ¶
NewSpinner will create a new spinner that spins on duration