organizations

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 (a *API) AcceptInvitation(ctx context.Context, actorUserID string, organizationID string, invitationID string) (*types.OrganizationInvitation, error)

func (*API) AddMember

func (a *API) AddMember(ctx context.Context, actorUserID string, organizationID string, request types.AddOrganizationMemberRequest) (*types.OrganizationMember, error)

func (*API) AddTeamMember

func (a *API) AddTeamMember(ctx context.Context, actorUserID string, organizationID string, teamID string, request types.AddOrganizationTeamMemberRequest) (*types.OrganizationTeamMember, error)

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 (a *API) DeleteOrganization(ctx context.Context, actorUserID string, organizationID string) error

func (*API) DeleteTeam

func (a *API) DeleteTeam(ctx context.Context, actorUserID string, organizationID string, teamID string) error

func (*API) GetAllInvitations

func (a *API) GetAllInvitations(ctx context.Context, actorUserID string, organizationID string) ([]types.OrganizationInvitation, error)

func (*API) GetAllMembers

func (a *API) GetAllMembers(ctx context.Context, actorUserID string, organizationID string, page int, limit int) ([]types.OrganizationMember, error)

func (*API) GetAllOrganizations

func (a *API) GetAllOrganizations(ctx context.Context, actorUserID string) ([]types.Organization, error)

func (*API) GetAllTeamMembers

func (a *API) GetAllTeamMembers(ctx context.Context, actorUserID string, organizationID string, teamID string, page int, limit int) ([]types.OrganizationTeamMember, error)

func (*API) GetAllTeams

func (a *API) GetAllTeams(ctx context.Context, actorUserID string, organizationID string) ([]types.OrganizationTeam, error)

func (*API) GetInvitation

func (a *API) GetInvitation(ctx context.Context, actorUserID string, organizationID string, invitationID string) (*types.OrganizationInvitation, error)

func (*API) GetMember

func (a *API) GetMember(ctx context.Context, actorUserID string, organizationID string, memberID string) (*types.OrganizationMember, error)

func (*API) GetOrganizationByID

func (a *API) GetOrganizationByID(ctx context.Context, actorUserID string, organizationID string) (*types.Organization, error)

func (*API) GetTeam

func (a *API) GetTeam(ctx context.Context, actorUserID string, organizationID string, teamID string) (*types.OrganizationTeam, error)

func (*API) GetTeamMember

func (a *API) GetTeamMember(ctx context.Context, actorUserID string, organizationID string, teamID string, memberID string) (*types.OrganizationTeamMember, error)

func (*API) RejectInvitation

func (a *API) RejectInvitation(ctx context.Context, actorUserID string, organizationID string, invitationID string) (*types.OrganizationInvitation, error)

func (*API) RemoveMember

func (a *API) RemoveMember(ctx context.Context, actorUserID string, organizationID string, memberID string) error

func (*API) RemoveTeamMember

func (a *API) RemoveTeamMember(ctx context.Context, actorUserID string, organizationID string, teamID string, memberID string) error

func (*API) RevokeInvitation

func (a *API) RevokeInvitation(ctx context.Context, actorUserID string, organizationID string, invitationID string) (*types.OrganizationInvitation, error)

func (*API) UpdateMember

func (a *API) UpdateMember(ctx context.Context, actorUserID string, organizationID string, memberID string, request types.UpdateOrganizationMemberRequest) (*types.OrganizationMember, error)

func (*API) UpdateOrganization

func (a *API) UpdateOrganization(ctx context.Context, actorUserID string, organizationID string, request types.UpdateOrganizationRequest) (*types.Organization, error)

func (*API) UpdateTeam

func (a *API) UpdateTeam(ctx context.Context, actorUserID string, organizationID string, teamID string, request types.UpdateOrganizationTeamRequest) (*types.OrganizationTeam, error)

type OrganizationsHookExecutor

type OrganizationsHookExecutor struct {
	// contains filtered or unexported fields
}

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 (*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 (*OrganizationsPlugin) Metadata

func (*OrganizationsPlugin) Migrations

func (p *OrganizationsPlugin) Migrations(provider string) []migrations.Migration

func (*OrganizationsPlugin) Routes

func (p *OrganizationsPlugin) Routes() []models.Route

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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