Documentation ¶
Index ¶
- func SendApps(w http.ResponseWriter, req *http.Request)
- func SendFilesACLs(w http.ResponseWriter, req *http.Request)
- func SendInfos(w http.ResponseWriter, req *http.Request, officeServer string)
- func SetApps(w http.ResponseWriter, req *http.Request)
- type App
- type Bookmark
- type ByRank
- type FilesACL
- type Infos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendApps ¶
func SendApps(w http.ResponseWriter, req *http.Request)
SendApps send apps as response from an http requests
func SendFilesACLs ¶
func SendFilesACLs(w http.ResponseWriter, req *http.Request)
SendFilesACLs send files acls as response from an http requests
Types ¶
type App ¶
type App struct { Name string `json:"name"` Icon string `json:"icon"` Rank int `json:"rank"` Iframed bool `json:"iframed"` IframePath string `json:"iframepath"` appserver.App }
App represents a app serving static content proxying a web server
type Bookmark ¶
type Bookmark struct { Name string `json:"name"` URL string `json:"url"` Icon string `json:"icon"` }
Bookmark represents a bookmark shared by the server with the client into the infos
type FilesACL ¶
type FilesACL struct { Name string `json:"name"` Path string `json:"path"` Directory string `json:"directory"` Roles []string `json:"roles"` Permissions string `json:"permissions"` BasicAuth bool `json:"basicauth"` UsedGB uint64 `json:"usedgb"` TotalGB uint64 `json:"totalgb"` }
FilesACL represents an access control list for an directory exposed with webdav
type Infos ¶
type Infos struct { ServerVersion string `json:"server_version"` ClientVersion string `json:"client_version"` Bookmarks []Bookmark `json:"bookmarks"` OfficeServer string `json:"office_server"` }
Infos represents global infos shared by the server with the client
func InfosFromJSONFiles ¶
InfosFromJSONFiles returns Infos gotten from several json files
Click to show internal directories.
Click to hide internal directories.