pipes

package
v0.13.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PipesTenantHandle = "turbot-pipes"
View Source
const PipesTenantId = "t_00000000000000000000"

Variables

This section is empty.

Functions

func CreateClient

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

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

func FormatJson

func FormatJson(body interface{}) string

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

func JSONStringToInterface

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

func Provider

func Provider() *schema.Provider

Provider

func TestArrayEqual

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

func TestJSONFieldEqual

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

Types

type Config

type Config struct {
	Token string
	Host  string
}

type PipesClient

type PipesClient struct {
	APIClient *pipes.APIClient
	Config    *Config
}

Jump to

Keyboard shortcuts

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