dataplane

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package dataplane is an experimental package that provides a token source to directly access Databricks data plane.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEndpointTokenSource

func NewEndpointTokenSource(c OAuthClient, cpts auth.TokenSource) *dataPlaneTokenSource

NewEndpointTokenSource returns a new EndpointTokenSource that uses the given OAuthClient and control plane TokenSource.

Types

type EndpointTokenSource

type EndpointTokenSource interface {
	Token(ctx context.Context, endpoint string, authDetails string) (*oauth2.Token, error)
}

EndpointTokenSource is anything that returns tokens given a data plane endpoint and authentication details.

type OAuthClient

type OAuthClient interface {
	GetOAuthToken(ctx context.Context, authDetails string, t *oauth2.Token) (*oauth2.Token, error)
}

OAuthClient is an interface for Databricks OAuth client.

Jump to

Keyboard shortcuts

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