Documentation
¶
Index ¶
Constants ¶
View Source
const ( FSCacheRootDir = "/home/uipluginoperator/cache" FilesTxtFilename = "files.txt" PackageJSONFilename = "plugin/package.json" // Cache states used by custom resources Cached = "cached" Disabled = "disabled" Pending = "pending" )
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) Delete ¶
Delete takes in a plugin's name and version, and deletes its entry in the filesystem cache
func (FSCache) SyncWithControllersCache ¶
SyncWithControllersCache takes in a slice of UI Plugins objects and syncs the filesystem cache with it
type PackageJSON ¶
type PackageJSON struct {
Version string `json:"version,omitempty"`
}
type SafeIndex ¶
type SafeIndex struct {
Entries map[string]*v1.UIPluginEntry `json:"entries,omitempty"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.