Versions in this module Expand all Collapse all v0 v0.8.0 Jun 30, 2023 Changes in this version + const AccountTypeUser + const ResourceTypeDataSource + const ResourceTypeFlow + const ResourceTypeMetric + const ResourceTypeView + const ResourceTypeWorkbook + var ErrInvalidCredentials = errors.New("invalid credentials type") + var ErrInvalidPermissionConfig = errors.New("invalid permission config type") + var ErrInvalidResourceType = errors.New("invalid resource type") + var ErrInvalidRole = errors.New("invalid role") + var ErrUnableToDecryptNilCredentials = errors.New("unable to decrypt nil credentials") + var ErrUnableToEncryptNilCredentials = errors.New("unable to encrypt nil credentials") + var ErrUserNotFound = errors.New("cannot find user with the given email") + var PermissionModes = []string + var PermissionNames = map[string][]string + var SiteRolePermissions = []string + func NewClient(config *ClientConfig) (*client, error) + func NewProvider(typeName string, crypto domain.Crypto) *provider + type ClientConfig struct + APIVersion string + ContentURL string + HTTPClient HTTPClient + Host string + Password string + Username string + type Config struct + ProviderConfig *domain.ProviderConfig + func NewConfig(pc *domain.ProviderConfig, crypto domain.Crypto) *Config + func (c *Config) EncryptCredentials() error + func (c *Config) ParseAndValidate() error + type Credentials struct + ContentURL string + Host string + Password string + Username string + func (c *Credentials) Decrypt(decryptor domain.Decryptor) error + func (c *Credentials) Encrypt(encryptor domain.Encryptor) error + type DataSource struct + ContentURL string + EncryptExtracts string + HasExtracts bool + ID string + IsCertified bool + Name string + Owner owner + Project project + Tags interface{} + Type string + UseRemoteQueryAgent bool + WebpageURL string + func (d *DataSource) FromDomain(r *domain.Resource) error + func (d *DataSource) ToDomain() *domain.Resource + type Flow struct + FileType string + ID string + Name string + Owner owner + Project project + Tags interface{} + WebpageURL string + func (f *Flow) FromDomain(r *domain.Resource) error + func (f *Flow) ToDomain() *domain.Resource + type HTTPClient interface + Do func(*http.Request) (*http.Response, error) + type Metric struct + Description string + ID string + Name string + Owner owner + Project project + Suspended bool + Tags interface{} + UnderlyingView UnderlyingView + WebpageURL string + func (m *Metric) FromDomain(r *domain.Resource) error + func (m *Metric) ToDomain() *domain.Resource + type Permission struct + Name string + Type string + func (p Permission) String() string + type SessionResponse struct + Credentials responseCredentials + type TableauClient interface + GetDataSources func() ([]*DataSource, error) + GetFlows func() ([]*Flow, error) + GetMetrics func() ([]*Metric, error) + GetViews func() ([]*View, error) + GetWorkbooks func() ([]*Workbook, error) + GrantDataSourceAccess func(resource *DataSource, user, role string) error + GrantFlowAccess func(resource *Flow, user, role string) error + GrantMetricAccess func(resource *Metric, user, role string) error + GrantViewAccess func(resource *View, user, role string) error + GrantWorkbookAccess func(resource *Workbook, user, role string) error + RevokeDataSourceAccess func(resource *DataSource, user, role string) error + RevokeFlowAccess func(resource *Flow, user, role string) error + RevokeMetricAccess func(resource *Metric, user, role string) error + RevokeViewAccess func(resource *View, user, role string) error + RevokeWorkbookAccess func(resource *Workbook, user, role string) error + UpdateSiteRole func(user, role string) error + type UnderlyingView struct + ID string + type View struct + ContentURL string + ID string + Name string + Owner owner + Project project + Tags interface{} + ViewUrlName string + Workbook workbook + func (v *View) FromDomain(r *domain.Resource) error + func (v *View) ToDomain() *domain.Resource + type Workbook struct + ContentURL string + CreatedAt time.Time + DataAccelerationConfig dataAccelerationConfig + DefaultViewID string + EncryptExtracts string + ID string + Name string + Owner owner + Project project + ShowTabs string + Size string + Tags interface{} + UpdatedAt time.Time + WebpageURL string + func (w *Workbook) FromDomain(r *domain.Resource) error + func (w *Workbook) ToDomain() *domain.Resource