Documentation
¶
Overview ¶
Package repositorysetups persists resumable project repository setup state.
Index ¶
- Variables
- type Repository
- func (*Repository) Abandon(ctx context.Context, db postgres.DBTX, org, project, setup slug.Slug, ...) (*Row, error)
- func (*Repository) Claim(ctx context.Context, db postgres.DBTX, org, project, setup slug.Slug, ...) (*Row, error)
- func (*Repository) Create(ctx context.Context, db postgres.DBTX, org, project, setupSlug slug.Slug, ...) (bool, error)
- func (*Repository) Get(ctx context.Context, db postgres.DBTX, org, project slug.Slug) (*Row, error)
- func (*Repository) GetAttempt(ctx context.Context, db postgres.DBTX, org, project, setup slug.Slug) (*Row, error)
- func (*Repository) ProjectForSetup(ctx context.Context, db postgres.DBTX, org, setup slug.Slug) (slug.Slug, error)
- func (*Repository) Release(ctx context.Context, db postgres.DBTX, org, project slug.Slug, ...) error
- func (*Repository) Update(ctx context.Context, db postgres.DBTX, org, project slug.Slug, ...) error
- type Row
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = xerror.NotFound(xerror.Project).Detail("project repository setup was not found") ErrBusy = xerror.New(xerror.KindAlreadyExists, "PROJECT_REPOSITORY_SETUP_BUSY", "project repository setup is leased") ErrLeaseLost = xerror.New(xerror.KindAlreadyExists, "PROJECT_REPOSITORY_SETUP_LEASE_LOST", "project repository setup lease was lost") )
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct{}
func New ¶
func New() *Repository
func (*Repository) GetAttempt ¶
func (*Repository) ProjectForSetup ¶
Click to show internal directories.
Click to hide internal directories.