Documentation ¶
Index ¶
- type DatabricksClient
- func (c *DatabricksClient) ApiClient() *httpclient.ApiClient
- func (c *DatabricksClient) ConfiguredAccountID() string
- func (c *DatabricksClient) Do(ctx context.Context, method, path string, headers map[string]string, ...) error
- func (c *DatabricksClient) GetOAuthToken(ctx context.Context, authDetails string, token *oauth2.Token) (*oauth2.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabricksClient ¶
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.
Click to show internal directories.
Click to hide internal directories.