client

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddConnection

type AddConnection struct {
	AddConnection struct {
		Connection struct {
			Uuid      string
			Warehouse struct {
				Name string
				Uuid string
			}
		}
	} `` /* 170-byte string literal not displayed */
}

type CreateOrUpdateDomain added in v0.1.3

type CreateOrUpdateDomain struct {
	CreateOrUpdateDomain struct {
		Domain struct {
			Assignments []string
			Tags        []TagKeyValuePairOutput
			Name        string
			Description string
			Uuid        string
		}
	} `graphql:"createOrUpdateDomain(assignments: $assignments, tags: $tags, name: $name, description: $description, uuid: $uuid)"`
}

type DeleteDomain added in v0.1.3

type DeleteDomain struct {
	DeleteDomain struct {
		Deleted int
	} `graphql:"deleteDomain(uuid: $uuid)"`
}

type Diagnostic

type Diagnostic struct {
	Cause           string
	FriendlyMessage string
	Resolution      string
}

type Errors

type Errors []Diagnostic

type GetDomain added in v0.1.3

type GetDomain struct {
	GetDomain *struct {
		Uuid           string                  `json:"uuid"`
		Name           string                  `json:"name"`
		Description    string                  `json:"description"`
		CreatedByEmail string                  `json:"createdByEmail"`
		Tags           []TagKeyValuePairOutput `json:"tags"`
		Assignments    []string                `json:"assignments"`
	} `json:"getDomain"`
}

type GetWarehouse

type GetWarehouse struct {
	GetWarehouse *struct {
		Name        string `json:"name"`
		Connections []struct {
			Uuid string `json:"uuid"`
			Type string `json:"type"`
		} `json:"connections"`
		DataCollector struct {
			Uuid string `json:"uuid"`
		} `json:"dataCollector"`
	} `json:"getWarehouse"`
}

type JSONString added in v0.1.1

type JSONString string

type MonteCarloClient

type MonteCarloClient interface {
	Mutate(ctx context.Context, m interface{}, variables map[string]interface{}, options ...graphql.Option) error
	Query(ctx context.Context, q interface{}, variables map[string]interface{}, options ...graphql.Option) error
	ExecRaw(ctx context.Context, query string, variables map[string]interface{}, options ...graphql.Option) ([]byte, error)
}

client interface

func NewMonteCarloClient

func NewMonteCarloClient(context context.Context, api_key_id string, api_key_token string) (MonteCarloClient, error)

type RemoveConnection

type RemoveConnection struct {
	RemoveConnection struct {
		Success bool
	} `graphql:"removeConnection(connectionId: $connectionId)"`
}

type SetWarehouseName

type SetWarehouseName struct {
	SetWarehouseName struct {
		Warehouse struct {
			Uuid string
			Name string
		}
	} `graphql:"setWarehouseName(dwId: $dwId, name: $name)"`
}

type TagKeyValuePairInput added in v0.1.3

type TagKeyValuePairInput TagPair

type TagKeyValuePairOutput added in v0.1.3

type TagKeyValuePairOutput TagPair

type TagPair added in v0.1.3

type TagPair struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type TestBqCredentialsV2

type TestBqCredentialsV2 struct {
	TestBqCredentialsV2 struct {
		Key              string
		ValidationResult struct {
			Success  bool
			Warnings Warnings
			Errors   Errors
		}
	} `graphql:"testBqCredentialsV2(validationName: $validationName, connectionDetails: $connectionDetails)"`
}

type UUID added in v0.1.1

type UUID string

type UpdateCredentials

type UpdateCredentials struct {
	UpdateCredentials struct {
		Success bool
	} `` /* 139-byte string literal not displayed */
}

type Warnings

type Warnings []Diagnostic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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