ui

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 21 Imported by: 0

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

View Source
var InstallWindow = nodewith.NameRegex(regexp.MustCompile(`^Set up Linux`)).Role(role.RootWebArea)

InstallWindow is the finder for Crostini install window.

Functions

func InstallCrostini

func InstallCrostini(ctx context.Context, tconn *chrome.TestConn, cr *chrome.Chrome, iOptions *InstallationOptions) (uint64, error)

InstallCrostini prepares image and installs Crostini from UI.

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 New

func New(tconn *chrome.TestConn) *Installer

New creates a new Installer page object.

func (*Installer) Install

func (p *Installer) Install(ctx context.Context) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL