tableau

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCombinedID

func GetCombinedID(id1, id2 string) string

func GetIDsFromCombinedID

func GetIDsFromCombinedID(id string) (string, string)

func GetPaginationNumbers

func GetPaginationNumbers(paginationDetails PaginationDetails) (int, int, error)

func GroupDataSource

func GroupDataSource() datasource.DataSource

func New

func New() provider.Provider

func NewGroupResource

func NewGroupResource() resource.Resource

func NewGroupUserResource

func NewGroupUserResource() resource.Resource

func NewProjectResource added in v0.0.15

func NewProjectResource() resource.Resource

func NewUserResource

func NewUserResource() resource.Resource

func ProjectDataSource added in v0.0.15

func ProjectDataSource() datasource.DataSource

func UserDataSource

func UserDataSource() datasource.DataSource

Types

type Client

type Client struct {
	ApiUrl     string
	HTTPClient *http.Client
	AuthToken  string
}

func NewClient

func NewClient(server, username, password, personalAccessTokenName, personalAccessTokenSecret, site, serverVersion *string) (*Client, error)

func (*Client) CreateGroup

func (c *Client) CreateGroup(name, minimumSiteRole string) (*Group, error)

func (*Client) CreateGroupUser

func (c *Client) CreateGroupUser(groupID, userID string) (*User, error)

func (*Client) CreateProject added in v0.0.15

func (c *Client) CreateProject(name, parentProjectId, description, contentPermissions string) (*Project, error)

func (*Client) CreateUser

func (c *Client) CreateUser(email, name, fullName, siteRole, authSetting string) (*User, error)

func (*Client) DeleteGroup

func (c *Client) DeleteGroup(groupID string) error

func (*Client) DeleteGroupUser

func (c *Client) DeleteGroupUser(groupID, userID string) error

func (*Client) DeleteProject added in v0.0.15

func (c *Client) DeleteProject(projectID string) error

func (*Client) DeleteUser

func (c *Client) DeleteUser(userID string) error

func (*Client) GetGroup

func (c *Client) GetGroup(groupID string) (*Group, error)

func (*Client) GetGroupUser

func (c *Client) GetGroupUser(groupID, userID string) (*User, error)

func (*Client) GetProject added in v0.0.15

func (c *Client) GetProject(projectID string) (*Project, error)

func (*Client) GetUser

func (c *Client) GetUser(userID string) (*User, error)

func (*Client) UpdateGroup

func (c *Client) UpdateGroup(groupID, name, minimumSiteRole string) (*Group, error)

func (*Client) UpdateProject added in v0.0.15

func (c *Client) UpdateProject(projectID, name, parentProjectId, description, contentPermissions string) (*Project, error)

func (*Client) UpdateUser

func (c *Client) UpdateUser(userID, name, siteRole, authSetting string) (*User, error)

type Credentials

type Credentials struct {
	Name        *string `json:"name"`
	Password    *string `json:"password"`
	TokenName   *string `json:"personalAccessTokenName"`
	TokenSecret *string `json:"personalAccessTokenSecret"`
	Site        Site    `json:"site"`
}

type Group

type Group struct {
	ID              string       `json:"id,omitempty"`
	Name            string       `json:"name"`
	MinimumSiteRole string       `json:"minimumSiteRole"`
	Import          *GroupImport `json:"import,omitempty"`
}

type GroupImport

type GroupImport struct {
	DomainName       *string `json:"domainName"`
	MinimumSiteRole  *string `json:"siteRole"`
	GrantLicenseMode *string `json:"grantLicenseMode"`
}

type GroupListResponse

type GroupListResponse struct {
	GroupsResponse GroupsResponse    `json:"groups"`
	Pagination     PaginationDetails `json:"pagination"`
}

type GroupRequest

type GroupRequest struct {
	Group Group `json:"group"`
}

type GroupResponse

type GroupResponse struct {
	Group Group `json:"group"`
}

type GroupUserRequest

type GroupUserRequest struct {
	User User `json:"user"`
}

type GroupUsersListResponse

type GroupUsersListResponse struct {
	GroupUsersResponse GroupUsersResponse `json:"users"`
	Pagination         PaginationDetails  `json:"pagination"`
}

type GroupUsersResponse

type GroupUsersResponse struct {
	Users []User `json:"user"`
}

type GroupsResponse

type GroupsResponse struct {
	Groups []Group `json:"group"`
}

type PaginationDetails

type PaginationDetails struct {
	PageNumber     string `json:"pageNumber"`
	PageSize       string `json:"pageSize"`
	TotalAvailable string `json:"totalAvailable"`
}

type Project added in v0.0.15

type Project struct {
	ID                 string `json:"id,omitempty"`
	Name               string `json:"name,omitempty"`
	ParentProjectID    string `json:"parentProjectId,omitempty"`
	Description        string `json:"description,omitempty"`
	ContentPermissions string `json:"contentPermissions,omitempty"`
}

type ProjectListResponse added in v0.0.15

type ProjectListResponse struct {
	ProjectsResponse ProjectsResponse  `json:"projects"`
	Pagination       PaginationDetails `json:"pagination"`
}

type ProjectRequest added in v0.0.15

type ProjectRequest struct {
	Project Project `json:"project"`
}

type ProjectResponse added in v0.0.15

type ProjectResponse struct {
	Project Project `json:"project"`
}

type ProjectsResponse added in v0.0.15

type ProjectsResponse struct {
	Projects []Project `json:"project"`
}

type SignInRequest

type SignInRequest struct {
	Credentials Credentials `json:"credentials"`
}

type SignInResponse

type SignInResponse struct {
	SignInResponseData SignInResponseData `json:"credentials"`
}

type SignInResponseData

type SignInResponseData struct {
	Site                      Site   `json:"site"`
	User                      User   `json:"user"`
	Token                     string `json:"token"`
	EstimatedTimeToExpiration string `json:"estimatedTimeToExpiration"`
}

type Site

type Site struct {
	ID         *string `json:"id"`
	ContentUrl string  `json:"contentUrl"`
}

type User

type User struct {
	ID          string `json:"id,omitempty"`
	Email       string `json:"email,omitempty"`
	Name        string `json:"name,omitempty"`
	FullName    string `json:"fullName,omitempty"`
	SiteRole    string `json:"siteRole,omitempty"`
	AuthSetting string `json:"authSetting,omitempty"`
}

type UserRequest

type UserRequest struct {
	User User `json:"user"`
}

type UserResponse

type UserResponse struct {
	User User `json:"user"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL