options

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendInvoker

type BackendInvoker interface {
	InvokeCreate(ctx context.Context, obj runtime.Object, recursion bool) (runtime.Object, error)
	InvokeUpdate(ctx context.Context, obj, old runtime.Object, recursion bool) (runtime.Object, runtime.Object, error)
	InvokeDelete(ctx context.Context, obj runtime.Object, recursion bool) (runtime.Object, error)
}

type DryRunner

type DryRunner interface {
	DryRunCreate(ctx context.Context, key types.NamespacedName, obj runtime.Object, dryrun bool) (runtime.Object, error)
	DryRunUpdate(ctx context.Context, key types.NamespacedName, obj, old runtime.Object, dryrun bool) (runtime.Object, error)
	DryRunDelete(ctx context.Context, key types.NamespacedName, obj runtime.Object, dryrun bool) (runtime.Object, error)
}

type Options

type Options struct {
	// Storage
	Prefix string
	Type   StorageType
	DB     *badger.DB
	// Target
	//Client client.Client
	// specific functions
	DryRunner      DryRunner
	BackendInvoker BackendInvoker
}

type StorageType

type StorageType int
const (
	StorageType_Memory StorageType = iota
	StorageType_File
	StorageType_KV
)

Jump to

Keyboard shortcuts

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