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) GetHost() string
- func (c *Client) GetProjectDetails(ctx context.Context, projectID string) (*ProjectInfo, error)
- func (c *Client) GetSiteID() string
- func (c *Client) GetViewDetails(ctx context.Context, viewID string) (*ViewInfo, error)
- func (c *Client) GetWorkbookConnections(ctx context.Context, workbookID string) ([]WorkbookConnection, error)
- func (c *Client) GetWorkbookDetails(ctx context.Context, workbookID string) (*WorkbookInfo, error)
- func (c *Client) GetWorkbookViews(ctx context.Context, workbookID string) ([]ViewInfo, error)
- func (c *Client) GetWorkbooks(ctx context.Context) ([]WorkbookInfo, error)
- func (c *Client) ListAllViews(ctx context.Context) ([]ViewInfo, error)
- func (c *Client) ListDatasources(ctx context.Context) ([]DataSourceInfo, error)
- func (c *Client) ListProjects(ctx context.Context) ([]ProjectInfo, 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 ConnectionInfo
- type DataSourceInfo
- type ExtendedWorkbookInfo
- type OwnerInfo
- type PaginationInfo
- type ProjectDetails
- type ProjectInfo
- type RefreshResponse
- type TSCredentials
- type TSCredentialsResponse
- type TSResponse
- type TSSite
- type TSSiteResponse
- type TSUser
- type TableauResourceType
- type TagInfo
- type TagsWrapper
- type ViewInfo
- type WorkbookConnection
- 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) GetProjectDetails ¶ added in v0.11.304
GetProjectDetails returns detailed information for a specific project.
func (*Client) GetViewDetails ¶ added in v0.11.304
GetViewDetails fetches detailed information about a specific view.
func (*Client) GetWorkbookConnections ¶ added in v0.11.304
func (c *Client) GetWorkbookConnections(ctx context.Context, workbookID string) ([]WorkbookConnection, error)
GetWorkbookConnections returns all data source connections for a specific workbook.
func (*Client) GetWorkbookDetails ¶ added in v0.11.304
GetWorkbookDetails returns detailed information for a specific workbook.
func (*Client) GetWorkbookViews ¶ added in v0.11.304
GetWorkbookViews returns all views (dashboards/worksheets) for a specific workbook.
func (*Client) GetWorkbooks ¶ added in v0.11.267
func (c *Client) GetWorkbooks(ctx context.Context) ([]WorkbookInfo, error)
func (*Client) ListAllViews ¶ added in v0.11.304
ListAllViews returns all views (dashboards/worksheets) on the site.
func (*Client) ListDatasources ¶ added in v0.11.267
func (c *Client) ListDatasources(ctx context.Context) ([]DataSourceInfo, error)
func (*Client) ListProjects ¶ added in v0.11.304
func (c *Client) ListProjects(ctx context.Context) ([]ProjectInfo, error)
ListProjects returns all projects on the site.
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 ConnectionInfo ¶ added in v0.11.304
type ConnectionInfo struct {
ID string `json:"id"`
Type string `json:"type"`
ServerAddress string `json:"serverAddress,omitempty"`
ServerPort string `json:"serverPort,omitempty"`
DatabaseName string `json:"databaseName,omitempty"`
UserName string `json:"userName,omitempty"`
ConnectionType string `json:"connectionType,omitempty"`
}
ConnectionInfo represents a data source connection in a workbook.
type DataSourceInfo ¶ added in v0.11.267
type ExtendedWorkbookInfo ¶ added in v0.11.304
type ExtendedWorkbookInfo struct {
WorkbookInfo
Connections []WorkbookConnection `json:"-"`
Views []ViewInfo `json:"-"`
}
ExtendedWorkbookInfo represents detailed workbook information with connections.
type PaginationInfo ¶ added in v0.11.304
type ProjectDetails ¶ added in v0.11.304
type ProjectDetails struct {
ProjectInfo
ParentProject *ProjectInfo `json:"parentProject,omitempty"`
ChildProjects []ProjectInfo `json:"childProjects,omitempty"`
}
ProjectDetails represents detailed project information with hierarchy.
type ProjectInfo ¶ added in v0.11.304
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 TagsWrapper ¶ added in v0.11.304
type TagsWrapper struct {
Tag []TagInfo `json:"tag,omitempty"`
}
type ViewInfo ¶ added in v0.11.304
type ViewInfo struct {
ID string `json:"id"`
Name string `json:"name"`
ContentURL string `json:"contentUrl"`
ViewURL string `json:"viewUrl,omitempty"`
WorkbookID string `json:"-"` // Set manually after fetching
WorkbookInfo *WorkbookInfo `json:"workbook,omitempty"`
Project ProjectInfo `json:"project,omitempty"`
Owner OwnerInfo `json:"owner,omitempty"`
Tags *TagsWrapper `json:"tags,omitempty"` // Tags are wrapped in an object
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
}
View represents a Tableau view/dashboard.
type WorkbookConnection ¶ added in v0.11.304
type WorkbookConnection struct {
Datasource *DataSourceInfo `json:"datasource,omitempty"`
Connection *ConnectionInfo `json:"connection,omitempty"`
}
WorkbookConnection represents the connection details for a workbook.
type WorkbookInfo ¶ added in v0.11.267
type WorkbookInfo struct {
ID string `json:"id"`
Name string `json:"name"`
ContentURL string `json:"contentUrl,omitempty"`
WebpageURL string `json:"webpageUrl,omitempty"`
Project ProjectInfo `json:"project,omitempty"`
Owner OwnerInfo `json:"owner,omitempty"`
Tags *TagsWrapper `json:"tags,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
}