Documentation ¶
Overview ¶
Package autoupdate contains local Tast services for autoupdate.
Index ¶
- type NebraskaService
- func (nebraska *NebraskaService) CreateTempDir(ctx context.Context, req *empty.Empty) (*aupb.CreateTempDirResponse, error)
- func (nebraska *NebraskaService) RemoveTempDir(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (nebraska *NebraskaService) Start(ctx context.Context, req *aupb.StartRequest) (*aupb.StartResponse, error)
- func (nebraska *NebraskaService) Stop(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- type RollbackService
- func (r *RollbackService) SetUpNetworks(ctx context.Context, request *aupb.SetUpNetworksRequest) (*aupb.SetUpNetworksResponse, error)
- func (r *RollbackService) SetUpPskNetwork(ctx context.Context, req *empty.Empty) (*aupb.SetUpPskResponse, error)
- func (r *RollbackService) VerifyRollback(ctx context.Context, request *aupb.VerifyRollbackRequest) (*aupb.VerifyRollbackResponse, error)
- type UpdateService
- func (u *UpdateService) CheckForUpdate(ctx context.Context, req *aupb.UpdateRequest) (*empty.Empty, error)
- func (u *UpdateService) LSBReleaseContent(ctx context.Context, req *empty.Empty) (*aupb.LSBRelease, error)
- func (u *UpdateService) OverwriteStatefulLSBRelease(ctx context.Context, req *aupb.LSBRelease) (*empty.Empty, error)
- func (u *UpdateService) StatefulLSBReleaseContent(ctx context.Context, req *empty.Empty) (*aupb.LSBRelease, error)
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.
type RollbackService ¶
type RollbackService struct {
// contains filtered or unexported fields
}
RollbackService implements tast.cros.autoupdate.RollbackService.
func (*RollbackService) SetUpNetworks ¶
func (r *RollbackService) SetUpNetworks(ctx context.Context, request *aupb.SetUpNetworksRequest) (*aupb.SetUpNetworksResponse, error)
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 ¶
func (r *RollbackService) VerifyRollback(ctx context.Context, request *aupb.VerifyRollbackRequest) (*aupb.VerifyRollbackResponse, error)
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.
Source Files ¶
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. |