Documentation ¶
Index ¶
- func GetToken() string
- type Jreturn
- type Jslice
- type Juser
- type LoginResult
- type Salt
- type SaltController
- func (this *SaltController) GetKeyList()
- func (this *SaltController) KeyAccept()
- func (this *SaltController) KeyCopyFile()
- func (this *SaltController) KeyDelete()
- func (this *SaltController) KeyDeploy()
- func (this *SaltController) KeyPing()
- func (this *SaltController) KeyRun()
- func (this *SaltController) ResponseJson(httpCode, errCode int, data interface{})
- func (this *SaltController) URLMapping()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoginResult ¶
type SaltController ¶
type SaltController struct {
beego.Controller
}
salt
func (*SaltController) GetKeyList ¶
func (this *SaltController) GetKeyList()
@Title 获取salt节点 @Description 获取salt节点 @Success 200 {string} @Failure 404 body is empty @router /keylist [get]
func (*SaltController) KeyAccept ¶
func (this *SaltController) KeyAccept()
@Title 认证获取salt节点 @Description 认证获取salt节点 @Param match query string true "match" @Success 200 {string} @Failure 404 body is empty @router /keyaccept [post]
func (*SaltController) KeyCopyFile ¶
func (this *SaltController) KeyCopyFile()
@Title salt推送文件 @Description salt执行部署 @Param run query string true "run" @Param tgt query string true "match" @Param arg1 query string true "arg1" @Param arg2 query string true "arg1" @Success 200 {string} @Failure 404 body is empty @router /keycopy [post]
func (*SaltController) KeyDelete ¶
func (this *SaltController) KeyDelete()
@Title 认证获取salt节点 @Description 认证获取salt节点 @Param match query string false "match" @Success 200 {string} @Failure 404 body is empty @router /keydelete [post]
func (*SaltController) KeyDeploy ¶
func (this *SaltController) KeyDeploy()
@Title salt执行部署 @Description salt执行部署 @Param match query string true "match" @Param arg query string true "arg" @Success 200 {string} @Failure 404 body is empty @router /keydeploy [post]
func (*SaltController) KeyPing ¶
func (this *SaltController) KeyPing()
@Title 获取salt节点连通性 @Description 获取salt节点连通性 @Success 200 {string} @Failure 404 body is empty @router /keyping [get]
func (*SaltController) KeyRun ¶
func (this *SaltController) KeyRun()
@Title salt执行命令 @Description salt执行命令 @Param match query string false "match" @Param cmd query string false "cmd" @Success 200 {string} @Failure 404 body is empty @router /keyrun [post]
func (*SaltController) ResponseJson ¶
func (this *SaltController) ResponseJson(httpCode, errCode int, data interface{})
func (*SaltController) URLMapping ¶
func (this *SaltController) URLMapping()