Changeset 4879 for trunk/Nebulous/lib
- Timestamp:
- Aug 25, 2005, 1:42:34 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/lib/Nebulous/Client.pod (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/lib/Nebulous/Client.pod
r4440 r4879 37 37 =head2 Import Parameters 38 38 39 This module accepts a hash as argument to it's C<import> method and exports no40 I<symbols>.39 This module accepts an optional hash as argument to it's C<import> method and 40 exports no I<symbols>. 41 41 42 42 use Nebulous::Client trace => qw( debug ); … … 84 84 =over 4 85 85 86 =item * create 87 88 =item * replicate 89 90 =item * cull 91 92 =item * lock 93 94 =item * unlock 95 96 =item * find_instances 97 98 =item * find 99 100 =item * open 101 102 =item * delete 103 104 =item * copy 105 106 =item * move 107 108 =item * delete_instance 109 110 =item * stat 86 87 =item * create($key, $class, $volume, $comment). 88 89 Creates and opens new storage object. 90 91 =over 4 92 93 =item * key 94 95 The storage object key (name). 96 97 =item * class 98 99 The storage class. 100 101 This parameter is optional. 102 103 =item * volume 104 105 The preferred storage location of initial instance. 106 107 This parameter is optional. 108 109 =item * comment 110 111 The storage object comment. 112 113 This parameter is optional. 114 115 =back 116 117 Returns a filehandle or C<undef> on failure. 118 119 120 =item * replicate($key, $volume) 121 122 Adds an instance to a storage object. 123 124 =over 4 125 126 =item * key 127 128 The storage object key (name). 129 130 =item * volume 131 132 The preferred storage location of initial instance. 133 134 This parameter is optional. 135 136 =back 137 138 Returns true on success. 139 140 141 =item * cull($key) 142 143 Removes an instance from a storage object. 144 145 =over 4 146 147 =item * key 148 149 The storage object key (name). 150 151 =back 152 153 Returns true on success. 154 155 156 =item * lock($key, $type, $timeout) 157 158 Trys to acquire a lock on a storage object 159 160 =over 4 161 162 =item * key 163 164 The storage object key (name). 165 166 =item * type 167 168 The type of lock to acquire. Either C<read> or C<write>. 169 170 =item * timeout 171 172 The number of seconds to I<try> for a lock. 173 174 This parameter is optional. 175 176 =back 177 178 Returns true on success. 179 180 181 =item * unlock($key, $type) 182 183 Trys to release a lock on a storage object. 184 185 =over 4 186 187 =item * key 188 189 The storage object key (name). 190 191 =item * type 192 193 The type of lock to release. Either C<read> or C<write>. 194 195 =back 196 197 Returns true on success. 198 199 200 =item * find_instances($key, $volume) 201 202 Lists all instances of a storage object 203 204 =over 4 205 206 =item * key 207 208 The storage object key (name). 209 210 =item * volume 211 212 Restrict search to this storage location. 213 214 This parameter is optional. 215 216 =back 217 218 Returns an arrayref of scalars. 219 220 221 =item * find($key) 222 223 Find any instance of a storage object. 224 225 =over 4 226 227 =item * key 228 229 The storage object key (name). 230 231 =back 232 233 Returns the path to the instance. 234 235 236 =item * open($key, $type) 237 238 Open a storage object for read or write. 239 240 =over 4 241 242 =item * key 243 244 The storage object key (name). 245 246 =item * type 247 248 The type of lock to acquire. Either C<read> or C<write>. 249 250 =back 251 252 Returns a filehandle or C<undef> on failure. 253 254 255 =item * delete($key) 256 257 Delete a storage object and all of it's instances. 258 259 =over 4 260 261 =item * key 262 263 The storage object key (name). 264 265 =back 266 267 Returns true on success. 268 269 270 =item * copy($key, $new_key) 271 272 Copy a storage object. 273 274 =over 4 275 276 =item * key 277 278 The source object. 279 280 =item * new_key 281 282 The destination object. 283 284 =back 285 286 Returns true on success or C<undef> on failure. 287 288 289 =item * move($key, $new_key) 290 291 Rename a storage object. 292 293 =over 4 294 295 =item * key 296 297 The source object. 298 299 =item * new_key 300 301 The destination object. 302 303 =back 304 305 Returns true on success or C<undef> on failure. 306 307 308 =item * delete_instance($uri) 309 310 Remove a storage object instance. 311 312 =over 4 313 314 =item * uri 315 316 URI of the instance to remove. 317 318 =back 319 320 Returns true on success or C<undef> on failure. 321 322 =item * stat($key) 323 324 View the properties of a storage object. 325 326 =over 4 327 328 =item * key 329 330 The storage object key (name). 331 332 =back 333 334 Returns an arrayref of scalars. 335 111 336 112 337 =back
Note:
See TracChangeset
for help on using the changeset viewer.
