Documentation
¶
Overview ¶
Package dlc provides functionality used by several DLC tests but not necessary for tests that simply use DLC.
Index ¶
Constants ¶
View Source
const ( DirPerm = 0755 FilePerm = 0644 ImageFile = "dlc.img" SlotA = "dlc_a" SlotB = "dlc_b" TestDir = "/usr/local/dlc" TestID1 = "test1-dlc" TestID2 = "test2-dlc" TestPackage = "test-package" )
Constants used by DLC tests
Variables ¶
This section is empty.
Functions ¶
func ChownContentsToDlcservice ¶
ChownContentsToDlcservice recursively changes the ownership of the directory contents to the uid and gid of dlcservice.
func CopyFileWithPermissions ¶
CopyFileWithPermissions copies file |from| to |to| and sets permissions.
Types ¶
type ListOutput ¶
type ListOutput struct { ID string `json:"id"` Package string `json:"package"` RootMount string `json:"root_mount"` }
ListOutput holds the output from running `dlcservice_util --list`.
func GetInstalled ¶
func GetInstalled(ctx context.Context) ([]ListOutput, error)
GetInstalled uses the dlcservice_util to get the installed DLCs. Will return an error when failing to retrieve and parse the output.
Click to show internal directories.
Click to hide internal directories.