options

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListOptsFromInternal added in v0.0.56

func ListOptsFromInternal(filter *Filter, opts *metainternalversion.ListOptions) []client.ListOption

Types

type Filter added in v0.0.56

type Filter struct {
	// Name filters by the name of the objects
	Name string

	// Namespace filters by the namespace of the objects
	Namespace string
}

Filter

func ParseFieldSelector added in v0.0.56

func ParseFieldSelector(ctx context.Context, fieldSelector fields.Selector) (*Filter, error)

parseFieldSelector parses client-provided fields.Selector into a packageFilter

type Options

type Options struct {
	// Storage
	Prefix string
	Type   StorageType
	DB     *badger.DB
	// Target
	Client client.Client
	// specific functions
	DryRunCreateFn func(ctx context.Context, key types.NamespacedName, obj runtime.Object, dryrun bool) (runtime.Object, error)
	DryRunUpdateFn func(ctx context.Context, key types.NamespacedName, obj, old runtime.Object, dryrun bool) (runtime.Object, error)
	DryRunDeleteFn func(ctx context.Context, key types.NamespacedName, obj runtime.Object, dryrun bool) (runtime.Object, error)
}

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