Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddonInterface ¶
type AddonInterface interface { CreateConfigMap() error CreatePetSet(sp *spec.Plan) error UpdatePetSet(old *v1beta1.StatefulSet, sp *spec.Plan) error DeleteApp() error GetAddon() *spec.Addon }
AddonInterface represents the implementation of generic apps
func GetType ¶
func GetType(a *spec.Addon, c kubernetes.Interface, psetInf cache.SharedIndexInformer) (AddonInterface, error)
GetType retrieves the type of the add-on
type Memcached ¶
type Memcached struct {
// contains filtered or unexported fields
}
Memcached add-on in memory key value store database
func (*Memcached) CreateConfigMap ¶
CreateConfigMap does nothing
func (*Memcached) CreatePetSet ¶
CreatePetSet add a new memcached PetSet
func (*Memcached) UpdatePetSet ¶
UpdatePetSet update a memcached PetSet
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
MySQL add-on relational database management system
func (*MySQL) CreateConfigMap ¶
CreateConfigMap generates a ConfigMap with a mySQL default configuration
func (*MySQL) CreatePetSet ¶
CreatePetSet add a new mySQL PetSet
func (*MySQL) UpdatePetSet ¶
UpdatePetSet update a mySQL PetSet
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis add-on in memory key value store database
func (*Redis) CreateConfigMap ¶
CreateConfigMap generates a ConfigMap with a redis default configuration
func (*Redis) CreatePetSet ¶
CreatePetSet add a new redis PetSet
func (*Redis) GetSelector ¶
GetSelector retrieves the a selector for the redis app based on its name
func (*Redis) UpdatePetSet ¶
UpdatePetSet update a redis PetSet
type VolumeSpec ¶
type VolumeSpec struct { Volumes []v1.Volume VolumeMounts []v1.VolumeMount }
VolumeSpec facilitate passing definitions of volumes (api.Volumes) and how to mount then (api.VolumeMount)