storage

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InMemory

func InMemory(scheme *runtime.Scheme) *inMemoryStore

Types

type Interface

type Interface interface {
	Watch(ctx context.Context, resourceVersion string) (watch.Interface, error)
	List(l runtime.Object) error
	Get(key string, o resource.Resource) error
	Create(key string, o resource.Resource) error
	Delete(key string, o resource.Resource, validate func() error) error
	Update(key string, res resource.Resource, modify func() error) error
}

func FileStore

func FileStore(dir string, obj resource.Resource, scheme *runtime.Scheme) (Interface, error)

func RefreshPeriodically

func RefreshPeriodically(store Interface, interval time.Duration, fn func(Interface)) Interface

Jump to

Keyboard shortcuts

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