utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEtcdClient added in v0.2.0

func GetEtcdClient(endpoints []string) *clientv3.Client

GetEtcdClient creates client for interacting with etcd.

func GetFreePort added in v0.2.0

func GetFreePort() (port int, err error)

GetFreePort asks the kernel for a free open port that is ready to use.

func GetNonEmptyLines

func GetNonEmptyLines(output string) []string

GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.

func GetProjectDir

func GetProjectDir() (string, error)

GetProjectDir will return the directory where the project is

func IsEtcdClusterHealthy added in v0.2.0

func IsEtcdClusterHealthy(endpoints []string) bool

IsEtcdClusterHealthy checks etcd cluster health.

func Run

func Run(cmd *exec.Cmd) ([]byte, error)

Run executes the provided command within this context

Types

This section is empty.

Jump to

Keyboard shortcuts

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