Documentation ¶
Index ¶
- Variables
- func ValidateFieldSelection(fs *query.FieldSelection, allowedFields []string) error
- func ValidateFiltering(f *query.Filtering, messageInfo map[string]FilteringOption) error
- func ValidateSorting(p *query.Sorting, fields []string) error
- type FilteringOption
- type FilteringOptions
- type QueryValidate
- func (*QueryValidate) Descriptor() ([]byte, []int)
- func (m *QueryValidate) GetEnableNestedFields() bool
- func (m *QueryValidate) GetFiltering() *QueryValidate_Filtering
- func (m *QueryValidate) GetSorting() *QueryValidate_Sorting
- func (m *QueryValidate) GetValueType() QueryValidate_ValueType
- func (*QueryValidate) ProtoMessage()
- func (m *QueryValidate) Reset()
- func (m *QueryValidate) String() string
- func (m *QueryValidate) XXX_DiscardUnknown()
- func (m *QueryValidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryValidate) XXX_Merge(src proto.Message)
- func (m *QueryValidate) XXX_Size() int
- func (m *QueryValidate) XXX_Unmarshal(b []byte) error
- type QueryValidate_FilterOperator
- type QueryValidate_Filtering
- func (*QueryValidate_Filtering) Descriptor() ([]byte, []int)
- func (m *QueryValidate_Filtering) GetAllow() []QueryValidate_FilterOperator
- func (m *QueryValidate_Filtering) GetDeny() []QueryValidate_FilterOperator
- func (*QueryValidate_Filtering) ProtoMessage()
- func (m *QueryValidate_Filtering) Reset()
- func (m *QueryValidate_Filtering) String() string
- func (m *QueryValidate_Filtering) XXX_DiscardUnknown()
- func (m *QueryValidate_Filtering) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryValidate_Filtering) XXX_Merge(src proto.Message)
- func (m *QueryValidate_Filtering) XXX_Size() int
- func (m *QueryValidate_Filtering) XXX_Unmarshal(b []byte) error
- type QueryValidate_Sorting
- func (*QueryValidate_Sorting) Descriptor() ([]byte, []int)
- func (m *QueryValidate_Sorting) GetDisable() bool
- func (*QueryValidate_Sorting) ProtoMessage()
- func (m *QueryValidate_Sorting) Reset()
- func (m *QueryValidate_Sorting) String() string
- func (m *QueryValidate_Sorting) XXX_DiscardUnknown()
- func (m *QueryValidate_Sorting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryValidate_Sorting) XXX_Merge(src proto.Message)
- func (m *QueryValidate_Sorting) XXX_Size() int
- func (m *QueryValidate_Sorting) XXX_Unmarshal(b []byte) error
- type QueryValidate_ValueType
Constants ¶
This section is empty.
Variables ¶
View Source
var E_Validate = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FieldOptions)(nil), ExtensionType: (*QueryValidate)(nil), Field: 52121, Name: "atlas.query.validate", Tag: "bytes,52121,opt,name=validate", Filename: "options/query_validate.proto", }
View Source
var QueryValidate_FilterOperator_name = map[int32]string{
0: "EQ",
1: "MATCH",
2: "GT",
3: "GE",
4: "LT",
5: "LE",
6: "ALL",
7: "IEQ",
8: "IN",
}
View Source
var QueryValidate_FilterOperator_value = map[string]int32{
"EQ": 0,
"MATCH": 1,
"GT": 2,
"GE": 3,
"LT": 4,
"LE": 5,
"ALL": 6,
"IEQ": 7,
"IN": 8,
}
View Source
var QueryValidate_ValueType_name = map[int32]string{
0: "DEFAULT",
1: "STRING",
2: "NUMBER",
}
View Source
var QueryValidate_ValueType_value = map[string]int32{
"DEFAULT": 0,
"STRING": 1,
"NUMBER": 2,
}
Functions ¶
func ValidateFieldSelection ¶ added in v0.3.0
func ValidateFieldSelection(fs *query.FieldSelection, allowedFields []string) error
func ValidateFiltering ¶ added in v0.2.0
func ValidateFiltering(f *query.Filtering, messageInfo map[string]FilteringOption) error
Types ¶
type FilteringOption ¶
type FilteringOption struct { ValueType QueryValidate_ValueType Deny []QueryValidate_FilterOperator }
type FilteringOptions ¶
type FilteringOptions struct { AllowMissingFields bool Options map[string]FilteringOption }
type QueryValidate ¶ added in v0.2.0
type QueryValidate struct { Filtering *QueryValidate_Filtering `protobuf:"bytes,1,opt,name=filtering" json:"filtering,omitempty"` Sorting *QueryValidate_Sorting `protobuf:"bytes,2,opt,name=sorting" json:"sorting,omitempty"` ValueType *QueryValidate_ValueType `protobuf:"varint,3,opt,name=value_type,json=valueType,enum=atlas.query.QueryValidate_ValueType" json:"value_type,omitempty"` EnableNestedFields *bool `protobuf:"varint,4,opt,name=enable_nested_fields,json=enableNestedFields" json:"enable_nested_fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryValidate) Descriptor ¶ added in v0.2.0
func (*QueryValidate) Descriptor() ([]byte, []int)
func (*QueryValidate) GetEnableNestedFields ¶ added in v0.2.0
func (m *QueryValidate) GetEnableNestedFields() bool
func (*QueryValidate) GetFiltering ¶ added in v0.3.0
func (m *QueryValidate) GetFiltering() *QueryValidate_Filtering
func (*QueryValidate) GetSorting ¶ added in v0.3.0
func (m *QueryValidate) GetSorting() *QueryValidate_Sorting
func (*QueryValidate) GetValueType ¶ added in v0.3.0
func (m *QueryValidate) GetValueType() QueryValidate_ValueType
func (*QueryValidate) ProtoMessage ¶ added in v0.2.0
func (*QueryValidate) ProtoMessage()
func (*QueryValidate) Reset ¶ added in v0.2.0
func (m *QueryValidate) Reset()
func (*QueryValidate) String ¶ added in v0.2.0
func (m *QueryValidate) String() string
func (*QueryValidate) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *QueryValidate) XXX_DiscardUnknown()
func (*QueryValidate) XXX_Marshal ¶ added in v0.4.0
func (m *QueryValidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidate) XXX_Merge ¶ added in v0.4.0
func (dst *QueryValidate) XXX_Merge(src proto.Message)
func (*QueryValidate) XXX_Size ¶ added in v0.4.0
func (m *QueryValidate) XXX_Size() int
func (*QueryValidate) XXX_Unmarshal ¶ added in v0.4.0
func (m *QueryValidate) XXX_Unmarshal(b []byte) error
type QueryValidate_FilterOperator ¶ added in v0.2.0
type QueryValidate_FilterOperator int32
const ( QueryValidate_EQ QueryValidate_FilterOperator = 0 QueryValidate_MATCH QueryValidate_FilterOperator = 1 QueryValidate_GT QueryValidate_FilterOperator = 2 QueryValidate_GE QueryValidate_FilterOperator = 3 QueryValidate_LT QueryValidate_FilterOperator = 4 QueryValidate_LE QueryValidate_FilterOperator = 5 QueryValidate_ALL QueryValidate_FilterOperator = 6 QueryValidate_IEQ QueryValidate_FilterOperator = 7 QueryValidate_IN QueryValidate_FilterOperator = 8 )
func (QueryValidate_FilterOperator) Enum ¶ added in v0.2.0
func (x QueryValidate_FilterOperator) Enum() *QueryValidate_FilterOperator
func (QueryValidate_FilterOperator) EnumDescriptor ¶ added in v0.2.0
func (QueryValidate_FilterOperator) EnumDescriptor() ([]byte, []int)
func (QueryValidate_FilterOperator) String ¶ added in v0.2.0
func (x QueryValidate_FilterOperator) String() string
func (*QueryValidate_FilterOperator) UnmarshalJSON ¶ added in v0.2.0
func (x *QueryValidate_FilterOperator) UnmarshalJSON(data []byte) error
type QueryValidate_Filtering ¶ added in v0.3.0
type QueryValidate_Filtering struct { Allow []QueryValidate_FilterOperator `protobuf:"varint,1,rep,name=allow,enum=atlas.query.QueryValidate_FilterOperator" json:"allow,omitempty"` Deny []QueryValidate_FilterOperator `protobuf:"varint,2,rep,name=deny,enum=atlas.query.QueryValidate_FilterOperator" json:"deny,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryValidate_Filtering) Descriptor ¶ added in v0.3.0
func (*QueryValidate_Filtering) Descriptor() ([]byte, []int)
func (*QueryValidate_Filtering) GetAllow ¶ added in v0.3.0
func (m *QueryValidate_Filtering) GetAllow() []QueryValidate_FilterOperator
func (*QueryValidate_Filtering) GetDeny ¶ added in v0.3.0
func (m *QueryValidate_Filtering) GetDeny() []QueryValidate_FilterOperator
func (*QueryValidate_Filtering) ProtoMessage ¶ added in v0.3.0
func (*QueryValidate_Filtering) ProtoMessage()
func (*QueryValidate_Filtering) Reset ¶ added in v0.3.0
func (m *QueryValidate_Filtering) Reset()
func (*QueryValidate_Filtering) String ¶ added in v0.3.0
func (m *QueryValidate_Filtering) String() string
func (*QueryValidate_Filtering) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *QueryValidate_Filtering) XXX_DiscardUnknown()
func (*QueryValidate_Filtering) XXX_Marshal ¶ added in v0.4.0
func (m *QueryValidate_Filtering) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidate_Filtering) XXX_Merge ¶ added in v0.4.0
func (dst *QueryValidate_Filtering) XXX_Merge(src proto.Message)
func (*QueryValidate_Filtering) XXX_Size ¶ added in v0.4.0
func (m *QueryValidate_Filtering) XXX_Size() int
func (*QueryValidate_Filtering) XXX_Unmarshal ¶ added in v0.4.0
func (m *QueryValidate_Filtering) XXX_Unmarshal(b []byte) error
type QueryValidate_Sorting ¶ added in v0.3.0
type QueryValidate_Sorting struct { Disable *bool `protobuf:"varint,1,opt,name=disable" json:"disable,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryValidate_Sorting) Descriptor ¶ added in v0.3.0
func (*QueryValidate_Sorting) Descriptor() ([]byte, []int)
func (*QueryValidate_Sorting) GetDisable ¶ added in v0.3.0
func (m *QueryValidate_Sorting) GetDisable() bool
func (*QueryValidate_Sorting) ProtoMessage ¶ added in v0.3.0
func (*QueryValidate_Sorting) ProtoMessage()
func (*QueryValidate_Sorting) Reset ¶ added in v0.3.0
func (m *QueryValidate_Sorting) Reset()
func (*QueryValidate_Sorting) String ¶ added in v0.3.0
func (m *QueryValidate_Sorting) String() string
func (*QueryValidate_Sorting) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *QueryValidate_Sorting) XXX_DiscardUnknown()
func (*QueryValidate_Sorting) XXX_Marshal ¶ added in v0.4.0
func (m *QueryValidate_Sorting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidate_Sorting) XXX_Merge ¶ added in v0.4.0
func (dst *QueryValidate_Sorting) XXX_Merge(src proto.Message)
func (*QueryValidate_Sorting) XXX_Size ¶ added in v0.4.0
func (m *QueryValidate_Sorting) XXX_Size() int
func (*QueryValidate_Sorting) XXX_Unmarshal ¶ added in v0.4.0
func (m *QueryValidate_Sorting) XXX_Unmarshal(b []byte) error
type QueryValidate_ValueType ¶ added in v0.3.0
type QueryValidate_ValueType int32
const ( QueryValidate_DEFAULT QueryValidate_ValueType = 0 QueryValidate_STRING QueryValidate_ValueType = 1 QueryValidate_NUMBER QueryValidate_ValueType = 2 )
func (QueryValidate_ValueType) Enum ¶ added in v0.3.0
func (x QueryValidate_ValueType) Enum() *QueryValidate_ValueType
func (QueryValidate_ValueType) EnumDescriptor ¶ added in v0.3.0
func (QueryValidate_ValueType) EnumDescriptor() ([]byte, []int)
func (QueryValidate_ValueType) String ¶ added in v0.3.0
func (x QueryValidate_ValueType) String() string
func (*QueryValidate_ValueType) UnmarshalJSON ¶ added in v0.3.0
func (x *QueryValidate_ValueType) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.