Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadAdminConfig ¶
LoadAdminConfig loads a JSON configuration file from path and returns a populated *admin.Client from duo_api_golang.
Types ¶
type Config ¶
type Config struct { Ikey string `json:"ikey"` Skey string `json:"skey"` APIHost string `json:"api_host"` UserAgent string `json:"user_agent"` Timeout int64 `json:"timeout"` }
Config is a struct resprenting the JSON configuration file for duocli. UserAgent and Timeout are optional fields.
Click to show internal directories.
Click to hide internal directories.