MCPcopy Create free account
hub / github.com/ddev/ddev / ListAvailableAddonsFromRegistry

Function ListAvailableAddonsFromRegistry

pkg/ddevapp/addons.go:702–708  ·  view source on GitHub ↗

ListAvailableAddonsFromRegistry returns the list of addons from the registry

()

Source from the content-addressed store, hash-verified

700
701// ListAvailableAddonsFromRegistry returns the list of addons from the registry
702func ListAvailableAddonsFromRegistry() ([]types.Addon, error) {
703 addonData, err := getAddonRegistryWithFallback()
704 if err != nil {
705 return nil, err
706 }
707 return addonData.Addons, nil
708}
709
710// getAddonRegistryWithFallback retrieves addon data from cache or downloads if stale
711// It respects the UpdateInterval setting from global config

Callers 3

addon-search.goFile · 0.92
addon-list.goFile · 0.92
GetAddonNamesFuncFunction · 0.85

Calls 1

Tested by

no test coverage detected