Documentation
¶
Overview ¶
Package kit collect the basic tool for developer to develop a bk-plugin.
Index ¶
- type BKUser
- type BaseResponse
- type DebugPannelController
- type DetailController
- type DetailGetData
- type DetailGetResponse
- type InvokeController
- type InvokePostData
- type InvokePostParam
- type InvokePostResponse
- type LogGetData
- type LogsController
- type LogsGetResponse
- type MetaController
- type MetaGetData
- type MetaGetResponse
- type PluginApiBaseResponse
- type PluginApiController
- type PluginApiDispatchController
- type PluginApiDispatchParam
- type PluginApiDispatchResponse
- type ScheduleController
- type ScheduleGetData
- type ScheduleGetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type DebugPannelController ¶
type DebugPannelController struct {
beego.Controller
}
func (*DebugPannelController) Get ¶
func (c *DebugPannelController) Get()
type DetailController ¶
type DetailController struct {
web.Controller
}
func (*DetailController) Get ¶
func (c *DetailController) Get()
type DetailGetData ¶
type DetailGetResponse ¶
type DetailGetResponse struct {
*BaseResponse
Data *DetailGetData `json:"data"`
}
type InvokeController ¶
type InvokeController struct {
web.Controller
}
func (*InvokeController) Post ¶
func (c *InvokeController) Post()
type InvokePostData ¶
type InvokePostParam ¶
type InvokePostParam struct {
Inputs json.RawMessage `json:"inputs"`
Context json.RawMessage `json:"context"`
}
type InvokePostResponse ¶
type InvokePostResponse struct {
*BaseResponse
TraceID string `json:"trace_id"`
Data *InvokePostData `json:"data"`
}
type LogGetData ¶
type LogGetData struct {
Log string `json:"log"`
}
type LogsController ¶
type LogsController struct {
beego.Controller
}
func (*LogsController) Get ¶
func (c *LogsController) Get()
type LogsGetResponse ¶
type LogsGetResponse struct {
*BaseResponse
Data *LogGetData `json:"data"`
}
type MetaController ¶
type MetaController struct {
web.Controller
}
func (*MetaController) Get ¶
func (c *MetaController) Get()
type MetaGetData ¶
type MetaGetResponse ¶
type MetaGetResponse struct {
*BaseResponse
Data *MetaGetData `json:"data"`
}
type PluginApiBaseResponse ¶
type PluginApiController ¶
type PluginApiController struct {
beego.Controller
User BKUser
}
func (*PluginApiController) GetBkapiAuthorizationInfo ¶
func (p *PluginApiController) GetBkapiAuthorizationInfo() string
func (*PluginApiController) Prepare ¶
func (p *PluginApiController) Prepare()
type PluginApiDispatchController ¶ added in v0.6.0
type PluginApiDispatchController struct {
PluginApiController
}
func (*PluginApiDispatchController) FindController ¶ added in v0.6.0
func (c *PluginApiDispatchController) FindController(path string, method string) (string, bool)
func (*PluginApiDispatchController) Post ¶ added in v0.6.0
func (c *PluginApiDispatchController) Post()
type PluginApiDispatchParam ¶ added in v0.6.0
type PluginApiDispatchParam struct {
Url string `json:"url" form:"url"`
Method string `json:"method" form:"method"`
Username string `json:"username" form:"username"`
Data json.RawMessage `json:"data" form:"data"`
Files []*multipart.FileHeader `json:"-" form:"-"`
DumpedData string `json:"dumped_data" form:"dumped_data"`
}
type PluginApiDispatchResponse ¶ added in v0.6.0
type PluginApiDispatchResponse struct {
*BaseResponse
Data interface{} `json:"data"`
}
type ScheduleController ¶
type ScheduleController struct {
web.Controller
}
func (*ScheduleController) Get ¶
func (c *ScheduleController) Get()
type ScheduleGetData ¶
type ScheduleGetResponse ¶
type ScheduleGetResponse struct {
*BaseResponse
Data *ScheduleGetData `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.