Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExportCommand ¶ added in v0.9.0
func NewGenerateCommand ¶
func NewImportCommand ¶
func NewUserCommand ¶
func RegisterCommands ¶
Types ¶
type ImportOrExportEmail ¶ added in v0.9.0
type ImportOrExportEmail struct { // Address Valid email address Address string `json:"address" yaml:"address" jsonschema:"format=email"` // 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
func (ImportOrExportEmail) JSONSchemaExtend ¶ added in v1.0.1
func (ImportOrExportEmail) JSONSchemaExtend(schema *jsonschema.Schema)
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
func (ImportOrExportEntry) JSONSchemaExtend ¶ added in v1.0.1
func (ImportOrExportEntry) JSONSchemaExtend(schema *jsonschema.Schema)
type ImportOrExportList ¶ added in v0.9.0
type ImportOrExportList []ImportOrExportEntry
ImportOrExportList a list of ImportEntries
func (ImportOrExportList) JSONSchemaExtend ¶ added in v1.0.1
func (ImportOrExportList) JSONSchemaExtend(schema *jsonschema.Schema)
Click to show internal directories.
Click to hide internal directories.