Help us shape the future of Go! Take the 2026 Go Developer Survey

dataplane

package
v0.189.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 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