autoupdate

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 autoupdate contains local Tast services for autoupdate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NebraskaService

type NebraskaService struct {
	// contains filtered or unexported fields
}

NebraskaService implements tast.cros.policy.NebraskaService.

func (*NebraskaService) CreateTempDir

func (nebraska *NebraskaService) CreateTempDir(ctx context.Context, req *empty.Empty) (*aupb.CreateTempDirResponse, error)

CreateTempDir creates a temporary directory that is used by Nebraska.

func (*NebraskaService) RemoveTempDir

func (nebraska *NebraskaService) RemoveTempDir(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

RemoveTempDir removes the temporary directory that was created for Nebraska.

func (*NebraskaService) Start

func (nebraska *NebraskaService) Start(ctx context.Context, req *aupb.StartRequest) (*aupb.StartResponse, error)

Start starts a Nebraska service instance with the given parameters.

func (*NebraskaService) Stop

func (nebraska *NebraskaService) Stop(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

Stop gracefully stops the previously started Nebraska instance.

type RollbackService

type RollbackService struct {
	// contains filtered or unexported fields
}

RollbackService implements tast.cros.autoupdate.RollbackService.

func (*RollbackService) SetUpNetworks

SetUpNetworks sets up a series of network configuration on the device that are supported by rollback. The device needs to be in a state so that chrome://network may be opened.

func (*RollbackService) SetUpPskNetwork

func (r *RollbackService) SetUpPskNetwork(ctx context.Context, req *empty.Empty) (*aupb.SetUpPskResponse, error)

SetUpPskNetwork is deprecated. Use SetUpNetworks instead.

func (*RollbackService) VerifyRollback

VerifyRollback checks that the device is on the enrollment screen, then logs in as a normal user and verifies the previously set-up networks exists. VerifyRollbackRequest needs to contain the unchanged NetworkInformation from SetUpNetworksResponse.

type UpdateService

type UpdateService struct {
	// contains filtered or unexported fields
}

UpdateService implements tast.cros.autoupdate.UpdateService.

func (*UpdateService) CheckForUpdate

func (u *UpdateService) CheckForUpdate(ctx context.Context, req *aupb.UpdateRequest) (*empty.Empty, error)

CheckForUpdate starts update_engine_client to update the OS.

func (*UpdateService) LSBReleaseContent

func (u *UpdateService) LSBReleaseContent(ctx context.Context, req *empty.Empty) (*aupb.LSBRelease, error)

LSBReleaseContent gets the content of /etc/lsb-release.

func (*UpdateService) OverwriteStatefulLSBRelease

func (u *UpdateService) OverwriteStatefulLSBRelease(ctx context.Context, req *aupb.LSBRelease) (*empty.Empty, error)

OverwriteStatefulLSBRelease overwrites the content of /mnt/stateful_partition/etc/lsb-release.

func (*UpdateService) StatefulLSBReleaseContent

func (u *UpdateService) StatefulLSBReleaseContent(ctx context.Context, req *empty.Empty) (*aupb.LSBRelease, error)

StatefulLSBReleaseContent gets the content of /mnt/stateful_partition/etc/lsb-release. The values in this file overwrite the effect of the ones in /etc/lsb-release.

Directories

Path Synopsis
Package rollbacknetworks contains test configuration and validation of the networks supported by rollback.
Package rollbacknetworks contains test configuration and validation of the networks supported by rollback.

Jump to

Keyboard shortcuts

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