accountclosures

package
v0.4.0-rc.14 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = xerror.New(xerror.KindNotFound, "ACCOUNT_CLOSURE_NOT_FOUND", "account closure subject or request not found")

Functions

This section is empty.

Types

type Membership

type Membership struct {
	OrganizationSlug slug.Slug
	RoleSlug         slug.Slug
}

type Repository

type Repository struct{}

func (Repository) CancelExecutions

func (Repository) CancelExecutions(ctx context.Context, tx postgres.DBTX, userID int32) error

func (Repository) Complete

func (Repository) Complete(ctx context.Context, tx postgres.DBTX, requestID int) (Request, error)

func (Repository) CreateRequest

func (Repository) CreateRequest(ctx context.Context, tx postgres.DBTX, userID int32, request slug.Slug) (Request, error)

func (Repository) DeleteMFAChallenges

func (Repository) DeleteMFAChallenges(ctx context.Context, tx postgres.DBTX, userID int32) error

func (Repository) DeleteMemberships

func (Repository) DeleteMemberships(ctx context.Context, tx postgres.DBTX, userID int32) error

func (Repository) DeletePATs

func (Repository) DeletePATs(ctx context.Context, tx postgres.DBTX, userID int32) error

func (Repository) Fail

func (Repository) Fail(ctx context.Context, tx postgres.DBTX, request slug.Slug) error

func (Repository) FindRequest

func (Repository) FindRequest(ctx context.Context, tx postgres.DBTX, userID int32) (Request, error)

func (Repository) HardDelete

func (Repository) HardDelete(ctx context.Context, tx postgres.DBTX, subject Subject) error

func (Repository) HasOtherAdmin

func (Repository) HasOtherAdmin(ctx context.Context, tx postgres.DBTX, org slug.Slug, userID int32) (bool, error)

func (Repository) HasOtherMember

func (Repository) HasOtherMember(ctx context.Context, tx postgres.DBTX, org slug.Slug, userID int32) (bool, error)

func (Repository) LegacyProcessingPending

func (Repository) LegacyProcessingPending(ctx context.Context, tx postgres.DBTX, userID int32) (bool, error)

func (Repository) LockJobs

func (Repository) LockJobs(ctx context.Context, tx postgres.DBTX, user slug.Slug) ([]int, error)

func (Repository) LockOrganizations

func (Repository) LockOrganizations(ctx context.Context, tx postgres.DBTX, userID int32) ([]Membership, error)

func (Repository) LockRequest

func (Repository) LockRequest(ctx context.Context, tx postgres.DBTX, request slug.Slug) (Request, error)

func (Repository) LockSubject

func (Repository) LockSubject(ctx context.Context, tx postgres.DBTX, user slug.Slug) (Subject, error)

func (Repository) LockSubjectByID

func (Repository) LockSubjectByID(ctx context.Context, tx postgres.DBTX, userID int32) (Subject, error)

func (Repository) ProcessingPending

func (Repository) ProcessingPending(ctx context.Context, tx postgres.DBTX, subject Subject) (bool, error)

func (Repository) Revoke

func (Repository) Revoke(ctx context.Context, tx postgres.DBTX, userID int32) error

func (Repository) RevokePendingInvitations

func (Repository) RevokePendingInvitations(ctx context.Context, tx postgres.DBTX, email string) error

type Request

type Request struct {
	ID          int
	Slug        slug.Slug
	UserID      int32
	State       string
	RequestedAt time.Time
	CompletedAt *time.Time
}

type Subject

type Subject struct {
	ID      int32
	Slug    slug.Slug
	Email   string
	Deleted bool
}

Jump to

Keyboard shortcuts

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