Documentation ¶
Index ¶
- Variables
- type AbsoluteTimeBound
- func (*AbsoluteTimeBound) Descriptor() ([]byte, []int)deprecated
- func (x *AbsoluteTimeBound) GetTime() *timestamppb.Timestamp
- func (*AbsoluteTimeBound) ProtoMessage()
- func (x *AbsoluteTimeBound) ProtoReflect() protoreflect.Message
- func (x *AbsoluteTimeBound) Reset()
- func (x *AbsoluteTimeBound) String() string
- func (m *AbsoluteTimeBound) Validate() error
- func (m *AbsoluteTimeBound) ValidateAll() error
- type AbsoluteTimeBoundMultiError
- type AbsoluteTimeBoundValidationError
- func (e AbsoluteTimeBoundValidationError) Cause() error
- func (e AbsoluteTimeBoundValidationError) Error() string
- func (e AbsoluteTimeBoundValidationError) ErrorName() string
- func (e AbsoluteTimeBoundValidationError) Field() string
- func (e AbsoluteTimeBoundValidationError) Key() bool
- func (e AbsoluteTimeBoundValidationError) Reason() string
- type BoolComparison
- func (BoolComparison) Descriptor() protoreflect.EnumDescriptor
- func (x BoolComparison) Enum() *BoolComparison
- func (BoolComparison) EnumDescriptor() ([]byte, []int)deprecated
- func (x BoolComparison) Number() protoreflect.EnumNumber
- func (x BoolComparison) String() string
- func (BoolComparison) Type() protoreflect.EnumType
- type BoolFilter
- func (*BoolFilter) Descriptor() ([]byte, []int)deprecated
- func (x *BoolFilter) GetComparison() BoolComparison
- func (*BoolFilter) ProtoMessage()
- func (x *BoolFilter) ProtoReflect() protoreflect.Message
- func (x *BoolFilter) Reset()
- func (x *BoolFilter) String() string
- func (m *BoolFilter) Validate() error
- func (m *BoolFilter) ValidateAll() error
- type BoolFilterMultiError
- type BoolFilterValidationError
- type DecisionFilter
- func (*DecisionFilter) Descriptor() ([]byte, []int)deprecated
- func (x *DecisionFilter) GetDecision() v1alpha1.Decision
- func (*DecisionFilter) ProtoMessage()
- func (x *DecisionFilter) ProtoReflect() protoreflect.Message
- func (x *DecisionFilter) Reset()
- func (x *DecisionFilter) String() string
- func (m *DecisionFilter) Validate() error
- func (m *DecisionFilter) ValidateAll() error
- type DecisionFilterMultiError
- type DecisionFilterValidationError
- func (e DecisionFilterValidationError) Cause() error
- func (e DecisionFilterValidationError) Error() string
- func (e DecisionFilterValidationError) ErrorName() string
- func (e DecisionFilterValidationError) Field() string
- func (e DecisionFilterValidationError) Key() bool
- func (e DecisionFilterValidationError) Reason() string
- type EntityFilter
- func (*EntityFilter) Descriptor() ([]byte, []int)deprecated
- func (x *EntityFilter) GetComparison() BoolComparison
- func (x *EntityFilter) GetIds() []*v1alpha11.EID
- func (*EntityFilter) ProtoMessage()
- func (x *EntityFilter) ProtoReflect() protoreflect.Message
- func (x *EntityFilter) Reset()
- func (x *EntityFilter) String() string
- func (m *EntityFilter) Validate() error
- func (m *EntityFilter) ValidateAll() error
- type EntityFilterMultiError
- type EntityFilterValidationError
- func (e EntityFilterValidationError) Cause() error
- func (e EntityFilterValidationError) Error() string
- func (e EntityFilterValidationError) ErrorName() string
- func (e EntityFilterValidationError) Field() string
- func (e EntityFilterValidationError) Key() bool
- func (e EntityFilterValidationError) Reason() string
- type EntityTypeFilter
- func (*EntityTypeFilter) Descriptor() ([]byte, []int)deprecated
- func (x *EntityTypeFilter) GetComparison() BoolComparison
- func (x *EntityTypeFilter) GetTypes() []string
- func (*EntityTypeFilter) ProtoMessage()
- func (x *EntityTypeFilter) ProtoReflect() protoreflect.Message
- func (x *EntityTypeFilter) Reset()
- func (x *EntityTypeFilter) String() string
- func (m *EntityTypeFilter) Validate() error
- func (m *EntityTypeFilter) ValidateAll() error
- type EntityTypeFilterMultiError
- type EntityTypeFilterValidationError
- func (e EntityTypeFilterValidationError) Cause() error
- func (e EntityTypeFilterValidationError) Error() string
- func (e EntityTypeFilterValidationError) ErrorName() string
- func (e EntityTypeFilterValidationError) Field() string
- func (e EntityTypeFilterValidationError) Key() bool
- func (e EntityTypeFilterValidationError) Reason() string
- type EqualityComparison
- func (EqualityComparison) Descriptor() protoreflect.EnumDescriptor
- func (x EqualityComparison) Enum() *EqualityComparison
- func (EqualityComparison) EnumDescriptor() ([]byte, []int)deprecated
- func (x EqualityComparison) Number() protoreflect.EnumNumber
- func (x EqualityComparison) String() string
- func (EqualityComparison) Type() protoreflect.EnumType
- type IntegerFilter
- func (*IntegerFilter) Descriptor() ([]byte, []int)deprecated
- func (x *IntegerFilter) GetComparison() EqualityComparison
- func (x *IntegerFilter) GetValue() int64
- func (*IntegerFilter) ProtoMessage()
- func (x *IntegerFilter) ProtoReflect() protoreflect.Message
- func (x *IntegerFilter) Reset()
- func (x *IntegerFilter) String() string
- func (m *IntegerFilter) Validate() error
- func (m *IntegerFilter) ValidateAll() error
- type IntegerFilterMultiError
- type IntegerFilterValidationError
- func (e IntegerFilterValidationError) Cause() error
- func (e IntegerFilterValidationError) Error() string
- func (e IntegerFilterValidationError) ErrorName() string
- func (e IntegerFilterValidationError) Field() string
- func (e IntegerFilterValidationError) Key() bool
- func (e IntegerFilterValidationError) Reason() string
- type RelativeTimeBound
- func (*RelativeTimeBound) Descriptor() ([]byte, []int)deprecated
- func (x *RelativeTimeBound) GetDuration() *durationpb.Duration
- func (*RelativeTimeBound) ProtoMessage()
- func (x *RelativeTimeBound) ProtoReflect() protoreflect.Message
- func (x *RelativeTimeBound) Reset()
- func (x *RelativeTimeBound) String() string
- func (m *RelativeTimeBound) Validate() error
- func (m *RelativeTimeBound) ValidateAll() error
- type RelativeTimeBoundMultiError
- type RelativeTimeBoundValidationError
- func (e RelativeTimeBoundValidationError) Cause() error
- func (e RelativeTimeBoundValidationError) Error() string
- func (e RelativeTimeBoundValidationError) ErrorName() string
- func (e RelativeTimeBoundValidationError) Field() string
- func (e RelativeTimeBoundValidationError) Key() bool
- func (e RelativeTimeBoundValidationError) Reason() string
- type StringComparison
- func (StringComparison) Descriptor() protoreflect.EnumDescriptor
- func (x StringComparison) Enum() *StringComparison
- func (StringComparison) EnumDescriptor() ([]byte, []int)deprecated
- func (x StringComparison) Number() protoreflect.EnumNumber
- func (x StringComparison) String() string
- func (StringComparison) Type() protoreflect.EnumType
- type StringFilter
- func (*StringFilter) Descriptor() ([]byte, []int)deprecated
- func (x *StringFilter) GetComparison() StringComparison
- func (x *StringFilter) GetValue() string
- func (*StringFilter) ProtoMessage()
- func (x *StringFilter) ProtoReflect() protoreflect.Message
- func (x *StringFilter) Reset()
- func (x *StringFilter) String() string
- func (m *StringFilter) Validate() error
- func (m *StringFilter) ValidateAll() error
- type StringFilterMultiError
- type StringFilterValidationError
- func (e StringFilterValidationError) Cause() error
- func (e StringFilterValidationError) Error() string
- func (e StringFilterValidationError) ErrorName() string
- func (e StringFilterValidationError) Field() string
- func (e StringFilterValidationError) Key() bool
- func (e StringFilterValidationError) Reason() string
- type TagFilter
- func (*TagFilter) Descriptor() ([]byte, []int)deprecated
- func (x *TagFilter) GetComparison() BoolComparison
- func (x *TagFilter) GetKey() string
- func (x *TagFilter) GetValue() string
- func (*TagFilter) ProtoMessage()
- func (x *TagFilter) ProtoReflect() protoreflect.Message
- func (x *TagFilter) Reset()
- func (x *TagFilter) String() string
- func (m *TagFilter) Validate() error
- func (m *TagFilter) ValidateAll() error
- type TagFilterMultiError
- type TagFilterValidationError
- type TimeBound
- func (*TimeBound) Descriptor() ([]byte, []int)deprecated
- func (x *TimeBound) GetAbsolute() *AbsoluteTimeBound
- func (m *TimeBound) GetBound() isTimeBound_Bound
- func (x *TimeBound) GetRelative() *RelativeTimeBound
- func (*TimeBound) ProtoMessage()
- func (x *TimeBound) ProtoReflect() protoreflect.Message
- func (x *TimeBound) Reset()
- func (x *TimeBound) String() string
- func (m *TimeBound) Validate() error
- func (m *TimeBound) ValidateAll() error
- type TimeBoundMultiError
- type TimeBoundValidationError
- type TimeBound_Absolute
- type TimeBound_Relative
- type TimeRangeFilter
- func (*TimeRangeFilter) Descriptor() ([]byte, []int)deprecated
- func (x *TimeRangeFilter) GetEnd() *TimeBound
- func (x *TimeRangeFilter) GetStart() *TimeBound
- func (*TimeRangeFilter) ProtoMessage()
- func (x *TimeRangeFilter) ProtoReflect() protoreflect.Message
- func (x *TimeRangeFilter) Reset()
- func (x *TimeRangeFilter) String() string
- func (m *TimeRangeFilter) Validate() error
- func (m *TimeRangeFilter) ValidateAll() error
- type TimeRangeFilterMultiError
- type TimeRangeFilterValidationError
- func (e TimeRangeFilterValidationError) Cause() error
- func (e TimeRangeFilterValidationError) Error() string
- func (e TimeRangeFilterValidationError) ErrorName() string
- func (e TimeRangeFilterValidationError) Field() string
- func (e TimeRangeFilterValidationError) Key() bool
- func (e TimeRangeFilterValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( BoolComparison_name = map[int32]string{ 0: "BOOL_COMPARISON_UNSPECIFIED", 1: "BOOL_COMPARISON_EQUAL", 2: "BOOL_COMPARISON_NOT_EQUAL", } BoolComparison_value = map[string]int32{ "BOOL_COMPARISON_UNSPECIFIED": 0, "BOOL_COMPARISON_EQUAL": 1, "BOOL_COMPARISON_NOT_EQUAL": 2, } )
Enum value maps for BoolComparison.
var ( EqualityComparison_name = map[int32]string{ 0: "EQUALITY_COMPARISON_UNSPECIFIED", 1: "EQUALITY_COMPARISON_EQUAL", 2: "EQUALITY_COMPARISON_NOT_EQUAL", 3: "EQUALITY_COMPARISON_LESS_THAN", 4: "EQUALITY_COMPARISON_GREATER_THAN", 5: "EQUALITY_COMPARISON_LESS_THAN_EQUAL", 6: "EQUALITY_COMPARISON_GREATER_THAN_EQUAL", } EqualityComparison_value = map[string]int32{ "EQUALITY_COMPARISON_UNSPECIFIED": 0, "EQUALITY_COMPARISON_EQUAL": 1, "EQUALITY_COMPARISON_NOT_EQUAL": 2, "EQUALITY_COMPARISON_LESS_THAN": 3, "EQUALITY_COMPARISON_GREATER_THAN": 4, "EQUALITY_COMPARISON_LESS_THAN_EQUAL": 5, "EQUALITY_COMPARISON_GREATER_THAN_EQUAL": 6, } )
Enum value maps for EqualityComparison.
var ( StringComparison_name = map[int32]string{ 0: "STRING_COMPARISON_UNSPECIFIED", 1: "STRING_COMPARISON_EQUAL", 2: "STRING_COMPARISON_NOT_EQUAL", 3: "STRING_COMPARISON_CONTAINS", 4: "STRING_COMPARISON_HAS_PREFIX", 5: "STRING_COMPARISON_HAS_SUFFIX", } StringComparison_value = map[string]int32{ "STRING_COMPARISON_UNSPECIFIED": 0, "STRING_COMPARISON_EQUAL": 1, "STRING_COMPARISON_NOT_EQUAL": 2, "STRING_COMPARISON_CONTAINS": 3, "STRING_COMPARISON_HAS_PREFIX": 4, "STRING_COMPARISON_HAS_SUFFIX": 5, } )
Enum value maps for StringComparison.
var File_commonfate_filters_v1alpha1_filters_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AbsoluteTimeBound ¶ added in v1.60.0
type AbsoluteTimeBound struct { Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*AbsoluteTimeBound) Descriptor
deprecated
added in
v1.60.0
func (*AbsoluteTimeBound) Descriptor() ([]byte, []int)
Deprecated: Use AbsoluteTimeBound.ProtoReflect.Descriptor instead.
func (*AbsoluteTimeBound) GetTime ¶ added in v1.60.0
func (x *AbsoluteTimeBound) GetTime() *timestamppb.Timestamp
func (*AbsoluteTimeBound) ProtoMessage ¶ added in v1.60.0
func (*AbsoluteTimeBound) ProtoMessage()
func (*AbsoluteTimeBound) ProtoReflect ¶ added in v1.60.0
func (x *AbsoluteTimeBound) ProtoReflect() protoreflect.Message
func (*AbsoluteTimeBound) Reset ¶ added in v1.60.0
func (x *AbsoluteTimeBound) Reset()
func (*AbsoluteTimeBound) String ¶ added in v1.60.0
func (x *AbsoluteTimeBound) String() string
func (*AbsoluteTimeBound) Validate ¶ added in v1.60.0
func (m *AbsoluteTimeBound) Validate() error
Validate checks the field values on AbsoluteTimeBound with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AbsoluteTimeBound) ValidateAll ¶ added in v1.60.0
func (m *AbsoluteTimeBound) ValidateAll() error
ValidateAll checks the field values on AbsoluteTimeBound with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AbsoluteTimeBoundMultiError, or nil if none found.
type AbsoluteTimeBoundMultiError ¶ added in v1.60.0
type AbsoluteTimeBoundMultiError []error
AbsoluteTimeBoundMultiError is an error wrapping multiple validation errors returned by AbsoluteTimeBound.ValidateAll() if the designated constraints aren't met.
func (AbsoluteTimeBoundMultiError) AllErrors ¶ added in v1.60.0
func (m AbsoluteTimeBoundMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AbsoluteTimeBoundMultiError) Error ¶ added in v1.60.0
func (m AbsoluteTimeBoundMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AbsoluteTimeBoundValidationError ¶ added in v1.60.0
type AbsoluteTimeBoundValidationError struct {
// contains filtered or unexported fields
}
AbsoluteTimeBoundValidationError is the validation error returned by AbsoluteTimeBound.Validate if the designated constraints aren't met.
func (AbsoluteTimeBoundValidationError) Cause ¶ added in v1.60.0
func (e AbsoluteTimeBoundValidationError) Cause() error
Cause function returns cause value.
func (AbsoluteTimeBoundValidationError) Error ¶ added in v1.60.0
func (e AbsoluteTimeBoundValidationError) Error() string
Error satisfies the builtin error interface
func (AbsoluteTimeBoundValidationError) ErrorName ¶ added in v1.60.0
func (e AbsoluteTimeBoundValidationError) ErrorName() string
ErrorName returns error name.
func (AbsoluteTimeBoundValidationError) Field ¶ added in v1.60.0
func (e AbsoluteTimeBoundValidationError) Field() string
Field function returns field value.
func (AbsoluteTimeBoundValidationError) Key ¶ added in v1.60.0
func (e AbsoluteTimeBoundValidationError) Key() bool
Key function returns key value.
func (AbsoluteTimeBoundValidationError) Reason ¶ added in v1.60.0
func (e AbsoluteTimeBoundValidationError) Reason() string
Reason function returns reason value.
type BoolComparison ¶
type BoolComparison int32
const ( BoolComparison_BOOL_COMPARISON_UNSPECIFIED BoolComparison = 0 // Equal to the provided value. BoolComparison_BOOL_COMPARISON_EQUAL BoolComparison = 1 // Not equal to the provided value. BoolComparison_BOOL_COMPARISON_NOT_EQUAL BoolComparison = 2 )
func (BoolComparison) Descriptor ¶
func (BoolComparison) Descriptor() protoreflect.EnumDescriptor
func (BoolComparison) Enum ¶
func (x BoolComparison) Enum() *BoolComparison
func (BoolComparison) EnumDescriptor
deprecated
func (BoolComparison) EnumDescriptor() ([]byte, []int)
Deprecated: Use BoolComparison.Descriptor instead.
func (BoolComparison) Number ¶
func (x BoolComparison) Number() protoreflect.EnumNumber
func (BoolComparison) String ¶
func (x BoolComparison) String() string
func (BoolComparison) Type ¶
func (BoolComparison) Type() protoreflect.EnumType
type BoolFilter ¶ added in v1.60.0
type BoolFilter struct { Comparison BoolComparison `protobuf:"varint,2,opt,name=comparison,proto3,enum=commonfate.filters.v1alpha1.BoolComparison" json:"comparison,omitempty"` // contains filtered or unexported fields }
Filters based on a condition being true or false.
func (*BoolFilter) Descriptor
deprecated
added in
v1.60.0
func (*BoolFilter) Descriptor() ([]byte, []int)
Deprecated: Use BoolFilter.ProtoReflect.Descriptor instead.
func (*BoolFilter) GetComparison ¶ added in v1.60.0
func (x *BoolFilter) GetComparison() BoolComparison
func (*BoolFilter) ProtoMessage ¶ added in v1.60.0
func (*BoolFilter) ProtoMessage()
func (*BoolFilter) ProtoReflect ¶ added in v1.60.0
func (x *BoolFilter) ProtoReflect() protoreflect.Message
func (*BoolFilter) Reset ¶ added in v1.60.0
func (x *BoolFilter) Reset()
func (*BoolFilter) String ¶ added in v1.60.0
func (x *BoolFilter) String() string
func (*BoolFilter) Validate ¶ added in v1.60.0
func (m *BoolFilter) Validate() error
Validate checks the field values on BoolFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BoolFilter) ValidateAll ¶ added in v1.60.0
func (m *BoolFilter) ValidateAll() error
ValidateAll checks the field values on BoolFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BoolFilterMultiError, or nil if none found.
type BoolFilterMultiError ¶ added in v1.60.0
type BoolFilterMultiError []error
BoolFilterMultiError is an error wrapping multiple validation errors returned by BoolFilter.ValidateAll() if the designated constraints aren't met.
func (BoolFilterMultiError) AllErrors ¶ added in v1.60.0
func (m BoolFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BoolFilterMultiError) Error ¶ added in v1.60.0
func (m BoolFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BoolFilterValidationError ¶ added in v1.60.0
type BoolFilterValidationError struct {
// contains filtered or unexported fields
}
BoolFilterValidationError is the validation error returned by BoolFilter.Validate if the designated constraints aren't met.
func (BoolFilterValidationError) Cause ¶ added in v1.60.0
func (e BoolFilterValidationError) Cause() error
Cause function returns cause value.
func (BoolFilterValidationError) Error ¶ added in v1.60.0
func (e BoolFilterValidationError) Error() string
Error satisfies the builtin error interface
func (BoolFilterValidationError) ErrorName ¶ added in v1.60.0
func (e BoolFilterValidationError) ErrorName() string
ErrorName returns error name.
func (BoolFilterValidationError) Field ¶ added in v1.60.0
func (e BoolFilterValidationError) Field() string
Field function returns field value.
func (BoolFilterValidationError) Key ¶ added in v1.60.0
func (e BoolFilterValidationError) Key() bool
Key function returns key value.
func (BoolFilterValidationError) Reason ¶ added in v1.60.0
func (e BoolFilterValidationError) Reason() string
Reason function returns reason value.
type DecisionFilter ¶
type DecisionFilter struct { Decision v1alpha1.Decision `protobuf:"varint,1,opt,name=decision,proto3,enum=commonfate.authz.v1alpha1.Decision" json:"decision,omitempty"` // contains filtered or unexported fields }
Filters items with a particular authorization decision
func (*DecisionFilter) Descriptor
deprecated
func (*DecisionFilter) Descriptor() ([]byte, []int)
Deprecated: Use DecisionFilter.ProtoReflect.Descriptor instead.
func (*DecisionFilter) GetDecision ¶
func (x *DecisionFilter) GetDecision() v1alpha1.Decision
func (*DecisionFilter) ProtoMessage ¶
func (*DecisionFilter) ProtoMessage()
func (*DecisionFilter) ProtoReflect ¶
func (x *DecisionFilter) ProtoReflect() protoreflect.Message
func (*DecisionFilter) Reset ¶
func (x *DecisionFilter) Reset()
func (*DecisionFilter) String ¶
func (x *DecisionFilter) String() string
func (*DecisionFilter) Validate ¶
func (m *DecisionFilter) Validate() error
Validate checks the field values on DecisionFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DecisionFilter) ValidateAll ¶
func (m *DecisionFilter) ValidateAll() error
ValidateAll checks the field values on DecisionFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DecisionFilterMultiError, or nil if none found.
type DecisionFilterMultiError ¶
type DecisionFilterMultiError []error
DecisionFilterMultiError is an error wrapping multiple validation errors returned by DecisionFilter.ValidateAll() if the designated constraints aren't met.
func (DecisionFilterMultiError) AllErrors ¶
func (m DecisionFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DecisionFilterMultiError) Error ¶
func (m DecisionFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DecisionFilterValidationError ¶
type DecisionFilterValidationError struct {
// contains filtered or unexported fields
}
DecisionFilterValidationError is the validation error returned by DecisionFilter.Validate if the designated constraints aren't met.
func (DecisionFilterValidationError) Cause ¶
func (e DecisionFilterValidationError) Cause() error
Cause function returns cause value.
func (DecisionFilterValidationError) Error ¶
func (e DecisionFilterValidationError) Error() string
Error satisfies the builtin error interface
func (DecisionFilterValidationError) ErrorName ¶
func (e DecisionFilterValidationError) ErrorName() string
ErrorName returns error name.
func (DecisionFilterValidationError) Field ¶
func (e DecisionFilterValidationError) Field() string
Field function returns field value.
func (DecisionFilterValidationError) Key ¶
func (e DecisionFilterValidationError) Key() bool
Key function returns key value.
func (DecisionFilterValidationError) Reason ¶
func (e DecisionFilterValidationError) Reason() string
Reason function returns reason value.
type EntityFilter ¶
type EntityFilter struct { // IDs of entities to filter for. Will filter for a principal/action/resource matching any of these entities. Ids []*v1alpha11.EID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` Comparison BoolComparison `protobuf:"varint,2,opt,name=comparison,proto3,enum=commonfate.filters.v1alpha1.BoolComparison" json:"comparison,omitempty"` // contains filtered or unexported fields }
Filters where the principal/action/resource matches particular entities.
func (*EntityFilter) Descriptor
deprecated
func (*EntityFilter) Descriptor() ([]byte, []int)
Deprecated: Use EntityFilter.ProtoReflect.Descriptor instead.
func (*EntityFilter) GetComparison ¶
func (x *EntityFilter) GetComparison() BoolComparison
func (*EntityFilter) GetIds ¶
func (x *EntityFilter) GetIds() []*v1alpha11.EID
func (*EntityFilter) ProtoMessage ¶
func (*EntityFilter) ProtoMessage()
func (*EntityFilter) ProtoReflect ¶
func (x *EntityFilter) ProtoReflect() protoreflect.Message
func (*EntityFilter) Reset ¶
func (x *EntityFilter) Reset()
func (*EntityFilter) String ¶
func (x *EntityFilter) String() string
func (*EntityFilter) Validate ¶
func (m *EntityFilter) Validate() error
Validate checks the field values on EntityFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EntityFilter) ValidateAll ¶
func (m *EntityFilter) ValidateAll() error
ValidateAll checks the field values on EntityFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EntityFilterMultiError, or nil if none found.
type EntityFilterMultiError ¶
type EntityFilterMultiError []error
EntityFilterMultiError is an error wrapping multiple validation errors returned by EntityFilter.ValidateAll() if the designated constraints aren't met.
func (EntityFilterMultiError) AllErrors ¶
func (m EntityFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EntityFilterMultiError) Error ¶
func (m EntityFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EntityFilterValidationError ¶
type EntityFilterValidationError struct {
// contains filtered or unexported fields
}
EntityFilterValidationError is the validation error returned by EntityFilter.Validate if the designated constraints aren't met.
func (EntityFilterValidationError) Cause ¶
func (e EntityFilterValidationError) Cause() error
Cause function returns cause value.
func (EntityFilterValidationError) Error ¶
func (e EntityFilterValidationError) Error() string
Error satisfies the builtin error interface
func (EntityFilterValidationError) ErrorName ¶
func (e EntityFilterValidationError) ErrorName() string
ErrorName returns error name.
func (EntityFilterValidationError) Field ¶
func (e EntityFilterValidationError) Field() string
Field function returns field value.
func (EntityFilterValidationError) Key ¶
func (e EntityFilterValidationError) Key() bool
Key function returns key value.
func (EntityFilterValidationError) Reason ¶
func (e EntityFilterValidationError) Reason() string
Reason function returns reason value.
type EntityTypeFilter ¶
type EntityTypeFilter struct { // Types of entities to filter for. Will filter for a principal/action/resource matching any of these entities. Types []string `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"` Comparison BoolComparison `protobuf:"varint,2,opt,name=comparison,proto3,enum=commonfate.filters.v1alpha1.BoolComparison" json:"comparison,omitempty"` // contains filtered or unexported fields }
Filters where the principal/action/resource matches particular entity types.
func (*EntityTypeFilter) Descriptor
deprecated
func (*EntityTypeFilter) Descriptor() ([]byte, []int)
Deprecated: Use EntityTypeFilter.ProtoReflect.Descriptor instead.
func (*EntityTypeFilter) GetComparison ¶
func (x *EntityTypeFilter) GetComparison() BoolComparison
func (*EntityTypeFilter) GetTypes ¶
func (x *EntityTypeFilter) GetTypes() []string
func (*EntityTypeFilter) ProtoMessage ¶
func (*EntityTypeFilter) ProtoMessage()
func (*EntityTypeFilter) ProtoReflect ¶
func (x *EntityTypeFilter) ProtoReflect() protoreflect.Message
func (*EntityTypeFilter) Reset ¶
func (x *EntityTypeFilter) Reset()
func (*EntityTypeFilter) String ¶
func (x *EntityTypeFilter) String() string
func (*EntityTypeFilter) Validate ¶
func (m *EntityTypeFilter) Validate() error
Validate checks the field values on EntityTypeFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EntityTypeFilter) ValidateAll ¶
func (m *EntityTypeFilter) ValidateAll() error
ValidateAll checks the field values on EntityTypeFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EntityTypeFilterMultiError, or nil if none found.
type EntityTypeFilterMultiError ¶
type EntityTypeFilterMultiError []error
EntityTypeFilterMultiError is an error wrapping multiple validation errors returned by EntityTypeFilter.ValidateAll() if the designated constraints aren't met.
func (EntityTypeFilterMultiError) AllErrors ¶
func (m EntityTypeFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EntityTypeFilterMultiError) Error ¶
func (m EntityTypeFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EntityTypeFilterValidationError ¶
type EntityTypeFilterValidationError struct {
// contains filtered or unexported fields
}
EntityTypeFilterValidationError is the validation error returned by EntityTypeFilter.Validate if the designated constraints aren't met.
func (EntityTypeFilterValidationError) Cause ¶
func (e EntityTypeFilterValidationError) Cause() error
Cause function returns cause value.
func (EntityTypeFilterValidationError) Error ¶
func (e EntityTypeFilterValidationError) Error() string
Error satisfies the builtin error interface
func (EntityTypeFilterValidationError) ErrorName ¶
func (e EntityTypeFilterValidationError) ErrorName() string
ErrorName returns error name.
func (EntityTypeFilterValidationError) Field ¶
func (e EntityTypeFilterValidationError) Field() string
Field function returns field value.
func (EntityTypeFilterValidationError) Key ¶
func (e EntityTypeFilterValidationError) Key() bool
Key function returns key value.
func (EntityTypeFilterValidationError) Reason ¶
func (e EntityTypeFilterValidationError) Reason() string
Reason function returns reason value.
type EqualityComparison ¶ added in v1.60.0
type EqualityComparison int32
const ( EqualityComparison_EQUALITY_COMPARISON_UNSPECIFIED EqualityComparison = 0 // Equal to the provided value. EqualityComparison_EQUALITY_COMPARISON_EQUAL EqualityComparison = 1 // Not equal to the provided value. EqualityComparison_EQUALITY_COMPARISON_NOT_EQUAL EqualityComparison = 2 // Less than the provided value. EqualityComparison_EQUALITY_COMPARISON_LESS_THAN EqualityComparison = 3 // Greater than the provided value. EqualityComparison_EQUALITY_COMPARISON_GREATER_THAN EqualityComparison = 4 // Less than or equal to the provided value. EqualityComparison_EQUALITY_COMPARISON_LESS_THAN_EQUAL EqualityComparison = 5 // Greater than or equal to the provided value. EqualityComparison_EQUALITY_COMPARISON_GREATER_THAN_EQUAL EqualityComparison = 6 )
func (EqualityComparison) Descriptor ¶ added in v1.60.0
func (EqualityComparison) Descriptor() protoreflect.EnumDescriptor
func (EqualityComparison) Enum ¶ added in v1.60.0
func (x EqualityComparison) Enum() *EqualityComparison
func (EqualityComparison) EnumDescriptor
deprecated
added in
v1.60.0
func (EqualityComparison) EnumDescriptor() ([]byte, []int)
Deprecated: Use EqualityComparison.Descriptor instead.
func (EqualityComparison) Number ¶ added in v1.60.0
func (x EqualityComparison) Number() protoreflect.EnumNumber
func (EqualityComparison) String ¶ added in v1.60.0
func (x EqualityComparison) String() string
func (EqualityComparison) Type ¶ added in v1.60.0
func (EqualityComparison) Type() protoreflect.EnumType
type IntegerFilter ¶ added in v1.60.0
type IntegerFilter struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Comparison EqualityComparison `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
Filters based on an integer equality.
func (*IntegerFilter) Descriptor
deprecated
added in
v1.60.0
func (*IntegerFilter) Descriptor() ([]byte, []int)
Deprecated: Use IntegerFilter.ProtoReflect.Descriptor instead.
func (*IntegerFilter) GetComparison ¶ added in v1.60.0
func (x *IntegerFilter) GetComparison() EqualityComparison
func (*IntegerFilter) GetValue ¶ added in v1.60.0
func (x *IntegerFilter) GetValue() int64
func (*IntegerFilter) ProtoMessage ¶ added in v1.60.0
func (*IntegerFilter) ProtoMessage()
func (*IntegerFilter) ProtoReflect ¶ added in v1.60.0
func (x *IntegerFilter) ProtoReflect() protoreflect.Message
func (*IntegerFilter) Reset ¶ added in v1.60.0
func (x *IntegerFilter) Reset()
func (*IntegerFilter) String ¶ added in v1.60.0
func (x *IntegerFilter) String() string
func (*IntegerFilter) Validate ¶ added in v1.60.0
func (m *IntegerFilter) Validate() error
Validate checks the field values on IntegerFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*IntegerFilter) ValidateAll ¶ added in v1.60.0
func (m *IntegerFilter) ValidateAll() error
ValidateAll checks the field values on IntegerFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IntegerFilterMultiError, or nil if none found.
type IntegerFilterMultiError ¶ added in v1.60.0
type IntegerFilterMultiError []error
IntegerFilterMultiError is an error wrapping multiple validation errors returned by IntegerFilter.ValidateAll() if the designated constraints aren't met.
func (IntegerFilterMultiError) AllErrors ¶ added in v1.60.0
func (m IntegerFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IntegerFilterMultiError) Error ¶ added in v1.60.0
func (m IntegerFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IntegerFilterValidationError ¶ added in v1.60.0
type IntegerFilterValidationError struct {
// contains filtered or unexported fields
}
IntegerFilterValidationError is the validation error returned by IntegerFilter.Validate if the designated constraints aren't met.
func (IntegerFilterValidationError) Cause ¶ added in v1.60.0
func (e IntegerFilterValidationError) Cause() error
Cause function returns cause value.
func (IntegerFilterValidationError) Error ¶ added in v1.60.0
func (e IntegerFilterValidationError) Error() string
Error satisfies the builtin error interface
func (IntegerFilterValidationError) ErrorName ¶ added in v1.60.0
func (e IntegerFilterValidationError) ErrorName() string
ErrorName returns error name.
func (IntegerFilterValidationError) Field ¶ added in v1.60.0
func (e IntegerFilterValidationError) Field() string
Field function returns field value.
func (IntegerFilterValidationError) Key ¶ added in v1.60.0
func (e IntegerFilterValidationError) Key() bool
Key function returns key value.
func (IntegerFilterValidationError) Reason ¶ added in v1.60.0
func (e IntegerFilterValidationError) Reason() string
Reason function returns reason value.
type RelativeTimeBound ¶ added in v1.60.0
type RelativeTimeBound struct { Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*RelativeTimeBound) Descriptor
deprecated
added in
v1.60.0
func (*RelativeTimeBound) Descriptor() ([]byte, []int)
Deprecated: Use RelativeTimeBound.ProtoReflect.Descriptor instead.
func (*RelativeTimeBound) GetDuration ¶ added in v1.60.0
func (x *RelativeTimeBound) GetDuration() *durationpb.Duration
func (*RelativeTimeBound) ProtoMessage ¶ added in v1.60.0
func (*RelativeTimeBound) ProtoMessage()
func (*RelativeTimeBound) ProtoReflect ¶ added in v1.60.0
func (x *RelativeTimeBound) ProtoReflect() protoreflect.Message
func (*RelativeTimeBound) Reset ¶ added in v1.60.0
func (x *RelativeTimeBound) Reset()
func (*RelativeTimeBound) String ¶ added in v1.60.0
func (x *RelativeTimeBound) String() string
func (*RelativeTimeBound) Validate ¶ added in v1.60.0
func (m *RelativeTimeBound) Validate() error
Validate checks the field values on RelativeTimeBound with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelativeTimeBound) ValidateAll ¶ added in v1.60.0
func (m *RelativeTimeBound) ValidateAll() error
ValidateAll checks the field values on RelativeTimeBound with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelativeTimeBoundMultiError, or nil if none found.
type RelativeTimeBoundMultiError ¶ added in v1.60.0
type RelativeTimeBoundMultiError []error
RelativeTimeBoundMultiError is an error wrapping multiple validation errors returned by RelativeTimeBound.ValidateAll() if the designated constraints aren't met.
func (RelativeTimeBoundMultiError) AllErrors ¶ added in v1.60.0
func (m RelativeTimeBoundMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelativeTimeBoundMultiError) Error ¶ added in v1.60.0
func (m RelativeTimeBoundMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelativeTimeBoundValidationError ¶ added in v1.60.0
type RelativeTimeBoundValidationError struct {
// contains filtered or unexported fields
}
RelativeTimeBoundValidationError is the validation error returned by RelativeTimeBound.Validate if the designated constraints aren't met.
func (RelativeTimeBoundValidationError) Cause ¶ added in v1.60.0
func (e RelativeTimeBoundValidationError) Cause() error
Cause function returns cause value.
func (RelativeTimeBoundValidationError) Error ¶ added in v1.60.0
func (e RelativeTimeBoundValidationError) Error() string
Error satisfies the builtin error interface
func (RelativeTimeBoundValidationError) ErrorName ¶ added in v1.60.0
func (e RelativeTimeBoundValidationError) ErrorName() string
ErrorName returns error name.
func (RelativeTimeBoundValidationError) Field ¶ added in v1.60.0
func (e RelativeTimeBoundValidationError) Field() string
Field function returns field value.
func (RelativeTimeBoundValidationError) Key ¶ added in v1.60.0
func (e RelativeTimeBoundValidationError) Key() bool
Key function returns key value.
func (RelativeTimeBoundValidationError) Reason ¶ added in v1.60.0
func (e RelativeTimeBoundValidationError) Reason() string
Reason function returns reason value.
type StringComparison ¶ added in v1.70.1
type StringComparison int32
const ( StringComparison_STRING_COMPARISON_UNSPECIFIED StringComparison = 0 // Equal to the provided value. StringComparison_STRING_COMPARISON_EQUAL StringComparison = 1 // Not equal to the provided value. StringComparison_STRING_COMPARISON_NOT_EQUAL StringComparison = 2 // Contains the substring StringComparison_STRING_COMPARISON_CONTAINS StringComparison = 3 // Has the prefix StringComparison_STRING_COMPARISON_HAS_PREFIX StringComparison = 4 // Has the suffix StringComparison_STRING_COMPARISON_HAS_SUFFIX StringComparison = 5 )
func (StringComparison) Descriptor ¶ added in v1.70.1
func (StringComparison) Descriptor() protoreflect.EnumDescriptor
func (StringComparison) Enum ¶ added in v1.70.1
func (x StringComparison) Enum() *StringComparison
func (StringComparison) EnumDescriptor
deprecated
added in
v1.70.1
func (StringComparison) EnumDescriptor() ([]byte, []int)
Deprecated: Use StringComparison.Descriptor instead.
func (StringComparison) Number ¶ added in v1.70.1
func (x StringComparison) Number() protoreflect.EnumNumber
func (StringComparison) String ¶ added in v1.70.1
func (x StringComparison) String() string
func (StringComparison) Type ¶ added in v1.70.1
func (StringComparison) Type() protoreflect.EnumType
type StringFilter ¶ added in v1.70.1
type StringFilter struct { // The string value to compare Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Comparison StringComparison `protobuf:"varint,2,opt,name=comparison,proto3,enum=commonfate.filters.v1alpha1.StringComparison" json:"comparison,omitempty"` // contains filtered or unexported fields }
Filters where the principal/action/resource matches particular entities.
func (*StringFilter) Descriptor
deprecated
added in
v1.70.1
func (*StringFilter) Descriptor() ([]byte, []int)
Deprecated: Use StringFilter.ProtoReflect.Descriptor instead.
func (*StringFilter) GetComparison ¶ added in v1.70.1
func (x *StringFilter) GetComparison() StringComparison
func (*StringFilter) GetValue ¶ added in v1.70.1
func (x *StringFilter) GetValue() string
func (*StringFilter) ProtoMessage ¶ added in v1.70.1
func (*StringFilter) ProtoMessage()
func (*StringFilter) ProtoReflect ¶ added in v1.70.1
func (x *StringFilter) ProtoReflect() protoreflect.Message
func (*StringFilter) Reset ¶ added in v1.70.1
func (x *StringFilter) Reset()
func (*StringFilter) String ¶ added in v1.70.1
func (x *StringFilter) String() string
func (*StringFilter) Validate ¶ added in v1.70.1
func (m *StringFilter) Validate() error
Validate checks the field values on StringFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StringFilter) ValidateAll ¶ added in v1.70.1
func (m *StringFilter) ValidateAll() error
ValidateAll checks the field values on StringFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StringFilterMultiError, or nil if none found.
type StringFilterMultiError ¶ added in v1.70.1
type StringFilterMultiError []error
StringFilterMultiError is an error wrapping multiple validation errors returned by StringFilter.ValidateAll() if the designated constraints aren't met.
func (StringFilterMultiError) AllErrors ¶ added in v1.70.1
func (m StringFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StringFilterMultiError) Error ¶ added in v1.70.1
func (m StringFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StringFilterValidationError ¶ added in v1.70.1
type StringFilterValidationError struct {
// contains filtered or unexported fields
}
StringFilterValidationError is the validation error returned by StringFilter.Validate if the designated constraints aren't met.
func (StringFilterValidationError) Cause ¶ added in v1.70.1
func (e StringFilterValidationError) Cause() error
Cause function returns cause value.
func (StringFilterValidationError) Error ¶ added in v1.70.1
func (e StringFilterValidationError) Error() string
Error satisfies the builtin error interface
func (StringFilterValidationError) ErrorName ¶ added in v1.70.1
func (e StringFilterValidationError) ErrorName() string
ErrorName returns error name.
func (StringFilterValidationError) Field ¶ added in v1.70.1
func (e StringFilterValidationError) Field() string
Field function returns field value.
func (StringFilterValidationError) Key ¶ added in v1.70.1
func (e StringFilterValidationError) Key() bool
Key function returns key value.
func (StringFilterValidationError) Reason ¶ added in v1.70.1
func (e StringFilterValidationError) Reason() string
Reason function returns reason value.
type TagFilter ¶
type TagFilter struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Comparison BoolComparison `protobuf:"varint,3,opt,name=comparison,proto3,enum=commonfate.filters.v1alpha1.BoolComparison" json:"comparison,omitempty"` // contains filtered or unexported fields }
Filters by a particular key/value tag associated with items. Will filter for either items which match the tag, or do not match the tag, based on the 'comparison' value.
func (*TagFilter) Descriptor
deprecated
func (*TagFilter) GetComparison ¶
func (x *TagFilter) GetComparison() BoolComparison
func (*TagFilter) ProtoMessage ¶
func (*TagFilter) ProtoMessage()
func (*TagFilter) ProtoReflect ¶
func (x *TagFilter) ProtoReflect() protoreflect.Message
func (*TagFilter) Validate ¶
Validate checks the field values on TagFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TagFilter) ValidateAll ¶
ValidateAll checks the field values on TagFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TagFilterMultiError, or nil if none found.
type TagFilterMultiError ¶
type TagFilterMultiError []error
TagFilterMultiError is an error wrapping multiple validation errors returned by TagFilter.ValidateAll() if the designated constraints aren't met.
func (TagFilterMultiError) AllErrors ¶
func (m TagFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TagFilterMultiError) Error ¶
func (m TagFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TagFilterValidationError ¶
type TagFilterValidationError struct {
// contains filtered or unexported fields
}
TagFilterValidationError is the validation error returned by TagFilter.Validate if the designated constraints aren't met.
func (TagFilterValidationError) Cause ¶
func (e TagFilterValidationError) Cause() error
Cause function returns cause value.
func (TagFilterValidationError) Error ¶
func (e TagFilterValidationError) Error() string
Error satisfies the builtin error interface
func (TagFilterValidationError) ErrorName ¶
func (e TagFilterValidationError) ErrorName() string
ErrorName returns error name.
func (TagFilterValidationError) Field ¶
func (e TagFilterValidationError) Field() string
Field function returns field value.
func (TagFilterValidationError) Key ¶
func (e TagFilterValidationError) Key() bool
Key function returns key value.
func (TagFilterValidationError) Reason ¶
func (e TagFilterValidationError) Reason() string
Reason function returns reason value.
type TimeBound ¶ added in v1.60.0
type TimeBound struct { // Types that are assignable to Bound: // // *TimeBound_Relative // *TimeBound_Absolute Bound isTimeBound_Bound `protobuf_oneof:"bound"` // contains filtered or unexported fields }
func (*TimeBound) Descriptor
deprecated
added in
v1.60.0
func (*TimeBound) GetAbsolute ¶ added in v1.60.0
func (x *TimeBound) GetAbsolute() *AbsoluteTimeBound
func (*TimeBound) GetRelative ¶ added in v1.60.0
func (x *TimeBound) GetRelative() *RelativeTimeBound
func (*TimeBound) ProtoMessage ¶ added in v1.60.0
func (*TimeBound) ProtoMessage()
func (*TimeBound) ProtoReflect ¶ added in v1.60.0
func (x *TimeBound) ProtoReflect() protoreflect.Message
func (*TimeBound) Validate ¶ added in v1.60.0
Validate checks the field values on TimeBound with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TimeBound) ValidateAll ¶ added in v1.60.0
ValidateAll checks the field values on TimeBound with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TimeBoundMultiError, or nil if none found.
type TimeBoundMultiError ¶ added in v1.60.0
type TimeBoundMultiError []error
TimeBoundMultiError is an error wrapping multiple validation errors returned by TimeBound.ValidateAll() if the designated constraints aren't met.
func (TimeBoundMultiError) AllErrors ¶ added in v1.60.0
func (m TimeBoundMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TimeBoundMultiError) Error ¶ added in v1.60.0
func (m TimeBoundMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TimeBoundValidationError ¶ added in v1.60.0
type TimeBoundValidationError struct {
// contains filtered or unexported fields
}
TimeBoundValidationError is the validation error returned by TimeBound.Validate if the designated constraints aren't met.
func (TimeBoundValidationError) Cause ¶ added in v1.60.0
func (e TimeBoundValidationError) Cause() error
Cause function returns cause value.
func (TimeBoundValidationError) Error ¶ added in v1.60.0
func (e TimeBoundValidationError) Error() string
Error satisfies the builtin error interface
func (TimeBoundValidationError) ErrorName ¶ added in v1.60.0
func (e TimeBoundValidationError) ErrorName() string
ErrorName returns error name.
func (TimeBoundValidationError) Field ¶ added in v1.60.0
func (e TimeBoundValidationError) Field() string
Field function returns field value.
func (TimeBoundValidationError) Key ¶ added in v1.60.0
func (e TimeBoundValidationError) Key() bool
Key function returns key value.
func (TimeBoundValidationError) Reason ¶ added in v1.60.0
func (e TimeBoundValidationError) Reason() string
Reason function returns reason value.
type TimeBound_Absolute ¶ added in v1.60.0
type TimeBound_Absolute struct {
Absolute *AbsoluteTimeBound `protobuf:"bytes,2,opt,name=absolute,proto3,oneof"`
}
type TimeBound_Relative ¶ added in v1.60.0
type TimeBound_Relative struct {
Relative *RelativeTimeBound `protobuf:"bytes,1,opt,name=relative,proto3,oneof"`
}
type TimeRangeFilter ¶ added in v1.60.0
type TimeRangeFilter struct { // Optionaly provide a starting bound for the date range Start *TimeBound `protobuf:"bytes,1,opt,name=start,proto3,oneof" json:"start,omitempty"` // Optionaly provide an ending bound for the date range End *TimeBound `protobuf:"bytes,2,opt,name=end,proto3,oneof" json:"end,omitempty"` // contains filtered or unexported fields }
Filters based on a time range, where start or end is not provided a relative time is used e.g everything before an end time or everything after a start time
func (*TimeRangeFilter) Descriptor
deprecated
added in
v1.60.0
func (*TimeRangeFilter) Descriptor() ([]byte, []int)
Deprecated: Use TimeRangeFilter.ProtoReflect.Descriptor instead.
func (*TimeRangeFilter) GetEnd ¶ added in v1.60.0
func (x *TimeRangeFilter) GetEnd() *TimeBound
func (*TimeRangeFilter) GetStart ¶ added in v1.60.0
func (x *TimeRangeFilter) GetStart() *TimeBound
func (*TimeRangeFilter) ProtoMessage ¶ added in v1.60.0
func (*TimeRangeFilter) ProtoMessage()
func (*TimeRangeFilter) ProtoReflect ¶ added in v1.60.0
func (x *TimeRangeFilter) ProtoReflect() protoreflect.Message
func (*TimeRangeFilter) Reset ¶ added in v1.60.0
func (x *TimeRangeFilter) Reset()
func (*TimeRangeFilter) String ¶ added in v1.60.0
func (x *TimeRangeFilter) String() string
func (*TimeRangeFilter) Validate ¶ added in v1.60.0
func (m *TimeRangeFilter) Validate() error
Validate checks the field values on TimeRangeFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TimeRangeFilter) ValidateAll ¶ added in v1.60.0
func (m *TimeRangeFilter) ValidateAll() error
ValidateAll checks the field values on TimeRangeFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TimeRangeFilterMultiError, or nil if none found.
type TimeRangeFilterMultiError ¶ added in v1.60.0
type TimeRangeFilterMultiError []error
TimeRangeFilterMultiError is an error wrapping multiple validation errors returned by TimeRangeFilter.ValidateAll() if the designated constraints aren't met.
func (TimeRangeFilterMultiError) AllErrors ¶ added in v1.60.0
func (m TimeRangeFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TimeRangeFilterMultiError) Error ¶ added in v1.60.0
func (m TimeRangeFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TimeRangeFilterValidationError ¶ added in v1.60.0
type TimeRangeFilterValidationError struct {
// contains filtered or unexported fields
}
TimeRangeFilterValidationError is the validation error returned by TimeRangeFilter.Validate if the designated constraints aren't met.
func (TimeRangeFilterValidationError) Cause ¶ added in v1.60.0
func (e TimeRangeFilterValidationError) Cause() error
Cause function returns cause value.
func (TimeRangeFilterValidationError) Error ¶ added in v1.60.0
func (e TimeRangeFilterValidationError) Error() string
Error satisfies the builtin error interface
func (TimeRangeFilterValidationError) ErrorName ¶ added in v1.60.0
func (e TimeRangeFilterValidationError) ErrorName() string
ErrorName returns error name.
func (TimeRangeFilterValidationError) Field ¶ added in v1.60.0
func (e TimeRangeFilterValidationError) Field() string
Field function returns field value.
func (TimeRangeFilterValidationError) Key ¶ added in v1.60.0
func (e TimeRangeFilterValidationError) Key() bool
Key function returns key value.
func (TimeRangeFilterValidationError) Reason ¶ added in v1.60.0
func (e TimeRangeFilterValidationError) Reason() string
Reason function returns reason value.