github.com/kubearmor/cilium@v1.6.12/api/v1/models/node_addressing_element.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 // NodeAddressingElement Addressing information 15 // swagger:model NodeAddressingElement 16 type NodeAddressingElement struct { 17 18 // Node address type, one of HostName, ExternalIP or InternalIP 19 AddressType string `json:"address-type,omitempty"` 20 21 // Address pool to be used for local endpoints 22 AllocRange string `json:"alloc-range,omitempty"` 23 24 // True if address family is enabled 25 Enabled bool `json:"enabled,omitempty"` 26 27 // IP address of node 28 IP string `json:"ip,omitempty"` 29 } 30 31 // Validate validates this node addressing element 32 func (m *NodeAddressingElement) Validate(formats strfmt.Registry) error { 33 return nil 34 } 35 36 // MarshalBinary interface implementation 37 func (m *NodeAddressingElement) MarshalBinary() ([]byte, error) { 38 if m == nil { 39 return nil, nil 40 } 41 return swag.WriteJSON(m) 42 } 43 44 // UnmarshalBinary interface implementation 45 func (m *NodeAddressingElement) UnmarshalBinary(b []byte) error { 46 var res NodeAddressingElement 47 if err := swag.ReadJSON(b, &res); err != nil { 48 return err 49 } 50 *m = res 51 return nil 52 }