Documentation
¶
Index ¶
- func KubeConfigFake() *clientcmdapi.Config
- func KubeconfigFile(t *testing.T, kubeconfig *api.Config) string
- func McpInitRequest() mcp.InitializeRequest
- func Must[T any](v T, err error) T
- func RandomPortAddress() (*net.TCPAddr, error)
- func ReadFile(path ...string) string
- func RestoreEnv(originalEnv []string)
- func WaitForServer(tcpAddr *net.TCPAddr) error
- func WriteObject(w http.ResponseWriter, obj runtime.Object)
- type InOpenShiftHandler
- type McpClient
- type MockServer
- type StreamContext
- type StreamOptions
- type TokenReviewHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubeConfigFake ¶ added in v0.0.51
func KubeConfigFake() *clientcmdapi.Config
func KubeconfigFile ¶ added in v0.0.53
func McpInitRequest ¶ added in v0.0.54
func McpInitRequest() mcp.InitializeRequest
func RandomPortAddress ¶ added in v0.0.54
func RestoreEnv ¶ added in v0.0.54
func RestoreEnv(originalEnv []string)
func WaitForServer ¶ added in v0.0.54
func WriteObject ¶
func WriteObject(w http.ResponseWriter, obj runtime.Object)
Types ¶
type InOpenShiftHandler ¶ added in v0.0.51
type InOpenShiftHandler struct {
}
func (*InOpenShiftHandler) ServeHTTP ¶ added in v0.0.51
func (h *InOpenShiftHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type McpClient ¶ added in v0.0.51
func NewMcpClient ¶ added in v0.0.51
type MockServer ¶
type MockServer struct {
// contains filtered or unexported fields
}
func NewMockServer ¶
func NewMockServer() *MockServer
func (*MockServer) Close ¶
func (m *MockServer) Close()
func (*MockServer) Config ¶
func (m *MockServer) Config() *rest.Config
func (*MockServer) Handle ¶
func (m *MockServer) Handle(handler http.Handler)
func (*MockServer) Kubeconfig ¶ added in v0.0.51
func (m *MockServer) Kubeconfig() *api.Config
func (*MockServer) KubeconfigFile ¶ added in v0.0.51
func (m *MockServer) KubeconfigFile(t *testing.T) string
func (*MockServer) ResetHandlers ¶ added in v0.0.54
func (m *MockServer) ResetHandlers()
type StreamContext ¶
type StreamContext struct {
Closer io.Closer
StdinStream io.ReadCloser
StdoutStream io.WriteCloser
StderrStream io.WriteCloser
// contains filtered or unexported fields
}
func CreateHTTPStreams ¶
func CreateHTTPStreams(w http.ResponseWriter, req *http.Request, opts *StreamOptions) (*StreamContext, error)
type StreamOptions ¶
type TokenReviewHandler ¶ added in v0.0.54
type TokenReviewHandler struct {
TokenReviewed bool
}
func (*TokenReviewHandler) ServeHTTP ¶ added in v0.0.54
func (h *TokenReviewHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.