client

package
v1.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// ListVMs lists all virtual machines
	ListVMs() ([]*manager.VM, error)
	// StartVM start a specified virtual machine
	StartVM(vm *manager.VM) error
	// StopVM stops a specified virtual machine
	StopVM(vm *manager.VM) error
	// StartETCD starts the etcd service
	StartETCD() error
	// StopETCD stops the etcd service
	StopETCD() error
	// StartKubelet starts the kubelet service
	StartKubelet() error
	// StopKubelet stops the kubelet service
	StopKubelet() error
	// StartKubeAPIServer starts the apiserver service
	StartKubeAPIServer() error
	// StopKubeAPIServer stops the apiserver service
	StopKubeAPIServer() error
	// StartKubeScheduler starts the kube-scheduler service
	StartKubeScheduler() error
	// StopKubeScheduler stops the kube-scheduler service
	StopKubeScheduler() error
	// StartKubeControllerManager starts the kube-controller-manager service
	StartKubeControllerManager() error
	// StopKubeControllerManager stops the kube-controller-manager service
	StopKubeControllerManager() error
}

Client is a fault-trigger client

func NewClient

func NewClient(cfg Config) Client

NewClient creates a new fault-trigger client from a given address

type Config

type Config struct {
	Addr string
}

Config defines for fault-trigger client

Jump to

Keyboard shortcuts

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