spiegel_podman/pkg/bindings
Paul Holzinger 8494bcb866 podman network label support
Add label support for podman network create. Use the `args`
field in the cni config file to store the podman labels.
Use `podman_labels` as key name and store the labels as
map[string]string.

For reference: https://github.com/containernetworking/cni/blob/master/CONVENTIONS.md#args-in-network-config
https://github.com/containernetworking/cni/blob/spec-v0.4.0/SPEC.md#network-configuration

Example snippet:

```
...
"args": {
	"podman_labels": {
		"key1":"value1",
		"key2":"value2"
	}
}
...
```

Make podman network list support several filters. Supported filters are name,
plugin, driver and label. Filters with different keys work exclusive. Several label
filters work exclusive and the other filter keys are working inclusive.

Also adjust the compat api to support labels in network create and list.

Breaking changes:

- podman network ls -f shortform is used for --filter instead --format
This matches docker and other podman commands (container ps, volume ps)

- libpod network list endpoint filter parameter is removed. Instead the
filters paramter should be used as json encoded map[string][]string.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-11-28 18:35:43 +01:00
..
containers Allow containers to --restart on-failure with --rm 2020-11-20 13:55:19 -05:00
generate APIv2 add generate systemd endpoint 2020-09-02 22:06:19 +02:00
images Podman-remote build is getting ID twice 2020-11-14 06:25:29 -05:00
manifests Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
network podman network label support 2020-11-28 18:35:43 +01:00
play Merge pull request #8363 from AlbanBedel/play-kube-create-only 2020-11-17 22:40:28 +01:00
pods Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
system Refactor version handling in cmd tree 2020-09-18 15:13:58 -07:00
test move from docker.io 2020-10-28 13:16:37 -06:00
volumes Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
bindings.go Refactor version handling in cmd tree 2020-09-18 15:13:58 -07:00
connection.go Add support for host keys for non-22 ports 2020-10-25 16:30:42 +01:00
errors.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00