Documentation
¶
Index ¶
- func ExecuteCmd(Cmd string, cmdArgs []string) (stdout string, stderr string, exitCode int)
- func ExecuteCmdAndLogToConsole(command string, cmdArgs []string, cmdEnv []string) (stdout string, stderr string, err error)
- func ExecuteCmdWithEnv(Cmd string, cmdArgs []string, env []string) (stdout string, stderr string, exitCode int)
- func ExecuteCommand(cmdStruct objects.CommandArgs) objects.CommandOut
- type K8sHelper
- func (k8sh *K8sHelper) CleanUpDymaincCreatedPVC(blockList map[string]blockListData)
- func (k8sh *K8sHelper) GetService(servicename string) (string, error)
- func (k8sh *K8sHelper) IsPodRunning(name string) bool
- func (k8sh *K8sHelper) IsPodRunningInNamespace(name string) bool
- func (k8sh *K8sHelper) IsPodTerminated(name string) bool
- func (k8sh *K8sHelper) IsPodTerminatedInNamespace(name string) bool
- func (k8sh *K8sHelper) IsServiceUp(name string) bool
- func (k8sh *K8sHelper) IsServiceUpInNameSpace(name string) bool
- func (k8sh *K8sHelper) IsThirdPartyResourcePresent(tprname string) bool
- func (k8sh *K8sHelper) ResourceOperation(action string, poddefPath string) (string, error)
- func (k8sh *K8sHelper) ResourceOperationFromTemplate(action string, poddefPath string) (string, error)
- type ObjectBucketListData
- type ObjectConnectionData
- type ObjectUserData
- type ObjectUserListData
- type RookHelper
- func (rh *RookHelper) GetRgwServiceNodePort(rawdata string) (string, error)
- func (rh *RookHelper) ParseBlockListData(rawdata string) map[string]blockListData
- func (rh *RookHelper) ParseFileSystemData(rawdata string) fileSystemListData
- func (rh *RookHelper) ParserObjectBucketListData(rawdata string) map[string]ObjectBucketListData
- func (rh *RookHelper) ParserObjectConnectionData(rawdata string) ObjectConnectionData
- func (rh *RookHelper) ParserObjectUserData(rawdata string) ObjectUserData
- func (rh *RookHelper) ParserObjectUserListData(rawdata string) map[string]ObjectUserListData
- type S3Helper
- func (h *S3Helper) CreateBucket(name string) (bool, error)
- func (h *S3Helper) DeleteBucket(name string) (bool, error)
- func (h *S3Helper) DeleteObjectInBucket(bucketname string, key string) (bool, error)
- func (h *S3Helper) GetObjectInBucket(bucketname string, key string) (string, error)
- func (h *S3Helper) PutObjectInBucket(bucketname string, body string, key string, contentType string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCmd ¶
func ExecuteCmdAndLogToConsole ¶
func ExecuteCmdAndLogToConsole(command string, cmdArgs []string, cmdEnv []string) (stdout string, stderr string, err error)
TODO add timeout parameter
func ExecuteCmdWithEnv ¶
func ExecuteCommand ¶
func ExecuteCommand(cmdStruct objects.CommandArgs) objects.CommandOut
Types ¶
type K8sHelper ¶
type K8sHelper struct {
}
func CreatK8sHelper ¶
func CreatK8sHelper() *K8sHelper
func (*K8sHelper) CleanUpDymaincCreatedPVC ¶
func (*K8sHelper) GetService ¶
func (*K8sHelper) IsPodRunning ¶
func (*K8sHelper) IsPodRunningInNamespace ¶
func (*K8sHelper) IsPodTerminated ¶
TODO: Combine these like functions
func (*K8sHelper) IsPodTerminatedInNamespace ¶
TODO: Combine these like functions
func (*K8sHelper) IsServiceUp ¶
func (*K8sHelper) IsServiceUpInNameSpace ¶
func (*K8sHelper) IsThirdPartyResourcePresent ¶
func (*K8sHelper) ResourceOperation ¶
type ObjectBucketListData ¶
type ObjectConnectionData ¶
type ObjectUserData ¶
type ObjectUserListData ¶
type RookHelper ¶
type RookHelper struct {
}
func CreateRookHelper ¶
func CreateRookHelper() *RookHelper
func (*RookHelper) GetRgwServiceNodePort ¶
func (rh *RookHelper) GetRgwServiceNodePort(rawdata string) (string, error)
func (*RookHelper) ParseBlockListData ¶
func (rh *RookHelper) ParseBlockListData(rawdata string) map[string]blockListData
func (*RookHelper) ParseFileSystemData ¶
func (rh *RookHelper) ParseFileSystemData(rawdata string) fileSystemListData
func (*RookHelper) ParserObjectBucketListData ¶
func (rh *RookHelper) ParserObjectBucketListData(rawdata string) map[string]ObjectBucketListData
func (*RookHelper) ParserObjectConnectionData ¶
func (rh *RookHelper) ParserObjectConnectionData(rawdata string) ObjectConnectionData
func (*RookHelper) ParserObjectUserData ¶
func (rh *RookHelper) ParserObjectUserData(rawdata string) ObjectUserData
func (*RookHelper) ParserObjectUserListData ¶
func (rh *RookHelper) ParserObjectUserListData(rawdata string) map[string]ObjectUserListData
type S3Helper ¶
type S3Helper struct {
// contains filtered or unexported fields
}
func CreateNewS3Helper ¶
func (*S3Helper) DeleteObjectInBucket ¶
func (*S3Helper) GetObjectInBucket ¶
Click to show internal directories.
Click to hide internal directories.