Documentation
¶
Index ¶
- func CreateSSHKeyPairFiles(base string) error
- func ExtractPackage(tgzFile, destRoot string) error
- func FindDirFromDir(root, dirName string) string
- func FindFileFromDir(root, fileName string) string
- func GenerateFakeArgsFile(destFile string) error
- func GenerateFakeImagesJson(destFile string) error
- func GetProcessPID(name, vdlOut string) string
- func GetProcessPort(name, vdlOut string) string
- func IsEmuRunning(emuPID string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSSHKeyPairFiles ¶
CreateSSHKeyPairFiles creates a private-public and authorized_key files. The files are written to the following locations:
{base}/.fx-ssh-path {base}/.ssh/fuchsia_ed25519 {base}/.ssh/fuchsia_ed25519.pub {base}/.ssh/fuchsia_authorized_keys
This simulates in-tree ssh setup.
func ExtractPackage ¶
ExtractPackage extracts a tgzFile to destRoot. For example, ExtractPackage("/root/path/to/file.tar.gz", "/new/path") will extract /root/path/to/file.tar.gz to /new/path/...
func FindDirFromDir ¶
FindDirFromDir searches the root dir and returns the first path that matches dirName.
func FindFileFromDir ¶
FindFileFromDir searches the root dir and returns the first path that matches fileName.
func GenerateFakeArgsFile ¶
GenerateFakeArgsFile creates a fake gn build output to destFile.
func GenerateFakeImagesJson ¶
GenerateFakeImagesJson creates a fake images.json build output to destFile.
func GetProcessPID ¶
GetProcessPID parses vdlOutput textproto and finds the recorded PID for the specified name.
func GetProcessPort ¶
GetProcessPort parses vdlOutput textproto and finds the recorded port value for the specified name.
func IsEmuRunning ¶
IsEmuRunning checks if there is a running host qemu process that matches the emuPID.
Types ¶
This section is empty.