Documentation
¶
Index ¶
- func NewEnsembleV1Validator() validate.Validator
- func NewEnsemblev1Transformer() transform.Transformer
- func TransformEdgeConstraint(_ *map[string]interface{}, data any, _ tree.Path) (any, error)
- func TransformResources(root *map[string]interface{}, data any, path tree.Path) (any, error)
- func TransformSpec(_ *map[string]interface{}, data any, _ tree.Path) (any, error)
- func TransformStringToBytes(_ *map[string]interface{}, data any, _ tree.Path) (any, error)
- func TransformVolume(root *map[string]interface{}, data any, path tree.Path) (any, error)
- func ValidateAllocation(root *map[string]any, data any, _ tree.Path) error
- func ValidateEdgeConstraints(root *map[string]any, data any, _ tree.Path) error
- func ValidateExecution(_ *map[string]any, data any, _ tree.Path) error
- func ValidateHealthCheck(_ *map[string]any, data any, _ tree.Path) error
- func ValidateNode(root *map[string]any, data any, _ tree.Path) error
- func ValidateResources(_ *map[string]any, data any, _ tree.Path) error
- func ValidateSpec(_ *map[string]any, data any, _ tree.Path) error
- func ValidateSupervisor(root *map[string]any, data any, _ tree.Path) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnsembleV1Validator ¶
NewEnsembleV1Validator creates a new validator for the NuNet configuration.
func NewEnsemblev1Transformer ¶
func NewEnsemblev1Transformer() transform.Transformer
func TransformEdgeConstraint ¶
TransformEdgeConstraint maps the edges parameter to Source and Target (S and T) properties.
func TransformResources ¶
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 ¶
TransformSpec transforms the spec configuration and wraps it in a "V1" key.
func TransformStringToBytes ¶
func TransformVolume ¶
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 ¶
ValidateAllocation checks the allocation configuration.
func ValidateEdgeConstraints ¶
ValidateEdgeConstraints checks the edge constraints configuration.
func ValidateExecution ¶
ValidateExecution checks the execution configuration.
func ValidateHealthCheck ¶
ValidateHealthCheck checks the healthcheck configuration.
func ValidateNode ¶
ValidateNode checks the node configuration.
func ValidateResources ¶
ValidateResources validates the resource configuration
func ValidateSpec ¶
ValidateSpec checks the root configuration for consistency.
Types ¶
This section is empty.