Documentation ¶
Index ¶
- Constants
- func ValidatClusterSpec(spec *platform.ClusterSpec, fldPath *field.Path, ...) field.ErrorList
- func ValidateClusteType(clusterType string, fldPath *field.Path) field.ErrorList
- func ValidateCluster(cluster *platform.Cluster, platformClient internalversion.PlatformInterface) field.ErrorList
- func ValidateClusterByProvider(cluster *platform.Cluster) field.ErrorList
- func ValidateClusterFeature(feature *platform.ClusterFeature, fldPath *field.Path) field.ErrorList
- func ValidateClusterMachines(machines []platform.ClusterMachine, fldPath *field.Path) field.ErrorList
- func ValidateClusterName(clusterName string, fldPath *field.Path, cluster *platform.Cluster, ...) field.ErrorList
- func ValidateClusterUpdate(cluster *platform.Cluster, oldCluster *platform.Cluster, ...) field.ErrorList
- func ValidateFiles(files []platform.File, fldPath *field.Path) field.ErrorList
- func ValidateGPUType(gpuType *platform.GPUType, fldPath *field.Path) field.ErrorList
- func ValidateHA(ha *platform.HA, fldPath *field.Path) field.ErrorList
- func ValidateHooks(hooks map[platform.HookType]string, fldPath *field.Path, files []platform.File, ...) field.ErrorList
- func ValidateMachine(machine *platform.Machine, platformClient internalversion.PlatformInterface) field.ErrorList
- func ValidateMachineByProvider(machine *platform.Machine) field.ErrorList
- func ValidateMachineSpec(spec *platform.MachineSpec, fldPath *field.Path, ...) field.ErrorList
- func ValidateMachineSpecType(machineType string, fldPath *field.Path) field.ErrorList
- func ValidateMachineUpdate(machine *platform.Machine, oldMachine *platform.Machine) field.ErrorList
- func ValidateMachineWithCluster(ip string, fldPath *field.Path, cluster *platform.Cluster, ...) field.ErrorList
- func ValidateMasterTimeOffset(fldPath *field.Path, masters []*ssh.SSH) field.ErrorList
- func ValidateSSH(fldPath *field.Path, ip string, port int, user string, password []byte, ...) field.ErrorList
- func ValidateWorkerTimeOffset(fldPath *field.Path, worker *ssh.SSH, masters []*ssh.SSH) field.ErrorList
Constants ¶
const MaxTimeOffset = 5 * 300
Variables ¶
This section is empty.
Functions ¶
func ValidatClusterSpec ¶
func ValidatClusterSpec(spec *platform.ClusterSpec, fldPath *field.Path, platformClient internalversion.PlatformInterface) field.ErrorList
ValidateCluster validates a given ClusterSpec.
func ValidateClusteType ¶
ValidateClusteType validates a given type.
func ValidateCluster ¶
func ValidateCluster(cluster *platform.Cluster, platformClient internalversion.PlatformInterface) field.ErrorList
ValidateCluster validates a given Cluster.
func ValidateClusterByProvider ¶
ValidateClusterByProvider validates a given cluster by cluster provider.
func ValidateClusterFeature ¶
ValidateClusterFeature validates a given ClusterFeature.
func ValidateClusterMachines ¶
func ValidateClusterMachines(machines []platform.ClusterMachine, fldPath *field.Path) field.ErrorList
ValidateClusterMachines validates a given CluterMachines.
func ValidateClusterName ¶
func ValidateClusterName(clusterName string, fldPath *field.Path, cluster *platform.Cluster, platformClient internalversion.PlatformInterface) field.ErrorList
ValidateClusterName validates a given clusterName and return cluster if exists.
func ValidateClusterUpdate ¶
func ValidateClusterUpdate(cluster *platform.Cluster, oldCluster *platform.Cluster, platformClient internalversion.PlatformInterface) field.ErrorList
ValidateClusterUpdate tests if an update to a cluster is valid.
func ValidateFiles ¶
ValidateFiles validates a given Files.
func ValidateGPUType ¶
ValidateGPUType validates a given GPUType.
func ValidateHA ¶
ValidateHA validates a given HA.
func ValidateHooks ¶
func ValidateHooks(hooks map[platform.HookType]string, fldPath *field.Path, files []platform.File, filesFldPath *field.Path) field.ErrorList
ValidateHooks validates a given Hooks.
func ValidateMachine ¶
func ValidateMachine(machine *platform.Machine, platformClient internalversion.PlatformInterface) field.ErrorList
ValidateMachine validates a given machine.
func ValidateMachineByProvider ¶
ValidateMachineByProvider validates a given machine by machine provider.
func ValidateMachineSpec ¶
func ValidateMachineSpec(spec *platform.MachineSpec, fldPath *field.Path, platformClient internalversion.PlatformInterface) field.ErrorList
ValidateMachineSpec validates a given machine spec.
func ValidateMachineSpecType ¶
ValidateMachineSpecType validates a given type and call provider.Validate.
func ValidateMachineUpdate ¶
ValidateMachineUpdate tests if an update to a machine is valid.
func ValidateMachineWithCluster ¶
func ValidateMachineWithCluster(ip string, fldPath *field.Path, cluster *platform.Cluster, platformClient internalversion.PlatformInterface) field.ErrorList
ValidateMachineWithCluster validates a given machine by ip with cluster.
func ValidateMasterTimeOffset ¶
ValidateMasterTimeOffset validates a given master time offset.
Types ¶
This section is empty.