Commit Graph

21 Commits

Author SHA1 Message Date
Jingguo Yao 674deb7280 jsonconfig: remove useless type conversion
Change-Id: I271ca5f619dcd7d6cdee3dc40b68dd6c5eb318d8
2014-10-28 10:49:36 +08:00
Brad Fitzpatrick c5fd9fb7b9 jsonconfig: skip over nil values when expanding
Change-Id: I5dfb7b3022da1ec689cf767e5d088c73c5589386
2014-08-08 06:47:10 -07:00
Brad Fitzpatrick 23f153da5b jsonconfig: allow registration of other expander funcs
Change-Id: I50a1212bb0fd553336851b5f98cefcf9daa57236
2014-08-05 20:52:39 -07:00
Brad Fitzpatrick 5540a38dbd More work towards making the /gcs/ filesystem paths work on GCE. Incomplete.
Change-Id: I58ceec5d1c1cb61cbaa7d7e68a13ed5482dfbb0d
2014-08-05 12:45:10 -07:00
Brad Fitzpatrick 1bfd1b7d98 camlistored, serverinit: allow server config from URLs.
paves the way for server config from GCE metadata, too.

Change-Id: I9e54e3ad79eb53e7ae96159f2aa02f4a017e8e11
2014-08-02 16:53:58 -07:00
tnt 5d8eeb534b Fixed wrong calls to formatting functions.
E.g: fmt.Println("%s", "hello world") -> fmt.Printf("%s", "hello world")

Change-Id: I51c0bd54c14173e074fafd86c83a5287fcdb1520
2014-06-30 22:05:22 +02:00
Brad Fitzpatrick 805232c9f3 jsonconfig: Int64 support
Change-Id: I933e5f86d0f5a55402ab9218fba8ffbfee8efa26
2014-05-15 12:11:24 -07:00
mpl 58e8a7f78b pkg/serverinit: fix published type, add parser test
Because when the UI handler constructor parses the publish config, it
wants a jsonconfig List, not a []string.

Context: bfbf660cd1

Change-Id: If4e6553072d95077a5dc73c28ac527a31074d441
2014-04-04 23:28:34 +02:00
mpl 1e8d46ee45 pkg/client: some cleanup, doc on the website
Changed some keys to be consistent with the server config, and removed
some others.

We're now using jsonconfig to get the keys and validate the config.

Removed some unused funcs/methods, moved some global vars as members of a client.

Also, having two possible defaults for the secret keyring
(.config/camlistore/identity-secring.gpg and .gnupg/secring.gpg)
was annoying and confusing imho, so I removed the latter.

http://camlistore.org/issue/259

Change-Id: Icf79fa8822b62b5d91843698861dd19cb553607a
2013-12-23 20:23:21 +01:00
Brad Fitzpatrick 07e11f66a7 jsonconfig: special-case USER env var expansion on Windows
Change-Id: I7ff6c68417f901a7e7e41da1e2bf23be6e94cfa1
2013-08-28 12:27:09 -07:00
Brad Fitzpatrick 1d53a84c66 jsonconfig: fix inconsistencies with booleans from environment variables
Use strconv.ParseBool.

Change-Id: Icbf27c78d9f144e333ba67063f4c1e32822fe9e8
2013-08-23 17:10:56 -05:00
mpl f66077e48b appengine: more fixes
-added status handler to the config
-made pkg/jsonconfig/eval.go use the relative path
for the config file, since appengine does not like
absolute paths.

Change-Id: If9d275e308ae60e15ecd9c831e22fa6301de0be6
2013-08-11 21:17:05 +02:00
mpl 41e8215abe jsonconfig: remove TODO and revert bogus change; float always works apparently.
Change-Id: Ia80edbfd122063895ffb76d361c33b2cd70a725c
2012-10-19 19:26:15 +02:00
Brad Fitzpatrick e0dacfa164 jsonconfig: export File type
Change-Id: I46ad536b1494ff1f0d56b9d34d735fbd227f4a27
2012-04-13 15:06:04 -07:00
Brad Fitzpatrick 1f8dc0e90e improve TODO
Change-Id: I6efb0855ab1ee89094f6f828745552fb07fcb3c2
2012-04-13 15:01:48 -07:00
Brad Fitzpatrick d3949afc89 jsonconfig: make more configurable, to fix serverconfig tests in future patch
Change-Id: I1cc363c4ac1f0283f0d0183179b2602b6c359990
2012-04-13 14:36:30 -07:00
Brad Fitzpatrick 51c99e7d32 jsonconfig: remove stutter in error message
Change-Id: I42009d832f3e26bb847b0fc3f3d0ebcbcd4eada6
2012-04-12 14:09:59 -07:00
Brad Fitzpatrick 55edf14a70 jsonconfig: fix test build. passes now.
Change-Id: I12097d09342f30165c29a787c5e1b2271b146f8f
2012-03-29 16:13:15 -07:00
Brad Fitzpatrick f877e849d6 jsonconfig: sort unknown keys when returning errors
Change-Id: I5930e8b6c18581e2b9901b4d7ebc1e02af7a7be6
2012-03-19 13:07:17 -07:00
mpl 7f630657d5 generate low level configuration
Change-Id: I43d1610bdc386954dea724b4b38e184bf16e2d34
2012-03-16 00:05:24 +01:00
Brad Fitzpatrick 0714a463c9 Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.

The directory tree has been rearranged now too.  Go libraries are now
under "pkg".  Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".

The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.

For now, put the camlistore root under $GOPATH/src.  Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.

Then you can:

$ go build ./server/camlistored

... etc

The build.pl script is currently disabled.  It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).

Many things are certainly broken.

Many things are disabled.  (MySQL, all indexing, etc).

Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.

The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.

Help wanted.

Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-18 21:53:06 -08:00