Documentation ¶
Index ¶
- Constants
- func Attach(port string, javaHome string, pid string) (*spec.Response, string)
- func CheckFlagValues(processName, processId string) (string, *spec.Response)
- func CheckPortFromSandboxToken(username string) (port string, err error)
- func Detach(port string) *spec.Response
- func Prepare(processName, processId string) (response *spec.Response, port string)
- func Revoke(record *data.PreparationRecord, processName, processId string) *spec.Response
- type Executor
Constants ¶
View Source
const DefaultNamespace = "default"
View Source
const DefaultUri = "sandbox/default/module/http/chaosblade"
Variables ¶
This section is empty.
Functions ¶
func CheckFlagValues ¶ added in v0.3.0
checkFlagValues query pre-record from sqlite by process name or process id 1. The process and pid are not empty, then the process is used to find the process. If the process id and the found process are not found, the error is returned. 2. Process is empty, pid is not empty, then determine if the pid process exists 3. Process is not empty, pid is empty, then it is judged whether the process exists, there is no error, and the process id is assigned to pid. 4. Process and pid are both empty, then an error is returned.
func CheckPortFromSandboxToken ¶ added in v0.2.0
CheckPortFromSandboxToken will read last line and curl the port for testing connectivity
Types ¶
type Executor ¶
type Executor struct { Uri string // contains filtered or unexported fields }
Executor for jvm experiment
func NewExecutor ¶
func NewExecutor() *Executor
func (*Executor) QueryStatus ¶ added in v0.2.0
func (*Executor) SetChannel ¶
Click to show internal directories.
Click to hide internal directories.