Свойство | Тип | Описание | |
---|---|---|---|
$_client |
Метод | Описание | |
---|---|---|
__construct ( |
||
createSnapshot ( string $repository, string $name, array $options = [], boolean $waitForCompletion = false ) : |
Create a new snapshot. | |
deleteSnapshot ( string $repository, string $name ) : |
Delete a snapshot. | |
getAllRepositories ( ) : array | Retrieve all repository records. | |
getAllSnapshots ( string $repository ) : array | Retrieve data regarding all snapshots in the given repository. | |
getRepository ( string $name ) : array | Retrieve a repository record by name. | |
getSnapshot ( string $repository, string $name ) : array | Retrieve data regarding a specific snapshot. | |
registerRepository ( string $name, string $type, array $settings = [] ) : |
Register a snapshot repository. | |
request ( string $path, string $method = Request::GET, array $data = [], array $query = [] ) : |
Perform a snapshot request. | |
restoreSnapshot ( string $repository, string $name, array $options = [], boolean $waitForCompletion = false ) : |
Restore a snapshot. |
public createSnapshot ( string $repository, string $name, array $options = [], boolean $waitForCompletion = false ) : |
||
$repository | string | the name of the repository in which this snapshot should be stored |
$name | string | the name of this snapshot |
$options | array | optional settings for this snapshot |
$waitForCompletion | boolean | if true, the request will not return until the snapshot operation is complete |
Результат |
public deleteSnapshot ( string $repository, string $name ) : |
||
$repository | string | the repository in which the snapshot resides |
$name | string | the name of the snapshot to be deleted |
Результат |
public getAllRepositories ( ) : array | ||
Результат | array |
public getAllSnapshots ( string $repository ) : array | ||
$repository | string | the repository name |
Результат | array |
public getRepository ( string $name ) : array | ||
$name | string | the name of the desired repository |
Результат | array |
public registerRepository ( string $name, string $type, array $settings = [] ) : |
||
$name | string | the name of the repository |
$type | string | the repository type ("fs" for file system) |
$settings | array | Additional repository settings. If type "fs" is used, the "location" setting must be provided. |
Результат |
public restoreSnapshot ( string $repository, string $name, array $options = [], boolean $waitForCompletion = false ) : |
||
$repository | string | the name of the repository |
$name | string | the name of the snapshot |
$options | array | options for the restore operation |
$waitForCompletion | boolean | if true, the request will not return until the restore operation is complete |
Результат |