Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResult ¶
type APIResult struct { EventID string `json:"event_id"` ImageName string `json:"image_name,omitempty"` SlugPath string `json:"slug_path,omitempty"` }
APIResult 分享接口返回
type PluginResult ¶
PluginResult share plugin api return
type PluginShare ¶
type PluginShare struct { // in: path // required: true // required: true PluginID string `json:"plugin_id"` Body struct { //in: body //应用分享Key PluginKey string `json:"plugin_key" validate:"plugin_key|required"` PluginVersion string `json:"plugin_version" validate:"plugin_version|required"` EventID string `json:"event_id"` ShareUser string `json:"share_user"` ShareScope string `json:"share_scope"` ImageInfo struct { HubURL string `json:"hub_url" validate:"hub_url|required"` HubUser string `json:"hub_user"` HubPassword string `json:"hub_password"` Namespace string `json:"namespace" validate:"namespace|required"` IsTrust bool `json:"is_trust,omitempty" validate:"is_trust"` } `json:"image_info,omitempty"` } }
PluginShare PluginShare
type PluginShareHandle ¶
type PluginShareHandle struct {}
PluginShareHandle plugin share
func (*PluginShareHandle) Share ¶
func (s *PluginShareHandle) Share(ss PluginShare) (*PluginResult, *util.APIHandleError)
Share 分享应用
func (*PluginShareHandle) ShareResult ¶
func (s *PluginShareHandle) ShareResult(shareID string) (i exector.ShareStatus, e *util.APIHandleError)
ShareResult 分享应用结果查询
type ServiceShareHandle ¶
type ServiceShareHandle struct {}
ServiceShareHandle service share
func (*ServiceShareHandle) Share ¶
func (s *ServiceShareHandle) Share(serviceID string, ss api_model.ServiceShare) (*APIResult, *util.APIHandleError)
Share 分享应用
func (*ServiceShareHandle) ShareResult ¶
func (s *ServiceShareHandle) ShareResult(shareID string) (i exector.ShareStatus, e *util.APIHandleError)
ShareResult 分享应用结果查询
Click to show internal directories.
Click to hide internal directories.