接口:ExecResult

0.2.0

层级

方法

lines(): string[]

分割输出行。

返回

字符串[]

行列表。


解析JSON行

parseJsonLines(): any[]

将每行输出解析为 JSON 对象。

返回

任意[]

行列表,其中每行都是一个 JSON 对象。


解析JSON对象

parseJsonObject(): any

解析格式良好的 JSON 输出。

返回

任意

JSON 对象。

属性

命令

可选 只读 cmd: string

继承自

RawExecResult.cmd


被终止

可选 只读 killed: boolean

继承自

RawExecResult.killed


信号

可选 只读 signal: string

继承自

RawExecResult.signal


代码

可选 只读 code: number

继承自

RawExecResult.code


标准输出

只读 stdout: string

继承自

RawExecResult.stdout


标准错误

只读 stderr: string

继承自

RawExecResult.stderr

© . This site is unofficial and not affiliated with Kubernetes or Docker Inc.