Documentation ¶
Index ¶
- Constants
- Variables
- type Operator
- type OperatorOption
- func WithAPILabeler(apiLabeler labeler.Labeler) OperatorOption
- func WithAPIReconciler(apiReconciler resolver.APIIntersectionReconciler) OperatorOption
- func WithClock(clock utilclock.Clock) OperatorOption
- func WithConfigClient(configClient configv1client.Interface) OperatorOption
- func WithExternalClient(externalClient versioned.Interface) OperatorOption
- func WithLogger(logger *logrus.Logger) OperatorOption
- func WithOperatorClient(operatorClient operatorclient.ClientInterface) OperatorOption
- func WithOperatorNamespace(namespace string) OperatorOption
- func WithRestConfig(restConfig *rest.Config) OperatorOption
- func WithResyncPeriod(resyncPeriod func() time.Duration) OperatorOption
- func WithStrategyResolver(strategyResolver install.StrategyResolverInterface) OperatorOption
- func WithWatchedNamespaces(namespaces ...string) OperatorOption
Constants ¶
View Source
const ( AdminSuffix = "admin" EditSuffix = "edit" ViewSuffix = "view" )
View Source
const (
// Name of packageserver API service
PackageserverName = "v1.packages.operators.coreos.com"
)
Variables ¶
View Source
var ( ErrRequirementsNotMet = errors.New("requirements were not met") ErrCRDOwnerConflict = errors.New("conflicting CRD owner in namespace") ErrAPIServiceOwnerConflict = errors.New("unable to adopt APIService") )
View Source
var ( AdminVerbs = []string{"*"} EditVerbs = []string{"create", "update", "patch", "delete"} ViewVerbs = []string{"get", "list", "watch"} Suffices = []string{AdminSuffix, EditSuffix, ViewSuffix} VerbsForSuffix = map[string][]string{ AdminSuffix: AdminVerbs, EditSuffix: EditVerbs, ViewSuffix: ViewVerbs, } )
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator struct { queueinformer.Operator // contains filtered or unexported fields }
func NewOperator ¶
func NewOperator(ctx context.Context, options ...OperatorOption) (*Operator, error)
func (*Operator) GetCSVSetGenerator ¶
func (a *Operator) GetCSVSetGenerator() csvutility.SetGenerator
func (*Operator) GetReplaceFinder ¶
func (a *Operator) GetReplaceFinder() csvutility.ReplaceFinder
func (*Operator) RegisterCSVWatchNotification ¶
func (a *Operator) RegisterCSVWatchNotification(csvNotification csvutility.WatchNotification)
type OperatorOption ¶
type OperatorOption func(*operatorConfig)
func WithAPILabeler ¶
func WithAPILabeler(apiLabeler labeler.Labeler) OperatorOption
func WithAPIReconciler ¶
func WithAPIReconciler(apiReconciler resolver.APIIntersectionReconciler) OperatorOption
func WithClock ¶
func WithClock(clock utilclock.Clock) OperatorOption
func WithConfigClient ¶
func WithConfigClient(configClient configv1client.Interface) OperatorOption
func WithExternalClient ¶
func WithExternalClient(externalClient versioned.Interface) OperatorOption
func WithLogger ¶
func WithLogger(logger *logrus.Logger) OperatorOption
func WithOperatorClient ¶
func WithOperatorClient(operatorClient operatorclient.ClientInterface) OperatorOption
func WithOperatorNamespace ¶
func WithOperatorNamespace(namespace string) OperatorOption
func WithRestConfig ¶
func WithRestConfig(restConfig *rest.Config) OperatorOption
func WithResyncPeriod ¶
func WithResyncPeriod(resyncPeriod func() time.Duration) OperatorOption
func WithStrategyResolver ¶
func WithStrategyResolver(strategyResolver install.StrategyResolverInterface) OperatorOption
func WithWatchedNamespaces ¶
func WithWatchedNamespaces(namespaces ...string) OperatorOption
Source Files ¶
Click to show internal directories.
Click to hide internal directories.