dbtcloud

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbtCloudConfig

type DbtCloudConfig struct {
	Hostname  string
	APIToken  string
	AccountID string
}

type DbtCloudHTTPClient

type DbtCloudHTTPClient struct {
	Client    *http.Client
	HostURL   string
	APIToken  string
	AccountID string
}

func NewDbtCloudHTTPClient

func NewDbtCloudHTTPClient(hostURL, apiToken, accountID string, transport http.RoundTripper) *DbtCloudHTTPClient

func (*DbtCloudHTTPClient) Do

func (*DbtCloudHTTPClient) GetBigQueryConnections

func (c *DbtCloudHTTPClient) GetBigQueryConnections(listProjects []int) []any

func (*DbtCloudHTTPClient) GetBigQueryCredentials

func (c *DbtCloudHTTPClient) GetBigQueryCredentials(listProjects []int) []any

func (*DbtCloudHTTPClient) GetConnections

func (c *DbtCloudHTTPClient) GetConnections(listProjects []int, warehouses []string) []any

func (*DbtCloudHTTPClient) GetCredentials

func (c *DbtCloudHTTPClient) GetCredentials(listProjects []int) []any

func (*DbtCloudHTTPClient) GetData

func (c *DbtCloudHTTPClient) GetData(url string) []any

func (*DbtCloudHTTPClient) GetDataEnvVars

func (c *DbtCloudHTTPClient) GetDataEnvVars(url string) map[string]any

func (*DbtCloudHTTPClient) GetDatabricksCredentials added in v0.6.0

func (c *DbtCloudHTTPClient) GetDatabricksCredentials(listProjects []int) []any

func (*DbtCloudHTTPClient) GetEndpoint

func (c *DbtCloudHTTPClient) GetEndpoint(url string) ([]byte, error)

func (*DbtCloudHTTPClient) GetEnvironmentVariables

func (c *DbtCloudHTTPClient) GetEnvironmentVariables(listProjects []int) map[int]any

func (*DbtCloudHTTPClient) GetEnvironments

func (c *DbtCloudHTTPClient) GetEnvironments(listProjects []int) []any

func (*DbtCloudHTTPClient) GetExtendedAttributes

func (c *DbtCloudHTTPClient) GetExtendedAttributes(listProjects []int) []any

func (*DbtCloudHTTPClient) GetFabricConnections

func (c *DbtCloudHTTPClient) GetFabricConnections(listProjects []int) []any

func (*DbtCloudHTTPClient) GetGenericConnections

func (c *DbtCloudHTTPClient) GetGenericConnections(listProjects []int) []any

func (*DbtCloudHTTPClient) GetGlobalConnection added in v0.8.0

func (c *DbtCloudHTTPClient) GetGlobalConnection(id int64) (any, error)

func (*DbtCloudHTTPClient) GetGlobalConnections added in v0.8.0

func (c *DbtCloudHTTPClient) GetGlobalConnections() []any

func (*DbtCloudHTTPClient) GetGlobalConnectionsSummary added in v0.8.0

func (c *DbtCloudHTTPClient) GetGlobalConnectionsSummary() []any

func (*DbtCloudHTTPClient) GetGroups

func (c *DbtCloudHTTPClient) GetGroups() []any

func (*DbtCloudHTTPClient) GetJobs

func (c *DbtCloudHTTPClient) GetJobs(listProjects []int) []any

func (*DbtCloudHTTPClient) GetNotifications added in v0.4.0

func (c *DbtCloudHTTPClient) GetNotifications() []any

func (*DbtCloudHTTPClient) GetProjects

func (c *DbtCloudHTTPClient) GetProjects(listProjects []int) []any

func (*DbtCloudHTTPClient) GetRepositories

func (c *DbtCloudHTTPClient) GetRepositories(listProjects []int) []any

func (*DbtCloudHTTPClient) GetServiceTokenPermissions added in v0.6.0

func (c *DbtCloudHTTPClient) GetServiceTokenPermissions(serviceTokenID int) []any

func (*DbtCloudHTTPClient) GetServiceTokens added in v0.6.0

func (c *DbtCloudHTTPClient) GetServiceTokens() []any

func (*DbtCloudHTTPClient) GetSingleData

func (c *DbtCloudHTTPClient) GetSingleData(url string) (any, error)

func (*DbtCloudHTTPClient) GetSnowflakeCredentials

func (c *DbtCloudHTTPClient) GetSnowflakeCredentials(listProjects []int) []any

func (*DbtCloudHTTPClient) GetUsers added in v0.3.0

func (c *DbtCloudHTTPClient) GetUsers() []any

func (*DbtCloudHTTPClient) GetWarehouseCredentials

func (c *DbtCloudHTTPClient) GetWarehouseCredentials(listProjects []int, warehouse string) []any

func (*DbtCloudHTTPClient) GetWebhooks added in v0.4.0

func (c *DbtCloudHTTPClient) GetWebhooks() []any

type EnvVarData

type EnvVarData struct {
	Environments []any          `json:"environments"`
	Variables    map[string]any `json:"variables"`
}

type EnvVarResponse

type EnvVarResponse struct {
	Data EnvVarData `json:"data"`
}

type Extra

type Extra struct {
	Pagination Pagination `json:"pagination"`
}

type Pagination

type Pagination struct {
	Count      int `json:"count"`
	TotalCount int `json:"total_count"`
}

type RateLimitedTransport

type RateLimitedTransport struct {
	*http.Transport
	// contains filtered or unexported fields
}

func (*RateLimitedTransport) RoundTrip

func (t *RateLimitedTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip overrides the http.RoundTrip to implement rate limiting.

type Response

type Response struct {
	Data  []any `json:"data"`
	Extra Extra `json:"extra"`
}

type SingleResponse

type SingleResponse struct {
	Data any `json:"data"`
}

Jump to

Keyboard shortcuts

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