mobileapi

package
v2.8.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

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

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 {
	Accreditations *[]AccreditationRepresentation `json:"accreditations,omitempty"`
	Checks         *[]CheckRepresentation         `json:"checks,omitempty"`
	Actions        *[]string                      `json:"actions,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