Documentation ¶
Index ¶
- Constants
- type ClusterApi
- func (c *ClusterApi) AllPoolList()
- func (b *ClusterApi) Body2Json(obj interface{}) error
- func (b *ClusterApi) CheckPage(page, pageSize *int)
- func (c *ClusterApi) ClusterAppend()
- func (c *ClusterApi) ClusterDelete()
- func (c *ClusterApi) ClusterInfo()
- func (c *ClusterApi) ClusterList()
- func (c *ClusterApi) ClusterUpdate()
- func (c *ClusterApi) NodeAppend()
- func (c *ClusterApi) NodeDelete()
- func (c *ClusterApi) NodeList()
- func (c *ClusterApi) PoolAppend()
- func (c *ClusterApi) PoolDelete()
- func (c *ClusterApi) PoolInfo()
- func (c *ClusterApi) PoolList()
- func (c *ClusterApi) PoolUpdate()
- func (b *ClusterApi) Query2Int(key string, def int) int
- func (b *ClusterApi) ReturnFailed(msg string, code int)
- func (b *ClusterApi) ReturnPageContent(page, page_size, count int, content interface{})
- func (b *ClusterApi) ReturnSuccess(content interface{})
- func (c *ClusterApi) SearchPoolByIP()
- func (c *ClusterApi) ServiceAppend()
- func (c *ClusterApi) ServiceDelete()
- func (c *ClusterApi) ServiceInfo()
- func (c *ClusterApi) ServiceList()
- func (c *ClusterApi) ServiceUpdate()
- func (c *ClusterApi) URLMapping()
- type ExecApi
- func (b *ExecApi) Body2Json(obj interface{}) error
- func (b *ExecApi) CheckPage(page, pageSize *int)
- func (c *ExecApi) DeployPool()
- func (c *ExecApi) ExpandPool()
- func (b *ExecApi) Query2Int(key string, def int) int
- func (b *ExecApi) ReturnFailed(msg string, code int)
- func (b *ExecApi) ReturnPageContent(page, page_size, count int, content interface{})
- func (b *ExecApi) ReturnSuccess(content interface{})
- func (c *ExecApi) ShrinkPool()
- func (e *ExecApi) URLMapping()
- type FlowApi
- func (c *FlowApi) AppendFlowImpl()
- func (b *FlowApi) Body2Json(obj interface{}) error
- func (b *FlowApi) CheckPage(page, pageSize *int)
- func (f *FlowApi) DeleteFlowImpl()
- func (c *FlowApi) FlowImplUpdate()
- func (f *FlowApi) GetFlow()
- func (c *FlowApi) GetFlowImpl()
- func (f *FlowApi) GetFlowLogById()
- func (f *FlowApi) GetLog()
- func (f *FlowApi) GetNodeStates()
- func (f *FlowApi) ListFlow()
- func (c *FlowApi) ListFlowImpl()
- func (f *FlowApi) ListTaskStep()
- func (f *FlowApi) PauseFlow()
- func (b *FlowApi) Query2Int(key string, def int) int
- func (b *FlowApi) ReturnFailed(msg string, code int)
- func (b *FlowApi) ReturnPageContent(page, page_size, count int, content interface{})
- func (b *FlowApi) ReturnSuccess(content interface{})
- func (f *FlowApi) RunFlow()
- func (f *FlowApi) StartFlow()
- func (f *FlowApi) StopFlow()
- func (f *FlowApi) URLMapping()
- type RemoteApi
- func (c *RemoteApi) ActionAppend()
- func (c *RemoteApi) ActionDelete()
- func (c *RemoteApi) ActionList()
- func (c *RemoteApi) ActionUpdate()
- func (b *RemoteApi) Body2Json(obj interface{}) error
- func (b *RemoteApi) CheckPage(page, pageSize *int)
- func (c *RemoteApi) GetAction()
- func (c *RemoteApi) GetRemoteActionImpl()
- func (c *RemoteApi) GetRemoteStep()
- func (b *RemoteApi) Query2Int(key string, def int) int
- func (c *RemoteApi) RemoteActionImplAppend()
- func (c *RemoteApi) RemoteActionImplDelete()
- func (c *RemoteApi) RemoteActionImplList()
- func (c *RemoteApi) RemoteActionImplUpdate()
- func (c *RemoteApi) RemoteStepAppend()
- func (c *RemoteApi) RemoteStepDelete()
- func (c *RemoteApi) RemoteStepList()
- func (c *RemoteApi) RemoteStepUpdate()
- func (b *RemoteApi) ReturnFailed(msg string, code int)
- func (b *RemoteApi) ReturnPageContent(page, page_size, count int, content interface{})
- func (b *RemoteApi) ReturnSuccess(content interface{})
- func (f *RemoteApi) URLMapping()
Constants ¶
const (
ANSIBLE = "ansible"
)
const (
HTTP_SUCCESS = 200
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterApi ¶
type ClusterApi struct {
// contains filtered or unexported fields
}
func (*ClusterApi) AllPoolList ¶
func (c *ClusterApi) AllPoolList()
func (*ClusterApi) Body2Json ¶
func (b *ClusterApi) Body2Json(obj interface{}) error
* read all request parameter to a struct
func (*ClusterApi) CheckPage ¶
func (b *ClusterApi) CheckPage(page, pageSize *int)
* check and modify wrong paging data
func (*ClusterApi) ClusterAppend ¶
func (c *ClusterApi) ClusterAppend()
func (*ClusterApi) ClusterDelete ¶
func (c *ClusterApi) ClusterDelete()
func (*ClusterApi) ClusterList ¶
func (c *ClusterApi) ClusterList()
func (*ClusterApi) ClusterUpdate ¶
func (c *ClusterApi) ClusterUpdate()
func (*ClusterApi) NodeAppend ¶
func (c *ClusterApi) NodeAppend()
func (*ClusterApi) NodeDelete ¶
func (c *ClusterApi) NodeDelete()
func (*ClusterApi) PoolAppend ¶
func (c *ClusterApi) PoolAppend()
func (*ClusterApi) PoolDelete ¶
func (c *ClusterApi) PoolDelete()
func (*ClusterApi) PoolList ¶
func (c *ClusterApi) PoolList()
func (*ClusterApi) PoolUpdate ¶
func (c *ClusterApi) PoolUpdate()
func (*ClusterApi) ReturnFailed ¶
* return request with fail info
func (*ClusterApi) ReturnPageContent ¶
func (b *ClusterApi) ReturnPageContent(page, page_size, count int, content interface{})
* return request with paged data
func (*ClusterApi) ReturnSuccess ¶
func (b *ClusterApi) ReturnSuccess(content interface{})
* return request with success and data
func (*ClusterApi) SearchPoolByIP ¶
func (c *ClusterApi) SearchPoolByIP()
func (*ClusterApi) ServiceAppend ¶
func (c *ClusterApi) ServiceAppend()
func (*ClusterApi) ServiceDelete ¶
func (c *ClusterApi) ServiceDelete()
func (*ClusterApi) ServiceList ¶
func (c *ClusterApi) ServiceList()
func (*ClusterApi) ServiceUpdate ¶
func (c *ClusterApi) ServiceUpdate()
func (*ClusterApi) URLMapping ¶
func (c *ClusterApi) URLMapping()
type ExecApi ¶
type ExecApi struct {
// contains filtered or unexported fields
}
func (*ExecApi) Body2Json ¶
func (b *ExecApi) Body2Json(obj interface{}) error
* read all request parameter to a struct
func (*ExecApi) CheckPage ¶
func (b *ExecApi) CheckPage(page, pageSize *int)
* check and modify wrong paging data
func (*ExecApi) DeployPool ¶
func (c *ExecApi) DeployPool()
func (*ExecApi) ExpandPool ¶
func (c *ExecApi) ExpandPool()
func (*ExecApi) ReturnFailed ¶
* return request with fail info
func (*ExecApi) ReturnPageContent ¶
func (b *ExecApi) ReturnPageContent(page, page_size, count int, content interface{})
* return request with paged data
func (*ExecApi) ReturnSuccess ¶
func (b *ExecApi) ReturnSuccess(content interface{})
* return request with success and data
func (*ExecApi) ShrinkPool ¶
func (c *ExecApi) ShrinkPool()
func (*ExecApi) URLMapping ¶
func (e *ExecApi) URLMapping()
type FlowApi ¶
type FlowApi struct {
// contains filtered or unexported fields
}
func (*FlowApi) Body2Json ¶
func (b *FlowApi) Body2Json(obj interface{}) error
* read all request parameter to a struct
func (*FlowApi) CheckPage ¶
func (b *FlowApi) CheckPage(page, pageSize *int)
* check and modify wrong paging data
func (*FlowApi) GetFlowLogById ¶
func (f *FlowApi) GetFlowLogById()
func (*FlowApi) GetNodeStates ¶
func (f *FlowApi) GetNodeStates()
func (*FlowApi) ReturnFailed ¶
* return request with fail info
func (*FlowApi) ReturnPageContent ¶
func (b *FlowApi) ReturnPageContent(page, page_size, count int, content interface{})
* return request with paged data
func (*FlowApi) ReturnSuccess ¶
func (b *FlowApi) ReturnSuccess(content interface{})
* return request with success and data
func (*FlowApi) URLMapping ¶
func (f *FlowApi) URLMapping()
type RemoteApi ¶
type RemoteApi struct {
// contains filtered or unexported fields
}
* * operation related with action and step
func (*RemoteApi) Body2Json ¶
func (b *RemoteApi) Body2Json(obj interface{}) error
* read all request parameter to a struct
func (*RemoteApi) CheckPage ¶
func (b *RemoteApi) CheckPage(page, pageSize *int)
* check and modify wrong paging data
func (*RemoteApi) GetRemoteActionImpl ¶
func (c *RemoteApi) GetRemoteActionImpl()
* * load RemoteActionImpl by id
func (*RemoteApi) RemoteActionImplAppend ¶
func (c *RemoteApi) RemoteActionImplAppend()
* * create new RemoteStepImpl
func (*RemoteApi) RemoteActionImplDelete ¶
func (c *RemoteApi) RemoteActionImplDelete()
* * remove single RemoteActionImplDelete by id
func (*RemoteApi) RemoteActionImplList ¶
func (c *RemoteApi) RemoteActionImplList()
* * load RemoteActionImpl by page
func (*RemoteApi) RemoteActionImplUpdate ¶
func (c *RemoteApi) RemoteActionImplUpdate()
* * update single RemoteActionImpl update by id
func (*RemoteApi) RemoteStepAppend ¶
func (c *RemoteApi) RemoteStepAppend()
* * create new RemoteStep
func (*RemoteApi) RemoteStepDelete ¶
func (c *RemoteApi) RemoteStepDelete()
* * remove single RemoteStep by id
func (*RemoteApi) RemoteStepUpdate ¶
func (c *RemoteApi) RemoteStepUpdate()
* * update single RemoteStep update by id
func (*RemoteApi) ReturnFailed ¶
* return request with fail info
func (*RemoteApi) ReturnPageContent ¶
func (b *RemoteApi) ReturnPageContent(page, page_size, count int, content interface{})
* return request with paged data
func (*RemoteApi) ReturnSuccess ¶
func (b *RemoteApi) ReturnSuccess(content interface{})
* return request with success and data
func (*RemoteApi) URLMapping ¶
func (f *RemoteApi) URLMapping()