Documentation
¶
Index ¶
- Constants
- Variables
- func GetOutboundIP(dialAddress string) net.IP
- type ApiError
- type ContentType
- type TabApi
- func (t *TabApi) CreateSite(site model.SiteType) (st *model.SiteType, err error)
- func (t *TabApi) GetViewById(id string) (view *model.View, err error)
- func (t *TabApi) ListReportsForUser(u *model.User) (w []model.Workbook, err error)
- func (t *TabApi) NewTrustedTicket(ttr model.TrustedTicketRequest) (tt model.TrustedTicket, err error)
- func (t *TabApi) QuerySites() (w []model.SiteType, err error)
- func (t *TabApi) QueryUserOnSite(user string) (u *model.User, err error)
- func (t *TabApi) ServerInfo() (si *model.ServerInfo, err error)
- func (t *TabApi) Signin(username, password, contentUrl, impersonateUser string) (err error)
- func (t *TabApi) Signout() (err error)
- type TsResponse
Constants ¶
View Source
const (
TABLEAU_AUTH_HEADER = "X-Tableau-Auth"
)
Variables ¶
View Source
var (
DefaultApiVer = "2.4"
)
Functions ¶
func GetOutboundIP ¶
Types ¶
type ContentType ¶
type ContentType int
const ( Json ContentType = iota Xml Form )
func ContentTypeString ¶
func ContentTypeString(s string) (c ContentType, e error)
func (ContentType) String ¶
func (r ContentType) String() string
type TabApi ¶
type TabApi struct { UseTLS bool Server string ApiVersion string SiteID string ContentType ContentType // contains filtered or unexported fields }
func NewTabApi ¶
func NewTabApi(server, version string, useTLS bool, cType ContentType) (*TabApi, error)
func (*TabApi) CreateSite ¶
func (*TabApi) ListReportsForUser ¶
func (*TabApi) NewTrustedTicket ¶
func (t *TabApi) NewTrustedTicket(ttr model.TrustedTicketRequest) (tt model.TrustedTicket, err error)
func (*TabApi) QueryUserOnSite ¶
func (*TabApi) ServerInfo ¶
func (t *TabApi) ServerInfo() (si *model.ServerInfo, err error)
type TsResponse ¶
type TsResponse struct { XMLName xml.Name `json:"-" xml:"tsResponse"` ServerInfo model.ServerInfo `json:"serverInfo" xml:"serverInfo"` Credentials model.Credentials `json:"credentials" xml:"credentials"` }
Click to show internal directories.
Click to hide internal directories.