github.com/cilium/cilium@v1.16.2/api/v1/models/state_d_b_query.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 // StateDBQuery StateDB query 19 // 20 // swagger:model StateDBQuery 21 type StateDBQuery struct { 22 23 // Index to query against 24 Index string `json:"index,omitempty"` 25 26 // Key to query with. Base64 encoded. 27 Key string `json:"key,omitempty"` 28 29 // LowerBound prefix search or full-matching Get 30 Lowerbound bool `json:"lowerbound,omitempty"` 31 32 // Name of the table to query 33 Table string `json:"table,omitempty"` 34 } 35 36 // Validate validates this state d b query 37 func (m *StateDBQuery) Validate(formats strfmt.Registry) error { 38 return nil 39 } 40 41 // ContextValidate validates this state d b query based on context it is used 42 func (m *StateDBQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 43 return nil 44 } 45 46 // MarshalBinary interface implementation 47 func (m *StateDBQuery) MarshalBinary() ([]byte, error) { 48 if m == nil { 49 return nil, nil 50 } 51 return swag.WriteJSON(m) 52 } 53 54 // UnmarshalBinary interface implementation 55 func (m *StateDBQuery) UnmarshalBinary(b []byte) error { 56 var res StateDBQuery 57 if err := swag.ReadJSON(b, &res); err != nil { 58 return err 59 } 60 *m = res 61 return nil 62 }