Versions in this module Expand all Collapse all v1 v1.6.1 Jul 9, 2019 Changes in this version + const SessionTimeoutMinutes + func ApplyAuthMiddlewares(req *restful.Request, rsp *restful.Response, in *rest.FrontSessionRequest, ...) error + func ApplyBootConfModifiers(bootConf *BootConf) error + func ApplyEnrollMiddlewares(endpoint string, req *restful.Request, rsp *restful.Response) bool + func ApplyPluginModifiers(ctx context.Context, status RequestStatus, plugin Plugin) error + func ApplyRegModifiers(ctx context.Context, status RequestStatus, registry *Cpydio_registry) error + func GetSessionStore() sessions.Store + func NewIndexFile(rootList []string) http.File + func NewSessionWrapper(h http.Handler, excludes ...string) http.Handler + func RegisterBootConfModifier(modifier BootConfModifier) + func RegisterEnrollMiddleware(endpoint string, middleware EnrollMiddlewareFunc) + func RegisterPluginBoxes(boxes ...PluginBox) + func RegisterPluginModifier(modifier PluginModifier) + func RegisterRegModifier(modifier RegistryModifier) + func VersionHash() string + func WrapAuthMiddleware(middleware func(middleware AuthMiddleware) AuthMiddleware) + type AuthMiddleware func(req *restful.Request, rsp *restful.Response, in *rest.FrontSessionRequest, ...) error + type BackendConf struct + BuildRevision string + BuildStamp string + License string + PackageLabel string + PackageType string + Version string + type BootConf struct + AjxpImagesCommon bool + AjxpResourcesFolder string + AjxpServerAccess string + AjxpVersion string + AjxpVersionDate string + AvailableLanguages map[string]string + Backend BackendConf + Client_timeout int + Client_timeout_warning int + CurrentLanguage string + CustomWording CustomWording + ENDPOINT_REST_API string + ENDPOINT_S3_GATEWAY string + ENDPOINT_WEBSOCKET string + FRONTEND_URL string + I18nMessages map[string]string + LoggedUser bool + MultipleFilesDownloadEnabled bool + Other map[string]interface{} + PUBLIC_BASEURI string + Session_timeout int + Theme string + UsersEditable bool + UsersEnabled bool + ValidMailer bool + ZipEnabled bool + func ComputeBootConf(pool *PluginsPool, showVersion ...bool) *BootConf + type BootConfModifier func(bootConf *BootConf) error + type Caction struct + AttrctrlDragndropDefault string + AttrdirDefault string + AttrdragndropDefault string + AttrexpireDefault string + AttrfileDefault string + Attrname string + AttrskipSecureToken string + Cgui *Cgui + Cpost_processing *Cpost_processing + Cpre_processing *Cpre_processing + Cprocessing []*Cprocessing + CrightsContext *CrightsContext + CsubMenu *CsubMenu + XMLName xml.Name + type Cactions struct + Caction []*Caction + XMLName xml.Name + func (c *Cactions) MergeActions(actions []*Caction) + type CactiveCondition struct + Cdata string + XMLName xml.Name + type CactivePlugin struct + AttrpluginName string + XMLName xml.Name + type Cactive_repo struct + Attrid string + XMLName xml.Name + type Cadditional_column struct + AttrattributeName string + AttrdefaultVisibilty string + AttrmessageId string + AttrmessageString string + AttrmetaAdditional string + AttrreactModifier string + AttrsortType string + XMLName xml.Name + type Cadmin_data struct + Cajxpcore *Cajxpcore + Cplugin_settings_values *Cplugin_settings_values + XMLName xml.Name + type Cajxpcore struct + Attrdescription string + Attrid string + Attrlabel string + Cclient_settings *Cclient_settings + Cplugin_configs *Cplugin_configs + Cserver_settings *Cserver_settings + XMLName xml.Name + type Cajxpdriver struct + XMLName xml.Name + type Cclass_definition struct + Attrclassname string + Attrfilename string + XMLName xml.Name + type CclientCallback struct + Attrmodule string + Cdata string + XMLName xml.Name + type CclientForm struct + Attrid string + Attrmodule string + Cdata string + XMLName xml.Name + type CclientListener struct + Attrmodule string + Attrname string + XMLName xml.Name + type Cclient_configs struct + AttruuidAttr string + Ccomponent_config []*Ccomponent_config + Ctemplate []*Ctemplate + Ctemplate_part []*Ctemplate_part + XMLName xml.Name + type Cclient_settings struct + Attrdescription_template string + Attricon string + AttriconClass string + Cnode_provider *Cnode_provider + Cresources *Cresources + XMLName xml.Name + type Ccolumn struct + AttrattributeName string + AttrdefaultVisibilty string + AttrdefaultWidth string + AttrmessageId string + Attrmodifier string + AttrsortType string + XMLName xml.Name + type Ccolumns struct + AttrswitchGridMode string + Cadditional_column []*Cadditional_column + Ccolumn []*Ccolumn + XMLName xml.Name + type Ccomponent_config struct + Attrcomponent string + Ccolumns *Ccolumns + CinfoPanel []*CinfoPanel + Cmodifier []*Cmodifier + Cproperty []*Cproperty + XMLName xml.Name + type Ccontext struct + AttractionBar string + AttractionBarGroup string + Attrbehaviour string + AttrcontextMenu string + Attrdir string + AttrinZip string + AttrinfoPanel string + Attrrecycle string + Attrselection string + XMLName xml.Name + type Ccore_relation struct + Attrpackaged string + Attrtested_version string + XMLName xml.Name + type Ccss struct + Attrautoload string + Attrfile string + XMLName xml.Name + type Cdependencies struct + CactivePlugin *CactivePlugin + CpluginClass *CpluginClass + CpluginResources *CpluginResources + XMLName xml.Name + type Cdescription struct + Cdata string + XMLName xml.Name + type CdynamicBuilder struct + Attrmodule string + XMLName xml.Name + type Ceditor struct + Attractions string + AttrcanWrite string + AttrclassName string + AttrformId string + AttriconClass string + Attrmimes string + Attropenable string + Attrorder string + AttrpreviewProvider string + Attrtext string + Attrtitle string + CclientForm *CclientForm + Cprocessing []*Cprocessing + XMLName xml.Name + type Cextension struct + Attrfont string + Attricon string + AttrmessageId string + Attrmime string + XMLName xml.Name + type CextensionOnInit struct + Cdata string + XMLName xml.Name + type Cextensions struct + Cextension []*Cextension + XMLName xml.Name + type Cglobal_param struct + Attrchoices string + Attrdefault string + AttrdefaultImage string + Attrdescription string + Attreditable string + Attrexpose string + Attrgroup string + Attrlabel string + AttrloadAction string + Attrmandatory string + Attrname string + Attrtype string + AttruploadAction string + XMLName xml.Name + type Cgui struct + AttraccessKey string + AttrhasAccessKey string + AttriconClass string + AttrspecialAccessKey string + Attrtext string + Attrtitle string + Attrweight string + Ccontext *Ccontext + CselectionContext *CselectionContext + XMLName xml.Name + type Ci18n struct + Attrnamespace string + Attrpath string + Attrremote string + XMLName xml.Name + type CinfoPanel struct + Attrmime string + AttrreactComponent string + Attrtheme string + Attrweight string + XMLName xml.Name + type Cinput_param struct + Attrdefault string + Attrdescription string + Attrmandatory string + Attrname string + Attrtype string + XMLName xml.Name + type Cjs struct + AttrclassName string + Attrdepends string + Attrexpose string + AttrfallbackCondition string + AttrfallbackFile string + Attrfile string + XMLName xml.Name + type Clabel struct + Cdata string + XMLName xml.Name + type Cmeta struct + XMLName xml.Name + type Cmodifier struct + Attrmodule string + XMLName xml.Name + type Cnode_provider struct + AttrajxpClass string + AttrajxpOptions string + XMLName xml.Name + type Coutput struct + Attrtype string + XMLName xml.Name + type Cparam struct + Attrname string + Attrscope string + Attrvalue string + XMLName xml.Name + type Cplugin struct + Attrdescription string + Attrenabled string + Attrid string + Attrlabel string + Attrname string + Cclient_settings *Cclient_settings + Cdependencies *Cdependencies + Cplugin_configs *Cplugin_configs + Cplugin_info *Cplugin_info + Cregistry_contributions *Cregistry_contributions + Cserver_settings *Cserver_settings + XMLName xml.Name + func (plugin *Cplugin) AlwaysEnabled() bool + func (plugin *Cplugin) DefaultEnabled() bool + func (plugin *Cplugin) DefaultParameters() map[string]interface{} + func (plugin *Cplugin) ExposeConfigs(c map[string]interface{}) + func (plugin *Cplugin) FilterActions(status RequestStatus, pool *PluginsPool, actions []*Caction) (output []*Caction) + func (plugin *Cplugin) GetClientSettings() *Cclient_settings + func (plugin *Cplugin) GetDependencies() *Cdependencies + func (plugin *Cplugin) GetDescription() string + func (plugin *Cplugin) GetEnabled() string + func (plugin *Cplugin) GetId() string + func (plugin *Cplugin) GetLabel() string + func (plugin *Cplugin) GetName() string + func (plugin *Cplugin) GetPluginConfigs() *Cplugin_configs + func (plugin *Cplugin) GetPluginInfo() *Cplugin_info + func (plugin *Cplugin) GetRegistryContributions() *Cregistry_contributions + func (plugin *Cplugin) GetServerSettings() *Cserver_settings + func (plugin *Cplugin) ListDependencies() (ids []string) + func (plugin *Cplugin) PluginConfig(status RequestStatus, param *Cglobal_param) interface{} + func (plugin *Cplugin) PluginConfigs(status RequestStatus) map[string]interface{} + func (plugin *Cplugin) PluginEnabled(status RequestStatus) bool + func (plugin *Cplugin) Translate(messages I18nMessages) + type CpluginClass struct + AttrpluginName string + XMLName xml.Name + type CpluginResources struct + AttrpluginName string + XMLName xml.Name + type Cplugin_author struct + XMLName xml.Name + type Cplugin_configs struct + Cproperty []*Cproperty + XMLName xml.Name + type Cplugin_info struct + Ccore_relation *Ccore_relation + Cplugin_author *Cplugin_author + Cplugin_uri *Cplugin_uri + Cplugin_version *Cplugin_version + XMLName xml.Name + type Cplugin_settings_values struct + Cparam []*Cparam + XMLName xml.Name + type Cplugin_uri struct + Cdata string + XMLName xml.Name + type Cplugin_version struct + Cdata string + XMLName xml.Name + type Cplugins struct + AttruuidAttr string + Cajxpdriver []*Cajxpdriver + Ceditor []*Ceditor + Cmeta []*Cmeta + Cplugin []*Cplugin + Cuploader []*Cuploader + XMLName xml.Name + type Cpost_processing struct + XMLName xml.Name + type Cpre_processing struct + XMLName xml.Name + type Cpref struct + Attrname string + AttrpluginId string + Attrvalue string + Cdata string + XMLName xml.Name + type Cpreferences struct + Cpref []*Cpref + XMLName xml.Name + type Cprocessing struct + CactiveCondition *CactiveCondition + CclientCallback *CclientCallback + CclientForm *CclientForm + CclientListener *CclientListener + CextensionOnInit *CextensionOnInit + CserverCallback *CserverCallback + XMLName xml.Name + type Cproperty struct + Attrname string + Attrvalue string + Cdata string + XMLName xml.Name + type Cpydio_registry struct + Cactions *Cactions + Cclient_configs *Cclient_configs + Cextensions *Cextensions + Cplugins *Cplugins + Cuser *Cuser + XMLName xml.Name + type Cregistry_contributions struct + Cactions *Cactions + Cclient_configs *Cclient_configs + Cextensions *Cextensions + XMLName xml.Name + type Crepo struct + Attraccess_type string + Attracl string + AttrallowCrossRepositoryCopy string + Attrid string + Attrowner string + AttrrepositorySlug string + Attrrepository_type string + Attruser_editable_repository string + Cclient_settings *Cclient_settings + Cdescription *Cdescription + Clabel *Clabel + XMLName xml.Name + type Crepositories struct + Crepo []*Crepo + XMLName xml.Name + type Cresources struct + Ccss []*Ccss + Ci18n []*Ci18n + Cjs []*Cjs + XMLName xml.Name + type CrightsContext struct + AttradminOnly string + AttrguestLogged string + AttrnoUser string + AttrparamDisable string + Attrread string + AttruserLogged string + Attrwrite string + XMLName xml.Name + type CselectionContext struct + AttrallowedMimes string + Attrbehaviour string + Attrdir string + Attreditable string + AttrenableRoot string + AttrevalMetadata string + Attrfile string + Attrimage string + AttrmultipleOnly string + Attrrecycle string + Attrunique string + XMLName xml.Name + type CserverCallback struct + AttrcheckParams string + AttrdeveloperComment string + AttrmethodName string + AttrpreferredHttp string + AttrrestParams string + AttrsdkMethodName string + Cinput_param []*Cinput_param + Coutput *Coutput + XMLName xml.Name + type Cserver_settings struct + Cglobal_param []*Cglobal_param + Cparam []*Cparam + XMLName xml.Name + type Cspecial_rights struct + Attris_admin string + Attrlock string + XMLName xml.Name + type CsubMenu struct + AttrmasterAction string + CdynamicBuilder *CdynamicBuilder + XMLName xml.Name + type Ctemplate struct + Attrcomponent string + Attrelement string + Attrlabel string + Attrname string + Attrnamespace string + Attrposition string + Attrprops string + Attrtheme string + XMLName xml.Name + type Ctemplate_part struct + AttrajxpClass string + AttrajxpId string + AttrajxpOptions string + Attrcomponent string + Attrdependencies string + Attrname string + Attrnamespace string + Attrprops string + Attrtheme string + XMLName xml.Name + type Cuploader struct + AttrclassName string + Attrorder string + Attrtext string + Attrtitle string + Cprocessing []*Cprocessing + XMLName xml.Name + type Cuser struct + Attrid string + Cactive_repo *Cactive_repo + Cpreferences *Cpreferences + Crepositories *Crepositories + Cspecial_rights *Cspecial_rights + XMLName xml.Name + type CustomWording struct + Icon string + IconBinary string + Title string + type EnrollMiddlewareFunc func(req *restful.Request, rsp *restful.Response, ...) bool + type ExposedParam struct + PluginId string + type FrontMiddleware struct + Endpoint string + Middleware EnrollMiddlewareFunc + type I18nMessages struct + ConfMessages map[string]string + Messages map[string]string + type IndexFile struct + func (i *IndexFile) Close() error + func (i *IndexFile) Read(p []byte) (n int, err error) + func (i *IndexFile) Readdir(count int) ([]os.FileInfo, error) + func (i *IndexFile) Seek(offset int64, whence int) (int64, error) + func (i *IndexFile) Stat() (os.FileInfo, error) + type Plugin interface + AlwaysEnabled func() bool + DefaultEnabled func() bool + DefaultParameters func() map[string]interface{} + ExposeConfigs func(map[string]interface{}) + FilterActions func(status RequestStatus, pool *PluginsPool, actions []*Caction) (output []*Caction) + GetClientSettings func() *Cclient_settings + GetDependencies func() *Cdependencies + GetDescription func() string + GetEnabled func() string + GetId func() string + GetLabel func() string + GetName func() string + GetPluginConfigs func() *Cplugin_configs + GetPluginInfo func() *Cplugin_info + GetRegistryContributions func() *Cregistry_contributions + GetServerSettings func() *Cserver_settings + ListDependencies func() (ids []string) + PluginConfig func(status RequestStatus, param *Cglobal_param) interface{} + PluginConfigs func(status RequestStatus) map[string]interface{} + PluginEnabled func(status RequestStatus) bool + func LoadPluginFromXML(id string, data []byte) (output Plugin, err error) + type PluginBox struct + Box packr.Box + Exposes []string + func GetRegisteredPluginBoxes() []PluginBox + type PluginModifier func(ctx context.Context, status RequestStatus, plugin Plugin) error + type PluginsPool struct + Messages map[string]I18nMessages + Plugins map[string]Plugin + func GetPluginsPool() (*PluginsPool, error) + func NewPluginsPool() *PluginsPool + func (p *PluginsPool) AllPluginsManifests(ctx context.Context, lang string) *Cplugins + func (p *PluginsPool) ExposedParametersByScope(scopeName string, exposed bool) (params []*ExposedParam) + func (p *PluginsPool) I18nMessages(lang string) I18nMessages + func (p *PluginsPool) Load(fs *UnionHttpFs) error + func (p *PluginsPool) RegistryForStatus(ctx context.Context, status RequestStatus) *Cpydio_registry + func (p *PluginsPool) ReplaceActionMimes(mime string) string + type RegistryModifier func(ctx context.Context, status RequestStatus, registry *Cpydio_registry) error + type RequestStatus struct + AclActions *config.Map + AclParameters *config.Map + Config config2.Config + Lang string + NoClaims bool + Request *http.Request + User *User + WsScopes []string + type UnionHttpFs struct + func GetPluginsFS() *UnionHttpFs + func NewUnionHttpFs(boxes ...PluginBox) *UnionHttpFs + func (p *UnionHttpFs) Open(name string) (http.File, error) + type User struct + AccessList *permissions.AccessList + ActiveAccessType string + ActiveWorkspace string + Claims claim.Claims + HasLocks bool + Locks []string + Logged bool + UserObject *idm.User + Workspaces map[string]*Workspace + func (u *User) FlattenedFrontValues() *config.Map + func (u *User) FlattenedRolesConfigByName(pluginId string, name string) string + func (u *User) FlattenedRolesConfigs() *config.Map + func (u *User) GetActiveScopes() (scopes []string) + func (u *User) Load(ctx context.Context) error + func (u *User) LoadActiveLanguage(parameter string) string + func (u *User) LoadActiveWorkspace(parameter string) + func (u *User) LoadWorkspaces(ctx context.Context, accessList *permissions.AccessList) error + func (u *User) Publish(status RequestStatus, pool *PluginsPool) *Cuser + type Workspace struct + AccessRight string + AccessType string Incompatible versions in this module v2.0.6+incompatible Apr 23, 2020