validation

package
v0.0.0-...-44ba42e Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotMoreThan100Percent

func IsNotMoreThan100Percent(intOrStringValue intstr.IntOrString, fldPath *field.Path) field.ErrorList

func ValidateBackupInfrastructure

func ValidateBackupInfrastructure(backupInfrastructure *garden.BackupInfrastructure) field.ErrorList

ValidateBackupInfrastructure validates a BackupInfrastructure object.

func ValidateBackupInfrastructureSpec

func ValidateBackupInfrastructureSpec(spec *garden.BackupInfrastructureSpec, fldPath *field.Path) field.ErrorList

ValidateBackupInfrastructureSpec validates the specification of a BackupInfrastructure object.

func ValidateBackupInfrastructureSpecUpdate

func ValidateBackupInfrastructureSpecUpdate(newSpec, oldSpec *garden.BackupInfrastructureSpec, deletionTimestampSet bool, fldPath *field.Path) field.ErrorList

ValidateBackupInfrastructureSpecUpdate validates the specification of a BackupInfrastructure object.

func ValidateBackupInfrastructureStatusUpdate

func ValidateBackupInfrastructureStatusUpdate(newBackupInfrastructure, oldBackupInfrastructure *garden.BackupInfrastructure) field.ErrorList

ValidateBackupInfrastructureStatusUpdate validates the status field of a BackupInfrastructure object.

func ValidateBackupInfrastructureUpdate

func ValidateBackupInfrastructureUpdate(newBackupInfrastructure, oldBackupInfrastructure *garden.BackupInfrastructure) field.ErrorList

ValidateBackupInfrastructureUpdate validates a BackupInfrastructure object before an update.

func ValidateCloudProfile

func ValidateCloudProfile(cloudProfile *garden.CloudProfile) field.ErrorList

ValidateCloudProfile validates a CloudProfile object.

func ValidateCloudProfileSpec

func ValidateCloudProfileSpec(spec *garden.CloudProfileSpec, fldPath *field.Path) field.ErrorList

ValidateCloudProfileSpec validates the specification of a CloudProfile object.

func ValidateCloudProfileUpdate

func ValidateCloudProfileUpdate(newProfile, oldProfile *garden.CloudProfile) field.ErrorList

ValidateCloudProfileUpdate validates a CloudProfile object before an update.

func ValidateClusterAutoscaler

func ValidateClusterAutoscaler(autoScaler garden.ClusterAutoscaler, fldPath *field.Path) field.ErrorList

ValidateClusterAutoscaler validates the given ClusterAutoscaler fields.

func ValidateHibernation

func ValidateHibernation(hibernation *garden.Hibernation, fldPath *field.Path) field.ErrorList

ValidateHibernation validates a Hibernation object.

func ValidateHibernationCronSpec

func ValidateHibernationCronSpec(seenSpecs sets.String, spec string, fldPath *field.Path) field.ErrorList

func ValidateHibernationSchedule

func ValidateHibernationSchedule(seenSpecs sets.String, schedule *garden.HibernationSchedule, fldPath *field.Path) field.ErrorList

ValidateHibernationSchedule validates the correctness of a HibernationSchedule. It checks whether the set start and end time are valid cron specs.

func ValidateHibernationScheduleLocation

func ValidateHibernationScheduleLocation(location string, fldPath *field.Path) field.ErrorList

ValidateHibernationScheduleLocation validates that the location of a HibernationSchedule is correct.

func ValidateHibernationSchedules

func ValidateHibernationSchedules(schedules []garden.HibernationSchedule, fldPath *field.Path) field.ErrorList

func ValidateName

func ValidateName(name string, prefix bool) []string

ValidateName is a helper function for validating that a name is a DNS sub domain.

func ValidatePositiveIntOrPercent

func ValidatePositiveIntOrPercent(intOrPercent intstr.IntOrString, fldPath *field.Path) field.ErrorList

func ValidateProject

func ValidateProject(project *garden.Project) field.ErrorList

ValidateProject validates a Project object.

func ValidateProjectSpec

