Documentation ¶
Index ¶
- Constants
- func AddPodTemplate(tapp *v1.TApp, templateName string, template *corev1.PodTemplateSpec) error
- func CreateRawTApp(replica int) *v1.TApp
- func CreateTAppWithTemplateCreater(replica int, creater PodTemplateCreater) *v1.TApp
- func CreateValidPodTemplate() *corev1.PodTemplateSpec
- func CreateValidTApp(replica int) *v1.TApp
- func KillAllInstance(tapp *v1.TApp)
- func KillInstance(tapp *v1.TApp, instanceId string)
- func RampUp(tapp *v1.TApp, replica uint, templateName string) error
- func RestartInstance(tapp *v1.TApp, instanceId string) bool
- func ShrinkDown(tapp *v1.TApp, replica uint) error
- func UpdateInstanceTemplate(tapp *v1.TApp, instanceId string, templateId string) error
- type PodTemplateCreater
Constants ¶
View Source
const ( FakeTAppName = "fake-tapp-name" FakeLabelKey = "fake_tapp_label_key" FakeLabelValue = "fake_tapp_label_value" )
Variables ¶
This section is empty.
Functions ¶
func AddPodTemplate ¶
func CreateRawTApp ¶
func CreateTAppWithTemplateCreater ¶
func CreateTAppWithTemplateCreater(replica int, creater PodTemplateCreater) *v1.TApp
func CreateValidPodTemplate ¶
func CreateValidPodTemplate() *corev1.PodTemplateSpec
func CreateValidTApp ¶
func KillAllInstance ¶
func KillInstance ¶
func RestartInstance ¶
1. delete corresponding pod from apiserver 2. call restartInstance return true if tapp is updated
Types ¶
type PodTemplateCreater ¶
type PodTemplateCreater func() *corev1.PodTemplateSpec
Click to show internal directories.
Click to hide internal directories.