Documentation ¶
Index ¶
- Constants
- Variables
- type CustomerService
- type GroupService
- type InvitationService
- type InvoiceService
- 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) 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 SubscriptionService
- 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 OrganizationService ¶
type OrganizationService interface { Get(ctx context.Context, id string) (organization.Organization, error) DeleteModel(ctx context.Context, id string) error RemoveUsers(ctx context.Context, orgID string, userIDs []string) error ListByUser(ctx context.Context, principal authenticate.Principal, f organization.Filter) ([]organization.Organization, error) }
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, policyService PolicyService, roleService RoleService, invitationService InvitationService, userService UserService, customerService CustomerService, subService SubscriptionService, invoiceService InvoiceService) *Service
func (Service) DeleteCustomers ¶ added in v0.8.35
func (Service) DeleteOrganization ¶
func (Service) DeleteUser ¶ added in v0.7.6
type SubscriptionService ¶ added in v0.8.35
Click to show internal directories.
Click to hide internal directories.