provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvOrDefault

func GetEnvOrDefault(k string, defaultvalue string) string
GetEnvOrDefault is a helper function that returns the value of the

given environment variable, if one exists, or the default value

func GetKeys

func GetKeys(hash map[string]interface{}) []string

Handy helper to just dump the keys of a map into a slice

func GetObjectAtKey

func GetObjectAtKey(data map[string]interface{}, path string, debug bool) (interface{}, error)

func GetStringAtKey

func GetStringAtKey(data map[string]interface{}, path string, debug bool) (string, error)

Using GetObjectAtKey, this function verifies the resulting

object is either a JSON string or Number and returns it as a string

func NewAPIClient

func NewAPIClient(opt *apiClientOpt) (*api_client, error)

Make a new api client

func NewAPIObject

func NewAPIObject(i_client *api_client, opts *apiObjectOpts) (*api_object, error)

Make an api_object to manage a RESTful object in an API

func Provider

func Provider() *schema.Provider

Types

This section is empty.

Jump to

Keyboard shortcuts

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