apps

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePetSetService

func MakePetSetService(addon *spec.Addon) *api.Service

MakePetSetService generates a &api.Service

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

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

func (m *Memcached) CreateConfigMap() error

CreateConfigMap does nothing

func (*Memcached) CreatePetSet

func (m *Memcached) CreatePetSet(sp *spec.ServicePlan) error

CreatePetSet add a new memcached PetSet

func (*Memcached) DeleteApp

func (m *Memcached) DeleteApp() error

DeleteApp exclude a memcached PetSet

func (*Memcached) GetAddon

func (m *Memcached) GetAddon() *spec.Addon

GetAddon returns the addon object

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

func (m *MySQL) CreateConfigMap() error

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) DeleteApp

func (m *MySQL) DeleteApp() error

DeleteApp exclude a mySQL PetSet

func (*MySQL) GetAddon

func (m *MySQL) GetAddon() *spec.Addon

GetAddon returns the addon object

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

func (r *Redis) CreateConfigMap() error

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) DeleteApp

func (r *Redis) DeleteApp() error

DeleteApp exclude a redis PetSet

func (*Redis) GetAddon

func (r *Redis) GetAddon() *spec.Addon

GetAddon returns the addon object

func (*Redis) GetSelector

func (r *Redis) GetSelector() (labels.Selector, error)

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)

Jump to

Keyboard shortcuts

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