Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginTypes = []Type{ PageApp, }
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct { VelaUXDependency string `json:"velauxDependency"` VelaUXVersion string `json:"velauxVersion"` Plugins []Dependency `json:"plugins"` }
type Dependency ¶
type Header ¶
Header describes an HTTP header that is forwarded with the proxied request for a plugin route
type Includes ¶
type Includes struct { Name string `json:"name"` Label string `json:"label"` To string `json:"to"` Type string `json:"type"` Icon string `json:"icon"` Workspace Workspace `json:"workspace"` Permission *Permission `json:"permission,omitempty"` RelatedRoute []string `json:"relatedRoute"` Catalog string `json:"catalog,omitempty"` }
type JSONData ¶
type JSONData struct { ID string `json:"id"` Type Type `json:"type"` Name string `json:"name"` Info Info `json:"info"` Dependencies Dependencies `json:"dependencies"` Includes []*Includes `json:"includes"` Category string `json:"category"` HideFromList bool `json:"hideFromList,omitempty"` Preload bool `json:"preload"` Backend bool `json:"backend"` Routes []*Route `json:"routes"` }
JSONData represents the plugin's plugin.json
type JWTTokenAuth ¶
type JWTTokenAuth struct { Url string `json:"url"` Scopes []string `json:"scopes"` Params map[string]string `json:"params"` }
JWTTokenAuth struct is both for normal Token Auth and JWT Token Auth with an uploaded JWT file.
type Permission ¶
type Plugin ¶
type Plugin struct { JSONData PluginDir string Class Class Pinned bool Children []*Plugin // SystemJS fields Module string BaseURL string }
func (*Plugin) IsCorePlugin ¶
func (*Plugin) IsExternalPlugin ¶
func (*Plugin) StaticRoute ¶
func (p *Plugin) StaticRoute() *StaticRoute
type PluginSource ¶
type Route ¶
type Route struct { Path string `json:"path"` Method string `json:"method"` URL string `json:"url"` URLParams []URLParam `json:"urlParams"` Headers []Header `json:"headers"` AuthType string `json:"authType"` TokenAuth *JWTTokenAuth `json:"tokenAuth"` JwtTokenAuth *JWTTokenAuth `json:"jwtTokenAuth"` Body json.RawMessage `json:"body"` }
Route describes a plugin route that is defined in the plugin.json file for a plugin.
type Screenshots ¶
type StaticRoute ¶
Click to show internal directories.
Click to hide internal directories.