Documentation ¶
Index ¶
- Constants
- type CmdParams
- type DeleteCmdHistoryParam
- type DeleteGroupParam
- type DeleteHostParam
- type DeleteJobParam
- type DeletePlayBookParam
- type DeletePrivateKeyParam
- type DeleteQuicklyCommandParam
- type DeleteTagParam
- type DeleteTaskInstanceFrom
- type DeleteTunnelParam
- type File
- type FileTaskCancelForm
- type GetAllHostParam
- type GetGroupParam
- type GetHostParam
- type GetJobParam
- type GetJobsParam
- type GetPlayBookParam
- type GetPrivateKeyParam
- type GetQuicklyCommandParam
- type GetTagParam
- type GetTaskInstanceLogParam
- type GetTaskInstanceParam
- type GetTunnelParam
- type GetTunnelsParam
- type ImportResponse
- type MkdirParams
- type ModifyFileParams
- type OptionsFileParams
- type OptionsJobForm
- type Page
- type PageData
- type PostGroupForm
- type PostHostForm
- type PostJobForm
- type PostPlayBookForm
- type PostPrivateKeyForm
- type PostQuicklyCommandForm
- type PostTagForm
- type PostTunnelForm
- type PutGroupForm
- type PutHostForm
- type PutJobForm
- type PutPlayBookForm
- type PutPrivateKeyForm
- type PutQuicklyCommandForm
- type PutTagForm
- type PutTunnelForm
- type Response
- type SearchCmdHistoryParams
- type UploadResponse
Constants ¶
View Source
const ( ErrHostParseEmpty = "parse host array empty" RespTypeMsg = "msg" RespTypeError = "error" RespTypeData = "data" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteCmdHistoryParam ¶
type DeleteCmdHistoryParam struct {
Id int `uri:"id" binding:"required"`
}
type DeleteGroupParam ¶
type DeleteGroupParam struct {
Id int `uri:"id" binding:"required"`
}
type DeleteHostParam ¶
type DeleteHostParam struct {
Id int `uri:"id" binding:"required"`
}
type DeleteJobParam ¶
type DeleteJobParam struct {
Id int `uri:"id" binding:"required"`
}
type DeletePlayBookParam ¶
type DeletePlayBookParam struct {
Id int `uri:"id" binding:"required"`
}
type DeletePrivateKeyParam ¶
type DeletePrivateKeyParam struct {
Id int `uri:"id" binding:"required"`
}
type DeleteQuicklyCommandParam ¶
type DeleteQuicklyCommandParam struct {
Id int `uri:"id" binding:"required"`
}
type DeleteTagParam ¶
type DeleteTagParam struct {
Id int `uri:"id" binding:"required"`
}
type DeleteTaskInstanceFrom ¶
type DeleteTunnelParam ¶
type DeleteTunnelParam struct {
Id int `uri:"id" binding:"required"`
}
type FileTaskCancelForm ¶
type GetAllHostParam ¶
type GetAllHostParam struct {
Page
}
type GetGroupParam ¶
type GetGroupParam struct {
Id int `uri:"id" binding:"required"`
}
type GetHostParam ¶
type GetHostParam struct {
Id int `uri:"id" binding:"required"`
}
type GetJobParam ¶
type GetJobParam struct {
Id int `uri:"id" binding:"required"`
}
type GetJobsParam ¶
type GetJobsParam struct {
ExecuteId int `form:"execute_id"`
}
type GetPlayBookParam ¶
type GetPlayBookParam struct {
Id int `uri:"id" binding:"required"`
}
type GetPrivateKeyParam ¶
type GetPrivateKeyParam struct {
Id int `uri:"id" binding:"required"`
}
type GetQuicklyCommandParam ¶
type GetQuicklyCommandParam struct {
Id int `uri:"id" binding:"required"`
}
type GetTagParam ¶
type GetTagParam struct {
Id int `uri:"id" binding:"required"`
}
type GetTaskInstanceLogParam ¶
type GetTaskInstanceLogParam struct {
Id int `form:"id" binding:"required"`
}
type GetTaskInstanceParam ¶
type GetTunnelParam ¶
type GetTunnelParam struct {
Id int `uri:"id" binding:"required"`
}
type GetTunnelsParam ¶
type GetTunnelsParam struct {
HostId int `form:"host_id"`
}
type ImportResponse ¶
type MkdirParams ¶
type MkdirParams struct { OptionsFileParams Dir string `form:"dir" binding:"required"` }
type ModifyFileParams ¶
type ModifyFileParams struct { Id string `json:"id"` HostId int `json:"host_id" binding:"required"` ModifyContent string `json:"modify_content"` }
ModifyFileParams 解析修改文件接口使用
type OptionsFileParams ¶
type OptionsJobForm ¶
type OptionsJobForm struct {
Id int `form:"id" binding:"required"`
}
type PostGroupForm ¶
type PostHostForm ¶
type PostHostForm struct { HostName string `form:"hostname" binding:"required"` User string `form:"user" binding:"required"` Addr string `form:"addr" binding:"required,ip_addr|hostname"` Port int `form:"port" binding:"required,min=0,max=65535"` PassWord string `form:"password"` Group int `form:"group"` PrivateKeyId int `form:"private_key_id" binding:"required_without=PassWord"` Tags string `form:"tags"` VNCPort int `form:"vnc_port"` }
type PostJobForm ¶
type PostJobForm struct { Name string `form:"name" binding:"required"` Type string `form:"type" binding:"required"` Spec string `form:"spec"` Cmd string `form:"cmd"` CmdId int `form:"cmd_id"` CmdType string `form:"cmd_type" binding:"required"` ExecuteID int `form:"execute_id" binding:"required"` ExecuteType string `form:"execute_type" binding:"required"` }
type PostPlayBookForm ¶
type PostPrivateKeyForm ¶
type PostPrivateKeyForm struct { Name string `form:"name" binding:"required"` Passphrase string `form:"passphrase"` KeyFile *multipart.FileHeader `form:"key_file" binding:"required"` }
type PostQuicklyCommandForm ¶
type PostTagForm ¶
type PostTagForm struct {
Name string `form:"name" binding:"required"`
}
type PostTunnelForm ¶
type PutGroupForm ¶
type PutHostForm ¶
type PutHostForm struct { Id int `form:"id" binding:"required"` HostName string `form:"hostname"` User string `form:"user"` Addr string `form:"addr" binding:"len=0|ip_addr|hostname"` Port int `form:"port" binding:"min=0,max=65535"` PassWord string `form:"password"` Group int `form:"group"` PrivateKeyId int `form:"private_key_id"` Tags string `form:"tags"` VNCPort int `form:"vnc_port"` }
type PutJobForm ¶
type PutJobForm struct { Id int `form:"id" binding:"required"` Name string `form:"name"` Type string `form:"type"` Spec string `form:"spec"` Cmd string `form:"cmd"` CmdId int `form:"cmd_id"` CmdType string `form:"cmd_type"` ExecuteID int `form:"execute_id"` ExecuteType string `form:"execute_type"` }
type PutPlayBookForm ¶
type PutPrivateKeyForm ¶
type PutPrivateKeyForm struct { Id int `form:"id" binding:"required"` Name string `form:"name"` Passphrase string `form:"passphrase"` KeyFile *multipart.FileHeader `form:"key_file"` }
type PutQuicklyCommandForm ¶
type PutTagForm ¶
type PutTunnelForm ¶
type Response ¶
type Response struct { Code string `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data,omitempty"` Type string `json:"type"` // data msg error }
func GenerateDataResponse ¶
func GenerateErrorResponse ¶
func GenerateMsgResponse ¶
type SearchCmdHistoryParams ¶
type UploadResponse ¶
type UploadResponse struct {
Files []File `json:"files"`
}
Click to show internal directories.
Click to hide internal directories.