Commit Graph

8 Commits

Author SHA1 Message Date
Brad Fitzpatrick 805232c9f3 jsonconfig: Int64 support
Change-Id: I933e5f86d0f5a55402ab9218fba8ffbfee8efa26
2014-05-15 12:11:24 -07: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 1d53a84c66 jsonconfig: fix inconsistencies with booleans from environment variables
Use strconv.ParseBool.

Change-Id: Icbf27c78d9f144e333ba67063f4c1e32822fe9e8
2013-08-23 17:10:56 -05: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 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 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