| 1 | package CDP::diskSafe; | ||
| 2 | |||
| 3 | use Frontier::Client; | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, ); | ||
| 9 | require Exporter; | ||
| 10 | require DynaLoader; | ||
| 11 | require AutoLoader; | ||
| 12 | |||
| 13 | @ISA = qw(Exporter DynaLoader AutoLoader); | ||
| 14 | # Items to export into callers namespace by default. Note: do not export | ||
| 15 | # names by default without a very good reason. Use EXPORT_OK instead. | ||
| 16 | # Do not simply export all your public functions/methods/constants. | ||
| 17 | @EXPORT =qw//; | ||
| 18 | |||
| 19 | @EXPORT_OK = | ||
| 20 | qw/ | ||
| 21 | addDiskSafe | ||
| 22 | addDiskSafeWithEncryption | ||
| 23 | deleteDiskSafe | ||
| 24 | getActiveDiskSafe | ||
| 25 | getActiveDiskSafeAsMap | ||
| 26 | getActiveDiskSafeID | ||
| 27 | getCompressionLevel | ||
| 28 | getDiskSafe | ||
| 29 | getDiskSafeAsMap | ||
| 30 | getDiskSafeIDs | ||
| 31 | getMaxFreeSpace | ||
| 32 | getStorageDiskID | ||
| 33 | getTimeCreated | ||
| 34 | isEncryptionInitDone | ||
| 35 | runEncryptionSetup | ||
| 36 | setCompressionLevel | ||
| 37 | setPassphrase | ||
| 38 | /; | ||
| 39 | |||
| 40 | %EXPORT_TAGS = ( | ||
| 41 | 'ALL' => \@EXPORT_OK, | ||
| 42 | 'CONST' => [qw//], | ||
| 43 | ); | ||
| 44 | |||
| 45 | Exporter::export_ok_tags(keys %EXPORT_TAGS); | ||
| 46 | |||
| 47 | |||
| 48 | sub addDiskSafe { | ||
| 49 | my $client = shift; | ||
| 50 | $client->call('diskSafe.addDiskSafe',@_); | ||
| 51 | } | ||
| 52 | |||
| 53 | sub addDiskSafeWithEncryption { | ||
| 54 | my $client = shift; | ||
| 55 | $client->call('diskSafe.addDiskSafeWithEncryption',@_); | ||
| 56 | } | ||
| 57 | |||
| 58 | sub deleteDiskSafe { | ||
| 59 | my $client = shift; | ||
| 60 | $client->call('diskSafe.deleteDiskSafe',@_); | ||
| 61 | } | ||
| 62 | |||
| 63 | sub getActiveDiskSafe { | ||
| 64 | my $client = shift; | ||
| 65 | $client->call('diskSafe.getActiveDiskSafe',@_); | ||
| 66 | } | ||
| 67 | |||
| 68 | sub getActiveDiskSafeAsMap { | ||
| 69 | my $client = shift; | ||
| 70 | $client->call('diskSafe.getActiveDiskSafeAsMap',@_); | ||
| 71 | } | ||
| 72 | |||
| 73 | sub getActiveDiskSafeID { | ||
| 74 | my $client = shift; | ||
| 75 | $client->call('diskSafe.getActiveDiskSafeID',@_); | ||
| 76 | } | ||
| 77 | |||
| 78 | sub getCompressionLevel { | ||
| 79 | my $client = shift; | ||
| 80 | $client->call('diskSafe.getCompressionLevel',@_); | ||
| 81 | } | ||
| 82 | |||
| 83 | sub getDiskSafe { | ||
| 84 | my $client = shift; | ||
| 85 | $client->call('diskSafe.getDiskSafe',@_); | ||
| 86 | } | ||
| 87 | |||
| 88 | sub getDiskSafeAsMap { | ||
| 89 | my $client = shift; | ||
| 90 | $client->call('diskSafe.getDiskSafeAsMap',@_); | ||
| 91 | } | ||
| 92 | |||
| 93 | sub getDiskSafeIDs { | ||
| 94 | my $client = shift; | ||
| 95 | $client->call('diskSafe.getDiskSafeIDs',@_); | ||
| 96 | } | ||
| 97 | |||
| 98 | sub getMaxFreeSpace { | ||
| 99 | my $client = shift; | ||
| 100 | $client->call('diskSafe.getMaxFreeSpace',@_); | ||
| 101 | } | ||
| 102 | |||
| 103 | sub getStorageDiskID { | ||
| 104 | my $client = shift; | ||
| 105 | $client->call('diskSafe.getStorageDiskID',@_); | ||
| 106 | } | ||
| 107 | |||
| 108 | sub getTimeCreated { | ||
| 109 | my $client = shift; | ||
| 110 | $client->call('diskSafe.getTimeCreated',@_); | ||
| 111 | } | ||
| 112 | |||
| 113 | sub isEncryptionInitDone { | ||
| 114 | my $client = shift; | ||
| 115 | $client->call('diskSafe.isEncryptionInitDone',@_); | ||
| 116 | } | ||
| 117 | |||
| 118 | sub runEncryptionSetup { | ||
| 119 | my $client = shift; | ||
| 120 | $client->call('diskSafe.runEncryptionSetup',@_); | ||
| 121 | } | ||
| 122 | |||
| 123 | sub setCompressionLevel { | ||
| 124 | my $client = shift; | ||
| 125 | $client->call('diskSafe.setCompressionLevel',@_); | ||
| 126 | } | ||
| 127 | |||
| 128 | sub setPassphrase { | ||
| 129 | my $client = shift; | ||
| 130 | $client->call('diskSafe.setPassphrase',@_); | ||
| 131 | } | ||
| 132 | |||
| 133 | |||
| 134 | 1; | ||
| 135 | __END__ |