validation

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCluster

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

ValidateCluster validate cluster

func ValidateClusterVersioned

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

ValidateClusterVersioned validate cluster

Types

type BusinessObjectGetter

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

func NewObjectGetter

func NewObjectGetter(businessClient *businessinternalclient.BusinessClient) BusinessObjectGetter

type ClusterGetter

type ClusterGetter interface {
	Cluster(ctx context.Context, 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