github.com/cilium/cilium@v1.16.2/api/v1/models/ip_v4_big_tcp.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 // IPV4BigTCP Status of IPv4 BIG TCP 19 // 20 // +k8s:deepcopy-gen=true 21 // 22 // swagger:model IPV4BigTCP 23 type IPV4BigTCP struct { 24 25 // Is IPv4 BIG TCP enabled 26 Enabled bool `json:"enabled,omitempty"` 27 28 // Maximum IPv4 GRO size 29 MaxGRO int64 `json:"maxGRO,omitempty"` 30 31 // Maximum IPv4 GSO size 32 MaxGSO int64 `json:"maxGSO,omitempty"` 33 } 34 35 // Validate validates this IP v4 big TCP 36 func (m *IPV4BigTCP) Validate(formats strfmt.Registry) error { 37 return nil 38 } 39 40 // ContextValidate validates this IP v4 big TCP based on context it is used 41 func (m *IPV4BigTCP) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 42 return nil 43 } 44 45 // MarshalBinary interface implementation 46 func (m *IPV4BigTCP) MarshalBinary() ([]byte, error) { 47 if m == nil { 48 return nil, nil 49 } 50 return swag.WriteJSON(m) 51 } 52 53 // UnmarshalBinary interface implementation 54 func (m *IPV4BigTCP) UnmarshalBinary(b []byte) error { 55 var res IPV4BigTCP 56 if err := swag.ReadJSON(b, &res); err != nil { 57 return err 58 } 59 *m = res 60 return nil 61 }