application

package
v0.0.79 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package application contains the application logic for the homoglyphs rule type

Index

Constants

View Source
const (
	// HomoglyphsEvalType is the type of the homoglyphs evaluator
	HomoglyphsEvalType = "homoglyphs"
)

Variables

This section is empty.

Functions

func NewHomoglyphsEvaluator

func NewHomoglyphsEvaluator(
	ctx context.Context,
	reh *pb.RuleType_Definition_Eval_Homoglyphs,
	ghClient provifv1.GitHub,
	opts ...eoptions.Option,
) (interfaces.Evaluator, error)

NewHomoglyphsEvaluator creates a new homoglyphs evaluator

Types

type InvisibleCharactersEvaluator

type InvisibleCharactersEvaluator struct {
	// contains filtered or unexported fields
}

InvisibleCharactersEvaluator is an evaluator for the invisible characters rule type

func NewInvisibleCharactersEvaluator

func NewInvisibleCharactersEvaluator(
	_ context.Context,
	ghClient provifv1.GitHub,
	opts ...eoptions.Option,
) (*InvisibleCharactersEvaluator, error)

NewInvisibleCharactersEvaluator creates a new invisible characters evaluator

func (*InvisibleCharactersEvaluator) Eval

Eval evaluates the invisible characters rule type

type MixedScriptsEvaluator

type MixedScriptsEvaluator struct {
	// contains filtered or unexported fields
}

MixedScriptsEvaluator is the evaluator for the mixed scripts rule type

func NewMixedScriptEvaluator

func NewMixedScriptEvaluator(
	ctx context.Context,
	ghClient provifv1.GitHub,
	opts ...eoptions.Option,
) (*MixedScriptsEvaluator, error)

NewMixedScriptEvaluator creates a new mixed scripts evaluator

func (*MixedScriptsEvaluator) Eval

Eval evaluates the mixed scripts rule type

Jump to

Keyboard shortcuts

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