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

onelake

package
v0.11.796 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c Config) (*Client, error)

func (*Client) GetIngestrURI

func (c *Client) GetIngestrURI() (string, error)

type Config

type Config struct {
	WorkspaceName             string
	LakehouseName             string
	TenantID                  string
	ClientID                  string
	ClientSecret              string
	SASToken                  string
	UseAzureDefaultCredential bool
}

func (Config) GetIngestrURI

func (c Config) GetIngestrURI() (string, error)

GetIngestrURI builds the URI ingestr expects for a Microsoft OneLake destination. OneLake requires Microsoft Entra ID authentication, so exactly one of the following authentication modes must be fully configured:

  • Service principal: tenant_id + client_id + client_secret (all three).
  • SAS token: sas_token.
  • DefaultAzureCredential: use_azure_default_credential, which lets ingestr authenticate via env vars, a managed identity, or the Azure CLI login.

Partially configured modes (e.g. client_id without client_secret) and combinations of more than one mode are rejected so misconfigurations surface as clear errors instead of silently producing an unusable URI.

onelake://<workspace>/<lakehouse>?tenant_id=<tenant_id>&client_id=<client_id>&client_secret=<client_secret>

Jump to

Keyboard shortcuts

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