package
0.102.0
Repository: https://github.com/elastic/elastic-package.git
Documentation: pkg.go.dev

# Functions

CreateFieldDependencyManager function creates a new instance of the DependencyManager.
CreateValidatorForDirectory function creates a validator for the directory.
FindElementDefinition is a helper function used to find the fields definition in the schema.
WithDefaultNumericConversion configures the validator to accept defined keyword (or constant_keyword) fields as numeric-type.
WithDisabledDependencyManagement configures the validator to ignore external fields and won't follow dependencies.
WithDisableNormalization configures the validator to disable normalization.
WithEnabledAllowedIPCheck configures the validator to perform check on the IP values against an allowed list.
WithEnabledImportAllECSSchema configures the validator to check or not the fields with the complete ECS schema.
WithExpectedDatasets configures the validator to check if the dataset field value matches one of the expected values.
WithInjectFieldsOptions configures fields injection.
WithNumericKeywordFields configures the validator to accept specific fields to have numeric-type while defined as keyword or constant_keyword.
WithSpecVersion enables validation dependant of the spec version used by the package.

# Structs

AllowedValue is one of the allowed values for a field.
DependencyManager is responsible for resolving external field dependencies.
FieldDefinition describes a single field with its properties.
InjectFieldsOptions allow to configure fields injection.
No description provided by the author
Validator is responsible for fields validation.

# Type aliases

AllowedValues is the list of allowed values for a field.
FieldDefinitions is an array of FieldDefinition, this can be unmarshalled from a yaml list or a yaml map.
ValidatorOption represents an optional flag that can be passed to CreateValidatorForDirectory.