Documentation
¶
Index ¶
- Constants
- func CheckFilterRoles(userRoles []*graph.Role, searchfilterRoles []*graph.RoleInput) bool
- func FilterInvites(invites []db.Invite, s *string, filterRoles []*graph.RoleInput) ([]db.Invite, int)
- func GeneratePaginationLimits(limit int, userIdToRolesLength int, page int, invitesLength int) (int, int)
- func GetRequestId(ctx context.Context) string
- func GetUserIDsFromUserIDRoles(userIDToRoles map[string][]string) []string
- func VerifyLimitsWithOverride(limit *int, page *int) error
- type Service
- func (s *Service) AssignRoleBindings(ctx context.Context, tenantID string, entityType string, entityID string, ...) (bool, error)
- func (s *Service) AvailableRolesForEntity(ctx context.Context, tenantID string, entity graph.EntityInput) ([]*graph.Role, error)
- func (s *Service) AvailableRolesForEntityType(ctx context.Context, tenantID string, entityType string) ([]*graph.Role, error)
- func (s *Service) CreateUser(ctx context.Context, tenantID string, input graph.UserInput) (*graph.User, error)
- func (s *Service) DeleteInvite(ctx context.Context, tenantID string, invite graph.Invite) (bool, error)
- func (s *Service) InviteUser(ctx context.Context, tenantID string, invite graph.Invite, notifyByEmail bool) (bool, error)
- func (s *Service) LeaveEntity(ctx context.Context, tenantID string, entityType string, entityID string) (bool, error)
- func (s *Service) Login(ctx context.Context) (bool, error)
- func (s *Service) RemoveFromEntity(ctx context.Context, tenantID string, entityType string, userID string, ...) (bool, error)
- func (s *Service) RemoveUser(ctx context.Context, tenantID string, rawUserID *string, rawEmail *string) (*bool, error)
- func (s *Service) RolesForUserOfEntity(ctx context.Context, tenantID string, entity graph.EntityInput, userID string) ([]*graph.Role, error)
- func (s *Service) SearchUsers(ctx context.Context, query string) ([]*graph.User, error)
- func (s *Service) TenantInfo(ctx context.Context, tenantIdInput *string) (*graph.TenantInfo, error)
- func (s *Service) User(ctx context.Context, tenantID string, userID string) (*graph.User, error)
- func (s *Service) UserByEmail(ctx context.Context, tenantID string, email string) (*graph.User, error)
- func (s *Service) UsersByIds(ctx context.Context, tenantID string, userIds []string) ([]*graph.User, error)
- func (s *Service) UsersConnection(ctx context.Context, tenantID string, limit *int, page *int) (*graph.UserConnection, error)
- func (s *Service) UsersOfEntity(ctx context.Context, tenantID string, entity graph.EntityInput, limit *int, ...) (*graph.GrantedUserConnection, error)
- type ServiceInterface
Constants ¶
View Source
const MAX_INT = math.MaxInt
Variables ¶
This section is empty.
Functions ¶
func CheckFilterRoles ¶
func FilterInvites ¶
func GetRequestId ¶
Types ¶
type Service ¶
func (*Service) AssignRoleBindings ¶
func (*Service) AvailableRolesForEntity ¶
func (*Service) AvailableRolesForEntityType ¶
func (*Service) CreateUser ¶
func (*Service) DeleteInvite ¶
func (*Service) InviteUser ¶
func (*Service) LeaveEntity ¶
func (*Service) RemoveFromEntity ¶
func (*Service) RemoveUser ¶
func (*Service) RolesForUserOfEntity ¶
func (*Service) SearchUsers ¶
func (*Service) TenantInfo ¶
func (*Service) UserByEmail ¶
func (*Service) UsersByIds ¶ added in v0.1.0
func (*Service) UsersConnection ¶
func (*Service) UsersOfEntity ¶
type ServiceInterface ¶
type ServiceInterface interface {
AssignRoleBindings(ctx context.Context, tenantID string, entityType string, entityID string, input []*graph.Change) (bool, error)
UsersOfEntity(ctx context.Context, tenantID string, entity graph.EntityInput, limit *int,
page *int, showInvitees *bool, searchTerm *string, rolesFilter []*graph.RoleInput, sortBy *graph.SortByInput,
) (*graph.GrantedUserConnection, error)
RemoveFromEntity(ctx context.Context, tenantID string, entityType string, userID string, entityID string) (bool, error)
LeaveEntity(ctx context.Context, tenantID string, entityType string, entityID string) (bool, error)
RolesForUserOfEntity(ctx context.Context, tenantID string, entity graph.EntityInput, userID string) ([]*graph.Role, error)
AvailableRolesForEntity(ctx context.Context, tenantID string, entity graph.EntityInput) ([]*graph.Role, error)
AvailableRolesForEntityType(ctx context.Context, tenantID string, entityType string) ([]*graph.Role, error)
InviteUser(ctx context.Context, tenantID string, invite graph.Invite, notifyByEmail bool) (bool, error)
DeleteInvite(ctx context.Context, tenantID string, invite graph.Invite) (bool, error)
CreateUser(ctx context.Context, tenantID string, input graph.UserInput) (*graph.User, error)
RemoveUser(ctx context.Context, tenantID string, rawUserID *string, rawEmail *string) (*bool, error)
User(ctx context.Context, tenantID string, userID string) (*graph.User, error)
UserByEmail(ctx context.Context, tenantID string, email string) (*graph.User, error)
UsersConnection(ctx context.Context, tenantID string, limit *int, page *int) (*graph.UserConnection, error)
TenantInfo(ctx context.Context, tenantIdInput *string) (*graph.TenantInfo, error)
SearchUsers(ctx context.Context, query string) ([]*graph.User, error)
UsersByIds(ctx context.Context, tenantID string, userIds []string) ([]*graph.User, error)
Login(ctx context.Context) (bool, error)
}
Click to show internal directories.
Click to hide internal directories.