github.com/kubearmor/cilium@v1.6.12/api/v1/models/endpoint_datapath_configuration.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  // EndpointDatapathConfiguration Datapath configuration to be used for the endpoint
    15  // swagger:model EndpointDatapathConfiguration
    16  type EndpointDatapathConfiguration struct {
    17  
    18  	// 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.
    19  	//
    20  	ExternalIPAM bool `json:"external-ipam,omitempty"`
    21  
    22  	// Installs a route in the Linux routing table pointing to the device of the endpoint's interface.
    23  	//
    24  	InstallEndpointRoute bool `json:"install-endpoint-route,omitempty"`
    25  
    26  	// Enable ARP passthrough mode
    27  	RequireArpPassthrough bool `json:"require-arp-passthrough,omitempty"`
    28  
    29  	// Endpoint requires a host-facing egress program to be attached to implement ingress policy and reverse NAT.
    30  	//
    31  	RequireEgressProg bool `json:"require-egress-prog,omitempty"`
    32  
    33  	// Endpoint requires BPF routing to be enabled, when disabled, routing is delegated to Linux routing.
    34  	//
    35  	RequireRouting *bool `json:"require-routing,omitempty"`
    36  }
    37  
    38  // Validate validates this endpoint datapath configuration
    39  func (m *EndpointDatapathConfiguration) Validate(formats strfmt.Registry) error {
    40  	return nil
    41  }
    42  
    43  // MarshalBinary interface implementation
    44  func (m *EndpointDatapathConfiguration) MarshalBinary() ([]byte, error) {
    45  	if m == nil {
    46  		return nil, nil
    47  	}
    48  	return swag.WriteJSON(m)
    49  }
    50  
    51  // UnmarshalBinary interface implementation
    52  func (m *EndpointDatapathConfiguration) UnmarshalBinary(b []byte) error {
    53  	var res EndpointDatapathConfiguration
    54  	if err := swag.ReadJSON(b, &res); err != nil {
    55  		return err
    56  	}
    57  	*m = res
    58  	return nil
    59  }