e2eutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAgentLog added in v0.1.0

func CheckAgentLog(namespace, name string, dynclient client.Client) (string, error)

func CheckManagerLog added in v0.1.0

func CheckManagerLog(namespace, name string) (string, error)

func CleanEIPList added in v0.1.0

func CleanEIPList(dynclient client.Client) error

func Connect

func Connect(user, password, host, key string, port int, cipherList []string) (*ssh.Session, error)

func GetDefaultPrivateKeyFile

func GetDefaultPrivateKeyFile() string

func GetLogOfPod

func GetLogOfPod(rest *rest.RESTClient, namespace, name string, logOptions *corev1.PodLogOptions, out io.Writer) error

func GetServiceNodesIP

func GetServiceNodesIP(c client.Client, namespace, name string) ([]string, error)

func QuickConnectAndRun added in v0.1.0

func QuickConnectAndRun(host, cmd string) ([]byte, error)

func QuickConnectUsingDefaultSSHKey added in v0.1.0

func QuickConnectUsingDefaultSSHKey(host string) (*ssh.Session, error)

func WaitForController

func WaitForController(c client.Client, namespace, name string, retryInterval, timeout time.Duration) error

func WaitForDeletion

func WaitForDeletion(dynclient client.Client, obj runtime.Object, retryInterval, timeout time.Duration) error

Types

type LogInfo added in v0.1.0

type LogInfo struct {
	Level  string  `json:"level,omitempty"`
	TS     float64 `json:"ts,omitempty"`
	Logger string  `json:"logger,omitempty"`
	Msg    string  `json:"msg,omitempty"`
}

func ParseLog added in v0.1.0

func ParseLog(log string) *LogInfo

Jump to

Keyboard shortcuts

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