dispatcher

package
v0.0.0-...-57c84ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL