# Functions
AccessibleReposEnv builds an AccessibleReposEnvironment for the repositories in `org` that are accessible to the specified user.
AddOrgUser adds new user to given organization.
AddTeamRepo adds a repo for an organization's team.
CanCreateOrgRepo returns true if user can create repo in organization.
ChangeOrgUserStatus changes public or private membership status.
CountOrgMembers counts the organization's members.
CreateOrganization creates record of a new organization.
DeleteOrganization deletes models associated to an organization.
FindOrgMembers loads organization members according conditions.
FindOrgTeams returns all teams of a given organization.
GetOrganizationCount returns count of membership of organization of the user.
GetOrgAssignees returns all users that have write access and can be assigned to issues of the any repository in the organization.
GetOrgByID returns the user object by given ID if exists.
GetOrgByName returns organization by given name.
GetOrgRepositories get repos belonging to the given organization.
GetOrgsCanCreateRepoByUserID returns a list of organizations where given user ID are allowed to create repos.
GetOrgUsersByOrgID returns all organization-user relations by organization ID.
GetOwnerTeam returns team by given team name and organization.
GetRepoTeams gets the list of teams that has access to the repository.
GetTeam returns team by given team name and organization.
GetTeamByID returns team by given ID.
GetTeamIDsByNames returns a slice of team ids corresponds to names.
GetTeamMembers returns all members in given team of organization.
GetTeamNamesByID returns team's lower name from a list of team ids.
GetRepositories returns paginated repositories in team of organization.
GetTeamsWithAccessToRepo returns all teams in an organization that have given access level to the repository.
GetTeamsWithAccessToRepoUnit returns all teams in an organization that have given access level to the repository special unit.
GetUserOrgsList returns all organizations the given user has access to.
GetUserOrgTeams returns all teams that user belongs to in given organization.
GetUserRepoTeams returns user repo's teams.
GetUsersWhoCanCreateOrgRepo returns users which are able to create repo in organization.
HasOrgOrUserVisible tells if the given user can see the given org or user.
HasOrgsVisible tells if the given user can see at least one of the orgs provided.
HasTeamRepo returns true if given repository belongs to team.
IncrTeamRepoNum increases the number of repos for the given team by 1.
IsErrLastOrgOwner checks if an error is a ErrLastOrgOwner.
IsErrOrgNotExist checks if an error is a ErrOrgNotExist.
IsErrTeamAlreadyExist checks if an error is a ErrTeamAlreadyExist.
IsErrTeamNotExist checks if an error is a ErrTeamNotExist.
IsErrUserEmailAlreadyAdded checks if an error is a ErrUserEmailAlreadyAdded.
IsErrUserNotAllowedCreateOrg checks if an error is an ErrUserNotAllowedCreateOrg.
IsOrganizationAdmin returns true if given user is in the owner team or an admin team.
IsOrganizationMember returns true if given user is member of organization.
IsOrganizationOwner returns true if given user is in the owner team.
IsPublicMembership returns true if the given user's membership of given org is public.
IsTeamMember returns true if given user is a member of team.
IsUsableTeamName tests if a name could be as team name.
IsUserInTeams returns if a user in some teams.
IsUserOrgOwner returns true if user is in the owner team of given organization.
OrgFromUser converts user to organization.
RemoveOrgRepo removes all team-repository relations of organization.
RemoveTeamRepo remove repository from team.
SearchTeam search for teams.
UpdateTeamUnits updates a teams's units.
UsersInTeamsCount counts the number of users which are in userIDs and teamIDs.
# Constants
OwnerTeamName return the owner team name.
# Structs
ErrLastOrgOwner represents a "LastOrgOwner" kind of error.
ErrOrgNotExist represents a "OrgNotExist" kind of error.
ErrTeamAlreadyExist represents a "TeamAlreadyExist" kind of error.
ErrTeamNotExist represents a "TeamNotExist" error.
ErrUserEmailAlreadyAdded represents a "user by email already added to team" error.
ErrUserNotAllowedCreateOrg represents a "UserNotAllowedCreateOrg" kind of error.
FindOrgMembersOpts represensts find org members conditions.
FindOrgOptions finds orgs options.
OrgUser represents an organization-user relation.
SearchMembersOptions holds the search options.
SearchOrganizationsOptions options to filter organizations.
SearchTeamOptions holds the search options.
Team represents a organization team.
TeamInvite represents an invite to a team.
TeamRepo represents an team-repository relation.
TeamUnit describes all units of a repository.
TeamUser represents an team-user relation.
# Interfaces
AccessibleReposEnvironment operations involving the repositories that are accessible to a particular user.
# Type aliases
MinimalOrg represents a simple organization with only the needed columns.
Organization represents an organization.