Documentation
¶
Overview ¶
Package dlc provides ways to interact with dlcservice daemon and utilities.
Index ¶
- Constants
- func Cleanup(ctx context.Context, infos ...Info) error
- func Install(ctx context.Context, id, omahaURL string) error
- func List(ctx context.Context) (map[string][]Info, error)
- func Purge(ctx context.Context, id string) error
- func Uninstall(ctx context.Context, id string) error
- type Info
- type State
Constants ¶
View Source
const ( CacheDir = "/var/cache/dlc" JobName = "dlcservice" LibDir = "/var/lib/dlcservice/dlc" PreloadDir = "/var/cache/dlc-images" FactoryInstallDir = "/mnt/stateful_partition/unencrypted/dlc-factory-images" ServiceName = "org.chromium.DlcService" User = "dlcservice" )
Dlcservice related constants.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
Cleanup removes all DLC related states and restarts dlcservice. Note that this will delete the DLC image from disk!
Types ¶
type Info ¶
type Info struct { ID string `json:"id"` Package string `json:"package"` RootMount string `json:"root_mount"` }
Info holds the fields related to a DLC.
Click to show internal directories.
Click to hide internal directories.