Documentation ¶
Index ¶
Constants ¶
View Source
const ( // byteman rule template SimpleRuleTemplate = ` RULE {{.Name}} CLASS {{.Class}} METHOD {{.Method}} AT ENTRY IF true DO {{.Do}}; ENDRULE ` CompleteRuleTemplate = `` /* 135-byte string literal not displayed */ // for action 'mysql', 'gc' and 'stress' SQLHelper = "org.chaos_mesh.byteman.helper.SQLHelper" GCHelper = "org.chaos_mesh.byteman.helper.GCHelper" StressHelper = "org.chaos_mesh.byteman.helper.StressHelper" // the trigger point for 'gc' and 'stress' TriggerClass = "org.chaos_mesh.chaos_agent.TriggerThread" TriggerMethod = "triggerFunc" MySQL5InjectClass = "com.mysql.jdbc.MysqlIO" MySQL5InjectMethod = "sqlQueryDirect" MySQL5Exception = "java.sql.SQLException(\"%s\")" MySQL8InjectClass = "com.mysql.cj.NativeSession" MySQL8InjectMethod = "execSQL" MySQL8Exception = "com.mysql.cj.exceptions.CJException(\"%s\")" )
Variables ¶
Functions ¶
func NewImpl ¶
func NewImpl(c client.Client, decoder *utils.ContainerRecordDecoder, log logr.Logger) *impltypes.ChaosImplPair
Object would return the instance of chaos
Types ¶
type BytemanTemplateSpec ¶
type BytemanTemplateSpec struct { Name string Class string Method string Helper string Bind string Condition string Do string // below is only used for stress template StressType string StressValueName string StressValue string }
BytemanTemplateSpec is the template spec for byteman rule
type Impl ¶
type JVMRuleParameter ¶
type JVMRuleParameter struct { v1alpha1.JVMParameter StressType string StressValue string StressValueName string Do string }
JVMRuleParameter is only used to generate rule data
Click to show internal directories.
Click to hide internal directories.