steampipecloud

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient

func CreateClient(config *Config, diags diag.Diagnostics) (*steampipe.APIClient, diag.Diagnostics)

precedence of credentials: 1. token set in config 2. ENV vars {STEAMPIPE_CLOUD_TOKEN}

func FormatJson added in v0.4.0

func FormatJson(body interface{}) string

apply standard formatting to a json string by unmarshalling into a map then marshalling back to JSON

func JSONStringToInterface added in v0.4.0

func JSONStringToInterface(dataString string) (interface{}, error)

func Provider

func Provider() *schema.Provider

Provider

func TestArrayEqual added in v0.10.0

func TestArrayEqual(t *testing.T, resourceName, key, values string) resource.TestCheckFunc

func TestJSONFieldEqual added in v0.9.0

func TestJSONFieldEqual(t *testing.T, resourceName, key, value string) resource.TestCheckFunc

Types

type Config

type Config struct {
	Token string
	Host  string
}

type SteampipeClient

type SteampipeClient struct {
	APIClient *steampipe.APIClient
	Config    *Config
}

Jump to

Keyboard shortcuts

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