Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunBackup ¶
func RunBackup(backup *backupservice.Backupresult) error
RunBackup executs a backup job
func StartRestore ¶
func StartRestore(restore *restoreservice.Restoreresult, logger *log.Logger) error
StartRestore command is the invoked to start restoring from backup
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func NewAPIClient ¶
NewAPIClient allow users to get a way to interact with Openshift
func (*APIClient) Client ¶
func (r *APIClient) Client() *kubernetes.Clientset
Client returns the kubernetes clientsets
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is used to convert a command of type vstring of slice into a string to send over a REST API
type ExecOptions ¶
ExecOptions provides options to be used when executing commands in poda
type ExecResponse ¶
type ExecResponse struct {
// contains filtered or unexported fields
}
ExecResponse provides a mechanism for an executed command to return output following the completion of a command
func ExecuteCommand ¶
func ExecuteCommand(options ExecOptions) (*ExecResponse, error)
ExecuteCommand takes a command and runs it on a specific pod
func (*ExecResponse) Error ¶
func (r *ExecResponse) Error() string
Error method returns error in string format
func (*ExecResponse) Output ¶
func (r *ExecResponse) Output() string
Output returns the command output in string format
Click to show internal directories.
Click to hide internal directories.