Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigFile ¶
func CreateConfigFile(cfg *api.ClusterConfig) string
CreateConfigFile creates a temporary configuration file for testing by marshalling the given object in yaml. It returns the path to the file
Types ¶
type MockCmd ¶
func NewMockCmd ¶
func NewMockCmd(cmdFunc CommandFunction, parentCommand string, args ...string) *MockCmd
NewMockCmd returns a mock Cmd for a parent command (such as enable, get, utils) to be used for testing cli related features like flag and config file loading