Documentation
¶
Index ¶
Constants ¶
View Source
const ( QueryCreate = "create" QueryDestroy = "destroy" DefaultWaitingTime = "20s" )
View Source
const ResourceName = "chaosblades"
Variables ¶
View Source
var KubeConfigFlag = &spec.ExpFlag{
Name: "kubeconfig",
Desc: "kubeconfig file",
}
View Source
var WaitingTimeFlag = &spec.ExpFlag{
Name: "waiting-time",
Desc: "Waiting time for invoking, default value is 20s",
}
Functions ¶
func NewCommandModelSpec ¶ added in v0.4.0
func NewCommandModelSpec() spec.ExpModelCommandSpec
func NewExecutor ¶ added in v0.4.0
Types ¶
type ChaosBladeV1Alpha1Client ¶ added in v0.4.0
type ChaosBladeV1Alpha1Client struct {
// contains filtered or unexported fields
}
type CommandModelSpec ¶
type CommandModelSpec struct {
spec.BaseExpModelCommandSpec
}
func (*CommandModelSpec) Example ¶
func (*CommandModelSpec) Example() string
func (*CommandModelSpec) LongDesc ¶
func (*CommandModelSpec) LongDesc() string
func (*CommandModelSpec) Name ¶
func (*CommandModelSpec) Name() string
func (*CommandModelSpec) ShortDesc ¶
func (*CommandModelSpec) ShortDesc() string
type StatusResult ¶ added in v0.4.0
type StatusResult struct { Uid string `json:"uid"` Success bool `json:"success"` Error string `json:"error"` Statuses []v1alpha1.ResourceStatus `json:"statuses"` }
func CreateConfirmDestroyedStatusResult ¶ added in v0.4.0
func CreateConfirmDestroyedStatusResult(uid string) StatusResult
func CreateConfirmFailedStatusResult ¶ added in v0.4.0
func CreateConfirmFailedStatusResult(uid, errMsg string) StatusResult
func CreateStatusResult ¶ added in v0.4.0
func CreateStatusResult(uid string, success bool, errMsg string, expStatus []v1alpha1.ExperimentStatus) StatusResult
Click to show internal directories.
Click to hide internal directories.