user

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExportCommand added in v0.9.0

func NewExportCommand() *cobra.Command

func NewGenerateCommand

func NewGenerateCommand() *cobra.Command

func NewImportCommand

func NewImportCommand() *cobra.Command

func NewUserCommand

func NewUserCommand() *cobra.Command

func RegisterCommands

func RegisterCommands(parent *cobra.Command)

Types

type Emails

type Emails []ImportOrExportEmail

Emails Array of email addresses

type ImportOrExportEmail added in v0.9.0

type ImportOrExportEmail struct {
	// Address Valid email address
	Address string `json:"address" yaml:"address"`
	// IsPrimary indicates if this is the primary email of the users. In the Emails array there has to be exactly one primary email.
	IsPrimary bool `json:"is_primary" yaml:"is_primary"`
	// IsVerified indicates if the email address was previously verified.
	IsVerified bool `json:"is_verified" yaml:"is_verified"`
}

ImportOrExportEmail The import/export format for a user's email

type ImportOrExportEntry added in v0.9.0

type ImportOrExportEntry struct {
	// UserID optional uuid.v4. If not provided a new one will be generated for the user
	UserID string `json:"user_id,omitempty" yaml:"user_id"`
	// Emails List of emails
	Emails Emails `json:"emails" yaml:"emails" jsonschema:"type=array,minItems=1"`
	// CreatedAt optional timestamp of the users' creation. Will be set to the import date if not provided.
	CreatedAt *time.Time `json:"created_at,omitempty" yaml:"created_at"`
	// UpdatedAt optional timestamp of the last update to the user. Will be set to the import date if not provided.
	UpdatedAt *time.Time `json:"updated_at,omitempty" yaml:"updated_at"`
}

ImportOrExportEntry represents a user to be imported/export to the Hanko database

type ImportOrExportList added in v0.9.0

type ImportOrExportList []ImportOrExportEntry

ImportOrExportList a list of ImportEntries

Jump to

Keyboard shortcuts

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