dataplane

package
v0.204.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 1 package

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

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