Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionRepresentation ¶
ActionRepresentation struct
type UserRepresentation ¶
type UserRepresentation struct { UserID *string `json:"userId,omitempty"` Username *string `json:"username,omitempty"` Gender *string `json:"gender,omitempty"` FirstName *string `json:"firstName,omitempty"` LastName *string `json:"lastName,omitempty"` EmailAddress *string `json:"emailAddress,omitempty"` EmailAddressVerified *bool `json:"emailAddressVerified,omitempty"` PhoneNumber *string `json:"phoneNumber,omitempty"` PhoneNumberVerified *bool `json:"phoneNumberVerified,omitempty"` BirthDate *string `json:"birthDate,omitempty"` BirthLocation *string `json:"birthLocation,omitempty"` IDDocumentType *string `json:"idDocumentType,omitempty"` IDDocumentNumber *string `json:"idDocumentNumber,omitempty"` IDDocumentExpiration *string `json:"idDocumentExpiration,omitempty"` Comment *string `json:"comment,omitempty"` }
UserRepresentation contains user details
func UserFromJSON ¶
func UserFromJSON(jsonRep string) (UserRepresentation, error)
UserFromJSON creates a User using its json representation
func (*UserRepresentation) ExportToKeycloak ¶
func (u *UserRepresentation) ExportToKeycloak(kcUser *kc.UserRepresentation)
ExportToKeycloak exports user details into a Keycloak UserRepresentation
func (*UserRepresentation) ImportFromKeycloak ¶
func (u *UserRepresentation) ImportFromKeycloak(kcUser *kc.UserRepresentation)
ImportFromKeycloak import details from Keycloak
func (*UserRepresentation) UserToJSON ¶
func (u *UserRepresentation) UserToJSON() string
UserToJSON returns a json representation of a given User
func (*UserRepresentation) Validate ¶
func (u *UserRepresentation) Validate() error
Validate checks the validity of the given User
Click to show internal directories.
Click to hide internal directories.