mobileapi

package
v3.22.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccreditationRepresentation

type AccreditationRepresentation struct {
	Type       *string `json:"type"`
	ExpiryDate *string `json:"expiryDate"`
	Expired    *bool   `json:"expired,omitempty"`
	Revoked    *bool   `json:"revoked,omitempty"`
}

AccreditationRepresentation is a representation of an accreditation

type CheckRepresentation

type CheckRepresentation struct {
	Type   *string `json:"type"`
	Nature *string `json:"nature"`
	Date   *string `json:"date"`
}

CheckRepresentation is a representation of a check

type UserInformationRepresentation

type UserInformationRepresentation struct {
	RealmDisplayName *string                        `json:"realmDisplayName,omitempty"`
	Accreditations   *[]AccreditationRepresentation `json:"accreditations,omitempty"`
	Checks           *[]CheckRepresentation         `json:"checks,omitempty"`
	Actions          *[]string                      `json:"actions,omitempty"`
	PendingActions   *[]string                      `json:"pendingActions,omitempty"`
}

UserInformationRepresentation struct

func (*UserInformationRepresentation) SetAccreditations

func (u *UserInformationRepresentation) SetAccreditations(ctx context.Context, attrAccreditations []string, logger keycloakb.Logger)

SetAccreditations sets the user accreditations

func (*UserInformationRepresentation) SetActions

func (u *UserInformationRepresentation) SetActions(availableChecks map[string]bool)

SetActions sets the user actions

func (*UserInformationRepresentation) SetChecks

func (u *UserInformationRepresentation) SetChecks(dbChecks []dto.DBCheck)

SetChecks sets the user checks

Jump to

Keyboard shortcuts

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