PHP Interface Airship\Engine\Contract\ContinuumInterface

Afficher le fichier Open project: paragonie/airship

Méthodes publiques

Méthode 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 méthode

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 méthode

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

verifyUpdateSignature() public méthode

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
Résultat boolean