util

package
v0.0.0-...-d70c95a Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_HEALTHCHECK_QUERY = "SELECT 1;"

Variables

This section is empty.

Functions

func DataDirectory

func DataDirectory(target string) (string, error)

func ExecWithOptions

func ExecWithOptions(config *restclient.Config, client kubernetes.Clientset, options ExecOptions) (string, string, error)

func HealthCheck

func HealthCheck(target string) error

Types

type ExecOptions

type ExecOptions struct {
	Command []string

	Namespace     string
	PodName       string
	ContainerName string

	Stdin         io.Reader
	CaptureStdout bool
	CaptureStderr bool
	// If false, whitespace in std{err,out} will be removed.
	PreserveWhitespace bool
}

ExecOptions passed to ExecWithOptions

type Replica

type Replica struct {
	Name   string
	IP     string
	Status *ReplicationInfo
}

type ReplicationInfo

type ReplicationInfo struct {
	ReceiveLocation uint64
	ReplayLocation  uint64
}

func GetReplicationInfo

func GetReplicationInfo(target string) (*ReplicationInfo, error)

Jump to

Keyboard shortcuts

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