Documentation ¶
Index ¶
- func DummyAuthMethodConfig() *configs.AuthMethod
- func DummyCompleteConfig() configs.Config
- func DummyConfigNoAuth() configs.Config
- func DummyDashboardConfig() configs.Dashboard
- func DummyDashboardsConfig() []configs.Dashboard
- func InitConfig(t *testing.T) (conf *config.Config, configPath string, kubeConfigPath string, ...)
- func TempDir(t *testing.T, prefix string) (path string, cleanup func(*testing.T))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyAuthMethodConfig ¶
func DummyAuthMethodConfig() *configs.AuthMethod
DummyAuthMethodConfig returns a populated AuthMethod struct
func DummyCompleteConfig ¶
DummyCompleteConfig returns a fully populated Config struct
func DummyConfigNoAuth ¶
DummyConfigNoAuth returns a populated Config struct but omits the optional AuthMethod
func DummyDashboardConfig ¶
DummyDashboardConfig returns a populated Dashboard struct
func DummyDashboardsConfig ¶
DummyDashboardsConfig returns an array of populated Dashboard structs
func InitConfig ¶
func InitConfig(t *testing.T) (conf *config.Config, configPath string, kubeConfigPath string, cleanup func(*testing.T))
InitConfig creates a Config object meant for testing.
The returned config object will be associated with real files stored in a directory in the user's temporary file storage This directory can be cleaned up by calling the returned "cleanup" function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.