Documentation
¶
Overview ¶
Package provider provides common provider operations for CLI commands.
Index ¶
- func FilterWithClients(providers []*catalogs.Provider, hasClientFunc func(catalogs.ProviderID) bool) []*catalogs.Provider
- func Get(catalog catalogs.Catalog, providerID string) (*catalogs.Provider, error)
- func GetWithValidation(catalog catalogs.Catalog, providerID string, ...) (*catalogs.Provider, error)
- func List(catalog catalogs.Catalog) []*catalogs.Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterWithClients ¶
func FilterWithClients(providers []*catalogs.Provider, hasClientFunc func(catalogs.ProviderID) bool) []*catalogs.Provider
FilterWithClients returns only providers that have API client implementations. Used by commands that need to work with multiple providers that have clients.
func Get ¶
Get retrieves a provider by ID or alias from the catalog. This handles the common pattern of provider lookup with proper error handling. Silently resolves aliases to canonical provider IDs.
func GetWithValidation ¶
func GetWithValidation(catalog catalogs.Catalog, providerID string, hasClientFunc func(catalogs.ProviderID) bool) (*catalogs.Provider, error)
GetWithValidation retrieves a provider and validates it has a client implementation. Used by commands that need to interact with provider APIs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.