Bladeren bron

Describe IP field of Port definition

Signed-off-by: Ethan Bell <ebgamer29@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
emanb29 7 jaren geleden
bovenliggende
commit
13e0b26510
2 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 1 0
      api/swagger.yaml
  2. 1 1
      api/types/port.go

+ 1 - 0
api/swagger.yaml

@@ -155,6 +155,7 @@ definitions:
       IP:
         type: "string"
         format: "ip-address"
+        description: "Host IP address that the container's port is mapped to"
       PrivatePort:
         type: "integer"
         format: "uint16"

+ 1 - 1
api/types/port.go

@@ -7,7 +7,7 @@ package types
 // swagger:model Port
 type Port struct {
 
-	// IP
+	// Host IP address that the container's port is mapped to
 	IP string `json:"IP,omitempty"`
 
 	// Port on the container