Documentation ¶
Overview ¶
Package ui contains functions to interact with the ChromeOS parts of the crostini UI. This is primarily the settings and the installer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var InstallWindow = nodewith.NameRegex(regexp.MustCompile(`^Set up Linux`)).Role(role.RootWebArea)
InstallWindow is the finder for Crostini install window.
Functions ¶
Types ¶
type InstallationOptions ¶
type InstallationOptions struct { UserName string ContainerMetadataPath string ContainerRootfsPath string MinDiskSize uint64 DebianVersion vm.ContainerDebianVersion IsSoftMinimum bool // If true, use the maximum disk size if MinDiskSize is larger than the maximum disk size. }
InstallationOptions is a struct contains parameters for Crostini installation.
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
Installer is a page object for the settings screen of the Crostini Installer.
func (*Installer) Install ¶
Install clicks the install button and waits for the Linux installation to complete.
func (*Installer) SetDiskSize ¶
func (p *Installer) SetDiskSize(ctx context.Context, minDiskSize uint64, IsSoftMinimum bool) (uint64, error)
SetDiskSize uses the slider on the Installer options pane to set the disk size to the smallest slider increment larger than the specified disk size. If minDiskSize is smaller than the possible minimum disk size, disk size will be the smallest size.
Directories ¶
Path | Synopsis |
---|---|
Package linuxfiles supports actions on Linux files on Files app.
|
Package linuxfiles supports actions on Linux files on Files app. |
Package settings provides support for the Linux settings on the Settings app.
|
Package settings provides support for the Linux settings on the Settings app. |
Package sharedfolders provides support for sharing folders with Crostini.
|
Package sharedfolders provides support for sharing folders with Crostini. |
Package terminalapp supports actions on Terminal on Chrome OS.
|
Package terminalapp supports actions on Terminal on Chrome OS. |