Documentation ¶
Index ¶
- Constants
- func CreateClient(ctx context.Context, managerNamespace, managerSvc string) (*ctrlclient.CtrlClient, context.CancelFunc, error)
- func MarshalChaos(s interface{}) (string, error)
- func PrettyPrint(s string, indentLevel int, color Color)
- func PrintResult(result []*ChaosResult)
- type ChaosResult
- type ClientSet
- type Color
- type ItemResult
- type PodResult
Constants ¶
View Source
const ( ItemSuccess = iota + 1 ItemFailure )
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func CreateClient(ctx context.Context, managerNamespace, managerSvc string) (*ctrlclient.CtrlClient, context.CancelFunc, error)
func MarshalChaos ¶
MarshalChaos returns json in readable format
func PrettyPrint ¶
PrettyPrint print with tab number and color
func PrintResult ¶
func PrintResult(result []*ChaosResult)
PrintResult prints result to users in prettier format
Types ¶
type ChaosResult ¶
type ClientSet ¶
type ClientSet struct { CtrlCli client.Client KubeCli *kubernetes.Clientset }
ClientSet contains two different clients
func InitClientSet ¶
InitClientSet inits two different clients that would be used
type ItemResult ¶
type PodResult ¶
type PodResult struct { Name string Items []ItemResult }
Click to show internal directories.
Click to hide internal directories.