Documentation
¶
Index ¶
- func FindDatasourceIDByName(ctx context.Context, name string, datasources []DataSourceInfo) (string, error)
- func FindWorkbookIDByName(ctx context.Context, name string, workbooks []WorkbookInfo) (string, error)
- type BasicOperator
- type Client
- func (c *Client) GetDatasource(ctx context.Context) ([]DataSourceInfo, error)
- func (c *Client) GetWorkbooks(ctx context.Context) ([]WorkbookInfo, error)
- func (c *Client) ListDatasources(ctx context.Context) ([]DataSourceInfo, error)
- func (c *Client) ListWorkbooks(ctx context.Context) ([]WorkbookInfo, error)
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) RefreshDataSource(ctx context.Context, datasourceID string) error
- func (c *Client) RefreshWorksheet(ctx context.Context, workbookID string) error
- type Config
- type DataSourceInfo
- type RefreshResponse
- type TSCredentials
- type TSCredentialsResponse
- type TSResponse
- type TSSite
- type TSSiteResponse
- type TSUser
- type TableauResourceType
- type WorkbookInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDatasourceIDByName ¶ added in v0.11.267
func FindWorkbookIDByName ¶ added in v0.11.267
Types ¶
type BasicOperator ¶
type BasicOperator struct {
// contains filtered or unexported fields
}
func NewBasicOperator ¶
func NewBasicOperator(conn config.ConnectionGetter) *BasicOperator
func (BasicOperator) Run ¶
func (o BasicOperator) Run(ctx context.Context, ti scheduler.TaskInstance) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDatasource ¶ added in v0.11.267
func (c *Client) GetDatasource(ctx context.Context) ([]DataSourceInfo, error)
func (*Client) GetWorkbooks ¶ added in v0.11.267
func (c *Client) GetWorkbooks(ctx context.Context) ([]WorkbookInfo, error)
func (*Client) ListDatasources ¶ added in v0.11.267
func (c *Client) ListDatasources(ctx context.Context) ([]DataSourceInfo, error)
func (*Client) ListWorkbooks ¶ added in v0.11.267
func (c *Client) ListWorkbooks(ctx context.Context) ([]WorkbookInfo, error)
func (*Client) RefreshDataSource ¶
type Config ¶
type Config struct {
Name string `yaml:"name,omitempty" json:"name" mapstructure:"name"`
Host string `yaml:"host,omitempty" json:"host" mapstructure:"host"`
Username string `yaml:"username,omitempty" json:"username" mapstructure:"username"`
Password string `yaml:"password,omitempty" json:"password" mapstructure:"password"`
PersonalAccessTokenName string `yaml:"personal_access_token_name,omitempty" json:"personal_access_token_name" mapstructure:"personal_access_token_name"`
PersonalAccessTokenSecret string `yaml:"personal_access_token_secret,omitempty" json:"personal_access_token_secret" mapstructure:"personal_access_token_secret"`
SiteID string `yaml:"site_id,omitempty" json:"site_id" mapstructure:"site_id"`
APIVersion string `yaml:"api_version,omitempty" json:"api_version" mapstructure:"api_version"`
}
type DataSourceInfo ¶ added in v0.11.267
type RefreshResponse ¶
type RefreshResponse struct {
Status string `json:"status"`
}
type TSCredentials ¶
type TSCredentialsResponse ¶
type TSCredentialsResponse struct {
Token string `json:"token"`
Site TSSiteResponse `json:"site"`
User TSUser `json:"user"`
}
type TSResponse ¶
type TSResponse struct {
Credentials TSCredentialsResponse `json:"credentials"`
}
type TSSiteResponse ¶
type TableauResourceType ¶ added in v0.11.267
type TableauResourceType string
const ( ResourceDatasources TableauResourceType = "datasources" ResourceWorkbooks TableauResourceType = "workbooks" )
type WorkbookInfo ¶ added in v0.11.267
Click to show internal directories.
Click to hide internal directories.