This repository has been archived by the owner. It is now read-only.
Permalink
Commits on Mar 17, 2016
  1. Initial attempt to support statelessness, drop using nflag and env co…

    JoshStrobl committed Mar 17, 2016
    …nfiguration since we do this stuff automatically and enforce common directories. Changed data directory to default to using /etc/metis/data, since that is where the user data should be.
Commits on Feb 21, 2016
  1. Ensure go code passes linting, push fixed librejs-gopher rebuilds of …

    JoshStrobl committed Feb 21, 2016
    …minified JS. Push updated test content.
Commits on Feb 6, 2016
  1. Simplify PuppetServer enable / disable listening logic. Simplify logi…

    JoshStrobl committed Feb 6, 2016
    …c in ServeHTTP for disabled listening check. Simplify OS env var checking. Vastly simplify CheckStringArray func. Do a rebuild of TypeScript code, which eliminated commenting and introduced the LibreJS Apache 2.0 header.
Commits on Feb 1, 2016
Commits on Jan 28, 2016
  1. Move tests out of browser section into src/html, drop old sha1sum stu…

    JoshStrobl committed Jan 28, 2016
    …ff, add project config from new CodeUtils.
Commits on Dec 18, 2015
  1. Drop lots of boilerplate metis.Node conversion code now that metis-pk…

    JoshStrobl committed Dec 18, 2015
    …g directly handles passing []string as Nodes.
Commits on Dec 15, 2015
  1. Drop all error printing during initialization of metis, since they ar…

    JoshStrobl committed Dec 15, 2015
    …e handled by metis core. Simply do the os.Exit(1) call.
Commits on Dec 2, 2015
  1. Metis now 2.0-beta1

    JoshStrobl committed Dec 2, 2015
Commits on Nov 27, 2015
  1. Implemented config option for DataRootDirectory, which is passed to m…

    JoshStrobl committed Nov 27, 2015
    …etis pkg. We default to /var/data/metis.
Commits on Nov 25, 2015
  1. Make Puppeteering not enabled erroring more verbose, detect actual I.…

    JoshStrobl committed Nov 25, 2015
    …P. to push to STDOUT and ERR (including handling X-Real-IP from most nginx configurations.
Commits on Nov 19, 2015
  1. Support setting metisConfigLocation and metisNodeListLocation environ…

    JoshStrobl committed Nov 19, 2015
    …ment variables. Depending on what is or is not declared in OS environment, we will set the appropriate nflag Flags and therefore sane defaults, falling back to those where necessary.
Commits on Nov 18, 2015
Commits on Nov 16, 2015
  1. Change configLocation and nodeListLocation from local func main() to …

    JoshStrobl committed Nov 16, 2015
    …Config struct. Tested push and verified it works, minor refinments done to push code.
Commits on Nov 13, 2015
  1. Drop PuppetAPIRequest Object, merge with APIRequest and instead do ch…

    JoshStrobl committed Nov 13, 2015
    …eck if Key is defined to differ between file-serving and puppeteering call. Resulted in simplification of decoding). Change status checking to have content "get" return the status of the Cluster, rather than an empty string. Dropped PuppeteeringPort from shipped config.
  2. Moved to single listener model since we wont be able to reliably dete…

    JoshStrobl committed Nov 13, 2015
    …ct fails of multiple listeners, due to the way ListenAndServe() works (blocking) and using go functions to have both fire up asynchronously and proceedingly have functionality that enforces constant execution of the server through dirty ways is not appealing. Updated to use nflag instead of flag, dropped PuppeteeringPort with move to single listener model.
Commits on Nov 12, 2015
  1. Change action from update to push when we are receiving a request to …

    JoshStrobl committed Nov 12, 2015
    …change the NodeList content. Make error messages no longer vague short codes and rather fleshed out messages so we do not have to parse them on the CLI.
  2. Add structs for appropriate responses. PuppetStatusResponse is a stru…

    JoshStrobl committed Nov 12, 2015
    …ct for when we are getting or setting status, PuppetCacheResponse is when we are fetching the NodeList, PuppetPushResponse is when we are pushing an updated NodeList. Ran stuff through go fmt.
Commits on Nov 4, 2015
  1. Untested: Implemented key checking in PuppetServe and preliminary sup…

    JoshStrobl committed Nov 4, 2015
    …port for status setting and returning, returning of NodeList for caching, re-initialization upon NodList updating, and some basic error handling that will need to be improved upon later. Implement config.Root so we have a reliable path to the config dir, change Content in PuppetAPIRequest struct from interface to string. Implemented basic string array item check func.
Commits on Nov 3, 2015
  1. Refactored how HTTP request handling is done, dynamically handling bo…

    JoshStrobl committed Nov 3, 2015
    …th file-serving port and puppeteering port requests using a single handler, determining the port, and passing on parsed request data to the appropriate function. Also implemented DisableRequestListening bool, so we can use the CLI to disable listening on file-serving port.
  2. Minor refactor before we implement puppeteering functionality into se…

    JoshStrobl committed Nov 3, 2015
    …rver and do a broader cleanup.
Commits on Oct 28, 2015
  1. 2.0-alpha1 Release.

    JoshStrobl committed Oct 28, 2015
Commits on Oct 24, 2015
  1. Change all references to a for append to u for update. Do minor refin…

    JoshStrobl committed Oct 24, 2015
    …ements to chrome(os) device. Re-introduce Exists now that it is handled on the server.
  2. Immediately add Access-Control-Allow-Origin header to prevent immedia…

    JoshStrobl committed Oct 24, 2015
    …te CORS errors. Handle invalid NodeData, nodes being a string and Nodes being an empty array.
Commits on Oct 12, 2015
  1. Change metisHTTPServer to being ServeHTTP of the metisHTTPHandler str…

    JoshStrobl committed Oct 12, 2015
    …uct, so we can use it as the Handler key/val during an http.Server struct creation. Cleaned up with go fmt as well.
  2. Typescript: Fix to device detection, changing ContentOrDestinationNod…

    JoshStrobl committed Oct 12, 2015
    …es to just Content. Server: Dramatically changed how we parse NodeData, creating metis.Node structs when needed and handling Node Groups v.s. Node types appropriately.
Commits on Oct 8, 2015
  1. Merged core into Metis, changing deviceIO to DeviceIO, implementing m…

    JoshStrobl committed Oct 8, 2015
    …etis.Headless, metis.Callback, metis.Device, metis.Online. Cleaned up the logic for Headless mode setting, stripped out all battery OK checking. Implemented APIRequest and UniqueIOObject interfaces, where UniqueIOObject extends APIRequest, to introduce sane typing into Metis. Changes to Objects globally is noticable in that we use CamelCased key/vals, as opposed to starting with a lower case, also changing pending to PendingFiles and completed to CompletedFiles. For metis.file.IO (changed from metis.file.Handler), cleaned up parsed v.s. unparsed data. Added type-response into metis.file.Decode(). Temporary removal of meta-functions. metis.devices.web.Handle defaults to using a success / true for localFileContent. Simplified section of append check within localStorage writing, eliminated redundant setItem call. Implemented metis.file.ArrayRemove instead of using array.pop for usage in the allowPoppingFile section, since the pop will remove from the end of the Array, which is not necessarily the case. metis.devices.chromeos received the same level of cleanup as metis.devices.web. metis.devices.cloud has saner conditional checking and less redundant fireCallback calls. Overall less variable assigning as well. Metis IO Queue System got some cleanup but overall I think it needs to be evaluated more and rewritten on a larger scale. Aspects of the codebase are redundant and could likely be cleaned up and should be tackled soon.
  2. Added allow-origin "all" to Metis server. This is a temporary solutio…

    JoshStrobl committed Oct 8, 2015
    …n until we configure it to access a set of host / origins. Cleaned up Callback URL detection and Headless logic. Changed lots of undefined check to compare against typeof calls. Change the "not equal chrome" logic for Device to just check if it is Cloud. Changed references to nodeData, action, files, contentOrDestinationNodes to NodeData, Action, Files, ContentOrDestinationNodes Changed metis.devices.web.ClearAll() to simply call localStorage.Clear(). Wiped out all acceptance of NodeData as Object. String-based NodeData is enforced. Removed unnecessary metis.d.ts from src/typescript.