Documentation ¶
Index ¶
- type App
- func (a App) Create(ctx context.Context, o model.Ketchup) (model.Identifier, error)
- func (a App) Delete(ctx context.Context, o model.Ketchup) error
- func (a App) DoAtomic(ctx context.Context, action func(context.Context) error) error
- func (a App) GetByRepository(ctx context.Context, id model.Identifier, pattern string, forUpdate bool) (model.Ketchup, error)
- func (a App) List(ctx context.Context, pageSize uint, last string) ([]model.Ketchup, uint64, error)
- func (a App) ListByRepositoriesIDAndFrequencies(ctx context.Context, ids []model.Identifier, ...) ([]model.Ketchup, error)
- func (a App) ListOutdated(ctx context.Context, userIds ...model.Identifier) ([]model.Ketchup, error)
- func (a App) ListSilentForRepositories(ctx context.Context, ids []uint64) ([]model.Ketchup, error)
- func (a App) Update(ctx context.Context, o model.Ketchup, oldPattern string) error
- func (a App) UpdateAll(ctx context.Context) error
- func (a App) UpdateVersion(ctx context.Context, userID, repositoryID model.Identifier, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App of package
func (App) GetByRepository ¶ added in v1.14.0
func (a App) GetByRepository(ctx context.Context, id model.Identifier, pattern string, forUpdate bool) (model.Ketchup, error)
GetByRepository retrieves ketchup for a repository and patern
func (App) ListByRepositoriesIDAndFrequencies ¶ added in v1.18.0
func (a App) ListByRepositoriesIDAndFrequencies(ctx context.Context, ids []model.Identifier, frequencies ...model.KetchupFrequency) ([]model.Ketchup, error)
ListByRepositoriesIDAndFrequencies lists ketchup by repositories id and given frequencies
func (App) ListOutdated ¶ added in v1.18.0
func (a App) ListOutdated(ctx context.Context, userIds ...model.Identifier) ([]model.Ketchup, error)
ListOutdated lists outdated ketchup by frequency id
func (App) ListSilentForRepositories ¶ added in v1.18.0
ListSilentForRepositories retrieves ketchup with no notification and auto-update
func (App) UpdateVersion ¶ added in v1.17.0
func (a App) UpdateVersion(ctx context.Context, userID, repositoryID model.Identifier, pattern, version string) error
UpdateVersion of a ketchup
Click to show internal directories.
Click to hide internal directories.