2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-09-02 08:18:28 +00:00
Commit Graph

64 Commits

Author SHA1 Message Date
Jarrod Johnson
ecd12c6c0f Extend extension coverage to include the 'self' relation in html case 2014-04-30 15:58:31 -04:00
Jarrod Johnson
934ea4bd5f Preserve file extensions when client requests data by extension
Previously, following links in the output would not work correctly.  Have caller preference
for extension denoted type propogate into link targets.
2014-04-30 15:54:22 -04:00
jbjohnso
49074bec74 General code cleanup 2014-04-21 10:48:18 -04:00
jbjohnso
5e79db5ca4 More style tweaks for PEP8 2014-04-18 17:22:08 -04:00
jbjohnso
2b086b9424 Style cleanup on several files 2014-04-18 15:52:29 -04:00
Jarrod Johnson
cf4e8713ff Daemonize and honor pid file lock for exclusive execution 2014-04-18 14:34:16 -04:00
Jarrod Johnson
f509bc5db9 Rework most of the logging so that the output is no longer interesting 2014-04-18 10:36:51 -04:00
Jarrod Johnson
92512da79f Apply IBM 2014 copyright and Apache 2 license to project 2014-04-07 16:43:39 -04:00
Jarrod Johnson
3ec6db4fe9 Configmanager fix up
Implement 'everything' group behavior
precheck group and node settings
do not create groups or nodes by default
Have httpapi preserve original query in case the plugin modifies it for accurate API
explorer output
2014-04-04 08:52:40 -04:00
Jarrod Johnson
96c04d21e2 Remove dead clause for 'keys'
With the departure from shellinabox javascript code, remove the clause that serviced it.
2014-04-03 17:05:08 -04:00
Jarrod Johnson
d859615e45 Change http console replies to not always put things under 'data'.
To resemble more strongly the socket api, have the HTTP response resemble
a normal reply more closely.
2014-04-03 16:55:23 -04:00
Jarrod Johnson
f7321f4e70 Rename nodes and groups collections
It has been expressed that plural form for collection names are preferred.  Additionally, tab
completion is nicer if names do not share so much leading characters.
2014-03-28 14:59:37 -04:00
Jarrod Johnson
466b37495e Implement preliminary console logging facility
Implement the bits and pieces that are at least required for conserver like logging.
This has a plaintext file and a binary metadata file.  The plaintext file basically
resembles a conserver log, while the binary file facilitates faster seeking to points
of interest with the file and much more precise timestamp information.
2014-03-09 20:34:39 -04:00
Jarrod Johnson
a8ee40250c Accept alternative javascript input for alternative terminal
implementation.
2014-02-23 21:48:01 -05:00
Jarrod Johnson
5dc3bbcddd Theoretically add JSON support for data input to HTTP API
I have not yet tested this support to assure it works.
2014-02-22 21:58:21 -05:00
Jarrod Johnson
cb8f37f1b0 Implement group creation
Nodegroups can now be created through the interface
2014-02-14 16:43:00 -05:00
Jarrod Johnson
722d0fe128 Fix API explorer to do list type attributes 2014-02-13 15:55:26 -05:00
Jarrod Johnson
0d425f1f9f Add cli support for 'show'
confetty interactive mode can now do 'show' (aka read, retrieve, whatever) on
more abritrary resources.
2014-02-10 19:36:18 -05:00
Jarrod Johnson
de06cb1c34 Fix problem where sockapi enablement broke http api 2014-02-10 10:00:10 -05:00
Jarrod Johnson
3dc0128e73 More pep8 cleanup
Clean up the httpapi source to be pep8 friendly and correct
some things noted by flake
2014-02-06 14:21:11 -05:00
Jarrod Johnson
0e84935876 Report on bad session ids
If an authorized user tries to use a session id that isn't recognized
(for example, a laptop coming out of suspend), cleanly return error
rather than traceback.
2014-01-29 09:12:06 -05:00
Jarrod Johnson
fe63b1421e Trim as-yet unused attributes.
Have RESTful access to creating nodes work
2014-01-28 11:18:00 -05:00
Jarrod Johnson
5e406d6fa1 Have attribute set return some data
Handle html form arrays with blanks, removing blank values
(more complex usage requires JSON)
2013-11-13 14:52:32 -05:00
Jarrod Johnson
6fbdbcde82 Fix http relations for .. in the case of root collection, which has no containing collection 2013-11-07 14:49:16 -05:00
Jarrod Johnson
215acdf4a7 Have rest explorer actually mostly work as expected 2013-11-07 14:39:34 -05:00
Jarrod Johnson
836ea16603 Add links for self and collection as appropriate 2013-11-04 10:20:51 -05:00
Jarrod Johnson
73fba431ae Fix json output mistakes.
I may wish to change http api to a single json dumps.  At that point the
socket api would be the only consumer of the piecewise json messages.
Merging the json data is a non-trivial problem and httpapi is doing too much
hand assembly of the data.

