pipes

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 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 FormatIntegrationJSONString added in v0.14.0

func FormatIntegrationJSONString(body string) (string, map[string]interface{})

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

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 IntegrationJSONStringsEqual added in v0.14.0

func IntegrationJSONStringsEqual(k, old, new string, d *schema.ResourceData) bool

config is a json string apply standard formatting to old and new data then compare

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