api

package
v0.0.0-...-6bb069b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2022 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ANSIBLE = "ansible"
)
View Source
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) ClusterInfo

func (c *ClusterApi) ClusterInfo()

集群管理

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) NodeList

func (c *ClusterApi) NodeList()

节点管理

func (*ClusterApi) PoolAppend

func (c *ClusterApi) PoolAppend()

func (*ClusterApi) PoolDelete

func (c *ClusterApi) PoolDelete()

func (*ClusterApi) PoolInfo

func (c *ClusterApi) PoolInfo()

服务池管理

func (*ClusterApi) PoolList

func (c *ClusterApi) PoolList()

func (*ClusterApi) PoolUpdate

func (c *ClusterApi) PoolUpdate()

func (*ClusterApi) Query2Int

func (b *ClusterApi) Query2Int(key string, def int) int

* get int request parameter

func (*ClusterApi) ReturnFailed

func (b *ClusterApi) ReturnFailed(msg string, code int)

* 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) ServiceInfo

func (c *ClusterApi) ServiceInfo()

服务管理

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) Query2Int

func (b *ExecApi) Query2Int(key string, def int) int

* get int request parameter

func (*ExecApi) ReturnFailed

func (b *ExecApi) ReturnFailed(msg string, code int)

* 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) AppendFlowImpl

func (c *FlowApi) AppendFlowImpl()

* Create a new task template

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) DeleteFlowImpl

func (f *FlowApi) DeleteFlowImpl()

删除FlowImpl

func (*FlowApi) FlowImplUpdate

func (c *FlowApi) FlowImplUpdate()

update flow

func (*FlowApi) GetFlow

func (f *FlowApi) GetFlow()

func (*FlowApi) GetFlowImpl

func (c *FlowApi) GetFlowImpl()

* * load flowimpl by id

func (*FlowApi) GetFlowLogById

func (f *FlowApi) GetFlowLogById()

func (*FlowApi) GetLog

func (f *FlowApi) GetLog()

GetLog get log using nodeState Id

func (*FlowApi) GetNodeStates

func (f *FlowApi) GetNodeStates()

func (*FlowApi) ListFlow

func (f *FlowApi) ListFlow()

func (*FlowApi) ListFlowImpl

func (c *FlowApi) ListFlowImpl()

列出TaskImpl

func (*FlowApi) ListTaskStep

func (f *FlowApi) ListTaskStep()

列出可用ActionImpl

func (*FlowApi) PauseFlow

func (f *FlowApi) PauseFlow()

func (*FlowApi) Query2Int

func (b *FlowApi) Query2Int(key string, def int) int

* get int request parameter

func (*FlowApi) ReturnFailed

func (b *FlowApi) ReturnFailed(msg string, code int)

* 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) RunFlow

func (f *FlowApi) RunFlow()

func (*FlowApi) StartFlow

func (f *FlowApi) StartFlow()

func (*FlowApi) StopFlow

func (f *FlowApi) StopFlow()

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) ActionAppend

func (c *RemoteApi) ActionAppend()

* * create new action

func (*RemoteApi) ActionDelete

func (c *RemoteApi) ActionDelete()

* * remove single action by id

func (*RemoteApi) ActionList

func (c *RemoteApi) ActionList()

* * load actions by page

func (*RemoteApi) ActionUpdate

func (c *RemoteApi) ActionUpdate()

* * update single action by id

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) GetAction

func (c *RemoteApi) GetAction()

* * load action by id

func (*RemoteApi) GetRemoteActionImpl

func (c *RemoteApi) GetRemoteActionImpl()

* * load RemoteActionImpl by id

func (*RemoteApi) GetRemoteStep

func (c *RemoteApi) GetRemoteStep()

* * load RemoteStep by id

func (*RemoteApi) Query2Int

func (b *RemoteApi) Query2Int(key string, def int) int

* get int request parameter

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) RemoteStepList

func (c *RemoteApi) RemoteStepList()

* * load RemoteStep by page

func (*RemoteApi) RemoteStepUpdate

func (c *RemoteApi) RemoteStepUpdate()

* * update single RemoteStep update by id

func (*RemoteApi) ReturnFailed

func (b *RemoteApi) ReturnFailed(msg string, code int)

* 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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL