finder

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder interface {
	GetPackage(name string, version string) (packages.Package, error)
}

Finder is a packages finder and is any implementation which can find/discover a packages. Even Repos are finders. Local and URL Finders current do nothing with the version information.

type LocalFinder

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

LocalFinder will find local operator packages: folders or tgz

func NewLocal

func NewLocal() *LocalFinder

NewLocal creates a finder for local operator package

func (*LocalFinder) GetPackage

func (f *LocalFinder) GetPackage(name string, version string) (packages.Package, error)

GetPackage provides a package for the local folder or tarball provided

type Manager

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

Manager is the source of finder of operator packages.

func New

func New() *Manager

New creates an operator package finder for non-repository packages

func (*Manager) GetPackage

func (f *Manager) GetPackage(name string, version string) (packages.Package, error)

GetPackage provides a one stop to acquire any non-repo packages. We should refactor repo to be in the finder package and have manager manage it.

type URLFinder

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

URLFinder will find an operator packages from a url

func NewURL

func NewURL() *URLFinder

NewURL creates an instance of a URLFinder

func (*URLFinder) GetPackage

func (f *URLFinder) GetPackage(name string, version string) (packages.Package, error)

GetPackage provides a package for the url provided

Jump to

Keyboard shortcuts

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