repository

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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) Clean

func (a App) Clean(ctx context.Context) error

Clean unused

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

func (App) Suggest added in v1.6.0

func (a App) Suggest(ctx context.Context, ignoreIds []model.Identifier, count uint64) ([]model.Repository, error)

Suggest repositories

func (App) Update

func (a App) Update(ctx context.Context, item model.Repository) error

Update repository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL