mirror of
https://github.com/containers/podman
synced 2024-10-19 00:34:18 +00:00
d924494f56
Signed-off-by: Jhon Honce <jhonce@redhat.com> Create service command Use cd cmd/service && go build . $ systemd-socket-activate -l 8081 cmd/service/service & $ curl http://localhost:8081/v1.24/images/json Signed-off-by: Jhon Honce <jhonce@redhat.com> Correct Makefile Signed-off-by: Jhon Honce <jhonce@redhat.com> Two more stragglers Signed-off-by: Jhon Honce <jhonce@redhat.com> Report errors back as http headers Signed-off-by: Jhon Honce <jhonce@redhat.com> Split out handlers, updated output Output aligned to docker structures Signed-off-by: Jhon Honce <jhonce@redhat.com> Refactored routing, added more endpoints and types * Encapsulated all the routing information in the handler_* files. * Added more serviceapi/types, including podman additions. See Info Signed-off-by: Jhon Honce <jhonce@redhat.com> Cleaned up code, implemented info content * Move Content-Type check into serviceHandler * Custom 404 handler showing the url, mostly for debugging * Refactored images: better method names and explicit http codes * Added content to /info * Added podman fields to Info struct * Added Container struct Signed-off-by: Jhon Honce <jhonce@redhat.com> Add a bunch of endpoints containers: stop, pause, unpause, wait, rm images: tag, rmi, create (pull only) Signed-off-by: baude <bbaude@redhat.com> Add even more handlers * Add serviceapi/Error() to improve error handling * Better support for API return payloads * Renamed unimplemented to unsupported these are generic endpoints we don't intend to ever support. Swarm broken out since it uses different HTTP codes to signal that the node is not in a swarm. * Added more types * API Version broken out so it can be validated in the future Signed-off-by: Jhon Honce <jhonce@redhat.com> Refactor to introduce ServiceWriter Signed-off-by: Jhon Honce <jhonce@redhat.com> populate pods endpoints /libpod/pods/.. exists, kill, pause, prune, restart, remove, start, stop, unpause Signed-off-by: baude <bbaude@redhat.com> Add components to Version, fix Error body Signed-off-by: Jhon Honce <jhonce@redhat.com> Add images pull output, fix swarm routes * docker-py tests/integration/api_client_test.py pass 100% * docker-py tests/integration/api_image_test.py pass 4/16 + Test failures include services podman does not support Signed-off-by: Jhon Honce <jhonce@redhat.com> pods endpoint submission 2 add create and others; only top and stats is left. Signed-off-by: baude <bbaude@redhat.com> Update pull image to work from empty registry Signed-off-by: Jhon Honce <jhonce@redhat.com> pod create and container create first pass at pod and container create. the container create does not quite work yet but it is very close. pod create needs a partial rewrite. also broken off the DELETE (rm/rmi) to specific handler funcs. Signed-off-by: baude <bbaude@redhat.com> Add docker-py demos, GET .../containers/json * Update serviceapi/types to reflect libpod not podman * Refactored removeImage() to provide non-streaming return Signed-off-by: Jhon Honce <jhonce@redhat.com> create container part2 finished minimal config needed for create container. started demo.py for upcoming talk Signed-off-by: baude <bbaude@redhat.com> Stop server after honoring request * Remove casting for method calls * Improve WriteResponse() * Update Container API type to match docker API Signed-off-by: Jhon Honce <jhonce@redhat.com> fix namespace assumptions cleaned up namespace issues with libpod. Signed-off-by: baude <bbaude@redhat.com> wip Signed-off-by: baude <bbaude@redhat.com> Add sliding window when shutting down server * Added a Timeout rather than closing down service on each call * Added gorilla/schema dependency for Decode'ing query parameters * Improved error handling * Container logs returned and multiplexed for stdout and stderr * .../containers/{name}/logs?stdout=True&stderr=True * Container stats * .../containers/{name}/stats Signed-off-by: Jhon Honce <jhonce@redhat.com> Improve error handling * Add check for at least one std stream required for /containers/{id}/logs * Add check for state in /containers/{id}/top * Fill in more fields for /info * Fixed error checking in service start code Signed-off-by: Jhon Honce <jhonce@redhat.com> get rest of image tests for pass Signed-off-by: baude <bbaude@redhat.com> linting our content Signed-off-by: baude <bbaude@redhat.com> more linting Signed-off-by: baude <bbaude@redhat.com> more linting Signed-off-by: baude <bbaude@redhat.com> pruning Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]apiv2 pods migrate from using args in the url to using a json struct in body for pod create. Signed-off-by: baude <bbaude@redhat.com> fix handler_images prune prune's api changed slightly to deal with filters. Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]enabled base container create tests enabling the base container create tests which allow us to get more into the stop, kill, etc tests. many new tests now pass. Signed-off-by: baude <bbaude@redhat.com> serviceapi errors: append error message to API message I dearly hope this is not breaking any other tests but debugging "Internal Server Error" is not helpful to any user. In case, it breaks tests, we can rever the commit - that's why it's a small one. Signed-off-by: Valentin Rothberg <rothberg@redhat.com> serviceAPI: add containers/prune endpoint Signed-off-by: Valentin Rothberg <rothberg@redhat.com> add `service` make target Also remove the non-functional sub-Makefile. Signed-off-by: Valentin Rothberg <rothberg@redhat.com> add make targets for testing the service * `sudo make run-service` for running the service. * `DOCKERPY_TEST="tests/integration/api_container_test.py::ListContainersTest" \ make run-docker-py-tests` for running a specific tests. Run all tests by leaving the env variable empty. Signed-off-by: Valentin Rothberg <rothberg@redhat.com> Split handlers and server packages The files were split to help contain bloat. The api/server package will contain all code related to the functioning of the server while api/handlers will have all the code related to implementing the end points. api/server/register_* will contain the methods for registering endpoints. Additionally, they will have the comments for generating the swagger spec file. See api/handlers/version.go for a small example handler, api/handlers/containers.go contains much more complex handlers. Signed-off-by: Jhon Honce <jhonce@redhat.com> [CI:DOCS]enabled more tests Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]libpod endpoints small refactor for libpod inclusion and began adding endpoints. Signed-off-by: baude <bbaude@redhat.com> Implement /build and /events * Include crypto libraries for future ssh work Signed-off-by: Jhon Honce <jhonce@redhat.com> [CI:DOCS]more image implementations convert from using for to query structs among other changes including new endpoints. Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]add bindings for golang Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]add volume endpoints for libpod create, inspect, ls, prune, and rm Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]apiv2 healthcheck enablement wire up container healthchecks for the api. Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]Add mount endpoints via the api, allow ability to mount a container and list container mounts. Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]Add search endpoint add search endpoint with golang bindings Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]more apiv2 development misc population of methods, etc Signed-off-by: baude <bbaude@redhat.com> rebase cleanup and epoch reset Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]add more network endpoints also, add some initial error handling and convenience functions for standard endpoints. Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]use helper funcs for bindings use the methods developed to make writing bindings less duplicative and easier to use. Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]add return info for prereview begin to add return info and status codes for errors so that we can review the apiv2 Signed-off-by: baude <bbaude@redhat.com> [CI:DOCS]first pass at adding swagger docs for api Signed-off-by: baude <bbaude@redhat.com>
82 lines
3.7 KiB
Modula-2
82 lines
3.7 KiB
Modula-2
module github.com/containers/libpod
|
|
|
|
go 1.12
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v0.3.1
|
|
github.com/blang/semver v3.5.1+incompatible // indirect
|
|
github.com/buger/goterm v0.0.0-20181115115552-c206103e1f37
|
|
github.com/checkpoint-restore/go-criu v0.0.0-20190109184317-bdb7599cd87b
|
|
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd // indirect
|
|
github.com/containernetworking/cni v0.7.2-0.20190904153231-83439463f784
|
|
github.com/containernetworking/plugins v0.8.2
|
|
github.com/containers/buildah v1.12.0
|
|
github.com/containers/image/v5 v5.1.0
|
|
github.com/containers/psgo v1.4.0
|
|
github.com/containers/storage v1.15.4
|
|
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f
|
|
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
|
|
github.com/cri-o/ocicni v0.1.1-0.20190920040751-deac903fd99b
|
|
github.com/cyphar/filepath-securejoin v0.2.2
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/docker/distribution v2.7.1+incompatible
|
|
github.com/docker/docker v1.4.2-0.20191219165747-a9416c67da9f
|
|
github.com/docker/docker-credential-helpers v0.6.3
|
|
github.com/docker/go-connections v0.4.0
|
|
github.com/docker/go-units v0.4.0
|
|
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect
|
|
github.com/elazarl/goproxy v0.0.0-20190421051319-9d40249d3c2f // indirect
|
|
github.com/elazarl/goproxy/ext v0.0.0-20190911111923-ecfe977594f1 // indirect
|
|
github.com/etcd-io/bbolt v1.3.3
|
|
github.com/fatih/camelcase v1.0.0
|
|
github.com/fsnotify/fsnotify v1.4.7
|
|
github.com/ghodss/yaml v1.0.0
|
|
github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e
|
|
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf
|
|
github.com/google/uuid v1.1.1
|
|
github.com/gorilla/handlers v1.4.2 // indirect
|
|
github.com/gorilla/mux v1.7.3
|
|
github.com/gorilla/schema v1.1.0
|
|
github.com/hashicorp/go-multierror v1.0.0
|
|
github.com/hpcloud/tail v1.0.0
|
|
github.com/json-iterator/go v1.1.8
|
|
github.com/mrunalp/fileutils v0.0.0-20171103030105-7d4729fb3618
|
|
github.com/onsi/ginkgo v1.10.3
|
|
github.com/onsi/gomega v1.7.1
|
|
github.com/opencontainers/go-digest v1.0.0-rc1
|
|
github.com/opencontainers/image-spec v1.0.2-0.20190823105129-775207bd45b6
|
|
github.com/opencontainers/runc v1.0.0-rc9
|
|
github.com/opencontainers/runtime-spec v0.1.2-0.20190618234442-a950415649c7
|
|
github.com/opencontainers/runtime-tools v0.9.0
|
|
github.com/opencontainers/selinux v1.3.0
|
|
github.com/opentracing/opentracing-go v1.1.0
|
|
github.com/pkg/errors v0.8.1
|
|
github.com/pkg/profile v1.4.0
|
|
github.com/pmezard/go-difflib v1.0.0
|
|
github.com/rootless-containers/rootlesskit v0.7.1
|
|
github.com/seccomp/containers-golang v0.0.0-20190312124753-8ca8945ccf5f
|
|
github.com/sirupsen/logrus v1.4.2
|
|
github.com/spf13/cobra v0.0.5
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/stretchr/testify v1.4.0
|
|
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2
|
|
github.com/uber/jaeger-client-go v2.20.1+incompatible
|
|
github.com/uber/jaeger-lib v0.0.0-20190122222657-d036253de8f5 // indirect
|
|
github.com/varlink/go v0.0.0-20190502142041-0f1d566d194b
|
|
github.com/vishvananda/netlink v1.0.0
|
|
go.uber.org/atomic v1.4.0 // indirect
|
|
golang.org/x/crypto v0.0.0-20191112222119-e1110fd1c708
|
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect
|
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58
|
|
golang.org/x/sys v0.0.0-20191127021746-63cb32ae39b2
|
|
google.golang.org/appengine v1.6.1 // indirect
|
|
google.golang.org/genproto v0.0.0-20190620144150-6af8c5fc6601 // indirect
|
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
|
gopkg.in/yaml.v2 v2.2.7
|
|
k8s.io/api v0.0.0-20190813020757-36bff7324fb7
|
|
k8s.io/apimachinery v0.0.0-20190809020650-423f5d784010
|
|
k8s.io/client-go v0.0.0-20190620085101-78d2af792bab
|
|
k8s.io/klog v0.3.3 // indirect
|
|
k8s.io/utils v0.0.0-20190607212802-c55fbcfc754a // indirect
|
|
)
|