Documentation
¶
Index ¶
- func Routes(plugin *OrganizationsPlugin) []models.Route
- type API
- func (a *API) AcceptInvitation(ctx context.Context, actorUserID string, organizationID string, ...) (*types.OrganizationInvitation, error)
- func (a *API) AddMember(ctx context.Context, actorUserID string, organizationID string, ...) (*types.OrganizationMember, error)
- func (a *API) AddTeamMember(ctx context.Context, actorUserID string, organizationID string, teamID string, ...) (*types.OrganizationTeamMember, error)
- func (a *API) CreateInvitation(ctx context.Context, actorUserID string, organizationID string, ...) (*types.OrganizationInvitation, error)
- func (a *API) CreateOrganization(ctx context.Context, actorUserID string, ...) (*types.Organization, error)
- func (a *API) CreateTeam(ctx context.Context, actorUserID string, organizationID string, ...) (*types.OrganizationTeam, error)
- func (a *API) DeleteOrganization(ctx context.Context, actorUserID string, organizationID string) error
- func (a *API) DeleteTeam(ctx context.Context, actorUserID string, organizationID string, teamID string) error
- func (a *API) GetAllInvitations(ctx context.Context, actorUserID string, organizationID string) ([]types.OrganizationInvitation, error)
- func (a *API) GetAllMembers(ctx context.Context, actorUserID string, organizationID string, page int, ...) ([]types.OrganizationMember, error)
- func (a *API) GetAllOrganizations(ctx context.Context, actorUserID string) ([]types.Organization, error)
- func (a *API) GetAllTeamMembers(ctx context.Context, actorUserID string, organizationID string, teamID string, ...) ([]types.OrganizationTeamMember, error)
- func (a *API) GetAllTeams(ctx context.Context, actorUserID string, organizationID string) ([]types.OrganizationTeam, error)
- func (a *API) GetInvitation(ctx context.Context, actorUserID string, organizationID string, ...) (*types.OrganizationInvitation, error)
- func (a *API) GetMember(ctx context.Context, actorUserID string, organizationID string, ...) (*types.OrganizationMember, error)
- func (a *API) GetOrganizationByID(ctx context.Context, actorUserID string, organizationID string) (*types.Organization, error)
- func (a *API) GetTeam(ctx context.Context, actorUserID string, organizationID string, teamID string) (*types.OrganizationTeam, error)
- func (a *API) GetTeamMember(ctx context.Context, actorUserID string, organizationID string, teamID string, ...) (*types.OrganizationTeamMember, error)
- func (a *API) RejectInvitation(ctx context.Context, actorUserID string, organizationID string, ...) (*types.OrganizationInvitation, error)
- func (a *API) RemoveMember(ctx context.Context, actorUserID string, organizationID string, ...) error
- func (a *API) RemoveTeamMember(ctx context.Context, actorUserID string, organizationID string, teamID string, ...) error
- func (a *API) RevokeInvitation(ctx context.Context, actorUserID string, organizationID string, ...) (*types.OrganizationInvitation, error)
- func (a *API) UpdateMember(ctx context.Context, actorUserID string, organizationID string, ...) (*types.OrganizationMember, error)
- func (a *API) UpdateOrganization(ctx context.Context, actorUserID string, organizationID string, ...) (*types.Organization, error)
- func (a *API) UpdateTeam(ctx context.Context, actorUserID string, organizationID string, teamID string, ...) (*types.OrganizationTeam, error)
- type OrganizationsHookExecutor
- func (e *OrganizationsHookExecutor) AfterCreateOrganization(organization types.Organization) error
- func (e *OrganizationsHookExecutor) AfterCreateOrganizationInvitation(invitation types.OrganizationInvitation) error
- func (e *OrganizationsHookExecutor) AfterCreateOrganizationMember(member types.OrganizationMember) error
- func (e *OrganizationsHookExecutor) AfterCreateOrganizationTeam(team types.OrganizationTeam) error
- func (e *OrganizationsHookExecutor) AfterCreateOrganizationTeamMember(member types.OrganizationTeamMember) error
- func (e *OrganizationsHookExecutor) AfterDeleteOrganization(organization types.Organization) error
- func (e *OrganizationsHookExecutor) AfterDeleteOrganizationMember(member types.OrganizationMember) error
- func (e *OrganizationsHookExecutor) AfterDeleteOrganizationTeam(team types.OrganizationTeam) error
- func (e *OrganizationsHookExecutor) AfterDeleteOrganizationTeamMember(member types.OrganizationTeamMember) error
- func (e *OrganizationsHookExecutor) AfterUpdateOrganization(organization types.Organization) error
- func (e *OrganizationsHookExecutor) AfterUpdateOrganizationInvitation(invitation types.OrganizationInvitation) error
- func (e *OrganizationsHookExecutor) AfterUpdateOrganizationMember(member types.OrganizationMember) error
- func (e *OrganizationsHookExecutor) AfterUpdateOrganizationTeam(team types.OrganizationTeam) error
- func (e *OrganizationsHookExecutor) BeforeCreateOrganization(organization *types.Organization) error
- func (e *OrganizationsHookExecutor) BeforeCreateOrganizationInvitation(invitation *types.OrganizationInvitation) error
- func (e *OrganizationsHookExecutor) BeforeCreateOrganizationMember(member *types.OrganizationMember) error
- func (e *OrganizationsHookExecutor) BeforeCreateOrganizationTeam(team *types.OrganizationTeam) error
- func (e *OrganizationsHookExecutor) BeforeCreateOrganizationTeamMember(member *types.OrganizationTeamMember) error
- func (e *OrganizationsHookExecutor) BeforeDeleteOrganization(organization *types.Organization) error
- func (e *OrganizationsHookExecutor) BeforeDeleteOrganizationMember(member *types.OrganizationMember) error
- func (e *OrganizationsHookExecutor) BeforeDeleteOrganizationTeam(team *types.OrganizationTeam) error
- func (e *OrganizationsHookExecutor) BeforeDeleteOrganizationTeamMember(member *types.OrganizationTeamMember) error
- func (e *OrganizationsHookExecutor) BeforeUpdateOrganization(organization *types.Organization) error
- func (e *OrganizationsHookExecutor) BeforeUpdateOrganizationInvitation(invitation *types.OrganizationInvitation) error
- func (e *OrganizationsHookExecutor) BeforeUpdateOrganizationMember(member *types.OrganizationMember) error
- func (e *OrganizationsHookExecutor) BeforeUpdateOrganizationTeam(team *types.OrganizationTeam) error
- type OrganizationsPlugin
- func (p *OrganizationsPlugin) Close() error
- func (p *OrganizationsPlugin) Config() any
- func (p *OrganizationsPlugin) DependsOn() []string
- func (p *OrganizationsPlugin) Init(ctx *models.PluginContext) error
- func (p *OrganizationsPlugin) Metadata() models.PluginMetadata
- func (p *OrganizationsPlugin) Migrations(provider string) []migrations.Migration
- func (p *OrganizationsPlugin) Routes() []models.Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Routes ¶
func Routes(plugin *OrganizationsPlugin) []models.Route
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func BuildAPI ¶
func BuildAPI(plugin *OrganizationsPlugin) *API
func (*API) AcceptInvitation ¶
func (*API) AddMember ¶
func (a *API) AddMember(ctx context.Context, actorUserID string, organizationID string, request types.AddOrganizationMemberRequest) (*types.OrganizationMember, error)
func (*API) AddTeamMember ¶
func (*API) CreateInvitation ¶
func (a *API) CreateInvitation(ctx context.Context, actorUserID string, organizationID string, request types.CreateOrganizationInvitationRequest) (*types.OrganizationInvitation, error)
func (*API) CreateOrganization ¶
func (a *API) CreateOrganization(ctx context.Context, actorUserID string, request types.CreateOrganizationRequest) (*types.Organization, error)
func (*API) CreateTeam ¶
func (a *API) CreateTeam(ctx context.Context, actorUserID string, organizationID string, request types.CreateOrganizationTeamRequest) (*types.OrganizationTeam, error)
func (*API) DeleteOrganization ¶
func (*API) DeleteTeam ¶
func (*API) GetAllInvitations ¶
func (*API) GetAllMembers ¶
func (*API) GetAllOrganizations ¶
func (*API) GetAllTeamMembers ¶
func (*API) GetAllTeams ¶
func (*API) GetInvitation ¶
func (*API) GetOrganizationByID ¶
func (*API) GetTeamMember ¶
func (*API) RejectInvitation ¶
func (*API) RemoveMember ¶
func (*API) RemoveTeamMember ¶
func (*API) RevokeInvitation ¶
func (*API) UpdateMember ¶
func (*API) UpdateOrganization ¶
func (a *API) UpdateOrganization(ctx context.Context, actorUserID string, organizationID string, request types.UpdateOrganizationRequest) (*types.Organization, error)
func (*API) UpdateTeam ¶
type OrganizationsHookExecutor ¶
type OrganizationsHookExecutor struct {
// contains filtered or unexported fields
}
func NewOrganizationsHookExecutor ¶
func NewOrganizationsHookExecutor(config *types.OrganizationsDatabaseHooksConfig) *OrganizationsHookExecutor
func (*OrganizationsHookExecutor) AfterCreateOrganization ¶
func (e *OrganizationsHookExecutor) AfterCreateOrganization(organization types.Organization) error
func (*OrganizationsHookExecutor) AfterCreateOrganizationInvitation ¶
func (e *OrganizationsHookExecutor) AfterCreateOrganizationInvitation(invitation types.OrganizationInvitation) error
func (*OrganizationsHookExecutor) AfterCreateOrganizationMember ¶
func (e *OrganizationsHookExecutor) AfterCreateOrganizationMember(member types.OrganizationMember) error
func (*OrganizationsHookExecutor) AfterCreateOrganizationTeam ¶
func (e *OrganizationsHookExecutor) AfterCreateOrganizationTeam(team types.OrganizationTeam) error
func (*OrganizationsHookExecutor) AfterCreateOrganizationTeamMember ¶
func (e *OrganizationsHookExecutor) AfterCreateOrganizationTeamMember(member types.OrganizationTeamMember) error
func (*OrganizationsHookExecutor) AfterDeleteOrganization ¶
func (e *OrganizationsHookExecutor) AfterDeleteOrganization(organization types.Organization) error
func (*OrganizationsHookExecutor) AfterDeleteOrganizationMember ¶
func (e *OrganizationsHookExecutor) AfterDeleteOrganizationMember(member types.OrganizationMember) error
func (*OrganizationsHookExecutor) AfterDeleteOrganizationTeam ¶
func (e *OrganizationsHookExecutor) AfterDeleteOrganizationTeam(team types.OrganizationTeam) error
func (*OrganizationsHookExecutor) AfterDeleteOrganizationTeamMember ¶
func (e *OrganizationsHookExecutor) AfterDeleteOrganizationTeamMember(member types.OrganizationTeamMember) error
func (*OrganizationsHookExecutor) AfterUpdateOrganization ¶
func (e *OrganizationsHookExecutor) AfterUpdateOrganization(organization types.Organization) error
func (*OrganizationsHookExecutor) AfterUpdateOrganizationInvitation ¶
func (e *OrganizationsHookExecutor) AfterUpdateOrganizationInvitation(invitation types.OrganizationInvitation) error
func (*OrganizationsHookExecutor) AfterUpdateOrganizationMember ¶
func (e *OrganizationsHookExecutor) AfterUpdateOrganizationMember(member types.OrganizationMember) error
func (*OrganizationsHookExecutor) AfterUpdateOrganizationTeam ¶
func (e *OrganizationsHookExecutor) AfterUpdateOrganizationTeam(team types.OrganizationTeam) error
func (*OrganizationsHookExecutor) BeforeCreateOrganization ¶
func (e *OrganizationsHookExecutor) BeforeCreateOrganization(organization *types.Organization) error
func (*OrganizationsHookExecutor) BeforeCreateOrganizationInvitation ¶
func (e *OrganizationsHookExecutor) BeforeCreateOrganizationInvitation(invitation *types.OrganizationInvitation) error
func (*OrganizationsHookExecutor) BeforeCreateOrganizationMember ¶
func (e *OrganizationsHookExecutor) BeforeCreateOrganizationMember(member *types.OrganizationMember) error
func (*OrganizationsHookExecutor) BeforeCreateOrganizationTeam ¶
func (e *OrganizationsHookExecutor) BeforeCreateOrganizationTeam(team *types.OrganizationTeam) error
func (*OrganizationsHookExecutor) BeforeCreateOrganizationTeamMember ¶
func (e *OrganizationsHookExecutor) BeforeCreateOrganizationTeamMember(member *types.OrganizationTeamMember) error
func (*OrganizationsHookExecutor) BeforeDeleteOrganization ¶
func (e *OrganizationsHookExecutor) BeforeDeleteOrganization(organization *types.Organization) error
func (*OrganizationsHookExecutor) BeforeDeleteOrganizationMember ¶
func (e *OrganizationsHookExecutor) BeforeDeleteOrganizationMember(member *types.OrganizationMember) error
func (*OrganizationsHookExecutor) BeforeDeleteOrganizationTeam ¶
func (e *OrganizationsHookExecutor) BeforeDeleteOrganizationTeam(team *types.OrganizationTeam) error
func (*OrganizationsHookExecutor) BeforeDeleteOrganizationTeamMember ¶
func (e *OrganizationsHookExecutor) BeforeDeleteOrganizationTeamMember(member *types.OrganizationTeamMember) error
func (*OrganizationsHookExecutor) BeforeUpdateOrganization ¶
func (e *OrganizationsHookExecutor) BeforeUpdateOrganization(organization *types.Organization) error
func (*OrganizationsHookExecutor) BeforeUpdateOrganizationInvitation ¶
func (e *OrganizationsHookExecutor) BeforeUpdateOrganizationInvitation(invitation *types.OrganizationInvitation) error
func (*OrganizationsHookExecutor) BeforeUpdateOrganizationMember ¶
func (e *OrganizationsHookExecutor) BeforeUpdateOrganizationMember(member *types.OrganizationMember) error
func (*OrganizationsHookExecutor) BeforeUpdateOrganizationTeam ¶
func (e *OrganizationsHookExecutor) BeforeUpdateOrganizationTeam(team *types.OrganizationTeam) error
type OrganizationsPlugin ¶
type OrganizationsPlugin struct {
Api *API
// contains filtered or unexported fields
}
func New ¶
func New(config types.OrganizationsPluginConfig) *OrganizationsPlugin
func (*OrganizationsPlugin) Close ¶
func (p *OrganizationsPlugin) Close() error
func (*OrganizationsPlugin) Config ¶
func (p *OrganizationsPlugin) Config() any
func (*OrganizationsPlugin) DependsOn ¶
func (p *OrganizationsPlugin) DependsOn() []string
func (*OrganizationsPlugin) Init ¶
func (p *OrganizationsPlugin) Init(ctx *models.PluginContext) error
func (*OrganizationsPlugin) Metadata ¶
func (p *OrganizationsPlugin) Metadata() models.PluginMetadata
func (*OrganizationsPlugin) Migrations ¶
func (p *OrganizationsPlugin) Migrations(provider string) []migrations.Migration
func (*OrganizationsPlugin) Routes ¶
func (p *OrganizationsPlugin) Routes() []models.Route
Click to show internal directories.
Click to hide internal directories.