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.
Click to show internal directories.
Click to hide internal directories.