registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Name string
	Path string
}

Info holds recipe name and path for an app

type KbrewRegistry added in v0.0.4

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

KbrewRegistry is the collection of kbrew recipes

func New

func New(configDir string) (*KbrewRegistry, error)

New initializes KbrewRegistry, creates or clones default registry if not exists

func (*KbrewRegistry) Add added in v0.0.4

func (kr *KbrewRegistry) Add(user, repo string) error

Add clones given kbrew registry in the config dir

func (*KbrewRegistry) Args added in v0.0.6

func (kr *KbrewRegistry) Args(appName string) (map[string]interface{}, error)

Args returns the arguments declared for a recipe

func (*KbrewRegistry) FetchRecipe added in v0.0.4

func (kr *KbrewRegistry) FetchRecipe(appName string) (string, error)

FetchRecipe iterates over all the kbrew recipes and returns path of the app recipe file

func (*KbrewRegistry) Info added in v0.0.6

func (kr *KbrewRegistry) Info(appName string) (string, error)

Info returns information about a recipe

func (*KbrewRegistry) List added in v0.0.4

func (kr *KbrewRegistry) List() ([]string, error)

List returns list of registries

func (*KbrewRegistry) ListApps added in v0.0.4

func (kr *KbrewRegistry) ListApps() ([]Info, error)

ListApps return Info list of all the apps

func (*KbrewRegistry) Search added in v0.0.4

func (kr *KbrewRegistry) Search(appName string, exactMatch bool) ([]Info, error)

Search returns app Info for give app

func (*KbrewRegistry) Update added in v0.0.4

func (kr *KbrewRegistry) Update() error

Update pull latest commits from registry repos

Jump to

Keyboard shortcuts

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