Documentation
¶
Index ¶
- func GetEtcdClient(ctx context.Context, namespacedName types.NamespacedName) (*clientv3.Client, error)
- func GetK8sClient(ctx context.Context) (controller.EtcdClusterReconciler, error)
- func GetNonEmptyLines(output string) []string
- func GetProjectDir() (string, error)
- func IsEtcdClusterHealthy(ctx context.Context, client *clientv3.Client) (bool, error)
- func Run(cmd *exec.Cmd) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEtcdClient ¶ added in v0.2.0
func GetK8sClient ¶ added in v0.3.0
func GetK8sClient(ctx context.Context) (controller.EtcdClusterReconciler, error)
func GetNonEmptyLines ¶
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
func GetProjectDir ¶
GetProjectDir will return the directory where the project is
func IsEtcdClusterHealthy ¶ added in v0.2.0
IsEtcdClusterHealthy checks etcd cluster health.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.