helpers

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BootstrapPredictorValues = map[string]risk.RiskPredictor{
		defaultUserRiskBehavior().RiskPredictorUserRiskBehavior.CompactName:       defaultUserRiskBehavior(),
		defaultUserBasedRiskBehavior().RiskPredictorUserRiskBehavior.CompactName:  defaultUserBasedRiskBehavior(),
		defaultIpVelocityByUser().RiskPredictorVelocity.CompactName:               defaultIpVelocityByUser(),
		defaultUserVelocityByIp().RiskPredictorVelocity.CompactName:               defaultUserVelocityByIp(),
		defaultAnonymousNetwork().RiskPredictorAnonymousNetwork.CompactName:       defaultAnonymousNetwork(),
		defaultGeoVelocity().RiskPredictorGeovelocity.CompactName:                 defaultGeoVelocity(),
		defaultIpRisk().RiskPredictorIPReputation.CompactName:                     defaultIpRisk(),
		defaultNewDevice().RiskPredictorDevice.CompactName:                        defaultNewDevice(),
		defaultUserLocationAnomaly().RiskPredictorUserLocationAnomaly.CompactName: defaultUserLocationAnomaly(),
	}
)

Functions

func CheckCompositeConditionStructure

func CheckCompositeConditionStructure(ctx context.Context, jsonValue string) diag.Diagnostics

func NormaliseCompositeCondition

func NormaliseCompositeCondition(ctx context.Context, jsonValue string) (*string, diag.Diagnostics)

func WalkAggregatedCondition

func WalkAggregatedCondition(condition map[string]interface{}) map[string]interface{}

func WalkAggregatedListCondition

func WalkAggregatedListCondition(conditionList []interface{}) []interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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