Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.libnetworkcache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos.libnetworkcache
Commits
ef7a7da5
Commit
ef7a7da5
authored
Jun 14, 2011
by
Lucas Carvalho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the README.txt with a better API.
parent
1c2a25bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
README.txt
README.txt
+13
-8
No files found.
README.txt
View file @
ef7a7da5
...
...
@@ -20,11 +20,16 @@ API
======
So, it must provide 2 methods:
post(file)
''' Upload the file to Networkcache HTTP Server using POST as HTTP method.'''
get_file(key)
''' Download the file from SHACACHE server using GET as HTTP method.'''
get_information(directory, urlmd5=None)
''' Retrieve the information from SHADIR server using GET as HTTP method. '''
upload(file, directory_key=None, **kw)
''' Upload the file to ShaCache Server'''
If directory_key is not None, upload add a new key to the shadir server.
download(sha)
'''Download a file from shacache
Raise FileNotFound if file is not found
'''
select(directory_key)
'''Download a file from shacache by selecting the entry in shadir
Raise DirectoryNotFound if multiple files are found
'''
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment