cmdutil

package
v1.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallResourceGroupCRD

func InstallResourceGroupCRD(ctx context.Context, f util.Factory) error

InstallResourceGroupCRD will install the ResourceGroup CRD into the cluster. The function will block until the CRD is either installed and established, or an error was encountered. If the CRD could not be installed, an error of the type ResourceGroupCRDInstallError will be returned.

func JoinStringsWithQuotes

func JoinStringsWithQuotes(strs []string) string

JoinStringsWithQuotes combines the elements in the string slice into a string, with each element inside quotes.

func VerifyResourceGroupCRD

func VerifyResourceGroupCRD(f util.Factory) error

VerifyResourceGroupCRD verifies that the ResourceGroupCRD exists in the cluster. If it doesn't an error of type NoResourceGroupCRDError was returned.

Types

type NoResourceGroupCRDError

type NoResourceGroupCRDError struct{}

NoResourceGroupCRDError is an error type that will be used when a cluster doesn't have the ResourceGroup CRD installed.

func (*NoResourceGroupCRDError) Error

type ResourceGroupCRDInstallError

type ResourceGroupCRDInstallError struct {
	Err error
}

ResourceGroupCRDInstallError is an error that will be returned if the ResourceGroup CRD can't be applied to the cluster.

func (*ResourceGroupCRDInstallError) Error

func (*ResourceGroupCRDInstallError) Unwrap

func (i *ResourceGroupCRDInstallError) Unwrap() error

Jump to

Keyboard shortcuts

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