context

package
v0.0.0-...-4334ecd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthContext

type AuthContext struct {
	URL        string
	Host       string
	RequestURI string
	RemoteAddr string

	Protocol string
	Data     map[string]interface{}
	KVPair   map[string][]string
}

func (*AuthContext) AddData

func (c *AuthContext) AddData(key string, value interface{})

func (*AuthContext) Authenticate

func (c *AuthContext) Authenticate(admin *flamed.Admin) bool

func (*AuthContext) AuthenticateSuperUser

func (c *AuthContext) AuthenticateSuperUser(admin *flamed.Admin) bool

func (*AuthContext) GetAuthorizationData

func (c *AuthContext) GetAuthorizationData() (string, string)

func (*AuthContext) GetBasicUsernameAndPassword

func (c *AuthContext) GetBasicUsernameAndPassword(authData string) (string, string)

func (*AuthContext) GetUsernameAndPasswordFromAuth

func (c *AuthContext) GetUsernameAndPasswordFromAuth() (string, string)

func (*AuthContext) GetUsernameFromAuth

func (c *AuthContext) GetUsernameFromAuth() string

func (*AuthContext) IsSuperUserPasswordValid

func (c *AuthContext) IsSuperUserPasswordValid(admin *flamed.Admin,
	username string,
	password string) bool

func (*AuthContext) IsUserPasswordValid

func (c *AuthContext) IsUserPasswordValid(admin *flamed.Admin,
	username string,
	password string) bool

type FlamedContext

type FlamedContext struct {
	// contains filtered or unexported fields
}

func NewFlamedContext

func NewFlamedContext() *FlamedContext

func (*FlamedContext) AddTP

func (*FlamedContext) Flamed

func (f *FlamedContext) Flamed() *flamed.Flamed

func (*FlamedContext) GlobalRequestTimeout

func (f *FlamedContext) GlobalRequestTimeout() time.Duration

func (*FlamedContext) SetFlamed

func (f *FlamedContext) SetFlamed(fd *flamed.Flamed)

func (*FlamedContext) SetGlobalTimeout

func (f *FlamedContext) SetGlobalTimeout(t time.Duration)

func (*FlamedContext) TransactionProcessorMap

func (f *FlamedContext) TransactionProcessorMap() map[string]iface.ITransactionProcessor

type GlobalOperationContext

type GlobalOperationContext struct {
	AccessControl   *pb.AccessControl
	GlobalOperation *flamed.GlobalOperation
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL