Documentation ¶
Index ¶
- func MakePetSetService(addon *spec.Addon) *api.Service
- type AddonInterface
- type Memcached
- type MySQL
- type Redis
- func (r *Redis) CreateConfigMap() error
- func (r *Redis) CreatePetSet(sp *spec.ServicePlan) error
- func (r *Redis) DeleteApp() error
- func (r *Redis) GetAddon() *spec.Addon
- func (r *Redis) GetSelector() (labels.Selector, error)
- func (r *Redis) UpdatePetSet(old *apps.StatefulSet, sp *spec.ServicePlan) error
- type VolumeSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddonInterface ¶
type AddonInterface interface { CreateConfigMap() error CreatePetSet(sp *spec.ServicePlan) error UpdatePetSet(old *apps.StatefulSet, sp *spec.ServicePlan) error DeleteApp() error GetAddon() *spec.Addon }
AddonInterface represents the implementation of generic apps
func GetType ¶
func GetType(a *spec.Addon, c clientset.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 ¶
func (m *Memcached) CreatePetSet(sp *spec.ServicePlan) error
CreatePetSet add a new memcached PetSet
func (*Memcached) UpdatePetSet ¶
func (m *Memcached) UpdatePetSet(old *apps.StatefulSet, sp *spec.ServicePlan) error
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 ¶
func (m *MySQL) CreatePetSet(sp *spec.ServicePlan) error
CreatePetSet add a new mySQL PetSet
func (*MySQL) UpdatePetSet ¶
func (m *MySQL) UpdatePetSet(old *apps.StatefulSet, sp *spec.ServicePlan) error
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 ¶
func (r *Redis) CreatePetSet(sp *spec.ServicePlan) error
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 ¶
func (r *Redis) UpdatePetSet(old *apps.StatefulSet, sp *spec.ServicePlan) error
UpdatePetSet update a redis PetSet
type VolumeSpec ¶
type VolumeSpec struct { Volumes []api.Volume VolumeMounts []api.VolumeMount }
VolumeSpec facilitate passing definitions of volumes (api.Volumes) and how to mount then (api.VolumeMount)