operatorhub

package
v0.0.0-...-cfb26ff Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultName = "cluster"

DefaultName is the default name of the OperatorHub config resource on an OpenShift cluster

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle(context.Context, *configv1.OperatorHub) error
}

Handler is the interface that wraps the Handle method

func NewHandler

func NewHandler(client client.Client) Handler

NewHandler returns a new Handler

type OperatorHub

type OperatorHub interface {
	Get() map[string]bool
	Set(spec configv1.OperatorHubSpec)
	Disabled() bool
}

OperatorHub is the interface to interact with the OperatorHub configuration in

memory.

func GetSingleton

func GetSingleton() OperatorHub

GetSingleton returns the singleton instance of HubConfig

Jump to

Keyboard shortcuts

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