Documentation ¶
Index ¶
- type App
- func (a *App) Create(_ context.Context, o model.Repository) (uint64, error)
- func (a *App) DeleteUnused(_ context.Context) error
- func (a *App) DeleteUnusedVersions(_ context.Context) error
- func (a *App) DoAtomic(ctx context.Context, action func(context.Context) error) error
- func (a *App) Get(_ context.Context, _ uint64, _ bool) (model.Repository, error)
- func (a *App) GetByName(_ context.Context, _ model.RepositoryKind, _, _ string) (model.Repository, error)
- func (a *App) List(_ context.Context, _ uint, _ string) ([]model.Repository, uint64, error)
- func (a *App) ListByKinds(_ context.Context, _ uint, _ string, _ ...model.RepositoryKind) ([]model.Repository, uint64, error)
- func (a *App) SetCreate(id uint64, err error) *App
- func (a *App) SetDeleteUnused(err error) *App
- func (a *App) SetDeleteUnusedVersions(err error) *App
- func (a *App) SetDoAtomic(err error) *App
- func (a *App) SetGet(repository model.Repository, err error) *App
- func (a *App) SetGetByName(repository model.Repository, err error) *App
- func (a *App) SetList(repositories []model.Repository, total uint64, err error) *App
- func (a *App) SetListByKinds(repositories []model.Repository, total uint64, err error) *App
- func (a *App) SetSuggest(repositories []model.Repository, err error) *App
- func (a *App) SetUpdateVersions(err error) *App
- func (a *App) Suggest(_ context.Context, _ []uint64, _ uint64) ([]model.Repository, error)
- func (a *App) UpdateVersions(_ context.Context, o model.Repository) 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 mocks
func (*App) DeleteUnusedVersions ¶ added in v1.10.0
DeleteUnusedVersions mocks
func (*App) GetByName ¶
func (a *App) GetByName(_ context.Context, _ model.RepositoryKind, _, _ string) (model.Repository, error)
GetByName mocks
func (*App) ListByKinds ¶ added in v1.13.0
func (a *App) ListByKinds(_ context.Context, _ uint, _ string, _ ...model.RepositoryKind) ([]model.Repository, uint64, error)
ListByKinds mocks
func (*App) SetDeleteUnusedVersions ¶ added in v1.10.0
SetDeleteUnusedVersions mocks
func (*App) SetGetByName ¶
func (a *App) SetGetByName(repository model.Repository, err error) *App
SetGetByName mocks
func (*App) SetListByKinds ¶ added in v1.13.0
SetListByKinds mocks
func (*App) SetSuggest ¶
func (a *App) SetSuggest(repositories []model.Repository, err error) *App
SetSuggest mocks
func (*App) SetUpdateVersions ¶
SetUpdateVersions mocks
func (*App) UpdateVersions ¶
UpdateVersions mocks
Click to show internal directories.
Click to hide internal directories.