github.com/kubearmor/cilium@v1.6.12/api/v1/server/restapi/endpoint/get_endpoint_id_log_responses.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package endpoint 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 "net/http" 10 11 "github.com/go-openapi/runtime" 12 13 models "github.com/cilium/cilium/api/v1/models" 14 ) 15 16 // GetEndpointIDLogOKCode is the HTTP code returned for type GetEndpointIDLogOK 17 const GetEndpointIDLogOKCode int = 200 18 19 /*GetEndpointIDLogOK Success 20 21 swagger:response getEndpointIdLogOK 22 */ 23 type GetEndpointIDLogOK struct { 24 25 /* 26 In: Body 27 */ 28 Payload models.EndpointStatusLog `json:"body,omitempty"` 29 } 30 31 // NewGetEndpointIDLogOK creates GetEndpointIDLogOK with default headers values 32 func NewGetEndpointIDLogOK() *GetEndpointIDLogOK { 33 34 return &GetEndpointIDLogOK{} 35 } 36 37 // WithPayload adds the payload to the get endpoint Id log o k response 38 func (o *GetEndpointIDLogOK) WithPayload(payload models.EndpointStatusLog) *GetEndpointIDLogOK { 39 o.Payload = payload 40 return o 41 } 42 43 // SetPayload sets the payload to the get endpoint Id log o k response 44 func (o *GetEndpointIDLogOK) SetPayload(payload models.EndpointStatusLog) { 45 o.Payload = payload 46 } 47 48 // WriteResponse to the client 49 func (o *GetEndpointIDLogOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 50 51 rw.WriteHeader(200) 52 payload := o.Payload 53 if payload == nil { 54 // return empty array 55 payload = models.EndpointStatusLog{} 56 } 57 58 if err := producer.Produce(rw, payload); err != nil { 59 panic(err) // let the recovery middleware deal with this 60 } 61 } 62 63 // GetEndpointIDLogInvalidCode is the HTTP code returned for type GetEndpointIDLogInvalid 64 const GetEndpointIDLogInvalidCode int = 400 65 66 /*GetEndpointIDLogInvalid Invalid identity provided 67 68 swagger:response getEndpointIdLogInvalid 69 */ 70 type GetEndpointIDLogInvalid struct { 71 } 72 73 // NewGetEndpointIDLogInvalid creates GetEndpointIDLogInvalid with default headers values 74 func NewGetEndpointIDLogInvalid() *GetEndpointIDLogInvalid { 75 76 return &GetEndpointIDLogInvalid{} 77 } 78 79 // WriteResponse to the client 80 func (o *GetEndpointIDLogInvalid) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 81 82 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses 83 84 rw.WriteHeader(400) 85 } 86 87 // GetEndpointIDLogNotFoundCode is the HTTP code returned for type GetEndpointIDLogNotFound 88 const GetEndpointIDLogNotFoundCode int = 404 89 90 /*GetEndpointIDLogNotFound Endpoint not found 91 92 swagger:response getEndpointIdLogNotFound 93 */ 94 type GetEndpointIDLogNotFound struct { 95 } 96 97 // NewGetEndpointIDLogNotFound creates GetEndpointIDLogNotFound with default headers values 98 func NewGetEndpointIDLogNotFound() *GetEndpointIDLogNotFound { 99 100 return &GetEndpointIDLogNotFound{} 101 } 102 103 // WriteResponse to the client 104 func (o *GetEndpointIDLogNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 105 106 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses 107 108 rw.WriteHeader(404) 109 }