guestos

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: 9 Imported by: 0

Documentation

Overview

Package guestos provides VM guest OS related primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TraceReplayCrostiniSetup

func TraceReplayCrostiniSetup(ctx context.Context, s *testing.State, resizeDiskBytes uint64)

TraceReplayCrostiniSetup replays a graphics trace inside a crostini container. The VM disk will be resized for resizeDiskBytes > 0.

Types

type CrostiniGuestOS

type CrostiniGuestOS struct {
	VMInstance *vm.Container
}

CrostiniGuestOS is an implementation of IGuestOS interface for Crostini

func (CrostiniGuestOS) Command

func (c CrostiniGuestOS) Command(ctx context.Context, vshArgs ...string) *testexec.Cmd

Command returns a testexec.Cmd with a vsh command that will run in the guest.

func (CrostiniGuestOS) GetBinPath

func (c CrostiniGuestOS) GetBinPath() string

GetBinPath returns the recommended binaries path in the guest OS. The trace_replay binary will be uploaded into this directory.

func (CrostiniGuestOS) GetTempPath

func (c CrostiniGuestOS) GetTempPath() string

GetTempPath returns the recommended temp path in the guest OS. This directory can be used to store downloaded artifacts and other temp files.

Jump to

Keyboard shortcuts

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