github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/api/handlers/swagger/errors.go (about)

     1  //nolint:deadcode,unused // these types are used to wire generated swagger to API code
     2  package swagger
     3  
     4  import (
     5  	"github.com/hanks177/podman/v4/pkg/errorhandling"
     6  )
     7  
     8  // Error model embedded in swagger:response to aid in documentation generation
     9  
    10  // No such image
    11  // swagger:response
    12  type imageNotFound struct {
    13  	// in:body
    14  	Body errorhandling.ErrorModel
    15  }
    16  
    17  // No such container
    18  // swagger:response
    19  type containerNotFound struct {
    20  	// in:body
    21  	Body errorhandling.ErrorModel
    22  }
    23  
    24  // No such network
    25  // swagger:response
    26  type networkNotFound struct {
    27  	// in:body
    28  	Body errorhandling.ErrorModel
    29  }
    30  
    31  // No such exec instance
    32  // swagger:response
    33  type execSessionNotFound struct {
    34  	// in:body
    35  	Body errorhandling.ErrorModel
    36  }
    37  
    38  // No such volume
    39  // swagger:response
    40  type volumeNotFound struct {
    41  	// in:body
    42  	Body errorhandling.ErrorModel
    43  }
    44  
    45  // No such pod
    46  // swagger:response
    47  type podNotFound struct {
    48  	// in:body
    49  	Body errorhandling.ErrorModel
    50  }
    51  
    52  // No such manifest
    53  // swagger:response
    54  type manifestNotFound struct {
    55  	// in:body
    56  	Body errorhandling.ErrorModel
    57  }
    58  
    59  // Internal server error
    60  // swagger:response
    61  type internalError struct {
    62  	// in:body
    63  	Body errorhandling.ErrorModel
    64  }
    65  
    66  // Conflict error in operation
    67  // swagger:response
    68  type conflictError struct {
    69  	// in:body
    70  	Body errorhandling.ErrorModel
    71  }
    72  
    73  // Bad parameter in request
    74  // swagger:response
    75  type badParamError struct {
    76  	// in:body
    77  	Body errorhandling.ErrorModel
    78  }
    79  
    80  // Container already started
    81  // swagger:response
    82  type containerAlreadyStartedError struct {
    83  	// in:body
    84  	Body errorhandling.ErrorModel
    85  }
    86  
    87  // Container already stopped
    88  // swagger:response
    89  type containerAlreadyStoppedError struct {
    90  	// in:body
    91  	Body errorhandling.ErrorModel
    92  }
    93  
    94  // Pod already started
    95  // swagger:response
    96  type podAlreadyStartedError struct {
    97  	// in:body
    98  	Body errorhandling.ErrorModel
    99  }
   100  
   101  // Pod already stopped
   102  // swagger:response
   103  type podAlreadyStoppedError struct {
   104  	// in:body
   105  	Body errorhandling.ErrorModel
   106  }
   107  
   108  // Success
   109  // swagger:response
   110  type ok struct {
   111  	// in:body
   112  	Body struct {
   113  		// example: OK
   114  		ok string
   115  	}
   116  }