Documentation ¶
Index ¶
- Constants
- func ExecuteCommand(root *cobra.Command, args ...string) (output string, err error)
- func ExecuteCommandC(root *cobra.Command, args ...string) (c *cobra.Command, output string, err error)
- func NewTestAdminParams(objects ...runtime.Object) (*pkg.AdminParams, *k8sfake.Clientset)
- func NewTestAdminParamsWithNetworkingObjects(objects ...runtime.Object) *pkg.AdminParams
- func NewTestAdminWithoutKubeConfig() *pkg.AdminParams
Constants ¶
View Source
const (
ErrNoKubeConfiguration = "invalid configuration: no configuration has been provided"
)
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommand ¶
ExecuteCommand similar to ExecuteCommandC but does not return *cobra.Command
func ExecuteCommandC ¶
func ExecuteCommandC(root *cobra.Command, args ...string) (c *cobra.Command, output string, err error)
ExecuteCommandC execute cobra.command and catch the output
func NewTestAdminParams ¶
NewTestAdminParams creates an AdminParams and kubernetes clientset for testing
func NewTestAdminParamsWithNetworkingObjects ¶ added in v0.27.0
func NewTestAdminParamsWithNetworkingObjects(objects ...runtime.Object) *pkg.AdminParams
func NewTestAdminWithoutKubeConfig ¶
func NewTestAdminWithoutKubeConfig() *pkg.AdminParams
NewTestAdminWithoutKubeConfig creates an AdminParams without kube config when create kubernetes clientset
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.