package
0.0.0-20230227000145-7f8d8f8780fe
Repository: https://github.com/neophenix/lxdepot.git
Documentation: pkg.go.dev

# Functions

BootstrapContainer loops over all the FileOrCommand objects in the bootstrap section of the config and performs each item sequentially.
ContainerPlaybookHandler handles requests to run various playbooks on the container, including re-bootstrapping it if asked.
CreateContainerHandler creates the container on our host, then if we are using a 3rd party DNS gets an A record from there.
DeleteContainerHandler first stops a running container (there is no force like the lxc command line), then deletes any DNS entry for it from our 3rd party, and then deletes the container.
Handler is our overall websocket router, it unmarshals the request and then sends it to the appropriate handler.
ManageBuffers starts a backend goroutine to periodically check our buffers and remove any that are old.
MoveContainerHandler wraps lxd.MoveContainer and reports any errors it returns.
StartContainerHandler starts a stopped container.
StopContainerHandler stops a running container.

# Variables

Conf is our main config.
MessageBuffer will house our outgoing messages so clients can navigate around and get updates.

# Structs

IncomingMessage is for messages from the client to us.
OutgoingMessage is from us to the UI.