kubernetesk8s.io/kubernetes/test/images/agnhost/test-webserver Index | Files

package testwebserver

import "k8s.io/kubernetes/test/images/agnhost/test-webserver"

Package testwebserver offers a tiny web server that serves a static file.

Index

Variables

var CmdTestWebserver = &cobra.Command{
	Use:   "test-webserver",
	Short: "Starts a simple HTTP fileserver",
	Long:  "Starts a simple HTTP fileserver on the given --port, which serves any file specified in the URL path, if it exists.",
	Args:  cobra.MaximumNArgs(0),
	Run:   main,
}

CmdTestWebserver is used by agnhost Cobra.

Source Files

test-webserver.go

Version
v1.33.2 (latest)
Published
Jun 17, 2025
Platform
js/wasm
Imports
4 packages
Last checked
1 hour ago

Tools for package owners.