github.com/kubearmor/cilium@v1.6.12/api/v1/health/models/self_status.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package models 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 strfmt "github.com/go-openapi/strfmt" 10 11 "github.com/go-openapi/swag" 12 ) 13 14 // SelfStatus Description of the cilium-health node 15 // swagger:model SelfStatus 16 type SelfStatus struct { 17 18 // Name associated with this node 19 Name string `json:"name,omitempty"` 20 } 21 22 // Validate validates this self status 23 func (m *SelfStatus) Validate(formats strfmt.Registry) error { 24 return nil 25 } 26 27 // MarshalBinary interface implementation 28 func (m *SelfStatus) MarshalBinary() ([]byte, error) { 29 if m == nil { 30 return nil, nil 31 } 32 return swag.WriteJSON(m) 33 } 34 35 // UnmarshalBinary interface implementation 36 func (m *SelfStatus) UnmarshalBinary(b []byte) error { 37 var res SelfStatus 38 if err := swag.ReadJSON(b, &res); err != nil { 39 return err 40 } 41 *m = res 42 return nil 43 }