Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SwitchLocators ¶
func SwitchLocators(conditions ...func(*operatorsv1alpha1.InstallPlan) CSVLocator) func(*operatorsv1alpha1.InstallPlan) CSVLocator
Types ¶
type CSVLocator ¶
type CSVLocator interface {
GetCSV(ctx context.Context, client k8sclient.Client, installPlan *operatorsv1alpha1.InstallPlan) (*operatorsv1alpha1.ClusterServiceVersion, error)
}
func ForEmbedded ¶
func ForEmbedded(installPlan *operatorsv1alpha1.InstallPlan) CSVLocator
func ForReference ¶
func ForReference(installPlan *operatorsv1alpha1.InstallPlan) CSVLocator
type CachedCSVLocator ¶
type CachedCSVLocator struct {
// contains filtered or unexported fields
}
func NewCachedCSVLocator ¶
func NewCachedCSVLocator(innerLocator CSVLocator) *CachedCSVLocator
func (*CachedCSVLocator) GetCSV ¶
func (l *CachedCSVLocator) GetCSV(ctx context.Context, client k8sclient.Client, installPlan *operatorsv1alpha1.InstallPlan) (*operatorsv1alpha1.ClusterServiceVersion, error)
type ConditionalCSVLocator ¶
type ConditionalCSVLocator struct {
Condition func(installPlan *operatorsv1alpha1.InstallPlan) CSVLocator
}
func NewConditionalCSVLocator ¶
func NewConditionalCSVLocator(condition func(installPlan *operatorsv1alpha1.InstallPlan) CSVLocator) *ConditionalCSVLocator
func (*ConditionalCSVLocator) GetCSV ¶
func (l *ConditionalCSVLocator) GetCSV(ctx context.Context, client k8sclient.Client, installPlan *operatorsv1alpha1.InstallPlan) (*operatorsv1alpha1.ClusterServiceVersion, error)
type ConfigMapCSVLocator ¶
type ConfigMapCSVLocator struct{}
func (*ConfigMapCSVLocator) GetCSV ¶
func (l *ConfigMapCSVLocator) GetCSV(ctx context.Context, client k8sclient.Client, installPlan *operatorsv1alpha1.InstallPlan) (*operatorsv1alpha1.ClusterServiceVersion, error)
type EmbeddedCSVLocator ¶
type EmbeddedCSVLocator struct{}
func (*EmbeddedCSVLocator) GetCSV ¶
func (l *EmbeddedCSVLocator) GetCSV(ctx context.Context, client k8sclient.Client, installPlan *operatorsv1alpha1.InstallPlan) (*operatorsv1alpha1.ClusterServiceVersion, error)
Click to show internal directories.
Click to hide internal directories.