Graham Ollis > Yars > Yars::Routes

Download:
Yars-1.00.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.00   Source  

NAME ^

Yars::Routes - set up the routes for Yars.

VERSION ^

version 1.00

ROUTES ^

GET /

Get a welcome message.

GET /file/#filename/:md5, GET /:md5/#filename

Retrieve a file with the given name and md5.

PUT /file/#filename/#md5

PUT a file with the given name and md5.

DELETE /file/#filename/:md5, /file/:md5/#filename

Delete a file with the given name and md5.

GET /disk/usage

Get a summary of the disk usage.

Send the CGI parameters count=1 to also count the files.

POST /disk/status

Mark disks up or down. Send the disk root and state (up or down) as JSON encoded in the body.

POST /check/manifest

Given JSON with 'manifest' which is a return-delimited string of filenames and md5s (like the output of md5sum), check each file for existence on the server (or proxy to the right server)

GET /servers/status

Get the status of all the disks on all the servers/

GET /server/status

Get the status of just this server.

GET /bucket_map

Get a mapping from buckets to hosts.

GET /bucket/usage

Find the disk usage per bucket.

SEE ALSO ^

Yars, Yars::Client

AUTHOR ^

original author: Marty Brandon

current maintainer: Graham Ollis <plicease@cpan.org>

contributors:

Brian Duggan

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by NASA GSFC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: