PHP 인터페이스 Airship\Engine\Contract\ContinuumInterface

파일 보기 프로젝트 열기: paragonie/airship

공개 메소드들

메소드 설명
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