perkeep/dev/devcam
Brad Fitzpatrick d4ff75359c pkg/client: reduce the number of New constructors, return error by default
This removes NewDefault and NewFromParams.

Now the default way to create a client is:

    client.New() -> (*Client, error)

Specifying a server is optional and now requires
client.OptionServer(server).

If the caller really wants to log.Fatal on error, they can use
client.NewOrFail.

Also, some of the boilerplate from GopherJS callers is now promoted to
be the default behavior in the client package.

Change-Id: Icb106cf3e13cc492fe5b2f7f240e1ad4227eaf33
2018-01-24 07:42:04 -08:00
..
camget.go Rename import paths from camlistore.org to perkeep.org. 2018-01-01 16:03:34 -08:00
camput.go Rename import paths from camlistore.org to perkeep.org. 2018-01-01 16:03:34 -08:00
camtool.go Rename import paths from camlistore.org to perkeep.org. 2018-01-01 16:03:34 -08:00
devcam.go Move more packages out of pkg/ and into internal/ 2018-01-02 21:03:30 -08:00
doc.go Rename import paths from camlistore.org to perkeep.org. 2018-01-01 16:03:34 -08:00
env.go all, testhooks: use sha224 by default, add hook for some tests to use sha-1 2018-01-09 20:03:38 -08:00
exec.go Rename import paths from camlistore.org to perkeep.org. 2018-01-01 16:03:34 -08:00
hook.go dev/devcam: import vendor files as-is, do not require gofmt 2018-01-07 19:14:08 -08:00
pkmount.go all: rename cammount to pk-mount 2018-01-08 09:54:41 -08:00
review.go Rename import paths from camlistore.org to perkeep.org. 2018-01-01 16:03:34 -08:00
server.go pkg/client: reduce the number of New constructors, return error by default 2018-01-24 07:42:04 -08:00
test.go Rename import paths from camlistore.org to perkeep.org. 2018-01-01 16:03:34 -08:00