Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRetrievingPolicies = fmt.Errorf("could not retrieve provider upgrade policies") ErrProcessingPolicies = fmt.Errorf("could not process provider upgrade policies") )
Errors
Functions ¶
func New ¶
func New(client client.Client, upgradeType upgradev1alpha1.UpgradeType, ocmBaseUrl *url.URL) (*ocmProvider, error)
New returns a new ocmProvider
Types ¶
type ConfigManager ¶
type ConfigManager struct {
OcmBaseUrl string `yaml:"ocmBaseUrl"`
}
ConfigManager manages config for an OCM provider
type OcmProviderConfig ¶
type OcmProviderConfig struct {
ConfigManager ConfigManager `yaml:"configManager"`
}
OcmProviderConfig holds configuration for an OCM provider
func (*OcmProviderConfig) GetOCMBaseURL ¶
func (cfg *OcmProviderConfig) GetOCMBaseURL() *url.URL
GetOCMBaseURL returns the OCM providers base URL from the OCM config
func (*OcmProviderConfig) IsValid ¶
func (cfg *OcmProviderConfig) IsValid() error
IsValid returns a nil error when the OcmProviderConfig is true
Click to show internal directories.
Click to hide internal directories.