Documentation
¶
Overview ¶
Copyright 2020-2023 Security Onion Solutions, LLC. All rights reserved.
This program is distributed under the terms of version 2 of the GNU General Public License. See LICENSE for further details.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Index ¶
- type Kratos
- type KratosAddress
- type KratosCredential
- type KratosPreprocessor
- type KratosTraits
- type KratosUser
- type KratosUserstore
- func (kratos *KratosUserstore) DeleteUser(ctx context.Context, id string) error
- func (kratos *KratosUserstore) GetUser(ctx context.Context, id string) (*model.User, error)
- func (kratos *KratosUserstore) GetUsers(ctx context.Context) ([]*model.User, error)
- func (kratos *KratosUserstore) Init(url string) error
- func (kratos *KratosUserstore) UpdateUser(ctx context.Context, id string, user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kratos ¶
type Kratos struct {
// contains filtered or unexported fields
}
func (*Kratos) PrerequisiteModules ¶
type KratosAddress ¶
type KratosAddress struct { Id string `json:"id"` Value string `json:"value"` ExpirationTime time.Time `json:"expires_at"` VerifiedTime time.Time `json:"verified_at"` Verified bool `json:"verified"` VerifiedVia string `json:"via"` }
func NewAddress ¶
func NewAddress(email string) *KratosAddress
func NewAddresses ¶
func NewAddresses(email string) []*KratosAddress
type KratosCredential ¶
type KratosPreprocessor ¶
type KratosPreprocessor struct {
// contains filtered or unexported fields
}
func NewKratosPreprocessor ¶
func NewKratosPreprocessor(impl *KratosUserstore) *KratosPreprocessor
func (*KratosPreprocessor) Preprocess ¶
func (*KratosPreprocessor) PreprocessPriority ¶
func (proc *KratosPreprocessor) PreprocessPriority() int
type KratosTraits ¶
type KratosUser ¶
type KratosUser struct { Id string `json:"id"` SchemaId string `json:"schema_id"` SchemaUrl string `json:"schema_url"` State string `json:"state"` Traits *KratosTraits `json:"traits"` Addresses []*KratosAddress `json:"verifiable_addresses"` Credentials map[string]*KratosCredential `json:"credentials"` CreateDate time.Time `json:"created_at"` UpdateDate time.Time `json:"updated_at"` }
func NewKratosUser ¶
type KratosUserstore ¶
type KratosUserstore struct {
// contains filtered or unexported fields
}
func NewKratosUserstore ¶
func NewKratosUserstore(server *server.Server) *KratosUserstore
func (*KratosUserstore) DeleteUser ¶
func (kratos *KratosUserstore) DeleteUser(ctx context.Context, id string) error
func (*KratosUserstore) Init ¶
func (kratos *KratosUserstore) Init(url string) error
func (*KratosUserstore) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.