validation

package
v1.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: Apache-2.0 Imports: 39 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAPIServerExtendedArguments

func ValidateAPIServerExtendedArguments(config api.ExtendedArguments, fldPath *field.Path) field.ErrorList

func ValidateAdmissionPluginConfig

func ValidateAdmissionPluginConfig(pluginConfig map[string]api.AdmissionPluginConfig, fieldPath *field.Path) field.ErrorList

func ValidateAssetExtensionsConfig

func ValidateAssetExtensionsConfig(extConfig api.AssetExtensionsConfig, fldPath *field.Path) field.ErrorList

func ValidateCertInfo

func ValidateCertInfo(certInfo api.CertInfo, required bool, fldPath *field.Path) field.ErrorList

func ValidateControllerExtendedArguments

func ValidateControllerExtendedArguments(config api.ExtendedArguments, fldPath *field.Path) field.ErrorList

func ValidateDir

func ValidateDir(path string, fldPath *field.Path) field.ErrorList

func ValidateDisabledFeatures

func ValidateDisabledFeatures(disabledFeatures []string, fldPath *field.Path) field.ErrorList

func ValidateDockerConfig

func ValidateDockerConfig(config api.DockerConfig, fldPath *field.Path) field.ErrorList

func ValidateEtcdConnectionInfo

func ValidateEtcdConnectionInfo(config api.EtcdConnectionInfo, server *api.EtcdConfig, fldPath *field.Path) field.ErrorList

ValidateEtcdConnectionInfo validates the connection info. If a server EtcdConfig is provided, it ensures the connection info includes a URL for it, and has a client cert/key if the server requires client certificate authentication

func ValidateEtcdStorageConfig

func ValidateEtcdStorageConfig(config api.EtcdStorageConfig, fldPath *field.Path) field.ErrorList

func ValidateExtendedArguments

func ValidateExtendedArguments(config api.ExtendedArguments, flagFunc func(*pflag.FlagSet), fldPath *field.Path) field.ErrorList

func ValidateFile

func ValidateFile(path string, fldPath *field.Path) field.ErrorList

func ValidateGitLabIdentityProvider

func ValidateGitLabIdentityProvider(provider *api.GitLabIdentityProvider, challenge bool, fieldPath *field.Path) field.ErrorList

func ValidateHostPort

func ValidateHostPort(value string, fldPath *field.Path) field.ErrorList

func ValidateImageConfig

func ValidateImageConfig(config api.ImageConfig, fldPath *field.Path) field.ErrorList

func ValidateImagePolicyConfig

func ValidateImagePolicyConfig(config api.ImagePolicyConfig, fldPath *field.Path) field.ErrorList

func ValidateKubeConfig

func ValidateKubeConfig(path string, fldPath *field.Path) field.ErrorList

func ValidateKubeletConnectionInfo

func ValidateKubeletConnectionInfo(config api.KubeletConnectionInfo, fldPath *field.Path) field.ErrorList

func ValidateKubeletExtendedArguments

func ValidateKubeletExtendedArguments(config api.ExtendedArguments, fldPath *field.Path) field.ErrorList

func ValidateNamespace

func ValidateNamespace(namespace string, fldPath *field.Path) field.ErrorList

func ValidateNetworkConfig

func ValidateNetworkConfig(config api.NodeNetworkConfig, fldPath *field.Path) field.ErrorList

func ValidateNodeAuthConfig

func ValidateNodeAuthConfig(config api.NodeAuthConfig, fldPath *field.Path) field.ErrorList

func ValidateOAuthIdentityProvider

func ValidateOAuthIdentityProvider(clientID string, clientSecret api.StringSource, challenge bool, fieldPath *field.Path) field.ErrorList

func ValidateOpenIDIdentityProvider

func ValidateOpenIDIdentityProvider(provider *api.OpenIDIdentityProvider, identityProvider api.IdentityProvider, fieldPath *field.Path) field.ErrorList

func ValidatePodManifestConfig

func ValidatePodManifestConfig(podManifestConfig *api.PodManifestConfig, fldPath *field.Path) field.ErrorList

func ValidatePolicyConfig

func ValidatePolicyConfig(config api.PolicyConfig, fldPath *field.Path) field.ErrorList

func ValidateRemoteConnectionInfo

func ValidateRemoteConnectionInfo(remoteConnectionInfo api.RemoteConnectionInfo, fldPath *field.Path) field.ErrorList

func ValidateRoutingConfig

func ValidateRoutingConfig(config api.RoutingConfig, fldPath *field.Path) field.ErrorList

func ValidateSecureURL

func ValidateSecureURL(urlString string, fldPath *field.Path) (*url.URL, field.ErrorList)

func ValidateSessionSecrets

func ValidateSessionSecrets(config *api.SessionSecrets) field.ErrorList

func ValidateSpecifiedIP

