Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version version tag Version = "v0.1" // BuildDate date string of when build was performed filled in by -X compile flag BuildDate string // LatestCommit date string of when build was performed filled in by -X compile flag LatestCommit string // BuildNumber date string of when build was performed filled in by -X compile flag BuildNumber string // BuiltOnIP date string of when build was performed filled in by -X compile flag BuiltOnIP string // BuiltOnOs date string of when build was performed filled in by -X compile flag BuiltOnOs string // RuntimeVer date string of when build was performed filled in by -X compile flag RuntimeVer string )
View Source
var (
// MinTimeLeft minimum number of seconds left when returning a code, api will block till greater than value
MinTimeLeft = 10
)
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func Initialize ¶
func Initialize() (*DeviceRegistration, []*Token, error)
Initialize initialize device info and cached tokens
Types ¶
type DeviceRegistration ¶
type DeviceRegistration struct { UserID uint64 `json:"user_id,omitempty"` DeviceID uint64 `json:"device_id,omitempty"` Seed string `json:"seed,omitempty"` APIKey string `json:"api_key,omitempty"` MainPassword string `json:"main_password,omitempty"` }
DeviceRegistration authy account details
func LoadExistingDeviceInfo ¶
func LoadExistingDeviceInfo() (*DeviceRegistration, error)
LoadExistingDeviceInfo ,,,
Click to show internal directories.
Click to hide internal directories.