Documentation ¶
Overview ¶
Package lxd is a fake lxd simplestreams server that serves container images for Crostini tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a simplestreams HTTP server that serves lxd images for tests. It serves images from a given directory only, and ignores the leading part of the path in URLs, only serving files based on matching filename. You should have valid lxd.tar.xz and rootfs.squashfs files in the given directory.
func NewServer ¶
NewServer creates a new simplestreams lxd container server serving images from the specified directory.
func (*Server) ListenAndServe ¶
ListenAndServe starts the server listening in a new goroutine. Ensure that you call Shutdown to terminate the goroutine.
Click to show internal directories.
Click to hide internal directories.