manager

package
v1.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 {
	sync.RWMutex
	// contains filtered or unexported fields
}

Manager to manager fault trigger

func NewManager

func NewManager() *Manager

NewManager returns a manager instance

func (*Manager) ListVMs

func (m *Manager) ListVMs() ([]*VM, error)

ListVMs lists vms

func (*Manager) StartETCD

func (m *Manager) StartETCD() error

StartETCD starts the etcd service

func (*Manager) StartKubeAPIServer

func (m *Manager) StartKubeAPIServer() error

StartKubeAPIServer starts the apiserver

func (*Manager) StartKubeControllerManager

func (m *Manager) StartKubeControllerManager() error

StartKubeControllerManager starts the kube-controller-manager service

func (*Manager) StartKubeScheduler

func (m *Manager) StartKubeScheduler() error

StartKubeScheduler starts the kube-scheduler service

func (*Manager) StartKubelet

func (m *Manager) StartKubelet() error

StartKubelet starts the kubelet service

func (*Manager) StartVM

func (m *Manager) StartVM(v *VM) error

StartVM starts vm

func (*Manager) StopETCD

func (m *Manager) StopETCD() error

StopETCD stops the etcd service

func (*Manager) StopKubeAPIServer

func (m *Manager) StopKubeAPIServer() error

StopKubeAPIServer stops the apiserver

func (*Manager) StopKubeControllerManager

func (m *Manager) StopKubeControllerManager() error

StopKubeControllerManager stops the kube-controller-manager service

func (*Manager) StopKubeScheduler

func (m *Manager) StopKubeScheduler() error

StopKubeScheduler stops the kube-scheduler service

func (*Manager) StopKubelet

func (m *Manager) StopKubelet() error

StopKubelet stops the kubelet service

func (*Manager) StopVM

func (m *Manager) StopVM(v *VM) error

StopVM stops vm

type VM

type VM struct {
	Host   string   `json:"host"`
	Port   int64    `json:"port"`
	Name   string   `json:"name"`
	IP     string   `json:"ip"`
	Role   []string `json:"role"`
	Status string   `json:"status"`
}

VM defines the descriptive information of a virtual machine

func (*VM) Verify

func (v *VM) Verify() error

Jump to

Keyboard shortcuts

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