validation

package
v0.2.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ValidateChainName validates that the given name can be used as a chain name.

ValidateMinerName validates that the given name can be used as a miner name.

ValidateMinerSetName validates that the given name can be used as a minerset name.

Functions

func ValidateChain

func ValidateChain(obj *apps.Chain) field.ErrorList

ValidateChain validates a given Chain.

func ValidateChainSpec

func ValidateChainSpec(spec *apps.ChainSpec, fldPath *field.Path) field.ErrorList

ValidateChainSpec validates given chain spec.

func ValidateChainSpecUpdate

func ValidateChainSpecUpdate(newSpec, oldSpec *apps.ChainSpec, fldPath *field.Path) field.ErrorList

ValidateChainSpecUpdate tests if an update to a ChainSpec is valid.

func ValidateChainStatus

func ValidateChainStatus(status *apps.ChainStatus, fldPath *field.Path) field.ErrorList

ValidateChainStatus validates given chain status.

func ValidateChainStatusUpdate

func ValidateChainStatusUpdate(update, old *apps.Chain) field.ErrorList

ValidateChainStatusUpdate tests if a an update to a Chain status is valid.

func ValidateChainUpdate

func ValidateChainUpdate(update, old *apps.Chain) field.ErrorList

ValidateChainUpdate tests if an update to a Chain is valid.

func ValidateMiner

func ValidateMiner(obj *apps.Miner) field.ErrorList

ValidateMiner validates a given Miner.

func ValidateMinerSet

func ValidateMinerSet(obj *apps.MinerSet) field.ErrorList

ValidateMinerSet validates a given MinerSet.

func ValidateMinerSetSpec

func ValidateMinerSetSpec(spec *apps.MinerSetSpec, fldPath *field.Path) field.ErrorList

ValidateMinerSetSpec validates given minerset spec.

func ValidateMinerSetSpecUpdate

func ValidateMinerSetSpecUpdate(newSpec, oldSpec *apps.MinerSetSpec, fldPath *field.Path) field.ErrorList

ValidateMinerSetSpecUpdate tests if an update to a MinerSetSpec is valid.

func ValidateMinerSetStatus

func ValidateMinerSetStatus(status *apps.MinerSetStatus, fldPath *field.Path) field.ErrorList

ValidateMinerSetStatus validates given minerset status.

func ValidateMinerSetStatusUpdate

func ValidateMinerSetStatusUpdate(update, old *apps.MinerSet) field.ErrorList

ValidateMinerSetStatusUpdate tests if a an update to a MinerSet status is valid.

func ValidateMinerSetUpdate

func ValidateMinerSetUpdate(update, old *apps.MinerSet) field.ErrorList

ValidateMinerSetUpdate tests if an update to a MinerSet is valid.

func ValidateMinerSpec

func ValidateMinerSpec(spec *apps.MinerSpec, fldPath *field.Path) field.ErrorList

ValidateMinerSpec validates given miner spec.

func ValidateMinerSpecUpdate

func ValidateMinerSpecUpdate(newSpec, oldSpec *apps.MinerSpec, fldPath *field.Path) field.ErrorList

ValidateMinerSpecUpdate tests if an update to a MinerSpec is valid.

func ValidateMinerStatus

func ValidateMinerStatus(status *apps.MinerStatus, fldPath *field.Path) field.ErrorList

ValidateMinerStatus validates given miner status.

func ValidateMinerStatusUpdate

func ValidateMinerStatusUpdate(update, old *apps.Miner) field.ErrorList

ValidateMinerStatusUpdate tests if a an update to a Miner status is valid.

func ValidateMinerUpdate

func ValidateMinerUpdate(update, old *apps.Miner) field.ErrorList

ValidateMinerUpdate tests if an update to a Miner is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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