aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-18 16:56:57 -0400
committerGitHub <noreply@github.com>2021-05-18 16:56:57 -0400
commit959d6a0c40b60a84eead551eaaa7498450017763 (patch)
treef1753578143eaf9d90049eb6d535d581b85df864 /pkg
parent353f04b53cd0a7c89ac8b2eb836eeb9c0dfa7b6a (diff)
parentbab7caafebe6bf06c3c7c830decec426f2494861 (diff)
downloadpodman-959d6a0c40b60a84eead551eaaa7498450017763.tar.gz
podman-959d6a0c40b60a84eead551eaaa7498450017763.tar.bz2
podman-959d6a0c40b60a84eead551eaaa7498450017763.zip
Merge pull request #10369 from jmguzik/network-http-docs-fixes
Fix formatting and indentation in network http api docs
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/server/register_networks.go32
1 files changed, 16 insertions, 16 deletions
diff --git a/pkg/api/server/register_networks.go b/pkg/api/server/register_networks.go
index dcec61bef..9a5ccb789 100644
--- a/pkg/api/server/register_networks.go
+++ b/pkg/api/server/register_networks.go
@@ -66,11 +66,11 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
// name: filters
// type: string
// description: |
- // JSON encoded value of the filters (a map[string][]string) to process on the network list. Currently available filters:
- // - name=[name] Matches network name (accepts regex).
- // - id=[id] Matches for full or partial ID.
- // - driver=[driver] Only bridge is supported.
- // - label=[key] or label=[key=value] Matches networks based on the presence of a label alone or a label and a value.
+ // JSON encoded value of the filters (a `map[string][]string`) to process on the network list. Currently available filters:
+ // - `name=[name]` Matches network name (accepts regex).
+ // - `id=[id]` Matches for full or partial ID.
+ // - `driver=[driver]` Only bridge is supported.
+ // - `label=[key]` or `label=[key=value]` Matches networks based on the presence of a label alone or a label and a value.
// produces:
// - application/json
// responses:
@@ -174,8 +174,8 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
// description: |
// Filters to process on the prune list, encoded as JSON (a map[string][]string).
// Available filters:
- // - until=<timestamp> Prune networks created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the daemon machine’s time.
- // - label (label=<key>, label=<key>=<value>, label!=<key>, or label!=<key>=<value>) Prune networks with (or without, in case label!=... is used) the specified labels.
+ // - `until=<timestamp>` Prune networks created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
+ // - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune networks with (or without, in case `label!=...` is used) the specified labels.
// responses:
// 200:
// description: OK
@@ -247,12 +247,12 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
// name: filters
// type: string
// description: |
- // JSON encoded value of the filters (a map[string][]string) to process on the network list. Available filters:
- // - name=[name] Matches network name (accepts regex).
- // - id=[id] Matches for full or partial ID.
- // - driver=[driver] Only bridge is supported.
- // - label=[key] or label=[key=value] Matches networks based on the presence of a label alone or a label and a value.
- // - plugin=[plugin] Matches CNI plugins included in a network (e.g `bridge`,`portmap`,`firewall`,`tuning`,`dnsname`,`macvlan`)
+ // JSON encoded value of the filters (a `map[string][]string`) to process on the network list. Available filters:
+ // - `name=[name]` Matches network name (accepts regex).
+ // - `id=[id]` Matches for full or partial ID.
+ // - `driver=[driver]` Only bridge is supported.
+ // - `label=[key]` or `label=[key=value]` Matches networks based on the presence of a label alone or a label and a value.
+ // - `plugin=[plugin]` Matches CNI plugins included in a network (e.g `bridge`,`portmap`,`firewall`,`tuning`,`dnsname`,`macvlan`)
// produces:
// - application/json
// responses:
@@ -377,10 +377,10 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
// name: filters
// type: string
// description: |
- // Filters to process on the prune list, encoded as JSON (a map[string][]string).
+ // Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
// Available filters:
- // - until=<timestamp> Prune networks created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the daemon machine’s time.
- // - label (label=<key>, label=<key>=<value>, label!=<key>, or label!=<key>=<value>) Prune networks with (or without, in case label!=... is used) the specified labels.
+ // - `until=<timestamp>` Prune networks created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
+ // - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune networks with (or without, in case `label!=...` is used) the specified labels.
// responses:
// 200:
// $ref: "#/responses/NetworkPruneResponse"