filtersv1alpha1

package
v1.71.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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

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

Cause function returns cause value.

func (AbsoluteTimeBoundValidationError) Error added in v1.60.0

Error satisfies the builtin error interface

func (AbsoluteTimeBoundValidationError) ErrorName added in v1.60.0

ErrorName returns error name.

func (AbsoluteTimeBoundValidationError) Field added in v1.60.0

Field function returns field value.

func (AbsoluteTimeBoundValidationError) Key added in v1.60.0

Key function returns key value.

func (AbsoluteTimeBoundValidationError) Reason added in v1.60.0

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) Enum

func (x BoolComparison) Enum() *BoolComparison

func (BoolComparison) EnumDescriptor deprecated

func (BoolComparison) EnumDescriptor() ([]byte, []int)

Deprecated: Use BoolComparison.Descriptor instead.

func (BoolComparison) Number

func (BoolComparison) String

func (x BoolComparison) String() string

func (BoolComparison) Type

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

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

Field function returns field value.

func (BoolFilterValidationError) Key added in v1.60.0

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

Cause function returns cause value.

func (DecisionFilterValidationError) Error

Error satisfies the builtin error interface

func (DecisionFilterValidationError) ErrorName

func (e DecisionFilterValidationError) ErrorName() string

ErrorName returns error name.

func (DecisionFilterValidationError) Field

Field function returns field value.

func (DecisionFilterValidationError) Key

Key function returns key value.

func (DecisionFilterValidationError) Reason

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

Cause function returns cause value.

func (EntityFilterValidationError) Error

Error satisfies the builtin error interface

func (EntityFilterValidationError) ErrorName

func (e EntityFilterValidationError) ErrorName() string

ErrorName returns error name.

func (EntityFilterValidationError) Field

Field function returns field value.

func (EntityFilterValidationError) Key

Key function returns key value.

func (EntityFilterValidationError) Reason

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

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

Cause function returns cause value.

func (EntityTypeFilterValidationError) Error

Error satisfies the builtin error interface

func (EntityTypeFilterValidationError) ErrorName

ErrorName returns error name.

func (EntityTypeFilterValidationError) Field

Field function returns field value.

func (EntityTypeFilterValidationError) Key

Key function returns key value.

func (EntityTypeFilterValidationError) Reason

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) Enum added in v1.60.0

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 (EqualityComparison) String added in v1.60.0

func (x EqualityComparison) String() string

func (EqualityComparison) Type added in v1.60.0

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

Cause function returns cause value.

func (IntegerFilterValidationError) Error added in v1.60.0

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

Field function returns field value.

func (IntegerFilterValidationError) Key added in v1.60.0

Key function returns key value.

func (IntegerFilterValidationError) Reason added in v1.60.0

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

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

Cause function returns cause value.

func (RelativeTimeBoundValidationError) Error added in v1.60.0

Error satisfies the builtin error interface

func (RelativeTimeBoundValidationError) ErrorName added in v1.60.0

ErrorName returns error name.

func (RelativeTimeBoundValidationError) Field added in v1.60.0

Field function returns field value.

func (RelativeTimeBoundValidationError) Key added in v1.60.0

Key function returns key value.

func (RelativeTimeBoundValidationError) Reason added in v1.60.0

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) Enum added in v1.70.1

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 (StringComparison) String added in v1.70.1

func (x StringComparison) String() string

func (StringComparison) Type added in v1.70.1

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

Cause function returns cause value.

func (StringFilterValidationError) Error added in v1.70.1

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

Field function returns field value.

func (StringFilterValidationError) Key added in v1.70.1

Key function returns key value.

func (StringFilterValidationError) Reason added in v1.70.1

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) Descriptor() ([]byte, []int)

Deprecated: Use TagFilter.ProtoReflect.Descriptor instead.

func (*TagFilter) GetComparison

func (x *TagFilter) GetComparison() BoolComparison

func (*TagFilter) GetKey

func (x *TagFilter) GetKey() string

func (*TagFilter) GetValue

func (x *TagFilter) GetValue() string

func (*TagFilter) ProtoMessage

func (*TagFilter) ProtoMessage()

func (*TagFilter) ProtoReflect

func (x *TagFilter) ProtoReflect() protoreflect.Message

func (*TagFilter) Reset

func (x *TagFilter) Reset()

func (*TagFilter) String

func (x *TagFilter) String() string

func (*TagFilter) Validate

func (m *TagFilter) Validate() error

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

func (m *TagFilter) ValidateAll() error

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

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) Descriptor() ([]byte, []int)

Deprecated: Use TimeBound.ProtoReflect.Descriptor instead.

func (*TimeBound) GetAbsolute added in v1.60.0

func (x *TimeBound) GetAbsolute() *AbsoluteTimeBound

func (*TimeBound) GetBound added in v1.60.0

func (m *TimeBound) GetBound() isTimeBound_Bound

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) Reset added in v1.60.0

func (x *TimeBound) Reset()

func (*TimeBound) String added in v1.60.0

func (x *TimeBound) String() string

func (*TimeBound) Validate added in v1.60.0

func (m *TimeBound) Validate() error

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

func (m *TimeBound) ValidateAll() error

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

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

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

Cause function returns cause value.

func (TimeRangeFilterValidationError) Error added in v1.60.0

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

Field function returns field value.

func (TimeRangeFilterValidationError) Key added in v1.60.0

Key function returns key value.

func (TimeRangeFilterValidationError) Reason added in v1.60.0

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL