config

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

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

Code generated by baton-sdk. DO NOT EDIT!!!

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessTokenName = field.StringField(
		"access-token-name",
		field.WithRequired(true),
		field.WithDisplayName("Access Token Name"),
		field.WithDescription("Access token name used to connect to the Tableau API"),
	)

	AccessTokenSecret = field.StringField(
		"access-token-secret",
		field.WithRequired(true),
		field.WithDisplayName("Access Token Secret"),
		field.WithDescription("Access token secret used to connect to the Tableau API"),
		field.WithIsSecret(true),
	)

	ServerPath = field.StringField(
		"server-path",
		field.WithRequired(true),
		field.WithDisplayName("Server Path"),
		field.WithDescription("Base URL of your Tableau Server or Tableau Cloud instance"),
	)

	SiteID = field.StringField(
		"site-id",
		field.WithDisplayName("Site ID"),
		field.WithDescription("Site ID (content URL) of the Tableau site to connect to"),
	)

	APIVersion = field.StringField(
		"api-version",
		field.WithDisplayName("API Version"),
		field.WithDescription("API version of your Tableau Server or Tableau Cloud instance"),
		field.WithDefaultValue("3.27"),
	)

	BaseURL = field.StringField(
		"base-url",
		field.WithDisplayName("Base URL"),
		field.WithDescription("Override the Tableau API URL (for testing)"),
		field.WithHidden(true),
		field.WithExportTarget(field.ExportTargetCLIOnly),
	)

	ConfigurationFields = []field.SchemaField{
		AccessTokenName,
		AccessTokenSecret,
		ServerPath,
		SiteID,
		APIVersion,
		BaseURL,
	}
)
View Source
var Config = field.NewConfiguration(
	ConfigurationFields,
	field.WithConnectorDisplayName("Tableau"),
	field.WithHelpUrl("/docs/baton/tableau"),
	field.WithIconUrl("/static/app-icons/tableau.svg"),
)

Functions

This section is empty.

Types

type Tableau

type Tableau struct {
	AccessTokenName   string `mapstructure:"access-token-name"`
	AccessTokenSecret string `mapstructure:"access-token-secret"`
	ServerPath        string `mapstructure:"server-path"`
	SiteId            string `mapstructure:"site-id"`
	ApiVersion        string `mapstructure:"api-version"`
	BaseUrl           string `mapstructure:"base-url"`
}

func (*Tableau) GetBool

func (c *Tableau) GetBool(fieldName string) bool

func (*Tableau) GetInt

func (c *Tableau) GetInt(fieldName string) int

func (*Tableau) GetString

func (c *Tableau) GetString(fieldName string) string

func (*Tableau) GetStringMap

func (c *Tableau) GetStringMap(fieldName string) map[string]any

func (*Tableau) GetStringSlice

func (c *Tableau) GetStringSlice(fieldName string) []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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