client

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 6

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, 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