org

package
v1.23.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 19 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTeamMember added in v1.23.0

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 CreateTeamInvite added in v1.17.4

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

func DeleteOrganization(ctx context.Context, org *org_model.Organization, purge bool) error

DeleteOrganization completely and permanently deletes everything of organization.

func DeleteTeam added in v1.23.0

func DeleteTeam(ctx context.Context, t *organization.Team) error

DeleteTeam deletes given team. It's caller's responsibility to assign organization ID.

func NewTeam added in v1.23.0

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 added in v1.23.0

func RemoveOrgUser(ctx context.Context, org *organization.Organization, user *user_model.User) error

RemoveOrgUser removes user from given organization.

func RemoveTeamMember added in v1.23.0

func RemoveTeamMember(ctx context.Context, team *organization.Team, user *user_model.User) error

RemoveTeamMember removes member from given team of given organization.

func UpdateTeam added in v1.23.0

func UpdateTeam(ctx context.Context, t *organization.Team, authChanged, includeAllChanged bool) (err error)

UpdateTeam updates information of team.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL