ocmprovider

package
v0.0.0-...-a56079f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProviderUnavailable = fmt.Errorf("OCM Provider unavailable")
	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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL