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 FSCache ¶
type FSCache struct{}
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 ¶
Click to show internal directories.
Click to hide internal directories.