rule

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(r CacheRule, ctx *Context)

func ApplyRuleConfigMap

func ApplyRuleConfigMap(rule CacheRule, ctx *Context)

func RemoveFinalizer

func RemoveFinalizer(r CacheRule, ctx *Context)

func RemoveRuleFromConfigMap

func RemoveRuleFromConfigMap(rule CacheRule, ctx *Context)

Types

type CacheRule

type CacheRule interface {
	CacheService() v1alpha1.CacheService
	ConfigMap() string
	Finalizer() string
	MarshallSpec() ([]byte, error)
	runtimeClient.Object
}

type Context

type Context struct {
	reconcile.Context
	Cache *v1alpha1.Cache
}

type HandlerFunc

type HandlerFunc func(r CacheRule, ctx *Context)

func (HandlerFunc) Handle

func (f HandlerFunc) Handle(i interface{}, ctx reconcile.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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