github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/api/server/swagger.go (about) 1 package server 2 3 import ( 4 "github.com/containers/podman/v2/libpod" 5 "github.com/containers/podman/v2/libpod/define" 6 "github.com/containers/podman/v2/pkg/domain/entities" 7 ) 8 9 // No such image 10 // swagger:response NoSuchImage 11 type swagErrNoSuchImage struct { 12 // in:body 13 Body struct { 14 entities.ErrorModel 15 } 16 } 17 18 // No such container 19 // swagger:response NoSuchContainer 20 type swagErrNoSuchContainer struct { 21 // in:body 22 Body struct { 23 entities.ErrorModel 24 } 25 } 26 27 // No such network 28 // swagger:response NoSuchNetwork 29 type swagErrNoSuchNetwork struct { 30 // in:body 31 Body struct { 32 entities.ErrorModel 33 } 34 } 35 36 // No such exec instance 37 // swagger:response NoSuchExecInstance 38 type swagErrNoSuchExecInstance struct { 39 // in:body 40 Body struct { 41 entities.ErrorModel 42 } 43 } 44 45 // No such volume 46 // swagger:response NoSuchVolume 47 type swagErrNoSuchVolume struct { 48 // in:body 49 Body struct { 50 entities.ErrorModel 51 } 52 } 53 54 // No such pod 55 // swagger:response NoSuchPod 56 type swagErrNoSuchPod struct { 57 // in:body 58 Body struct { 59 entities.ErrorModel 60 } 61 } 62 63 // No such manifest 64 // swagger:response NoSuchManifest 65 type swagErrNoSuchManifest struct { 66 // in:body 67 Body struct { 68 entities.ErrorModel 69 } 70 } 71 72 // Internal server error 73 // swagger:response InternalError 74 type swagInternalError struct { 75 // in:body 76 Body struct { 77 entities.ErrorModel 78 } 79 } 80 81 // Conflict error in operation 82 // swagger:response ConflictError 83 type swagConflictError struct { 84 // in:body 85 Body struct { 86 entities.ErrorModel 87 } 88 } 89 90 // Bad parameter in request 91 // swagger:response BadParamError 92 type swagBadParamError struct { 93 // in:body 94 Body struct { 95 entities.ErrorModel 96 } 97 } 98 99 // Container already started 100 // swagger:response ContainerAlreadyStartedError 101 type swagContainerAlreadyStartedError struct { 102 // in:body 103 Body struct { 104 entities.ErrorModel 105 } 106 } 107 108 // Container already stopped 109 // swagger:response ContainerAlreadyStoppedError 110 type swagContainerAlreadyStopped struct { 111 // in:body 112 Body struct { 113 entities.ErrorModel 114 } 115 } 116 117 // Pod already started 118 // swagger:response PodAlreadyStartedError 119 type swagPodAlreadyStartedError struct { 120 // in:body 121 Body struct { 122 entities.ErrorModel 123 } 124 } 125 126 // Pod already stopped 127 // swagger:response PodAlreadyStoppedError 128 type swagPodAlreadyStopped struct { 129 // in:body 130 Body struct { 131 entities.ErrorModel 132 } 133 } 134 135 // Image summary 136 // swagger:response DockerImageSummary 137 type swagImageSummary struct { 138 // in:body 139 Body []entities.ImageSummary 140 } 141 142 // Registries summary 143 // swagger:response DocsRegistriesList 144 type swagRegistriesList struct { 145 // in:body 146 Body entities.ListRegistriesReport 147 } 148 149 // List Containers 150 // swagger:response DocsListContainer 151 type swagListContainers struct { 152 // in:body 153 Body struct { 154 // This causes go-swagger to crash 155 // handlers.Container 156 } 157 } 158 159 // Success 160 // swagger:response 161 type ok struct { 162 // in:body 163 Body struct { 164 // example: OK 165 ok string 166 } 167 } 168 169 // Volume prune response 170 // swagger:response VolumePruneResponse 171 type swagVolumePruneResponse struct { 172 // in:body 173 Body []entities.VolumePruneReport 174 } 175 176 // Volume create response 177 // swagger:response VolumeCreateResponse 178 type swagVolumeCreateResponse struct { 179 // in:body 180 Body struct { 181 entities.VolumeConfigResponse 182 } 183 } 184 185 // Volume list 186 // swagger:response VolumeList 187 type swagVolumeListResponse struct { 188 // in:body 189 Body []libpod.Volume 190 } 191 192 // Healthcheck 193 // swagger:response HealthcheckRun 194 type swagHealthCheckRunResponse struct { 195 // in:body 196 Body struct { 197 define.HealthCheckResults 198 } 199 } 200 201 // Version 202 // swagger:response Version 203 type swagVersion struct { 204 // in:body 205 Body struct { 206 entities.SystemVersionReport 207 } 208 } 209 210 // Disk usage 211 // swagger:response SystemDiskUse 212 type swagDiskUseResponse struct { 213 // in:body 214 Body struct { 215 entities.SystemDfReport 216 } 217 } 218 219 // Prune report 220 // swagger:response SystemPruneReport 221 type swagSystemPruneReport struct { 222 // in:body 223 Body struct { 224 entities.SystemPruneReport 225 } 226 }