Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AddGroupMember(ctx context.Context, groupID, userID int64, isAdmin bool) error
- func (c *Client) GetGroup(ctx context.Context, groupID int64) (*GroupModel, error)
- func (c *Client) GetGroupFolderDefault(ctx context.Context, groupID int64, folderID int64) (*GroupFolderDefault, error)
- func (c *Client) GetGroupMember(ctx context.Context, groupID, userID int64) (*GroupMember, error)
- func (c *Client) GetGroupPage(ctx context.Context, groupID int64, pageID int64) (*GroupPage, error)
- func (c *Client) GetGroupResource(ctx context.Context, groupID int64, resourceID int64) (*GroupResource, error)
- func (c *Client) GetGroupResourceFolderDefault(ctx context.Context, groupID int64, folderID int64) (*GroupResourceFolderDefault, error)
- func (c *Client) GetPage(ctx context.Context, id int64) (*PageModel, error)
- func (c *Client) GetResource(ctx context.Context, id int64) (*ResourceModel, error)
- func (c *Client) ListGroupMembers(ctx context.Context, groupID int64, pager *Pager, skipDisabledUsers bool) ([]*GroupMember, string, error)
- func (c *Client) ListGroupsForOrg(ctx context.Context, orgID int64, pager *Pager) ([]*GroupModel, string, error)
- func (c *Client) ListOrganizations(ctx context.Context, pager *Pager) ([]*OrgModel, string, error)
- func (c *Client) ListPagesForOrg(ctx context.Context, orgID int64, pager *Pager) ([]*PageModel, string, error)
- func (c *Client) ListResourcesForOrg(ctx context.Context, orgID int64, pager *Pager) ([]*ResourceModel, string, error)
- func (c *Client) ListUsersForOrg(ctx context.Context, orgID int64, pager *Pager, skipDisabledUsers bool) ([]*UserModel, string, error)
- func (c *Client) RemoveGroupMember(ctx context.Context, groupID, userID int64) error
- func (c *Client) UpdateGroupMember(ctx context.Context, groupID, userID int64, isAdmin bool) (*GroupMember, error)
- func (c *Client) ValidateConnection(ctx context.Context) error
- type GroupFolderDefault
- type GroupMember
- type GroupModel
- type GroupPage
- type GroupResource
- type GroupResourceFolderDefault
- type Logger
- type OrgModel
- type PageModel
- type Pager
- type ResourceModel
- type UserModel
Constants ¶
View Source
const ( MaxPageSize = 250 MinPageSize = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddGroupMember ¶ added in v0.0.8
func (*Client) GetGroupFolderDefault ¶
func (*Client) GetGroupMember ¶ added in v0.0.8
func (*Client) GetGroupPage ¶
func (*Client) GetGroupResource ¶
func (*Client) GetGroupResourceFolderDefault ¶
func (*Client) GetResource ¶
func (*Client) ListGroupMembers ¶
func (*Client) ListGroupsForOrg ¶
func (*Client) ListOrganizations ¶
select id, domain, name, hostname, subdomain from organizations;.
func (*Client) ListPagesForOrg ¶
func (*Client) ListResourcesForOrg ¶
func (*Client) ListUsersForOrg ¶
func (*Client) RemoveGroupMember ¶ added in v0.0.8
func (*Client) UpdateGroupMember ¶ added in v0.0.8
type GroupFolderDefault ¶
type GroupMember ¶
type GroupMember struct { Id int64 `db:"id"` UserID *int64 `db:"userId"` GroupID *int64 `db:"groupId"` IsAdmin bool `db:"isAdmin"` Enabled bool `db:"enabled"` }
func (*GroupMember) GetGroupID ¶
func (g *GroupMember) GetGroupID() int64
func (*GroupMember) GetUserID ¶
func (g *GroupMember) GetUserID() int64
type GroupModel ¶
type GroupModel struct { ID int64 `db:"id"` Name *string `db:"name"` OrganizationID *int64 `db:"organizationId"` UniversalAccess string `db:"universalAccess"` UniversalResourceAccess string `db:"universalResourceAccess"` UniversalQueryLibraryAccess string `db:"universalQueryLibraryAccess"` UserListAccess bool `db:"userListAccess"` AuditLogAccess bool `db:"auditLogAccess"` UnpublishedReleaseAccess bool `db:"unpublishedReleaseAccess"` }
func (*GroupModel) GetName ¶
func (g *GroupModel) GetName() string
func (*GroupModel) GetOrgID ¶
func (g *GroupModel) GetOrgID() int64
type GroupResource ¶
type Logger ¶ added in v0.0.6
type Logger struct{}
func (*Logger) Pgx2ZapLogLevel ¶ added in v0.0.6
func (*Logger) Zap2PgxLogLevel ¶ added in v0.0.6
type PageModel ¶
type PageModel struct { ID int64 `db:"id"` Name string `db:"name"` OrganizationID *int64 `db:"organizationId"` FolderID int64 `db:"folderId"` PhotoUrl *string `db:"photoUrl"` Description *string `db:"description"` }
func (*PageModel) GetDescription ¶
func (*PageModel) GetPhotoUrl ¶
type ResourceModel ¶
type ResourceModel struct { ID int64 `db:"id"` OrganizationID int64 `db:"organizationId"` Name string `db:"name"` Type string `db:"type"` DisplayName *string `db:"displayName"` EnvironmentID *string `db:"environmentId"` ResourceFolderID *int64 `db:"resourceFolderId"` }
func (*ResourceModel) GetDisplayName ¶
func (u *ResourceModel) GetDisplayName() string
func (*ResourceModel) GetEnvironmentID ¶
func (u *ResourceModel) GetEnvironmentID() string
func (*ResourceModel) GetResourceFolderID ¶
func (g *ResourceModel) GetResourceFolderID() int64
type UserModel ¶
type UserModel struct { ID int64 `db:"id"` Email string `db:"email"` FirstName *string `db:"firstName"` LastName *string `db:"lastName"` ProfilePhotoURL *string `db:"profilePhotoUrl"` UserName *string `db:"userName"` Enabled bool `db:"enabled"` LastLoggedIn *time.Time `db:"lastLoggedIn"` OrganizationID int64 `db:"organizationId"` }
func (*UserModel) GetFirstName ¶
func (*UserModel) GetLastLoggedIn ¶
func (*UserModel) GetLastName ¶
func (*UserModel) GetProfilePhotoUrl ¶
func (*UserModel) GetUserName ¶
Click to show internal directories.
Click to hide internal directories.