generic

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	indexGVK schema.GroupVersionKind,
	claimGVK schema.GroupVersionKind,
	entryGVK schema.GroupVersionKind,
	indexObjectFn func(runtime.Unstructured) (backend.IndexObject, error),
	claimObjectFn func(runtime.Unstructured) (backend.ClaimObject, error),
	entryObjectFn func(runtime.Unstructured) (backend.EntryObject, error),
	entryFromCacheFn func(k store.Key, vrange, id string, labels map[string]string) backend.EntryObject,
) bebackend.Backend

Types

type Applicator

type Applicator interface {
	Validate(ctx context.Context, claim backend.ClaimObject) error
	Apply(ctx context.Context, claim backend.ClaimObject) error
	Delete(ctx context.Context, claim backend.ClaimObject) error
}

type CacheInstanceContext

type CacheInstanceContext struct {
	// contains filtered or unexported fields
}

func NewCacheInstanceContext

func NewCacheInstanceContext(tree gtree.GTree, idxType string) *CacheInstanceContext

func (*CacheInstanceContext) Size

func (r *CacheInstanceContext) Size() int

func (*CacheInstanceContext) Type

func (r *CacheInstanceContext) Type() string

Jump to

Keyboard shortcuts

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