user

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 []ImportEmail

Emails Array of email addresses

type ImportEmail

type ImportEmail 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"`
}

ImportEmail The import format for a user's email

type ImportEntry

type ImportEntry struct {
	// UserID optional uuid.v4. If not provided a new one will be generated for the user
	UserID string `json:"user_id" yaml:"user_id"`
	// Emails List of emails
	Emails Emails `json:"emails" yaml:"emails"`
	// CreatedAt optional timestamp of the users' creation. Will be set to the import date if not provided.
	CreatedAt *time.Time `json:"created_at" 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" yaml:"updated_at"`
}

ImportEntry represents a user to be imported to the Hanko database

type ImportList

type ImportList []ImportEntry

ImportList a list of ImportEntries

Jump to

Keyboard shortcuts

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