util

package
v0.0.0-...-9a4260c Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CephExecCmdTimeout defines max delay time for exec
	CephExecCmdTimeout = 1 * time.Minute
	// CephCmdTimeout defines max delay time for ceph
	CephCmdTimeout = "50"
)
View Source
const (
	// PathGlobalConfigDir is global directory path of ceph config
	PathGlobalConfigDir = "/working/config/"
	// CephConfName is filename of ceph conf file
	CephConfName = "ceph.conf"
	// CephKeyringName is filename of ceph keyring file
	CephKeyringName = "ceph.client.admin.keyring"
	// K8sConfigMapSuffix is suffix for the k8s configmap name
	K8sConfigMapSuffix = "-conf"
	// K8sSecretSuffix is suffix for the k8s secret name
	K8sSecretSuffix = "-keyring"
)

Variables

This section is empty.

Functions

func RunCephCmd

func RunCephCmd(os wrapper.OsInterface, exec wrapper.ExecInterface, ioUtil wrapper.IoUtilInterface,
	cephConf, cephKeyring []byte, cephName string, cmdQuery ...string) (bytes.Buffer, error)

RunCephCmd extracts ceph access info from k8s configmap, secret and executes command to ceph

Types

This section is empty.

Jump to

Keyboard shortcuts

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