Documentation
¶
Index ¶
- func AddTeamMember(ctx context.Context, team *organization.Team, user *user_model.User) error
- func ChangeOrganizationVisibility(ctx context.Context, org *org_model.Organization, ...) error
- func CreateTeamInvite(ctx context.Context, inviter *user_model.User, team *org_model.Team, ...) error
- func DeleteOrganization(ctx context.Context, org *org_model.Organization, purge bool) error
- func DeleteTeam(ctx context.Context, t *organization.Team) error
- func GetOrgOverviewStats(ctx context.Context, orgID int64) (*organization.OrgOverviewStats, error)
- func GetOrgPinnedReposWithDetails(ctx context.Context, orgID int64) ([]*organization.OrgPinnedRepo, error)
- func NewTeam(ctx context.Context, t *organization.Team) (err error)
- func RemoveOrgUser(ctx context.Context, org *organization.Organization, user *user_model.User) error
- func RemoveTeamMember(ctx context.Context, team *organization.Team, user *user_model.User) error
- func UpdateTeam(ctx context.Context, t *organization.Team, authChanged, includeAllChanged bool) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTeamMember ¶
func AddTeamMember(ctx context.Context, team *organization.Team, user *user_model.User) error
AddTeamMember adds new membership of given team to given organization, the user will have membership to given organization automatically when needed.
func ChangeOrganizationVisibility ¶
func ChangeOrganizationVisibility(ctx context.Context, org *org_model.Organization, visibility structs.VisibleType) error
func CreateTeamInvite ¶
func CreateTeamInvite(ctx context.Context, inviter *user_model.User, team *org_model.Team, uname string) error
CreateTeamInvite make a persistent invite in db and mail it
func DeleteOrganization ¶
DeleteOrganization completely and permanently deletes everything of organization.
func DeleteTeam ¶
func DeleteTeam(ctx context.Context, t *organization.Team) error
DeleteTeam deletes given team. It's caller's responsibility to assign organization ID.
func GetOrgOverviewStats ¶
func GetOrgOverviewStats(ctx context.Context, orgID int64) (*organization.OrgOverviewStats, error)
GetOrgOverviewStats returns statistics for the organization overview page
func GetOrgPinnedReposWithDetails ¶
func GetOrgPinnedReposWithDetails(ctx context.Context, orgID int64) ([]*organization.OrgPinnedRepo, error)
GetOrgPinnedReposWithDetails returns all pinned repos with repo and group details loaded
func NewTeam ¶
func NewTeam(ctx context.Context, t *organization.Team) (err error)
NewTeam creates a record of new team. It's caller's responsibility to assign organization ID.
func RemoveOrgUser ¶
func RemoveOrgUser(ctx context.Context, org *organization.Organization, user *user_model.User) error
RemoveOrgUser removes user from given organization.
func RemoveTeamMember ¶
func RemoveTeamMember(ctx context.Context, team *organization.Team, user *user_model.User) error
RemoveTeamMember removes member from given team of given organization.
Types ¶
This section is empty.
Source Files
¶
- org.go
- pinned.go
- team.go
- team_invite.go
- user.go