config

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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"),
	)

	ConfigurationFields = []field.SchemaField{
		AccessTokenName,
		AccessTokenSecret,
		ServerPath,
		SiteID,
		APIVersion,
	}
)
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"`
}

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