platform: github.com/anoland/platform/einterfaces Index | Files

package einterfaces

import "github.com/anoland/platform/einterfaces"

Index

Package Files

brand.go compliance.go ldap.go mfa.go oauthproviders.go

func RegisterBrandInterface Uses

func RegisterBrandInterface(newInterface BrandInterface)

func RegisterComplianceInterface Uses

func RegisterComplianceInterface(newInterface ComplianceInterface)

func RegisterLdapInterface Uses

func RegisterLdapInterface(newInterface LdapInterface)

func RegisterMfaInterface Uses

func RegisterMfaInterface(newInterface MfaInterface)

func RegisterOauthProvider Uses

func RegisterOauthProvider(name string, newProvider OauthProvider)

type BrandInterface Uses

type BrandInterface interface {
    SaveBrandImage(*multipart.FileHeader) *model.AppError
    GetBrandImage() ([]byte, *model.AppError)
}

func GetBrandInterface Uses

func GetBrandInterface() BrandInterface

type ComplianceInterface Uses

type ComplianceInterface interface {
    StartComplianceDailyJob()
    RunComplianceJob(job *model.Compliance) *model.AppError
}

func GetComplianceInterface Uses

func GetComplianceInterface() ComplianceInterface

type LdapInterface Uses

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 Uses

func GetLdapInterface() LdapInterface

type MfaInterface Uses

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 Uses

func GetMfaInterface() MfaInterface

type OauthProvider Uses

type OauthProvider interface {
    GetIdentifier() string
    GetUserFromJson(data io.Reader) *model.User
    GetAuthDataFromJson(data io.Reader) string
}

func GetOauthProvider Uses

func GetOauthProvider(name string) OauthProvider

Package einterfaces imports 3 packages (graph). Updated 2017-05-15. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).