finder

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 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 {
	GetBundle(name string, version string) (bundle.Bundle, error)
}

Finder is a bundle finder and is any implementation which can find/discover a bundle. 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 bundle: folders or tgz

func NewLocal

func NewLocal() *LocalFinder

NewLocal creates a finder for local operator bundles

func (*LocalFinder) GetBundle

func (f *LocalFinder) GetBundle(name string, version string) (bundle.Bundle, error)

GetBundle provides a bundle 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 bundles.

func New

func New() *Manager

New creates an operator bundle finder for non-repository bundles

func (*Manager) GetBundle

func (f *Manager) GetBundle(name string, version string) (bundle.Bundle, error)

GetBundle provides a one stop to acquire any non-repo bundle. 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 bundle from a url

func NewURL

func NewURL() *URLFinder

NewURL creates an instance of a URLFinder

func (*URLFinder) GetBundle

func (f *URLFinder) GetBundle(name string, version string) (bundle.Bundle, error)

GetBundle provides a bundle for the url provided

Jump to

Keyboard shortcuts

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