ids

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 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 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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