Documentation ¶
Index ¶
- func AddAfterMatch(filepath, key, newvalue string) error
- func ChaosEngineVerdict(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
- func ChaosPodLogs(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
- func ChaosPodStatus(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
- func ChaosResultVerdict(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
- func CheckRunnerPodCreation(engineName, runnerNS string, clients environment.ClientSets) error
- func CreateChaosResource(fileData []byte, namespace string, clients environment.ClientSets) error
- func DownloadFile(filepath string, url string) error
- func EditFile(filepath, old, new string) error
- func EditKeyValue(filepath, key, oldvalue, newvalue string) error
- func GetUID(engineName, namespace string, clients environment.ClientSets) (string, error)
- func InstallChaosEngine(experimentsDetails *types.ExperimentDetails, chaosEngine *v1alpha1.ChaosEngine, ...) error
- func InstallLitmus(testsDetails *types.ExperimentDetails) error
- func InstallRbac(experimentsDetails *types.ExperimentDetails, rbacNamespace string) error
- func Int32Ptr(i int32) *int32
- func Kubectl(command ...string) error
- func PodStatusCheck(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
- func RunnerPodStatus(experimentsDetails *types.ExperimentDetails, runnerNamespace string, ...) error
- func WaitForChaosResultCompletion(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
- func WaitForEngineCompletion(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
- func WaitForRunnerCompletion(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
- type ENVDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAfterMatch ¶
AddAfterMatch will add a new line when a match is found
func ChaosEngineVerdict ¶
func ChaosEngineVerdict(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
ChaosEngineVerdict checks the chaosengine verdict
func ChaosPodLogs ¶
func ChaosPodLogs(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
ChaosPodLogs will print the experiment and helper pod logs
func ChaosPodStatus ¶
func ChaosPodStatus(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
ChaosPodStatus will check the creation of chaos pod
func ChaosResultVerdict ¶
func ChaosResultVerdict(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
ChaosResultVerdict checks the chaos result verdict
func CheckRunnerPodCreation ¶
func CheckRunnerPodCreation(engineName, runnerNS string, clients environment.ClientSets) error
CheckRunnerPodCreation will check for the create of runner pod
func CreateChaosResource ¶
func CreateChaosResource(fileData []byte, namespace string, clients environment.ClientSets) error
CreateChaosResource creates litmus components with given inputs
func DownloadFile ¶
DownloadFile will download a url to a local file. It's efficient because it will write as it downloads and not load the whole file into memory.
func EditKeyValue ¶
EditKeyValue will edit the value according to key content of the file
func GetUID ¶
func GetUID(engineName, namespace string, clients environment.ClientSets) (string, error)
GetUID will return the uid from chaosengine
func InstallChaosEngine ¶
func InstallChaosEngine(experimentsDetails *types.ExperimentDetails, chaosEngine *v1alpha1.ChaosEngine, experimentENVs *ENVDetails, clients environment.ClientSets) error
InstallChaosEngine installs the given go based chaos engine
func InstallLitmus ¶
func InstallLitmus(testsDetails *types.ExperimentDetails) error
InstallLitmus installs the latest version of litmus
func InstallRbac ¶
func InstallRbac(experimentsDetails *types.ExperimentDetails, rbacNamespace string) error
InstallGoRbac installs and configure rbac for running go based chaos
func PodStatusCheck ¶
func PodStatusCheck(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
PodStatusCheck checks the pod running status
func RunnerPodStatus ¶
func RunnerPodStatus(experimentsDetails *types.ExperimentDetails, runnerNamespace string, clients environment.ClientSets) error
RunnerPodStatus will check the runner pod running state
func WaitForChaosResultCompletion ¶
func WaitForChaosResultCompletion(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
WaitForChaosResultCompletion waits for chaosresult state to get completed
func WaitForEngineCompletion ¶
func WaitForEngineCompletion(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
WaitForEngineCompletion waits for engine state to get completed
func WaitForRunnerCompletion ¶
func WaitForRunnerCompletion(experimentsDetails *types.ExperimentDetails, clients environment.ClientSets) error
WaitForRunnerCompletion waits for runner pod completion
Types ¶
type ENVDetails ¶
ENVDetails contains the ENV details
func (*ENVDetails) SetEnv ¶
func (envDetails *ENVDetails) SetEnv(key, value string) *ENVDetails
SetEnv sets the env inside envDetails struct