plugin

package
v0.0.0-...-4a7016a Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FSCacheRootDir = "/home/uipluginoperator/cache"

	// Cache states used by custom resources
	Cached   = "cached"
	Disabled = "disabled"
	Pending  = "pending"
)
View Source
const (
	FilesTxtFilename = "files.txt"
)

Variables

View Source
var (
	FsCache = FSCache{}
)
View Source
var (
	Index = SafeIndex{}
)

Functions

func Register

func Register(
	ctx context.Context,
	systemNamespace, managedBy string,
	plugin plugincontroller.UIPluginController,
	pluginCache plugincontroller.UIPluginCache,
	k8s kubernetes.Interface,
)

Types

type Entry

type Entry struct {
	*v1.UIPluginEntry
	Generated time.Time
}

type FSCache

type FSCache struct{}

func (*FSCache) Save

func (c *FSCache) Save(name, version string) error

func (*FSCache) Sync

func (c *FSCache) Sync(namespace string, cache plugincontroller.UIPluginCache) error

type SafeIndex

type SafeIndex struct {
	Generated time.Time
	Entries   map[string]Entry
	// contains filtered or unexported fields
}

func (*SafeIndex) Generate

func (s *SafeIndex) Generate(namespace string, cache plugincontroller.UIPluginCache) error

func (*SafeIndex) SyncWithFsCache

func (s *SafeIndex) SyncWithFsCache() error

Jump to

Keyboard shortcuts

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