Documentation ¶
Index ¶
- type App
- func (a App) Clean(ctx context.Context) error
- func (a App) GetOrCreate(ctx context.Context, kind model.RepositoryKind, name, part, pattern string) (model.Repository, error)
- func (a App) LatestVersions(ctx context.Context, repo model.Repository) (map[string]semver.Version, error)
- func (a App) List(ctx context.Context, pageSize uint, last string) ([]model.Repository, uint64, error)
- func (a App) ListByKinds(ctx context.Context, pageSize uint, last string, kinds ...model.RepositoryKind) ([]model.Repository, uint64, error)
- func (a App) Suggest(ctx context.Context, ignoreIds []model.Identifier, count uint64) ([]model.Repository, error)
- func (a App) Update(ctx context.Context, item 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 of package
func New ¶
func New(repositoryStore model.RepositoryStore, githubApp model.GenericProvider, helmApp model.HelmProvider, dockerApp model.GenericProvider, npmApp model.GenericProvider, pypiApp model.GenericProvider) App
New creates new App from Config
func (App) GetOrCreate ¶
func (a App) GetOrCreate(ctx context.Context, kind model.RepositoryKind, name, part, pattern string) (model.Repository, error)
GetOrCreate repository
func (App) LatestVersions ¶ added in v1.9.0
func (a App) LatestVersions(ctx context.Context, repo model.Repository) (map[string]semver.Version, error)
LatestVersions of a repository
func (App) List ¶
func (a App) List(ctx context.Context, pageSize uint, last string) ([]model.Repository, uint64, error)
List repositories
func (App) ListByKinds ¶ added in v1.13.0
func (a App) ListByKinds(ctx context.Context, pageSize uint, last string, kinds ...model.RepositoryKind) ([]model.Repository, uint64, error)
ListByKinds repositories by kind
Click to show internal directories.
Click to hide internal directories.