Documentation
¶
Index ¶
- Variables
- type CreateParams
- type ListFilters
- type Repository
- type RepositoryWithLogging
- func (_d RepositoryWithLogging) Create(ctx context.Context, tx postgres.DBTX, orgSlug slug.Slug, ...) (rp1 *Result, err error)
- func (_d RepositoryWithLogging) FindBySlug(ctx context.Context, tx postgres.DBTX, orgSlug slug.Slug, ...) (rp1 *Result, err error)
- func (_d RepositoryWithLogging) List(ctx context.Context, tx postgres.DBTX, orgSlug slug.Slug, ...) (rpa1 []*Result, err error)
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrResultNotFound = xerror.NotFound(xerror.PipelineValidationResult) ErrPipelineMissing = xerror.NotFound(xerror.Pipeline) )
Functions ¶
This section is empty.
Types ¶
type CreateParams ¶
type ListFilters ¶
type Repository ¶
type Repository interface {
Create(
ctx context.Context,
tx postgres.DBTX,
orgSlug, projectSlug, environmentSlug slug.Slug,
params CreateParams,
) (*Result, error)
FindBySlug(
ctx context.Context,
tx postgres.DBTX,
orgSlug, projectSlug, environmentSlug, resultSlug slug.Slug,
) (*Result, error)
List(
ctx context.Context,
tx postgres.DBTX,
orgSlug, projectSlug, environmentSlug slug.Slug,
filters ListFilters,
) ([]*Result, error)
}
func New ¶
func New() Repository
func NewRepositoryWithLogging ¶
func NewRepositoryWithLogging(base Repository, logger *slog.Logger) Repository
NewRepositoryWithLogging wraps base with method completion logging.
type RepositoryWithLogging ¶
type RepositoryWithLogging struct {
// contains filtered or unexported fields
}
RepositoryWithLogging implements Repository with method completion logging.
func (RepositoryWithLogging) Create ¶
func (_d RepositoryWithLogging) Create(ctx context.Context, tx postgres.DBTX, orgSlug slug.Slug, projectSlug slug.Slug, environmentSlug slug.Slug, params CreateParams) (rp1 *Result, err error)
Create implements Repository.
Click to show internal directories.
Click to hide internal directories.