Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTestingRootCmd ¶ added in v1.8.1
DefaultTestingRootCmd returns the DefaultRootCmd with server API mocked to return current version. Useful for tests which don't actually require the server but need to avoid extraneous warnings.
func GetMockNewAPIServerClient ¶ added in v1.8.1
func GetMockNewAPIServerClient() func(util_http.Client) kumactl_resources.ApiServerClient
Types ¶
type CheckedHttpServer ¶
func NewHttpServer ¶
func NewHttpServer(handler http.Handler) CheckedHttpServer
type MockAPIServerClient ¶ added in v1.8.1
type MockAPIServerClient struct {
Version types.IndexResponse
}
func (*MockAPIServerClient) GetVersion ¶ added in v1.8.1
func (m *MockAPIServerClient) GetVersion(ctx context.Context) (*types.IndexResponse, error)
Click to show internal directories.
Click to hide internal directories.