github.com/cilium/cilium@v1.16.2/api/v1/models/endpoint_datapath_configuration.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 // Copyright Authors of Cilium 4 // SPDX-License-Identifier: Apache-2.0 5 6 package models 7 8 // This file was generated by the swagger tool. 9 // Editing this file might prove futile when you re-run the swagger generate command 10 11 import ( 12 "context" 13 14 "github.com/go-openapi/strfmt" 15 "github.com/go-openapi/swag" 16 ) 17 18 // EndpointDatapathConfiguration Datapath configuration to be used for the endpoint 19 // 20 // swagger:model EndpointDatapathConfiguration 21 type EndpointDatapathConfiguration struct { 22 23 // Disable source IP verification for the endpoint. 24 // 25 DisableSipVerification bool `json:"disable-sip-verification,omitempty"` 26 27 // Indicates that IPAM is done external to Cilium. This will prevent the IP from being released and re-allocation of the IP address is skipped on restore. 28 // 29 ExternalIpam bool `json:"external-ipam,omitempty"` 30 31 // Installs a route in the Linux routing table pointing to the device of the endpoint's interface. 32 // 33 InstallEndpointRoute bool `json:"install-endpoint-route,omitempty"` 34 35 // Enable ARP passthrough mode 36 RequireArpPassthrough bool `json:"require-arp-passthrough,omitempty"` 37 38 // Endpoint requires a host-facing egress program to be attached to implement ingress policy and reverse NAT. 39 // 40 RequireEgressProg bool `json:"require-egress-prog,omitempty"` 41 42 // Endpoint requires BPF routing to be enabled, when disabled, routing is delegated to Linux routing. 43 // 44 RequireRouting *bool `json:"require-routing,omitempty"` 45 } 46 47 // Validate validates this endpoint datapath configuration 48 func (m *EndpointDatapathConfiguration) Validate(formats strfmt.Registry) error { 49 return nil 50 } 51 52 // ContextValidate validates this endpoint datapath configuration based on context it is used 53 func (m *EndpointDatapathConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 54 return nil 55 } 56 57 // MarshalBinary interface implementation 58 func (m *EndpointDatapathConfiguration) MarshalBinary() ([]byte, error) { 59 if m == nil { 60 return nil, nil 61 } 62 return swag.WriteJSON(m) 63 } 64 65 // UnmarshalBinary interface implementation 66 func (m *EndpointDatapathConfiguration) UnmarshalBinary(b []byte) error { 67 var res EndpointDatapathConfiguration 68 if err := swag.ReadJSON(b, &res); err != nil { 69 return err 70 } 71 *m = res 72 return nil 73 }