Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) AddGroupMembers(ctx context.Context, groupId, userEmail string) error
- func (c *Client) GetWorkspace(ctx context.Context) (*Workspace, error)
- func (c *Client) ListGroupMembers(ctx context.Context, groupId, cursor string) ([]User, string, error)
- func (c *Client) ListGroups(ctx context.Context, cursor string) ([]Group, string, error)
- func (c *Client) ListRoles(ctx context.Context, cursor string) ([]Role, string, error)
- func (c *Client) ListUsers(ctx context.Context, cursor string) ([]User, string, error)
- func (c *Client) RemoveGroupMember(ctx context.Context, groupId, userEmail string) error
- type Error
- type Group
- type Pagination
- type Payload
- type Permission
- type Resource
- type Role
- type User
- type Workspace
Constants ¶
View Source
const BaseUrl = "https://api.segmentapis.com/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddGroupMembers ¶
AddGroupMembers adds user to a group.
func (*Client) GetWorkspace ¶
GetWorkspace returns workspace of a current token.
func (*Client) ListGroupMembers ¶
func (c *Client) ListGroupMembers(ctx context.Context, groupId, cursor string) ([]User, string, error)
ListGroupMembers returns a list of all user group members.
func (*Client) ListGroups ¶
ListGroups returns a list of all user groups.
type Group ¶
type Group struct {
ID string `json:"id"`
Name string `json:"name"`
MemberCount int64 `json:"memberCount"`
Permissions []Permission `json:"permissions"`
}
type Pagination ¶
type Permission ¶
Click to show internal directories.
Click to hide internal directories.