Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files listing API Metadata #2

Closed
jandre opened this issue Aug 25, 2015 · 1 comment
Closed

Files listing API Metadata #2

jandre opened this issue Aug 25, 2015 · 1 comment
Assignees

Comments

@jandre
Copy link
Member

jandre commented Aug 25, 2015

Currently, the api route /api/v1/codetainer/{id}/files will list files in a container at a given path; however the files listing needs to be modified to return useful metadata about the file, including:

  • file size
  • file type (file, directory, symlink)
  • permissions?
  • ownership?
@jandre jandre added this to the 0.1 - Beta Release milestone Aug 26, 2015
jandre added a commit that referenced this issue Aug 27, 2015
Since there is no introspection API in docker for
fetching a file listing, use a `files` util mounted in /codetainer/utils/, get a JSON
files listing for use by the codetainer utility.
@jandre
Copy link
Member Author

jandre commented Aug 27, 2015

{"error":"","files":[{"Name":".dockerenv","Size":0,"IsDir":false,"IsLink":false,"ModTime":"2015-06-28T18:33:28Z"},{"Name":".dockerinit","Size":0,"IsDir":false,"IsLink":false,"ModTime":"2015-06-28T18:33:28Z"},{"Name":"bin","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T11:35:30Z"},{"Name":"boot","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2014-04-10T22:12:14Z"},{"Name":"codetainer","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-08-27T11:09:28.70594466Z"},{"Name":"dev","Size":380,"IsDir":true,"IsLink":false,"ModTime":"2015-08-27T11:09:28.70594466Z"},{"Name":"etc","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-08-25T16:26:32.311071597Z"},{"Name":"home","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2014-04-10T22:12:14Z"},{"Name":"lib","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T11:35:16Z"},{"Name":"lib64","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T11:35:07Z"},{"Name":"media","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T11:34:47Z"},{"Name":"mnt","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2014-04-10T22:12:14Z"},{"Name":"opt","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T11:34:47Z"},{"Name":"proc","Size":0,"IsDir":true,"IsLink":false,"ModTime":"2015-08-27T11:09:28.653944662Z"},{"Name":"root","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T11:35:27Z"},{"Name":"run","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T11:35:16Z"},{"Name":"sbin","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T15:32:29Z"},{"Name":"srv","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T11:34:47Z"},{"Name":"sys","Size":0,"IsDir":true,"IsLink":false,"ModTime":"2015-08-27T11:09:28.70594466Z"},{"Name":"tmp","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-08-25T16:26:30.063071547Z"},{"Name":"usr","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T15:32:29Z"},{"Name":"var","Size":4096,"IsDir":true,"IsLink":false,"ModTime":"2015-06-12T15:32:29Z"}]}

@jandre jandre self-assigned this Aug 27, 2015
@jandre jandre closed this as completed Aug 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant