examples

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() *kentikapi.Client

NewClient creates kentikapi client with credentials read from env variables

func PanicOnError

func PanicOnError(err error)

PanicOnError converts err into panic; use it to reduce the number of: "if err != nil { return err }" statements

func PrettyPrint

func PrettyPrint(resource interface{})

PrettyPrint prints an object recursively in an indented way

func ReadCredentialsFromEnv

func ReadCredentialsFromEnv() (authEmail, authToken string, _ error)

ReadCredentialsFromEnv reads and returns (email, token) pair from environment variables, or error if not set

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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