Documentation ¶
Index ¶
- func RegisterBrandInterface(newInterface BrandInterface)
- func RegisterComplianceInterface(newInterface ComplianceInterface)
- func RegisterLdapInterface(newInterface LdapInterface)
- func RegisterMfaInterface(newInterface MfaInterface)
- func RegisterOauthProvider(name string, newProvider OauthProvider)
- type BrandInterface
- type ComplianceInterface
- type LdapInterface
- type MfaInterface
- type OauthProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBrandInterface ¶
func RegisterBrandInterface(newInterface BrandInterface)
func RegisterComplianceInterface ¶
func RegisterComplianceInterface(newInterface ComplianceInterface)
func RegisterLdapInterface ¶
func RegisterLdapInterface(newInterface LdapInterface)
func RegisterMfaInterface ¶
func RegisterMfaInterface(newInterface MfaInterface)
func RegisterOauthProvider ¶
func RegisterOauthProvider(name string, newProvider OauthProvider)
Types ¶
type BrandInterface ¶
type BrandInterface interface { SaveBrandImage(*multipart.FileHeader) *model.AppError GetBrandImage() ([]byte, *model.AppError) }
func GetBrandInterface ¶
func GetBrandInterface() BrandInterface
type ComplianceInterface ¶
type ComplianceInterface interface { StartComplianceDailyJob() RunComplianceJob(job *model.Compliance) *model.AppError }
func GetComplianceInterface ¶
func GetComplianceInterface() ComplianceInterface
type LdapInterface ¶
type LdapInterface interface { DoLogin(id string, password string) (*model.User, *model.AppError) GetUser(id string) (*model.User, *model.AppError) CheckPassword(id string, password string) *model.AppError SwitchToLdap(userId, ldapId, ldapPassword string) *model.AppError ValidateFilter(filter string) *model.AppError }
func GetLdapInterface ¶
func GetLdapInterface() LdapInterface
type MfaInterface ¶
type MfaInterface interface { GenerateQrCode(user *model.User) ([]byte, *model.AppError) Activate(user *model.User, token string) *model.AppError Deactivate(userId string) *model.AppError ValidateToken(secret, token string) (bool, *model.AppError) }
func GetMfaInterface ¶
func GetMfaInterface() MfaInterface
type OauthProvider ¶
type OauthProvider interface { GetIdentifier() string GetUserFromJson(data io.Reader) *model.User GetAuthDataFromJson(data io.Reader) string }
func GetOauthProvider ¶
func GetOauthProvider(name string) OauthProvider
Click to show internal directories.
Click to hide internal directories.