rest-api: Fix bad copy/paste

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
rest-api: Clarify password behavior

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Run 'go vet' on every commit

Also include the necessary fixes for our code to pass 'go vet' today. We can't
pass golint without a bit more work, so I'll leave it at this for a bit.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #98 from tych0/go-vet

Run 'go vet' on every commit
Add delete command/api endpoint

This was removed in the state change API (because the rest endpoint changed
slightly). Here we re-add it.

I've also changed the delete mode to be default destructive, i.e. you can
delete a resource that is in use. I am often supremely annoyed when I get these
warnings, which is why I did it. I don't mind adding a --use-caution flag if we
want to keep the original behavior, but I think for ease of use, it would be
nice to have the default be destructive.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Delete of a running container should fail in the API

However, it still succeeds in the client.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Always try to stop the container if it is not stopped

After some discussion, it seems both safe and desired to re-send the stop
command if things are not in the stopped state, and simply wait for that
command to finish as a signal that the container is actually stopped.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
fixup for merge into master

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
restificate the list api

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #90 from tych0/delete-rest

Add delete command/api endpoint
Merge pull request #99 from tych0/restlist

restificate the list api
specs: Update the file transfer specs

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Merge pull request #92 from stgraber/master

REST API update
Merge pull request #100 from stgraber/spec-file

File transfer specification
Add get-default to remote's help message

Just a quick thing I noticed while on a call today.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #102 from tych0/remote-help-msg

Add get-default to remote's help message
Merge duplicated --tcp option help text for lxd command

Signed-off-by: Hiroaki Nakamura <hnakamur@gmail.com>
image-handling: Properly escape html looking tags

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Merge pull request #104 from hnakamur/merge_lxd_tcp_help_text

Merge duplicated --tcp option help text for lxd command
Actually return a 404 for a missing container

NewContainer always returns a new container (unless some internal LXC error has
happend), even if it is not defined yet. In some cases, we only want to allow
operations on containers that exist, so we should check and be sure the
container is defined before we try to perform operations on it.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>