func ValidateSpecifiedIP(ipString string, fldPath *field.Path) field.ErrorList

func ValidateStorageVersionLevel

func ValidateStorageVersionLevel(level string, knownAPILevels, deadAPILevels []string, fldPath *field.Path) field.ErrorList

func ValidateURL

func ValidateURL(urlString string, fldPath *field.Path) (*url.URL, field.ErrorList)

func ValidateVolumeConfig

func ValidateVolumeConfig(config api.NodeVolumeConfig, fldPath *field.Path) field.ErrorList

Types

type ValidationResults

type ValidationResults struct {
	Warnings field.ErrorList
	Errors   field.ErrorList
}

TODO: this should just be two return arrays, no need to be clever

func ValidateAPILevels

func ValidateAPILevels(apiLevels []string, knownAPILevels, deadAPILevels []string, fldPath *field.Path) ValidationResults

func ValidateActiveDirectoryConfig

func ValidateActiveDirectoryConfig(config *api.ActiveDirectoryConfig) ValidationResults

func ValidateAllInOneConfig

func ValidateAllInOneConfig(master *api.MasterConfig, node *api.NodeConfig) ValidationResults

func ValidateAssetConfig

func ValidateAssetConfig(config *api.AssetConfig, fldPath *field.Path) ValidationResults

func ValidateAugmentedActiveDirectoryConfig

func ValidateAugmentedActiveDirectoryConfig(config *api.AugmentedActiveDirectoryConfig) ValidationResults

func ValidateEtcdConfig

func ValidateEtcdConfig(config *api.EtcdConfig, fldPath *field.Path) ValidationResults

func ValidateHTTPServingInfo

func ValidateHTTPServingInfo(info api.HTTPServingInfo, fldPath *field.Path) ValidationResults

func ValidateIdentityProvider

func ValidateIdentityProvider(identityProvider api.IdentityProvider, fldPath *field.Path) ValidationResults

func ValidateKeystoneIdentityProvider

func ValidateKeystoneIdentityProvider(provider *api.KeystonePasswordIdentityProvider, identityProvider api.IdentityProvider, fldPath *field.Path) ValidationResults

RemoteConnection fields validated separately -- this is for keystone-specific validation

func ValidateKubernetesMasterConfig

func ValidateKubernetesMasterConfig(config *api.KubernetesMasterConfig, fldPath *field.Path) ValidationResults

func ValidateLDAPClientConfig

func ValidateLDAPClientConfig(url, bindDN, bindPassword, CA string, insecure bool, fldPath *field.Path) ValidationResults

func ValidateLDAPIdentityProvider

func ValidateLDAPIdentityProvider(provider *api.LDAPPasswordIdentityProvider, fldPath *field.Path) ValidationResults

func ValidateLDAPQuery

func ValidateLDAPQuery(query api.LDAPQuery, fldPath *field.Path) ValidationResults

func ValidateLDAPSyncConfig

func ValidateLDAPSyncConfig(config *api.LDAPSyncConfig) ValidationResults

func ValidateMasterConfig

func ValidateMasterConfig(config *api.MasterConfig, fldPath *field.Path) ValidationResults

func ValidateNamedCertificates

func ValidateNamedCertificates(fldPath *field.Path, namedCertificates []api.NamedCertificate) ValidationResults

func ValidateNodeConfig

func ValidateNodeConfig(config *api.NodeConfig, fldPath *field.Path) ValidationResults

func ValidateOAuthConfig

func ValidateOAuthConfig(config *api.OAuthConfig, fldPath *field.Path) ValidationResults

func ValidateProjectConfig

func ValidateProjectConfig(config api.ProjectConfig, fldPath *field.Path) ValidationResults

func ValidateRFC2307Config

func ValidateRFC2307Config(config *api.RFC2307Config) ValidationResults

func ValidateRequestHeaderIdentityProvider

func ValidateRequestHeaderIdentityProvider(provider *api.RequestHeaderIdentityProvider, identityProvider api.IdentityProvider, fieldPath *field.Path) ValidationResults

func ValidateServiceAccountConfig

func ValidateServiceAccountConfig(config api.ServiceAccountConfig, builtInKubernetes bool, fldPath *field.Path) ValidationResults

func ValidateServingInfo

func ValidateServingInfo(info api.ServingInfo, fldPath *field.Path) ValidationResults

func ValidateStringSource

func ValidateStringSource(s api.StringSource, fieldPath *field.Path) ValidationResults

func (*ValidationResults) AddErrors

func (r *ValidationResults) AddErrors(errors ...*field.Error)

func (*ValidationResults) AddWarnings

func (r *ValidationResults) AddWarnings(warnings ...*field.Error)

func (*ValidationResults) Append

func (r *ValidationResults) Append(additionalResults ValidationResults)

Jump to

Keyboard shortcuts

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