client

package
v0.187.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 5 modules, 16 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabricksClient

type DatabricksClient struct {
	Config *config.Config
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config) (*DatabricksClient, error)

func NewWithClient added in v0.32.0

func NewWithClient(cfg *config.Config, client *httpclient.ApiClient) (*DatabricksClient, error)

func (*DatabricksClient) ApiClient added in v0.43.1

func (c *DatabricksClient) ApiClient() *httpclient.ApiClient

ApiClient returns the inner Api Client.

func (*DatabricksClient) ConfiguredAccountID

func (c *DatabricksClient) ConfiguredAccountID() string

ConfiguredAccountID returns Databricks Account ID if it's provided in config, empty string otherwise

func (*DatabricksClient) Do

func (c *DatabricksClient) Do(ctx context.Context, method, path string,
	headers map[string]string, queryParams map[string]any, request, response any,
	visitors ...func(*http.Request) error) error

Do sends an HTTP request against path.

func (*DatabricksClient) GetOAuthToken added in v0.43.1

func (c *DatabricksClient) GetOAuthToken(ctx context.Context, authDetails string, token *oauth2.Token) (*oauth2.Token, error)

GetOAuthToken returns a new OAuth token using the provided token. The token must be a JWT token. The resulting token is scoped to the authorization details provided.

**NOTE:** Experimental: This API may change or be removed in a future release without warning.

Jump to

Keyboard shortcuts

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