Documentation ¶
Index ¶
- Constants
- type Manager
- func (m *Manager) StartETCD() error
- func (m *Manager) StartKubeAPIServer() error
- func (m *Manager) StartKubeControllerManager() error
- func (m *Manager) StartKubeScheduler() error
- func (m *Manager) StartKubelet() error
- func (m *Manager) StopETCD() error
- func (m *Manager) StopKubeAPIServer() error
- func (m *Manager) StopKubeControllerManager() error
- func (m *Manager) StopKubeScheduler() error
- func (m *Manager) StopKubelet() error
- type QMVMManager
- type VM
- type VMManager
- type VirshVMManager
Constants ¶
View Source
const ( KubeAPIServerService = "kube-apiserver" KubeSchedulerService = "kube-scheduler" KubeControllerManagerService = "kube-controller-manager" )
View Source
const ( ETCDService = "etcd" KubeletService = "kubelet" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
VMManager
}
Manager to manager fault trigger
func NewManager ¶
NewManager returns a manager instance
func (*Manager) StartKubeAPIServer ¶
StartKubeAPIServer starts the apiserver
func (*Manager) StartKubeControllerManager ¶
StartKubeControllerManager starts the kube-controller-manager service
func (*Manager) StartKubeScheduler ¶
StartKubeScheduler starts the kube-scheduler service
func (*Manager) StartKubelet ¶
StartKubelet starts the kubelet service
func (*Manager) StopKubeAPIServer ¶
StopKubeAPIServer stops the apiserver
func (*Manager) StopKubeControllerManager ¶
StopKubeControllerManager stops the kube-controller-manager service
func (*Manager) StopKubeScheduler ¶
StopKubeScheduler stops the kube-scheduler service
func (*Manager) StopKubelet ¶
StopKubelet stops the kubelet service
type QMVMManager ¶ added in v1.0.2
type QMVMManager struct { }
func (*QMVMManager) ListVMs ¶ added in v1.0.2
func (qm *QMVMManager) ListVMs() ([]*VM, error)
func (*QMVMManager) Name ¶ added in v1.0.2
func (qm *QMVMManager) Name() string
func (*QMVMManager) StartVM ¶ added in v1.0.2
func (qm *QMVMManager) StartVM(vm *VM) error
func (*QMVMManager) StopVM ¶ added in v1.0.2
func (qm *QMVMManager) StopVM(vm *VM) error
type VM ¶
type VM struct { Host string `json:"host"` Port int64 `json:"port"` Name string `json:"name"` Role []string `json:"role"` Status string `json:"status"` }
VM defines the descriptive information of a virtual machine
type VirshVMManager ¶ added in v1.0.2
type VirshVMManager struct { }
func (*VirshVMManager) ListVMs ¶ added in v1.0.2
func (m *VirshVMManager) ListVMs() ([]*VM, error)
ListVMs lists vms
func (*VirshVMManager) Name ¶ added in v1.0.2
func (m *VirshVMManager) Name() string
func (*VirshVMManager) StartVM ¶ added in v1.0.2
func (m *VirshVMManager) StartVM(v *VM) error
StartVM starts vm
func (*VirshVMManager) StopVM ¶ added in v1.0.2
func (m *VirshVMManager) StopVM(v *VM) error
StopVM stops vm
Click to show internal directories.
Click to hide internal directories.