validation

package
v4.2.0-dev1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIntType

func GetIntType(value interface{}) (int, error)

GetIntType typecasts the numeric value to the supported type

func GetNamespaceReplicationFactor

func GetNamespaceReplicationFactor(nsConf map[string]interface{}) (int, error)

GetNamespaceReplicationFactor returns the replication factor for the namespace.

func IsDeviceOrPmemNamespace

func IsDeviceOrPmemNamespace(namespaceConf map[string]interface{}) bool

IsDeviceOrPmemNamespace returns true if this namespace config uses device for storage.

func IsInMemoryNamespace

func IsInMemoryNamespace(namespaceConf map[string]interface{}) bool

IsInMemoryNamespace returns true if this namespace config uses memory for storage.

func IsShMemIndexTypeNamespace

func IsShMemIndexTypeNamespace(namespaceConf map[string]interface{}) bool

IsShMemIndexTypeNamespace returns true if this namespace index type is shmem.

func ValidateAerospikeConfig

func ValidateAerospikeConfig(
	aslog logr.Logger, version string, config map[string]interface{}, clSize int,
) error

ValidateAerospikeConfig validates the aerospikeConfig. It validates the schema, service, network, logging and namespace configurations.

func ValidateAerospikeConfigSchema

func ValidateAerospikeConfigSchema(
	aslog logr.Logger, version string, config map[string]interface{},
) error

func ValidateAerospikeConfigUpdate

func ValidateAerospikeConfigUpdate(
	aslog logr.Logger, version string,
	oldConfig, newConfig map[string]interface{}, clSize int,
) error

ValidateAerospikeConfigUpdate validates the update of aerospikeConfig. It validates the schema, security, tls, network and namespace configurations for the newConfig It also validates the update of security, tls, network and namespace configurations.

func ValidateAerospikeConfigUpdateWithoutSchema

func ValidateAerospikeConfigUpdateWithoutSchema(oldConfig, newConfig map[string]interface{}) error

ValidateAerospikeConfigUpdateWithoutSchema validates the update of aerospikeConfig except for the schema. It validates the update of security, tls, network and namespace configurations.

func ValidateStorageEngineDeviceList

func ValidateStorageEngineDeviceList(nsConfList []interface{}) (deviceList, fileList map[string]string, err error)

func ValidateTLSAuthenticateClient

func ValidateTLSAuthenticateClient(serviceConf map[string]interface{}) (
	[]string, error,
)

ValidateTLSAuthenticateClient validate the tls-authenticate-client field in the service configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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