validation

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCluster

func ValidateCluster(platformClient platforminternalclient.PlatformInterface, clusterName string) field.ErrorList

ValidateCluster validate cluster

func ValidateClusterVersioned

func ValidateClusterVersioned(getter ClusterGetter, clusterName string, tenantID string) field.ErrorList

ValidateClusterVersioned validate cluster

func ValidateUpdateCluster

func ValidateUpdateCluster(newClusterName, oldClusterName string) field.ErrorList

ValidateUpdateCluster validate cluster

Types

type BusinessObjectGetter

type BusinessObjectGetter interface {
	Project(name string, options metav1.GetOptions) (*business.Project, error)
	Namespace(project, name string, options metav1.GetOptions) (*business.Namespace, error)
}

func NewObjectGetter

func NewObjectGetter(businessClient *businessinternalclient.BusinessClient) BusinessObjectGetter

type ClusterGetter

type ClusterGetter interface {
	Cluster(name string, options metav1.GetOptions) (*platformv1.Cluster, error)
}

func NewClusterGetter

func NewClusterGetter(platformClient platformversionedclient.PlatformV1Interface) ClusterGetter

Jump to

Keyboard shortcuts

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