Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddonValidator ¶
func NewAddonValidator(addon *addonmgrv1alpha1.Addon, cache VersionCacheClient, dynClient dynamic.Interface) common.Validator
NewAddonValidator returns an object implementing common.Validator
Types ¶
type Version ¶
type Version struct { Name string Namespace string addonmgrv1alpha1.PackageSpec PkgPhase addonmgrv1alpha1.ApplicationAssemblyPhase }
Version data that will be cached
type VersionCacheClient ¶
type VersionCacheClient interface { AddVersion(Version) GetVersions(pkgName string) map[string]Version GetVersion(pkgName, pkgVersion string) *Version HasVersionName(name string) (bool, *Version) RemoveVersion(pkgName, pkgVersion string) RemoveVersions(pkgName string) GetAllVersions() map[string]map[string]Version }
VersionCacheClient interface clients must implement for addon version cache.
func NewAddonVersionCacheClient ¶
func NewAddonVersionCacheClient() VersionCacheClient
NewAddonVersionCacheClient returns a new instance of VersionCacheClient
Click to show internal directories.
Click to hide internal directories.