Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IK8sModelDispatchHandler ¶
type IK8sModelDispatchHandler interface { dispatcher.IMiddlewareFilter Keyword() string KeywordPlural() string //List(ctx context.Context, query *jsonutils.JSONDict, ctxIds []dispatcher.SResourceContext) (*modulebase.ListResult, error) List(ctx *model.RequestContext, query *jsonutils.JSONDict) (*printutils.ListResult, error) Get(ctx *model.RequestContext, id string, query *jsonutils.JSONDict) (jsonutils.JSONObject, error) GetSpecific(ctx *model.RequestContext, id string, spec string, query *jsonutils.JSONDict) (jsonutils.JSONObject, error) Create(ctx *model.RequestContext, query, data *jsonutils.JSONDict) (jsonutils.JSONObject, error) PerformClassAction(ctx *model.RequestContext, action string, query, data *jsonutils.JSONDict) (jsonutils.JSONObject, error) PerformAction(ctx *model.RequestContext, id string, action string, query, data *jsonutils.JSONDict) (jsonutils.JSONObject, error) Update(ctx *model.RequestContext, id string, query, data *jsonutils.JSONDict) (jsonutils.JSONObject, error) Delete(ctx *model.RequestContext, id string, query, data *jsonutils.JSONDict) (jsonutils.JSONObject, error) GetRawData(ctx *model.RequestContext, id string, query *jsonutils.JSONDict) (jsonutils.JSONObject, error) UpdateRawData(ctx *model.RequestContext, id string, query, data *jsonutils.JSONDict) (jsonutils.JSONObject, error) }
type K8sModelDispatcher ¶
type K8sModelDispatcher struct {
// contains filtered or unexported fields
}
func NewK8sModelDispatcher ¶
func NewK8sModelDispatcher(prefix string, app *appsrv.Application) *K8sModelDispatcher
func (K8sModelDispatcher) Add ¶
func (d K8sModelDispatcher) Add(handler IK8sModelDispatchHandler)
Click to show internal directories.
Click to hide internal directories.