Documentation
¶
Overview ¶
Code generated by baton-sdk. DO NOT EDIT!!!
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccountIdField = field.StringField( "account-id", field.WithDescription("The Databricks account ID used to connect to the Databricks Account and Workspace API"), field.WithRequired(true), field.WithDisplayName("Account ID"), ) DatabricksClientIdField = field.StringField( "databricks-client-id", field.WithDescription("The Databricks service principal's client ID used to connect to the Databricks Account and Workspace API"), field.WithDisplayName("OAuth2 Client ID"), field.WithRequired(true), ) DatabricksClientSecretField = field.StringField( "databricks-client-secret", field.WithDescription("The Databricks service principal's client secret used to connect to the Databricks Account and Workspace API"), field.WithIsSecret(true), field.WithRequired(true), field.WithDisplayName("OAuth2 Client Secret"), ) AccountHostnameField = field.StringField( "account-hostname", field.WithDefaultValue("accounts.cloud.databricks.com"), field.WithDescription("The hostname used to connect to the Databricks account API. If not set, it will be calculated from the hostname field."), field.WithDisplayName("Account Hostname"), ) HostnameField = field.StringField( "hostname", field.WithDescription("The Databricks hostname used to connect to the Databricks API"), field.WithDefaultValue("cloud.databricks.com"), field.WithDisplayName("Hostname"), ) BaseURLField = field.StringField( "base-url", field.WithDescription("Override the Databricks API URL (for testing)"), field.WithHidden(true), field.WithExportTarget(field.ExportTargetCLIOnly), ) )
View Source
var Config = field.NewConfiguration( configFields, field.WithConnectorDisplayName("Databricks"), field.WithHelpUrl("/docs/baton/databricks"), field.WithIconUrl("/static/app-icons/databricks.svg"), )
Functions ¶
This section is empty.
Types ¶
type Databricks ¶ added in v0.1.2
type Databricks struct {
AccountHostname string `mapstructure:"account-hostname"`
AccountId string `mapstructure:"account-id"`
DatabricksClientId string `mapstructure:"databricks-client-id"`
DatabricksClientSecret string `mapstructure:"databricks-client-secret"`
Hostname string `mapstructure:"hostname"`
BaseUrl string `mapstructure:"base-url"`
}
func (*Databricks) GetBool ¶ added in v0.1.2
func (c *Databricks) GetBool(fieldName string) bool
func (*Databricks) GetInt ¶ added in v0.1.2
func (c *Databricks) GetInt(fieldName string) int
func (*Databricks) GetString ¶ added in v0.1.2
func (c *Databricks) GetString(fieldName string) string
func (*Databricks) GetStringMap ¶ added in v0.1.2
func (c *Databricks) GetStringMap(fieldName string) map[string]any
func (*Databricks) GetStringSlice ¶ added in v0.1.2
func (c *Databricks) GetStringSlice(fieldName string) []string
Click to show internal directories.
Click to hide internal directories.