model

package
v0.0.0-...-860e413 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDPConfigKeyIdpConfigID  = "idp_config_id"
	IDPConfigKeyAggregateID  = "aggregate_id"
	IDPConfigKeyName         = "name"
	IDPConfigKeyProviderType = "idp_provider_type"
	IDPConfigKeyInstanceID   = "instance_id"
)
View Source
const (
	IDPProviderKeyAggregateID = "aggregate_id"
	IDPProviderKeyIdpConfigID = "idp_config_id"
	IDPProviderKeyState       = "idp_state"
	IDPProviderKeyInstanceID  = "instance_id"
)
View Source
const (
	LabelPolicyKeyAggregateID = "aggregate_id"
	LabelPolicyKeyState       = "label_policy_state"
	LabelPolicyKeyInstanceID  = "instance_id"
)
View Source
const (
	PasswordComplexityKeyAggregateID = "aggregate_id"
)

Variables

This section is empty.

Functions

func IDPConfigViewToModel

func IDPConfigViewToModel(idp *IDPConfigView) *model.IDPConfigView

func IDPProviderViewToModel

func IDPProviderViewToModel(provider *IDPProviderView) *model.IDPProviderView

func IDPProviderViewsToModel

func IDPProviderViewsToModel(providers []*IDPProviderView) []*model.IDPProviderView

Types

type AssetView

type AssetView struct {
	AssetURL string `json:"storeKey"`
}

func (*AssetView) SetData

func (r *AssetView) SetData(event *models.Event) error

type IDPConfigSearchKey

type IDPConfigSearchKey iam_model.IDPConfigSearchKey

func (IDPConfigSearchKey) ToColumnName

func (key IDPConfigSearchKey) ToColumnName() string

type IDPConfigSearchQuery

type IDPConfigSearchQuery iam_model.IDPConfigSearchQuery

func (IDPConfigSearchQuery) GetKey

func (IDPConfigSearchQuery) GetMethod

func (req IDPConfigSearchQuery) GetMethod() domain.SearchMethod

func (IDPConfigSearchQuery) GetValue

func (req IDPConfigSearchQuery) GetValue() interface{}

type IDPConfigSearchRequest

type IDPConfigSearchRequest iam_model.IDPConfigSearchRequest

func (IDPConfigSearchRequest) GetAsc

func (req IDPConfigSearchRequest) GetAsc() bool

func (IDPConfigSearchRequest) GetLimit

func (req IDPConfigSearchRequest) GetLimit() uint64

func (IDPConfigSearchRequest) GetOffset

func (req IDPConfigSearchRequest) GetOffset() uint64

func (IDPConfigSearchRequest) GetQueries

func (req IDPConfigSearchRequest) GetQueries() []repository.SearchQuery

func (IDPConfigSearchRequest) GetSortingColumn

func (req IDPConfigSearchRequest) GetSortingColumn() repository.ColumnKey

type IDPConfigView

type IDPConfigView struct {
	IDPConfigID     string    `json:"idpConfigId" gorm:"column:idp_config_id;primary_key"`
	AggregateID     string    `json:"-" gorm:"column:aggregate_id"`
	Name            string    `json:"name" gorm:"column:name"`
	StylingType     int32     `json:"stylingType" gorm:"column:styling_type"`
	CreationDate    time.Time `json:"-" gorm:"column:creation_date"`
	ChangeDate      time.Time `json:"-" gorm:"column:change_date"`
	IDPState        int32     `json:"-" gorm:"column:idp_state"`
	IDPProviderType int32     `json:"-" gorm:"column:idp_provider_type"`
	AutoRegister    bool      `json:"autoRegister" gorm:"column:auto_register"`

	IsOIDC                     bool                 `json:"-" gorm:"column:is_oidc"`
	OIDCClientID               string               `json:"clientId" gorm:"column:oidc_client_id"`
	OIDCClientSecret           *crypto.CryptoValue  `json:"clientSecret" gorm:"column:oidc_client_secret"`
	OIDCIssuer                 string               `json:"issuer" gorm:"column:oidc_issuer"`
	OIDCScopes                 database.StringArray `json:"scopes" gorm:"column:oidc_scopes"`
	OIDCIDPDisplayNameMapping  int32                `json:"idpDisplayNameMapping" gorm:"column:oidc_idp_display_name_mapping"`
	OIDCUsernameMapping        int32                `json:"usernameMapping" gorm:"column:oidc_idp_username_mapping"`
	OAuthAuthorizationEndpoint string               `json:"authorizationEndpoint" gorm:"column:oauth_authorization_endpoint"`
	OAuthTokenEndpoint         string               `json:"tokenEndpoint" gorm:"column:oauth_token_endpoint"`
	JWTEndpoint                string               `json:"jwtEndpoint" gorm:"jwt_endpoint"`
	JWTKeysEndpoint            string               `json:"keysEndpoint" gorm:"jwt_keys_endpoint"`
	JWTHeaderName              string               `json:"headerName" gorm:"jwt_header_name"`

	Sequence   uint64 `json:"-" gorm:"column:sequence"`
	InstanceID string `json:"instanceID" gorm:"column:instance_id;primary_key"`
}

func (*IDPConfigView) AppendEvent

func (i *IDPConfigView) AppendEvent(providerType model.IDPProviderType, event *models.Event) (err error)

func (*IDPConfigView) SetData

func (r *IDPConfigView) SetData(event *models.Event) error

type IDPProviderSearchKey

type IDPProviderSearchKey iam_model.IDPProviderSearchKey

func (IDPProviderSearchKey) ToColumnName

func (key IDPProviderSearchKey) ToColumnName() string

type IDPProviderSearchQuery

type IDPProviderSearchQuery iam_model.IDPProviderSearchQuery

func (IDPProviderSearchQuery) GetKey

func (IDPProviderSearchQuery) GetMethod

func (req IDPProviderSearchQuery) GetMethod() domain.SearchMethod

func (IDPProviderSearchQuery) GetValue

func (req IDPProviderSearchQuery) GetValue() interface{}

type IDPProviderSearchRequest

type IDPProviderSearchRequest iam_model.IDPProviderSearchRequest

func (IDPProviderSearchRequest) GetAsc

func (req IDPProviderSearchRequest) GetAsc() bool

func (IDPProviderSearchRequest) GetLimit

func (req IDPProviderSearchRequest) GetLimit() uint64

func (IDPProviderSearchRequest) GetOffset

func (req IDPProviderSearchRequest) GetOffset() uint64

func (IDPProviderSearchRequest) GetQueries

func (req IDPProviderSearchRequest) GetQueries() []repository.SearchQuery

func (IDPProviderSearchRequest) GetSortingColumn

func (req IDPProviderSearchRequest) GetSortingColumn() repository.ColumnKey

type IDPProviderView

type IDPProviderView struct {
	AggregateID string `json:"-" gorm:"column:aggregate_id;primary_key"`
	IDPConfigID string `json:"idpConfigID" gorm:"column:idp_config_id;primary_key"`

	CreationDate time.Time `json:"-" gorm:"column:creation_date"`
	ChangeDate   time.Time `json:"-" gorm:"column:change_date"`

	Name            string `json:"-" gorm:"column:name"`
	StylingType     int32  `json:"-" gorm:"column:styling_type"`
	IDPConfigType   int32  `json:"-" gorm:"column:idp_config_type"`
	IDPProviderType int32  `json:"idpProviderType" gorm:"column:idp_provider_type"`
	IDPState        int32  `json:"-" gorm:"column:idp_state"`

	Sequence   uint64 `json:"-" gorm:"column:sequence"`
	InstanceID string `json:"instanceID" gorm:"column:instance_id;primary_key"`
}

func (*IDPProviderView) AppendEvent

func (i *IDPProviderView) AppendEvent(event *models.Event) (err error)

func (*IDPProviderView) SetData

func (r *IDPProviderView) SetData(event *models.Event) error

type LabelPolicySearchKey

type LabelPolicySearchKey iam_model.LabelPolicySearchKey

func (LabelPolicySearchKey) ToColumnName

func (key LabelPolicySearchKey) ToColumnName() string

type LabelPolicySearchQuery

type LabelPolicySearchQuery iam_model.LabelPolicySearchQuery

func (LabelPolicySearchQuery) GetKey

func (LabelPolicySearchQuery) GetMethod

func (req LabelPolicySearchQuery) GetMethod() domain.SearchMethod

func (LabelPolicySearchQuery) GetValue

func (req LabelPolicySearchQuery) GetValue() interface{}

type LabelPolicySearchRequest

type LabelPolicySearchRequest iam_model.LabelPolicySearchRequest

func (LabelPolicySearchRequest) GetAsc

func (req LabelPolicySearchRequest) GetAsc() bool

func (LabelPolicySearchRequest) GetLimit

func (req LabelPolicySearchRequest) GetLimit() uint64

func (LabelPolicySearchRequest) GetOffset

func (req LabelPolicySearchRequest) GetOffset() uint64

func (LabelPolicySearchRequest) GetQueries

func (req LabelPolicySearchRequest) GetQueries() []repository.SearchQuery

func (LabelPolicySearchRequest) GetSortingColumn

func (req LabelPolicySearchRequest) GetSortingColumn() repository.ColumnKey

type LabelPolicyView

type LabelPolicyView struct {
	AggregateID  string    `json:"-" gorm:"column:aggregate_id;primary_key"`
	State        int32     `json:"-" gorm:"column:label_policy_state;primary_key"`
	CreationDate time.Time `json:"-" gorm:"column:creation_date"`
	ChangeDate   time.Time `json:"-" gorm:"column:change_date"`

	PrimaryColor        string `json:"primaryColor" gorm:"column:primary_color"`
	BackgroundColor     string `json:"backgroundColor" gorm:"column:background_color"`
	WarnColor           string `json:"warnColor" gorm:"column:warn_color"`
	FontColor           string `json:"fontColor" gorm:"column:font_color"`
	PrimaryColorDark    string `json:"primaryColorDark" gorm:"column:primary_color_dark"`
	BackgroundColorDark string `json:"backgroundColorDark" gorm:"column:background_color_dark"`
	WarnColorDark       string `json:"warnColorDark" gorm:"column:warn_color_dark"`
	FontColorDark       string `json:"fontColorDark" gorm:"column:font_color_dark"`
	LogoURL             string `json:"-" gorm:"column:logo_url"`
	IconURL             string `json:"-" gorm:"column:icon_url"`
	LogoDarkURL         string `json:"-" gorm:"column:logo_dark_url"`
	IconDarkURL         string `json:"-" gorm:"column:icon_dark_url"`
	FontURL             string `json:"-" gorm:"column:font_url"`
	HideLoginNameSuffix bool   `json:"hideLoginNameSuffix" gorm:"column:hide_login_name_suffix"`
	ErrorMsgPopup       bool   `json:"errorMsgPopup" gorm:"column:err_msg_popup"`
	DisableWatermark    bool   `json:"disableWatermark" gorm:"column:disable_watermark"`
	Default             bool   `json:"-" gorm:"-"`

	Sequence   uint64 `json:"-" gorm:"column:sequence"`
	InstanceID string `json:"instanceID" gorm:"column:instance_id;primary_key"`
}

func (*LabelPolicyView) AppendEvent

func (i *LabelPolicyView) AppendEvent(event *models.Event) (err error)

func (*LabelPolicyView) SetData

func (r *LabelPolicyView) SetData(event *models.Event) error

func (*LabelPolicyView) ToDomain

func (p *LabelPolicyView) ToDomain() *domain.LabelPolicy

type PasswordComplexityPolicyView

type PasswordComplexityPolicyView struct {
	AggregateID  string    `json:"-" gorm:"column:aggregate_id;primary_key"`
	CreationDate time.Time `json:"-" gorm:"column:creation_date"`
	ChangeDate   time.Time `json:"-" gorm:"column:change_date"`
	State        int32     `json:"-" gorm:"column:complexity_policy_state"`

	MinLength    uint64 `json:"minLength" gorm:"column:min_length"`
	HasLowercase bool   `json:"hasLowercase" gorm:"column:has_lowercase"`
	HasUppercase bool   `json:"hasUppercase" gorm:"column:has_uppercase"`
	HasSymbol    bool   `json:"hasSymbol" gorm:"column:has_symbol"`
	HasNumber    bool   `json:"hasNumber" gorm:"column:has_number"`
	Default      bool   `json:"-" gorm:"-"`

	Sequence uint64 `json:"-" gorm:"column:sequence"`
}

func (*PasswordComplexityPolicyView) AppendEvent

func (i *PasswordComplexityPolicyView) AppendEvent(event *models.Event) (err error)

func (*PasswordComplexityPolicyView) SetData

func (r *PasswordComplexityPolicyView) SetData(event *models.Event) error

Jump to

Keyboard shortcuts

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