Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityStore ¶
type IdentityStore interface {
GetRealm() string
GetName() string
GetKind() string
GetConfig() map[string]interface{}
Configure() error
Configured() bool
Request(operator.Type, *requests.Request) error
GetLoginIcon() *icons.LoginIcon
}
IdentityStore represents identity store.
func NewIdentityStore ¶
func NewIdentityStore(cfg *IdentityStoreConfig, logger *zap.Logger) (IdentityStore, error)
NewIdentityStore returns IdentityStore instance.
type IdentityStoreConfig ¶
type IdentityStoreConfig struct {
Name string `json:"name,omitempty" xml:"name,omitempty" yaml:"name,omitempty"`
Kind string `json:"kind,omitempty" xml:"kind,omitempty" yaml:"kind,omitempty"`
Params map[string]interface{} `json:"params,omitempty" xml:"params,omitempty" yaml:"params,omitempty"`
}
IdentityStoreConfig represents an identity store configuration.
func NewIdentityStoreConfig ¶
func NewIdentityStoreConfig(name, kind string, params map[string]interface{}) (*IdentityStoreConfig, error)
NewIdentityStoreConfig returns IdentityStoreConfig instance.
func (*IdentityStoreConfig) Validate ¶
func (cfg *IdentityStoreConfig) Validate() error
Validate validates identity store config.
type IdentityStoreType ¶
type IdentityStoreType int
IdentityStoreType identifies identity store type.
const ( // UNKNOWN is unknown identity store type. UNKNOWN IdentityStoreType = iota // LOCAL identifies local identity store. LOCAL // LDAP identifies local LDAP identity store. LDAP )
func (IdentityStoreType) String ¶
func (m IdentityStoreType) String() string
String returns the description for IdentityStoreType enum.
Click to show internal directories.
Click to hide internal directories.