kubernetesk8s.io/kubernetes/pkg/kubectl/cmd/util/sanity Index | Files

package sanity

import "k8s.io/kubernetes/pkg/kubectl/cmd/util/sanity"

Index

Variables

var (
	AllCmdChecks = []CmdCheck{
		CheckLongDesc,
		CheckExamples,
		CheckFlags,
	}
	AllGlobalChecks = []GlobalCheck{
		CheckGlobalVarFlags,
	}
)

Functions

func CheckExamples

func CheckExamples(cmd *cobra.Command) []error

func CheckFlags

func CheckFlags(cmd *cobra.Command) []error

func CheckGlobalVarFlags

func CheckGlobalVarFlags() []error

func CheckLongDesc

func CheckLongDesc(cmd *cobra.Command) []error

func RunCmdChecks

func RunCmdChecks(cmd *cobra.Command, cmdChecks []CmdCheck, skipCmd []string) []error

func RunGlobalChecks

func RunGlobalChecks(globalChecks []GlobalCheck) []error

Types

type CmdCheck

type CmdCheck func(cmd *cobra.Command) []error

type GlobalCheck

type GlobalCheck func() []error

Source Files

cmd_sanity.go

Version
v1.8.14
Published
Jun 18, 2018
Platform
js/wasm
Imports
7 packages
Last checked
2 minutes ago

Tools for package owners.