Documentation ¶
Index ¶
- type Info
- type KbrewRegistry
- func (kr *KbrewRegistry) Add(user, repo string) error
- func (kr *KbrewRegistry) Args(appName string) (map[string]interface{}, error)
- func (kr *KbrewRegistry) FetchRecipe(appName string) (string, error)
- func (kr *KbrewRegistry) Info(appName string) (string, error)
- func (kr *KbrewRegistry) List() ([]string, error)
- func (kr *KbrewRegistry) ListApps() ([]Info, error)
- func (kr *KbrewRegistry) Search(appName string, exactMatch bool) ([]Info, error)
- func (kr *KbrewRegistry) Update() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.