repositorytest

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App added in v1.9.0

type App struct {
	// contains filtered or unexported fields
}

App mock app

func New added in v1.9.0

func New() *App

New creates raw mock

func (*App) Clean added in v1.9.0

func (a *App) Clean(_ context.Context) error

Clean mocks

func (*App) GetOrCreate added in v1.9.0

func (a *App) GetOrCreate(_ context.Context, _ model.RepositoryKind, _ string, _ string, _ string) (model.Repository, error)

GetOrCreate mocks

func (*App) LatestVersions added in v1.9.0

func (a *App) LatestVersions(_ model.Repository) (map[string]semver.Version, error)

LatestVersions mocks

func (*App) List added in v1.9.0

func (a *App) List(_ context.Context, _ uint, _ string) ([]model.Repository, uint64, error)

List 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) SetGetOrCreate added in v1.9.0

func (a *App) SetGetOrCreate(repo model.Repository, err error) *App

SetGetOrCreate mocks

func (*App) SetLatestVersions added in v1.9.0

func (a *App) SetLatestVersions(latestVersions map[string]semver.Version, err error) *App

SetLatestVersions mocks

func (*App) SetList added in v1.9.0

func (a *App) SetList(list []model.Repository, total uint64, err error) *App

SetList mocks

func (*App) SetListByKinds added in v1.13.0

func (a *App) SetListByKinds(list []model.Repository, total uint64, err error) *App

SetListByKinds mocks

func (*App) SetUpdate added in v1.9.0

func (a *App) SetUpdate(err error) *App

SetUpdate mocks

func (*App) Suggest added in v1.9.0

func (a *App) Suggest(_ context.Context, _ []uint64, _ uint64) ([]model.Repository, error)

Suggest mocks

func (*App) Update added in v1.9.0

func (a *App) Update(_ context.Context, _ model.Repository) error

Update mocks

Jump to

Keyboard shortcuts

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