Documentation ¶
Index ¶
- func GetCombinedID(id1, id2 string) string
- func GetIDsFromCombinedID(id string) (string, string)
- func GetPaginationNumbers(paginationDetails PaginationDetails) (int, int, error)
- func GroupDataSource() datasource.DataSource
- func New() provider.Provider
- func NewGroupResource() resource.Resource
- func NewGroupUserResource() resource.Resource
- func NewProjectResource() resource.Resource
- func NewUserResource() resource.Resource
- func ProjectDataSource() datasource.DataSource
- func UserDataSource() datasource.DataSource
- type Client
- func (c *Client) CreateGroup(name, minimumSiteRole string) (*Group, error)
- func (c *Client) CreateGroupUser(groupID, userID string) (*User, error)
- func (c *Client) CreateProject(name, parentProjectId, description, contentPermissions string) (*Project, error)
- func (c *Client) CreateUser(email, name, fullName, siteRole, authSetting string) (*User, error)
- func (c *Client) DeleteGroup(groupID string) error
- func (c *Client) DeleteGroupUser(groupID, userID string) error
- func (c *Client) DeleteProject(projectID string) error
- func (c *Client) DeleteUser(userID string) error
- func (c *Client) GetGroup(groupID string) (*Group, error)
- func (c *Client) GetGroupUser(groupID, userID string) (*User, error)
- func (c *Client) GetProject(projectID string) (*Project, error)
- func (c *Client) GetUser(userID string) (*User, error)
- func (c *Client) UpdateGroup(groupID, name, minimumSiteRole string) (*Group, error)
- func (c *Client) UpdateProject(projectID, name, parentProjectId, description, contentPermissions string) (*Project, error)
- func (c *Client) UpdateUser(userID, name, siteRole, authSetting string) (*User, error)
- type Credentials
- type Group
- type GroupImport
- type GroupListResponse
- type GroupRequest
- type GroupResponse
- type GroupUserRequest
- type GroupUsersListResponse
- type GroupUsersResponse
- type GroupsResponse
- type PaginationDetails
- type Project
- type ProjectListResponse
- type ProjectRequest
- type ProjectResponse
- type ProjectsResponse
- type SignInRequest
- type SignInResponse
- type SignInResponseData
- type Site
- type User
- type UserRequest
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCombinedID ¶
func GetIDsFromCombinedID ¶
func GetPaginationNumbers ¶
func GetPaginationNumbers(paginationDetails PaginationDetails) (int, int, error)
func GroupDataSource ¶
func GroupDataSource() datasource.DataSource
func NewGroupResource ¶
func NewGroupUserResource ¶
func NewProjectResource ¶ added in v0.0.15
func NewUserResource ¶
func ProjectDataSource ¶ added in v0.0.15
func ProjectDataSource() datasource.DataSource
func UserDataSource ¶
func UserDataSource() datasource.DataSource
Types ¶
type Client ¶
func (*Client) CreateGroup ¶
func (*Client) CreateGroupUser ¶
func (*Client) CreateProject ¶ added in v0.0.15
func (*Client) CreateUser ¶
func (*Client) DeleteGroup ¶
func (*Client) DeleteGroupUser ¶
func (*Client) DeleteProject ¶ added in v0.0.15
func (*Client) DeleteUser ¶
func (*Client) GetProject ¶ added in v0.0.15
func (*Client) UpdateGroup ¶
func (*Client) UpdateProject ¶ added in v0.0.15
type Credentials ¶
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 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 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 UserRequest ¶
type UserRequest struct {
User User `json:"user"`
}
type UserResponse ¶
type UserResponse struct {
User User `json:"user"`
}
Click to show internal directories.
Click to hide internal directories.