func ValidateProjectSpec(projectSpec *garden.ProjectSpec, fldPath *field.Path) field.ErrorList

ValidateProjectSpec validates the specification of a Project object.

func ValidateProjectStatusUpdate

func ValidateProjectStatusUpdate(newProject, oldProject *garden.Project) field.ErrorList

ValidateProjectStatusUpdate validates the status field of a Project object.

func ValidateProjectUpdate

func ValidateProjectUpdate(newProject, oldProject *garden.Project) field.ErrorList

ValidateProjectUpdate validates a Project object before an update.

func ValidateQuota

func ValidateQuota(quota *garden.Quota) field.ErrorList

ValidateQuota validates a Quota object.

func ValidateQuotaSpec

func ValidateQuotaSpec(quotaSpec *garden.QuotaSpec, fldPath *field.Path) field.ErrorList

ValidateQuotaSpec validates the specification of a Quota object.

func ValidateQuotaStatusUpdate

func ValidateQuotaStatusUpdate(newQuota, oldQuota *garden.Quota) field.ErrorList

ValidateQuotaStatusUpdate validates the status field of a Quota object.

func ValidateQuotaUpdate

func ValidateQuotaUpdate(newQuota, oldQuota *garden.Quota) field.ErrorList

ValidateQuotaUpdate validates a Quota object before an update.

func ValidateSecretBinding

func ValidateSecretBinding(binding *garden.SecretBinding) field.ErrorList

ValidateSecretBinding validates a SecretBinding object.

func ValidateSecretBindingUpdate

func ValidateSecretBindingUpdate(newBinding, oldBinding *garden.SecretBinding) field.ErrorList

ValidateSecretBindingUpdate validates a SecretBinding object before an update.

func ValidateSeed

func ValidateSeed(seed *garden.Seed) field.ErrorList

ValidateSeed validates a Seed object.

func ValidateSeedAnnotation

func ValidateSeedAnnotation(annotations map[string]string, fldPath *field.Path) field.ErrorList

ValidateSeedAnnotation validates the annotations of seed

func ValidateSeedSpec

func ValidateSeedSpec(seedSpec *garden.SeedSpec, fldPath *field.Path) field.ErrorList

ValidateSeedSpec validates the specification of a Seed object.

func ValidateSeedStatusUpdate

func ValidateSeedStatusUpdate(newSeed, oldSeed *garden.Seed) field.ErrorList

ValidateSeedStatusUpdate validates the status field of a Seed object.

func ValidateSeedUpdate

func ValidateSeedUpdate(newSeed, oldSeed *garden.Seed) field.ErrorList

ValidateSeedUpdate validates a Seed object before an update.

func ValidateShoot

func ValidateShoot(shoot *garden.Shoot) field.ErrorList

ValidateShoot validates a Shoot object.

func ValidateShootSpec

func ValidateShootSpec(spec *garden.ShootSpec, fldPath *field.Path) field.ErrorList

ValidateShootSpec validates the specification of a Shoot object.

func ValidateShootSpecUpdate

func ValidateShootSpecUpdate(newSpec, oldSpec *garden.ShootSpec, deletionTimestampSet bool, fldPath *field.Path) field.ErrorList

ValidateShootSpecUpdate validates the specification of a Shoot object.

func ValidateShootStatusUpdate

func ValidateShootStatusUpdate(newStatus, oldStatus garden.ShootStatus) field.ErrorList

ValidateShootStatusUpdate validates the status field of a Shoot object.

func ValidateShootUpdate

func ValidateShootUpdate(newShoot, oldShoot *garden.Shoot) field.ErrorList

ValidateShootUpdate validates a Shoot object before an update.

func ValidateSubject

func ValidateSubject(subject rbacv1.Subject, fldPath *field.Path) field.ErrorList

ValidateSubject validates the subject representing the owner.

func ValidateWorker

func ValidateWorker(worker garden.Worker, fldPath *field.Path) field.ErrorList

ValidateWorker validates the worker object.

func ValidateWorkers

func ValidateWorkers(workers []garden.Worker, fldPath *field.Path) field.ErrorList

ValidateWorkers validates worker objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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