kubernetes/staging/src/k8s.io/kubectl/pkg/generate/generate.go

type GeneratorFunc

type GeneratorParam

type Generator

type StructuredGenerator

func IsZero(i interface{}

// ValidateParams ensures that all required params are present in the params map
func ValidateParams(paramSpec []GeneratorParam, params map[string]interface{}

// AnnotateFlags annotates all flags that are used by generators.
func AnnotateFlags(cmd *cobra.Command, generators map[string]Generator) {}

// EnsureFlagsValid ensures that no invalid flags are being used against a
func EnsureFlagsValid(cmd *cobra.Command, generators map[string]Generator, generatorInUse string) error {}

// MakeParams is a utility that creates generator parameters from a command line
func MakeParams(cmd *cobra.Command, params []GeneratorParam) map[string]interface{}

func MakeProtocols(protocols map[string]string) string {}

func ParseProtocols(protocols interface{}

// ParseLabels turns a string representation of a label set into a map[string]string
func ParseLabels(labelSpec interface{}

func GetBool(params map[string]string, key string, defValue bool) (bool, error) {}