http api would lose any hope of one request, staggered response behavior as a result,
but http is a terrible protocol for that anyway and there is always the socket api
2013-11-04 09:53:16 -05:00
Jarrod Johnson
559b00b8e8 Add relation information to json output 2013-11-03 17:07:17 -05:00
Jarrod Johnson
c60add3474 Clarify explorer text, have secret values present managed in password inputs 2013-11-03 10:39:37 -05:00
Jarrod Johnson
4ba42558b1 Add the attributes interface to messages for input checking 2013-11-03 10:12:50 -05:00
Jarrod Johnson
ada6302c2d Provide common entry point for input processing 2013-11-03 09:52:43 -05:00
Jarrod Johnson
51c80cdd74 Include some feedback in rest explorer on input data 2013-11-03 09:05:50 -05:00
Jarrod Johnson
ef3c8cd0c8 Add some header to the rest explorer interface 2013-11-03 08:50:03 -05:00
Jarrod Johnson
37f0c64c65 Factor out json and html renderings into distinct functions 2013-11-03 08:44:28 -05:00
Jarrod Johnson
6588a15174 Back off on the table attempt in the rest explorer interface 2013-11-03 08:18:44 -05:00
Jarrod Johnson
17a75d96ab Make use of the rest explorer html modifications 2013-11-03 01:11:19 -04:00
Jarrod Johnson
700d44cb6d More work on bringing rest explorer up to capable 2013-11-03 00:52:59 -04:00
Jarrod Johnson
11a86963c4 Add a check to influence the html form to act like update and ignore fields 2013-11-03 00:43:05 -04:00
Jarrod Johnson
180de88da1 Tolerate extensions in URLs 2013-11-03 00:02:13 -04:00
Jarrod Johnson
3fa61dc8f9 Wire up input to plugins for create/read 2013-11-02 19:45:10 -04:00
Jarrod Johnson
9765d2c2bb Fix problem where operation lookup as for naught 2013-11-02 19:01:53 -04:00
Jarrod Johnson
4ee20bafc7 Pave the way for things other than 'get' 2013-11-02 18:57:51 -04:00
Jarrod Johnson
f3fc2ace76 Add some beginnings of html form response for api explorer 2013-11-02 18:37:26 -04:00
Jarrod Johnson
04d2cd4ba3 Add attribute retrieval facility 2013-11-02 18:24:04 -04:00
Jarrod Johnson
4eaaa0c1a9 Create particular exceptions and start using them 2013-11-02 17:32:48 -04:00
Jarrod Johnson
a8d0ec4c3c Renome current console to consoleserver and refactor 2013-11-02 13:25:56 -04:00
Jarrod Johnson
3a3dbf9f41 Progress toward more strictly defined objects
messages and consoles get classes to guide developers toward consistency.
2013-11-02 13:06:48 -04:00
Jarrod Johnson
adf52517fd More cleanly handle unrecognized urls 2013-10-15 21:13:48 -04:00
Jarrod Johnson
3d1e398977 Convert wsgi function to be generator
Since wsgi function returns iterable, it turns out to be easy to do it this way.

For now, hardcode json dumps, two things:
1: call out to module supporting HTML and JSON interpretation
2: in both cases, a header and footer must sandwich the responses in http

In socketapi, responses will come back without a container, but http
does not afford us such luxury.  Create a containing json structure.
On first iteration, do not prepend with ,.  prepend with , all other times.
2013-10-13 20:51:30 -04:00
Jarrod Johnson
97d3eebff6 Actually have httpapi able to start calling into the plugin api 2013-10-12 18:04:27 -04:00