features

package
v1.85.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeaturesSetEventType     = featuresPrefix + "set"
	FeaturesRemovedEventType = featuresPrefix + "removed"
)

Variables

This section is empty.

Functions

func ChangeActionsAllowed

func ChangeActionsAllowed(allowedType domain.ActionsAllowed) func(event *FeaturesSetEvent)

func ChangeAuditLogRetention

func ChangeAuditLogRetention(retention time.Duration) func(event *FeaturesSetEvent)

func ChangeCustomDomain

func ChangeCustomDomain(customDomain bool) func(event *FeaturesSetEvent)

func ChangeCustomTextLogin

func ChangeCustomTextLogin(customTextLogin bool) func(event *FeaturesSetEvent)

func ChangeCustomTextMessage

func ChangeCustomTextMessage(customTextMessage bool) func(event *FeaturesSetEvent)

func ChangeLabelPolicyPrivateLabel

func ChangeLabelPolicyPrivateLabel(labelPolicyPrivateLabel bool) func(event *FeaturesSetEvent)

func ChangeLabelPolicyWatermark

func ChangeLabelPolicyWatermark(labelPolicyWatermark bool) func(event *FeaturesSetEvent)

func ChangeLockoutPolicy

func ChangeLockoutPolicy(lockoutPolicy bool) func(event *FeaturesSetEvent)

func ChangeLoginPolicyFactors

func ChangeLoginPolicyFactors(loginPolicyFactors bool) func(event *FeaturesSetEvent)

func ChangeLoginPolicyIDP

func ChangeLoginPolicyIDP(loginPolicyIDP bool) func(event *FeaturesSetEvent)

func ChangeLoginPolicyPasswordReset

func ChangeLoginPolicyPasswordReset(loginPolicyPasswordReset bool) func(event *FeaturesSetEvent)

func ChangeLoginPolicyPasswordless

func ChangeLoginPolicyPasswordless(loginPolicyPasswordless bool) func(event *FeaturesSetEvent)

func ChangeLoginPolicyRegistration

func ChangeLoginPolicyRegistration(loginPolicyRegistration bool) func(event *FeaturesSetEvent)

func ChangeLoginPolicyUsernameLogin

func ChangeLoginPolicyUsernameLogin(loginPolicyUsernameLogin bool) func(event *FeaturesSetEvent)

func ChangeMaxActions

func ChangeMaxActions(maxActions int) func(event *FeaturesSetEvent)

func ChangeMetadataUser

func ChangeMetadataUser(metadataUser bool) func(event *FeaturesSetEvent)

func ChangePasswordComplexityPolicy

func ChangePasswordComplexityPolicy(passwordComplexityPolicy bool) func(event *FeaturesSetEvent)

func ChangePrivacyPolicy

func ChangePrivacyPolicy(privacyPolicy bool) func(event *FeaturesSetEvent)

func ChangeState

func ChangeState(State domain.FeaturesState) func(event *FeaturesSetEvent)

func ChangeStateDescription

func ChangeStateDescription(statusDescription string) func(event *FeaturesSetEvent)

func ChangeTierDescription

func ChangeTierDescription(tierDescription string) func(event *FeaturesSetEvent)

func ChangeTierName

func ChangeTierName(tierName string) func(event *FeaturesSetEvent)

func FeaturesRemovedEventMapper

func FeaturesRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func FeaturesSetEventMapper

func FeaturesSetEventMapper(event *repository.Event) (eventstore.Event, error)

Types

type FeaturesChanges

type FeaturesChanges func(*FeaturesSetEvent)

type FeaturesRemovedEvent

type FeaturesRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewFeaturesRemovedEvent

func NewFeaturesRemovedEvent(base *eventstore.BaseEvent) *FeaturesRemovedEvent

func (*FeaturesRemovedEvent) Assets

func (e *FeaturesRemovedEvent) Assets() []*eventstore.Asset

func (*FeaturesRemovedEvent) Data

func (e *FeaturesRemovedEvent) Data() interface{}

func (*FeaturesRemovedEvent) UniqueConstraints

func (e *FeaturesRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type FeaturesSetEvent

type FeaturesSetEvent struct {
	eventstore.BaseEvent `json:"-"`

	TierName                 *string                `json:"tierName,omitempty"`
	TierDescription          *string                `json:"tierDescription,omitempty"`
	State                    *domain.FeaturesState  `json:"state,omitempty"`
	StateDescription         *string                `json:"stateDescription,omitempty"`
	AuditLogRetention        *time.Duration         `json:"auditLogRetention,omitempty"`
	LoginPolicyFactors       *bool                  `json:"loginPolicyFactors,omitempty"`
	LoginPolicyIDP           *bool                  `json:"loginPolicyIDP,omitempty"`
	LoginPolicyPasswordless  *bool                  `json:"loginPolicyPasswordless,omitempty"`
	LoginPolicyRegistration  *bool                  `json:"loginPolicyRegistration,omitempty"`
	LoginPolicyUsernameLogin *bool                  `json:"loginPolicyUsernameLogin,omitempty"`
	LoginPolicyPasswordReset *bool                  `json:"loginPolicyPasswordReset,omitempty"`
	PasswordComplexityPolicy *bool                  `json:"passwordComplexityPolicy,omitempty"`
	LabelPolicy              *bool                  `json:"labelPolicy,omitempty"`
	LabelPolicyPrivateLabel  *bool                  `json:"labelPolicyPrivateLabel,omitempty"`
	LabelPolicyWatermark     *bool                  `json:"labelPolicyWatermark,omitempty"`
	CustomDomain             *bool                  `json:"customDomain,omitempty"`
	PrivacyPolicy            *bool                  `json:"privacyPolicy,omitempty"`
	MetadataUser             *bool                  `json:"metadataUser,omitempty"`
	CustomTextMessage        *bool                  `json:"customTextMessage,omitempty"`
	CustomTextLogin          *bool                  `json:"customTextLogin,omitempty"`
	LockoutPolicy            *bool                  `json:"lockoutPolicy,omitempty"`
	Actions                  *bool                  `json:"actions,omitempty"`
	ActionsAllowed           *domain.ActionsAllowed `json:"actionsAllowed,omitempty"`
	MaxActions               *int                   `json:"maxActions,omitempty"`
}

func NewFeaturesSetEvent

func NewFeaturesSetEvent(
	base *eventstore.BaseEvent,
	changes []FeaturesChanges,
) (*FeaturesSetEvent, error)

func (*FeaturesSetEvent) Data

func (e *FeaturesSetEvent) Data() interface{}

func (*FeaturesSetEvent) UniqueConstraints

func (e *FeaturesSetEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

Jump to

Keyboard shortcuts

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