Documentation ¶
Index ¶
- Variables
- func CreateContainer(config ContainerConfig, is lxdclient.InstanceServer) (string, error)
- func CreateContainerProfile(is lxdclient.InstanceServer) error
- func DeleteContainer(containerName string, is lxd.InstanceServer) error
- func GetContainerLXDIP(name string, blacklist []string, is lxd.InstanceServer) (net.IP, error)
- func RecursiveMkdir(container, dir string, mode os.FileMode, UID, GID int64, ...) error
- func RunCommand(container, command string, is lxdclient.InstanceServer) error
- func RunCommands(container string, commands []string, is lxdclient.InstanceServer) error
- func StartContainer(containerName string, is lxd.InstanceServer) error
- func StopContainer(containerName string, is lxd.InstanceServer) error
- func UploadFile(data []byte, from, to, container string, is lxdclient.InstanceServer) error
- func UploadFiles(froms []string, to, container string, is lxdclient.InstanceServer) error
- func WaitContainerIP(name string, blacklist []string, is lxd.InstanceServer) (net.IP, error)
- type ContainerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UID int64 GID int64 )
Functions ¶
func CreateContainer ¶
func CreateContainer(config ContainerConfig, is lxdclient.InstanceServer) (string, error)
func CreateContainerProfile ¶
func CreateContainerProfile(is lxdclient.InstanceServer) error
func DeleteContainer ¶
func DeleteContainer(containerName string, is lxd.InstanceServer) error
func GetContainerLXDIP ¶
GetContainerLXDIP returns the IP address of the container on the LXD network (and not the cni0 flannel.1 network devices). This is usually on eth0.
func RecursiveMkdir ¶
func RunCommand ¶
func RunCommand(container, command string, is lxdclient.InstanceServer) error
func RunCommands ¶
func RunCommands(container string, commands []string, is lxdclient.InstanceServer) error
func StartContainer ¶
func StartContainer(containerName string, is lxd.InstanceServer) error
func StopContainer ¶
func StopContainer(containerName string, is lxd.InstanceServer) error
func UploadFile ¶
func UploadFile(data []byte, from, to, container string, is lxdclient.InstanceServer) error
from is a file, to is a dir
func UploadFiles ¶
func UploadFiles(froms []string, to, container string, is lxdclient.InstanceServer) error
func WaitContainerIP ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.