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 (*Client) GetIngestrURI ¶
type Config ¶
type Config struct {
WorkspaceName string
LakehouseName string
TenantID string
ClientID string
ClientSecret string
SASToken string
UseAzureDefaultCredential bool
}
func (Config) GetIngestrURI ¶
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>
Click to show internal directories.
Click to hide internal directories.