Lines Matching refs:repository

29      * Register a snapshot repository.
31 * @param string $name the name of the repository
32 * @param string $type the repository type ("fs" for file system)
33 * @param array $settings Additional repository settings. If type "fs" is used, the "location" setting must be provided.
52 * Retrieve a repository record by name.
54 * @param string $name the name of the desired repository
79 * Retrieve all repository records.
95 * @param string $repository the name of the repository in which this snapshot should be stored
106 public function createSnapshot($repository, $name, $options = [], $waitForCompletion = false)
108 return $this->request($repository.'/'.$name, Request::PUT, $options, ['wait_for_completion' => $waitForCompletion]);
114 * @param string $repository the name of the repository from which to retrieve the snapshot
124 public function getSnapshot($repository, $name)
127 $response = $this->request($repository.'/'.$name);
130 throw new NotFoundException("Snapshot '".$name."' does not exist in repository '".$repository."'.");
140 * Retrieve data regarding all snapshots in the given repository.
142 * @param string $repository the repository name
150 public function getAllSnapshots($repository)
152 return $this->request($repository.'/_all')->getData();
158 * @param string $repository the repository in which the snapshot resides
167 public function deleteSnapshot($repository, $name)
169 return $this->request($repository.'/'.$name, Request::DELETE);
175 * @param string $repository the name of the repository
186 public function restoreSnapshot($repository, $name, $options = [], $waitForCompletion = false)
189 ->setRepository($repository)