PHP Интерфейс Airship\Engine\Contract\ContinuumInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

autoUpdate() публичный метод

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() публичный метод

Download an update into a temp file
public downloadUpdateFile ( UpdateInfo $update, string $apiEndpoint = 'download' ) : UpdateFile
$update UpdateInfo
$apiEndpoint string
Результат UpdateFile

verifyUpdateSignature() публичный метод

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
Результат boolean