golden hour
/home/doctorbruno/public_html/pgmed.org/wp-content/plugins/backupbuddy/destinations/_s3lib3/Aws
⬆️ Go Up
Upload
File/Folder
Size
Actions
Acm
-
Del
OK
Api
-
Del
OK
ApplicationAutoScaling
-
Del
OK
ApplicationDiscoveryService
-
Del
OK
AutoScaling
-
Del
OK
AwsClient.php
11.34 KB
Del
OK
AwsClientInterface.php
5.4 KB
Del
OK
AwsClientTrait.php
2.49 KB
Del
OK
CacheInterface.php
755 B
Del
OK
ClientResolver.php
26.63 KB
Del
OK
CloudHsm
-
Del
OK
CloudTrail
-
Del
OK
CodeCommit
-
Del
OK
CodePipeline
-
Del
OK
CognitoIdentity
-
Del
OK
CognitoIdentityProvider
-
Del
OK
CognitoSync
-
Del
OK
Command.php
1.3 KB
Del
OK
CommandInterface.php
946 B
Del
OK
CommandPool.php
4.91 KB
Del
OK
ConfigService
-
Del
OK
Credentials
-
Del
OK
DataPipeline
-
Del
OK
DatabaseMigrationService
-
Del
OK
DeviceFarm
-
Del
OK
DirectConnect
-
Del
OK
DirectoryService
-
Del
OK
DoctrineCacheAdapter.php
989 B
Del
OK
Ecr
-
Del
OK
Ecs
-
Del
OK
Efs
-
Del
OK
Emr
-
Del
OK
Endpoint
-
Del
OK
Exception
-
Del
OK
GameLift
-
Del
OK
Handler
-
Del
OK
HandlerList.php
12.43 KB
Del
OK
HasDataTrait.php
1.11 KB
Del
OK
HashInterface.php
531 B
Del
OK
HashingStream.php
1.53 KB
Del
OK
History.php
3.81 KB
Del
OK
Iam
-
Del
OK
ImportExport
-
Del
OK
Inspector
-
Del
OK
Iot
-
Del
OK
IotDataPlane
-
Del
OK
JsonCompiler.php
478 B
Del
OK
Kinesis
-
Del
OK
KinesisAnalytics
-
Del
OK
Kms
-
Del
OK
LruArrayCache.php
2.06 KB
Del
OK
MachineLearning
-
Del
OK
MarketplaceCommerceAnalytics
-
Del
OK
MarketplaceMetering
-
Del
OK
Middleware.php
12.8 KB
Del
OK
MockHandler.php
3.6 KB
Del
OK
MultiRegionClient.php
7.42 KB
Del
OK
Multipart
-
Del
OK
OpsWorks
-
Del
OK
PhpHash.php
1.78 KB
Del
OK
PsrCacheAdapter.php
742 B
Del
OK
Redshift
-
Del
OK
Result.php
1.08 KB
Del
OK
ResultInterface.php
1.34 KB
Del
OK
ResultPaginator.php
5.08 KB
Del
OK
RetryMiddleware.php
6.17 KB
Del
OK
S3
-
Del
OK
Sdk.php
14.59 KB
Del
OK
ServiceCatalog
-
Del
OK
Signature
-
Del
OK
SnowBall
-
Del
OK
Ssm
-
Del
OK
StorageGateway
-
Del
OK
Sts
-
Del
OK
Support
-
Del
OK
Swf
-
Del
OK
TraceMiddleware.php
10.41 KB
Del
OK
Waf
-
Del
OK
Waiter.php
8.44 KB
Del
OK
WorkSpaces
-
Del
OK
WrappedHttpHandler.php
6.88 KB
Del
OK
data
-
Del
OK
functions.php
9.54 KB
Del
OK
index.php
27 B
Del
OK
Edit: History.php
<?php namespace Aws; use Psr\Http\Message\RequestInterface; use Aws\Exception\AwsException; /** * Represents a history container that is required when using the history * middleware. */ class History implements \Countable, \IteratorAggregate { private $maxEntries; private $entries; /** * @param int $maxEntries Maximum number of entries to store. */ public function __construct($maxEntries = 10) { $this->maxEntries = $maxEntries; } public function count() { return count($this->entries); } public function getIterator() { return new \ArrayIterator(array_values($this->entries)); } /** * Get the last finished command seen by the history container. * * @return CommandInterface * @throws \LogicException if no commands have been seen. */ public function getLastCommand() { if (!$this->entries) { throw new \LogicException('No commands received'); } return end($this->entries)['command']; } /** * Get the last finished request seen by the history container. * * @return RequestInterface * @throws \LogicException if no requests have been seen. */ public function getLastRequest() { if (!$this->entries) { throw new \LogicException('No requests received'); } return end($this->entries)['request']; } /** * Get the last received result or exception. * * @return ResultInterface|AwsException * @throws \LogicException if no return values have been received. */ public function getLastReturn() { if (!$this->entries) { throw new \LogicException('No entries'); } $last = end($this->entries); if (isset($last['result'])) { return $last['result']; } elseif (isset($last['exception'])) { return $last['exception']; } else { throw new \LogicException('No return value for last entry.'); } } /** * Initiate an entry being added to the history. * * @param CommandInterface $cmd Command be executed. * @param RequestInterface $req Request being sent. * * @return string Returns the ticket used to finish the entry. */ public function start(CommandInterface $cmd, RequestInterface $req) { $ticket = uniqid(); $this->entries[$ticket] = [ 'command' => $cmd, 'request' => $req, 'result' => null, 'exception' => null, ]; return $ticket; } /** * Finish adding an entry to the history container. * * @param string $ticket Ticket returned from the start call. * @param mixed $result The result (an exception or AwsResult). */ public function finish($ticket, $result) { if (!isset($this->entries[$ticket])) { throw new \InvalidArgumentException('Invalid history ticket'); } elseif (isset($this->entries[$ticket]['result']) || isset($this->entries[$ticket]['exception']) ) { throw new \LogicException('History entry is already finished'); } if ($result instanceof \Exception) { $this->entries[$ticket]['exception'] = $result; } else { $this->entries[$ticket]['result'] = $result; } if (count($this->entries) >= $this->maxEntries) { $this->entries = array_slice($this->entries, -$this->maxEntries, null, true); } } /** * Flush the history */ public function clear() { $this->entries = []; } /** * Converts the history to an array. * * @return array */ public function toArray() { return array_values($this->entries); } }
Save