Documentation ¶
Index ¶
- func AddIndex(paths env.Paths, name, url string) error
- func DefaultIndex() string
- func DeleteIndex(paths env.Paths, name string) error
- func IsValidIndexName(name string) bool
- func LoadPluginByName(f env.Factory, pluginsDir string, pluginName string) (p spec.Plugin, err error)
- func LoadPluginsFromFS(f env.Factory, indexName string) (plugins []spec.Plugin, errors errors2.Aggregate)
- func ReadPlugin(f io.ReadCloser) (spec.Plugin, error)
- func ReadPluginFromFile(fs afero.Fs, path string) (p spec.Plugin, err error)
- func ReadReceiptFromFile(fs afero.Fs, path string) (spec.Receipt, error)
- type Index
- type PluginMap
- type Plugins
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIndex ¶
func DefaultIndex() string
func DeleteIndex ¶
DeleteIndex removes specified index name. If index does not exist, returns an error that can be tested by os.IsNotExist.
func IsValidIndexName ¶
IsValidIndexName validates if an index name contains invalid characters
func LoadPluginByName ¶
func LoadPluginsFromFS ¶
func ReadPlugin ¶
func ReadPlugin(f io.ReadCloser) (spec.Plugin, error)
func ReadPluginFromFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.