kubernetes: k8s.io/kubernetes/cmd/kubeadm/test/cmd Index | Files

package kubeadm

import "k8s.io/kubernetes/cmd/kubeadm/test/cmd"

Index

Package Files

util.go

func AssertSubCommandHasFlags Uses

func AssertSubCommandHasFlags(t *testing.T, subCmds []*cobra.Command, command string, flags ...string)

AssertSubCommandHasFlags is a utility function for kubeadm testing that assert if a Cobra sub command has expected flags

func RunCmd Uses

func RunCmd(command string, args ...string) (string, string, int, error)

RunCmd is a utility function for kubeadm testing that executes a specified command

func RunSubCommand Uses

func RunSubCommand(t *testing.T, subCmds []*cobra.Command, command string, args ...string)

RunSubCommand is a utility function for kubeadm testing that executes a Cobra sub command

Package kubeadm imports 5 packages (graph). Updated 2019-10-06. Refresh now. Tools for package owners.