duocli

package
v0.99.0-pre3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAdminConfig

func LoadAdminConfig(path string) (*admin.Client, error)

LoadAdminConfig loads a JSON configuration file from path and returns a populated *admin.Client from duo_api_golang.

func LoadConfig

func LoadConfig(path string) (*duoapi.DuoApi, error)

LoadConfig loads a JSON configuration file from path and returns a populated *duoapi.DuoApi.

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.

Jump to

Keyboard shortcuts

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