ensemblev1

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnsembleV1Validator

func NewEnsembleV1Validator() validate.Validator

NewEnsembleV1Validator creates a new validator for the NuNet configuration.

func NewEnsemblev1Transformer

func NewEnsemblev1Transformer() transform.Transformer

func TransformEdgeConstraint

func TransformEdgeConstraint(_ *map[string]interface{}, data any, _ tree.Path) (any, error)

TransformEdgeConstraint maps the edges parameter to Source and Target (S and T) properties.

func TransformResources

func TransformResources(root *map[string]interface{}, data any, path tree.Path) (any, error)

TransformResources transforms the resources configuration and handles inheritance. The resources configuration can be a string reference "reference" or a map. If the resources is defined in the parent resources, the configurations are merged.

func TransformSpec

func TransformSpec(_ *map[string]interface{}, data any, _ tree.Path) (any, error)

TransformSpec transforms the spec configuration and wraps it in a "V1" key.

func TransformStringToBytes

func TransformStringToBytes(_ *map[string]interface{}, data any, _ tree.Path) (any, error)

func TransformVolume

func TransformVolume(root *map[string]interface{}, data any, path tree.Path) (any, error)

TransformVloume transforms the volume configuration and handles inheritance. The volume configuration can be a string in the format "name:mountpoint" or a map. If the volume is defined in the parent volumes, the configurations are merged.

func ValidateAllocation

func ValidateAllocation(root *map[string]any, data any, _ tree.Path) error

ValidateAllocation checks the allocation configuration.

func ValidateEdgeConstraints

func ValidateEdgeConstraints(root *map[string]any, data any, _ tree.Path) error

ValidateEdgeConstraints checks the edge constraints configuration.

func ValidateExecution

func ValidateExecution(_ *map[string]any, data any, _ tree.Path) error

ValidateExecution checks the execution configuration.

func ValidateHealthCheck

func ValidateHealthCheck(_ *map[string]any, data any, _ tree.Path) error

ValidateHealthCheck checks the healthcheck configuration.

func ValidateNode

func ValidateNode(root *map[string]any, data any, _ tree.Path) error

ValidateNode checks the node configuration.

func ValidateResources

func ValidateResources(_ *map[string]any, data any, _ tree.Path) error

ValidateResources validates the resource configuration

func ValidateSpec

func ValidateSpec(_ *map[string]any, data any, _ tree.Path) error

ValidateSpec checks the root configuration for consistency.

func ValidateSupervisor

func ValidateSupervisor(root *map[string]any, data any, _ tree.Path) error

ValidateSupervisor checks the supervisor configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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