PHP Interface Airship\Engine\Contract\ContinuumInterface

Show file Open project: paragonie/airship

Public Methods

Method Description
autoUpdate ( ) Process automatic updates:
downloadUpdateFile ( UpdateInfo $update, string $apiEndpoint = 'download' ) : UpdateFile Download an update into a temp file
verifyUpdateSignature ( UpdateInfo $info, UpdateFile $file ) : boolean Verify the Ed25519 signature of the update file against the supplier's public key.

Method Details

autoUpdate() public method

1. Check if a new update is available. 2. Download the upload file, store in a temporary file. 3. Verify the signature (via Halite). 4. If all is well, run the update script.
public autoUpdate ( )

downloadUpdateFile() public method

Download an update into a temp file
public downloadUpdateFile ( UpdateInfo $update, string $apiEndpoint = 'download' ) : UpdateFile
$update UpdateInfo
$apiEndpoint string
return UpdateFile

verifyUpdateSignature() public method

Verify the Ed25519 signature of the update file against the supplier's public key.
public verifyUpdateSignature ( UpdateInfo $info, UpdateFile $file ) : boolean
$info UpdateInfo
$file UpdateFile
return boolean