Documentation
¶
Index ¶
Constants ¶
View Source
const ( // methods to manage exec life cycle CreateMethod = "create" CheckMethod = "check" ResizeMethod = "resize" ListContainersMethod = "listContainers" )
Constants that represent RPC methods identifiers.
View Source
const (
// BearerTokenAttr attribute name.
BearerTokenAttr = "bearerToken"
)
Variables ¶
View Source
var RPCRoutes = jsonrpc.RoutesGroup{ Name: "Json-rpc MachineExec Routes", Items: []jsonrpc.Route{ { Method: CreateMethod, Decode: jsonrpc.FactoryDec(func() interface{} { return &model.MachineExec{} }), Handle: jsonRpcCreateExec, }, { Method: CheckMethod, Decode: jsonrpc.FactoryDec(func() interface{} { return &IdParam{} }), Handle: jsonRpcCheckExec, }, { Method: ResizeMethod, Decode: jsonrpc.FactoryDec(func() interface{} { return &ResizeParam{} }), Handle: jsonrpc.HandleRet(jsonRpcResizeExec), }, { Method: ListContainersMethod, Decode: jsonrpc.FactoryDec(func() interface{} { return nil }), Handle: jsonRpcListContainersExec, }, }, }
RPCRoutes defines json-rpc exec api. This api uses to manage exec's life cycle.
Functions ¶
This section is empty.