Documentation
¶
Index ¶
- Constants
- Variables
- type CustomerService
- type GroupService
- type InvitationService
- type InvoiceService
- type MembershipService
- type OrganizationService
- type PolicyService
- type ProjectService
- type ResourceService
- type RoleService
- type Service
- func (d Service) DeleteCustomers(ctx context.Context, id string) error
- func (d Service) DeleteGroup(ctx context.Context, id string) error
- func (d Service) DeleteOrganization(ctx context.Context, id string) error
- func (d Service) DeleteProject(ctx context.Context, id string) error
- func (d Service) DeleteUser(ctx context.Context, userID string) error
- func (d Service) RemoveUsersFromOrg(ctx context.Context, orgID string, userIDs []string) error
- type ServiceUserService
- type SubscriptionService
- type UserPATService
- type UserService
Constants ¶
View Source
const (
DisableDeleteIfBilled = true
)
Variables ¶
View Source
var (
ErrDeleteNotAllowed = fmt.Errorf("deletion not allowed for billed accounts")
)
Functions ¶
This section is empty.
Types ¶
type CustomerService ¶ added in v0.8.35
type GroupService ¶
type InvitationService ¶
type InvitationService interface {
List(ctx context.Context, flt invitation.Filter) ([]invitation.Invitation, error)
Delete(ctx context.Context, id uuid.UUID) error
}
type InvoiceService ¶ added in v0.8.35
type MembershipService ¶ added in v0.103.0
type MembershipService interface {
OnGroupDeleted(ctx context.Context, groupID string) error
ListResourcesByPrincipal(ctx context.Context, principal authenticate.Principal, resourceType string, filter membership.ResourceFilter) ([]string, error)
}
type OrganizationService ¶
type PolicyService ¶
type ProjectService ¶
type ResourceService ¶
type RoleService ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewCascadeDeleter ¶
func NewCascadeDeleter(orgService OrganizationService, projService ProjectService, resService ResourceService, groupService GroupService, membershipService MembershipService, policyService PolicyService, roleService RoleService, invitationService InvitationService, userService UserService, userPATService UserPATService, serviceUserService ServiceUserService, customerService CustomerService, subService SubscriptionService, invoiceService InvoiceService) *Service
func (Service) DeleteCustomers ¶ added in v0.8.35
func (Service) DeleteGroup ¶ added in v0.103.0
DeleteGroup orchestrates teardown of a single group: clears every member's policies and relations plus the org<->group hierarchy relations via membership, then deletes the group entity itself.
func (Service) DeleteOrganization ¶
func (Service) DeleteUser ¶ added in v0.7.6
DeleteUser visits every org the user has a policy on (disabled orgs too), otherwise userService.Delete would leave orphan policy rows behind.
type ServiceUserService ¶ added in v0.100.0
type ServiceUserService interface {
List(ctx context.Context, flt serviceuser.Filter) ([]serviceuser.ServiceUser, error)
Delete(ctx context.Context, id string) error
}
type SubscriptionService ¶ added in v0.8.35
type UserPATService ¶ added in v0.106.0
Click to show internal directories.
Click to hide internal directories.