addon

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

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