Documentation ¶
Index ¶
- type AuthenticationMiddleware
- type AuthenticationWebServiceClient
- type BasicAuthMiddleware
- type Code
- type Configuration
- type ConfigurationSource
- type ContextManager
- type CorsMiddleware
- type DataDriver
- type DataWebServiceClient
- type Error
- type FileInfo
- type LoggerMiddleware
- type MetaDataDriver
- type MetaDataWebServiceClient
- type MimeGuesser
- type RegistryDriver
- type RegistryNode
- type TokenDriver
- type User
- type UserDriver
- type WebErrorConverter
- type WebServer
- type WebService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationMiddleware ¶
type AuthenticationMiddleware interface {
HandlerFunc(handlerFunc http.HandlerFunc) http.HandlerFunc
}
type BasicAuthMiddleware ¶
type BasicAuthMiddleware interface {
HandlerFunc(handlerFunc http.HandlerFunc) http.HandlerFunc
}
type Code ¶
type Code uint32
const ( // InvalidToken is returned when the auth token is invalid or has expired CodeInvalidToken Code = iota CodeUnauthorized // BadAuthenticationData is returned when the authentication fails. CodeBadAuthenticationData // BadInputData is returned when the input parameters are not valid. CodeBadInputData // NotFound is returned when something cannot be found. CodeNotFound // BadChecksum is returned when two checksum differs. CodeBadChecksum // TooBig is returned when something is too big to be processed. CodeTooBig // CodeUserNotFound CodeUserNotFound // CodeInternal CodeInternal // CodeAlreadyExist CodeAlreadyExist // CodeUploadIsPartial is the error to return when the upload of file // is in a partial state, like an owncloud chunk upload where the upload of a chunk // does not complete the upload. CodeUploadIsPartial // CodeForbidden is used when something is forbidden, like uploading to lib CodeForbidden )
type Configuration ¶
type Configuration interface { GetPort() int GetCPU() string GetEnabledWebServices() string GetAppLoggerOut() string GetAppLoggerMaxSize() int GetAppLoggerMaxAge() int GetAppLoggerMaxBackups() int GetHTTPAccessLoggerOut() string GetHTTPAccessLoggerMaxSize() int GetHTTPAccessLoggerMaxAge() int GetHTTPAccessLoggerMaxBackups() int IsTLSEnabled() bool GetTLSCertificate() string GetTLSPrivateKey() string GetUserDriver() string GetMemUserDriverUsers() string GetLDAPUserDriverBindUsername() string GetLDAPUserDriverBindPassword() string GetLDAPUserDriverHostname() string GetLDAPUserDriverPort() int GetLDAPUserDriverBaseDN() string GetLDAPUserDriverFilter() string GetDataDriver() string GetFSDataDriverDataFolder() string GetFSDataDriverTemporaryFolder() string GetFSDataDriverChecksum() string GetFSDataDriverVerifyClientChecksum() bool GetOCFSDataDriverDataFolder() string GetOCFSDataDriverTemporaryFolder() string GetOCFSDataDriverChunksFolder() string GetOCFSDataDriverChecksum() string GetOCFSDataDriverVerifyClientChecksum() bool GetMetaDataDriver() string GetFSMDataDriverDataFolder() string GetFSMDataDriverTemporaryFolder() string GetOCFSMDataDriverDataFolder() string GetOCFSMDataDriverTemporaryFolder() string GetOCFSMDataDriverMaxSQLIddle() int GetOCFSMDataDriverMaxSQLConcurrent() int GetOCFSMDataDriverDSN() string GetTokenDriver() string GetJWTTokenDriverKey() string GetRegistryDriver() string GetETCDRegistryDriverUrls() string GetETCDRegistryDriverUsername() string GetETCDRegistryDriverPassword() string GetETCDRegistryDriverKey() string GetBasicAuthMiddleware() string GetBasicAuthMiddlewareCookieName() string IsCORSMiddlewareEnabled() bool GetCORSMiddlewareAccessControlAllowOrigin() string GetCORSMiddlewareAccessControlAllowMethods() string GetCORSMiddlewareAccessControlAllowHeaders() string GetAuthenticationWebService() string GetAuthenticationWebServiceMethodAgnostic() bool GetDataWebService() string GetDataWebServiceMaxUploadFileSize() int64 GetMetaDataWebService() string GetOCWebService() string GetOCWebServiceMaxUploadFileSize() int64 GetRemoteOCWebServiceMaxUploadFileSize() int64 }
type ConfigurationSource ¶
type ConfigurationSource interface {
LoadConfiguration() (Configuration, error)
}
type ContextManager ¶
type ContextManager interface { GetLog(ctx context.Context) (*levels.Levels, bool) MustGetLog(ctx context.Context) *levels.Levels SetLog(ctx context.Context, logger *levels.Levels) context.Context GetTraceID(ctx context.Context) (string, bool) MustGetTraceID(ctx context.Context) string SetTraceID(ctx context.Context, traceId string) context.Context GetUser(ctx context.Context) (User, bool) MustGetUser(ctx context.Context) User SetUser(ctx context.Context, user User) context.Context GetAccessToken(ctx context.Context) (string, bool) MustGetAccessToken(ctx context.Context) string SetAccessToken(ctx context.Context, token string) context.Context }
type DataDriver ¶
type DataWebServiceClient ¶
type LoggerMiddleware ¶
type LoggerMiddleware interface {
HandlerFunc(handlerFunc http.HandlerFunc) http.HandlerFunc
}
type MetaDataDriver ¶
type MetaDataDriver interface { Examine(ctx context.Context, user User, path string) (FileInfo, error) Move(ctx context.Context, user User, sourcePath, targetPath string) error Delete(ctx context.Context, user User, path string) error ListFolder(ctx context.Context, user User, path string) ([]FileInfo, error) CreateFolder(ctx context.Context, user User, path string) error }
type MetaDataWebServiceClient ¶
type MetaDataWebServiceClient interface { Examine(ctx context.Context, user User, path string) (FileInfo, error) Move(ctx context.Context, user User, sourcePath, targetPath string) error Delete(ctx context.Context, user User, path string) error ListFolder(ctx context.Context, user User, path string) ([]FileInfo, error) CreateFolder(ctx context.Context, user User, path string) error }
type MimeGuesser ¶
type RegistryDriver ¶
type RegistryDriver interface { Register(ctx context.Context, node RegistryNode) error //UnRegister(ctx context.Context, id string) error GetNodesForRol(ctx context.Context, rol string) ([]RegistryNode, error) }
type RegistryNode ¶
type TokenDriver ¶
type UserDriver ¶
type WebErrorConverter ¶
type WebService ¶
type WebService interface { IsProxy() bool Endpoints() map[string]map[string]http.HandlerFunc }
Click to show internal directories.
Click to hide internal directories.