filtersv1alpha1

package
v1.59.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimeComparison_name = map[int32]string{
		0: "TIME_COMPARISON_UNSPECIFIED",
		1: "TIME_COMPARISON_BEFORE",
		2: "TIME_COMPARISON_AFTER",
	}
	TimeComparison_value = map[string]int32{
		"TIME_COMPARISON_UNSPECIFIED": 0,
		"TIME_COMPARISON_BEFORE":      1,
		"TIME_COMPARISON_AFTER":       2,
	}
)

Enum value maps for TimeComparison.

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 File_commonfate_control_filters_v1alpha1_filters_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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 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 events 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   `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Filters events 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 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Filters events 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 OccurredAtFilter

type OccurredAtFilter struct {
	Time       *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Comparison TimeComparison         `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Filters events based on when they occurred.

func (*OccurredAtFilter) Descriptor deprecated

func (*OccurredAtFilter) Descriptor() ([]byte, []int)

Deprecated: Use OccurredAtFilter.ProtoReflect.Descriptor instead.

func (*OccurredAtFilter) GetComparison

func (x *OccurredAtFilter) GetComparison() TimeComparison

func (*OccurredAtFilter) GetTime

func (x *OccurredAtFilter) GetTime() *timestamppb.Timestamp

func (*OccurredAtFilter) ProtoMessage

func (*OccurredAtFilter) ProtoMessage()

func (*OccurredAtFilter) ProtoReflect

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

func (*OccurredAtFilter) Reset

func (x *OccurredAtFilter) Reset()

func (*OccurredAtFilter) String

func (x *OccurredAtFilter) String() string

func (*OccurredAtFilter) Validate

func (m *OccurredAtFilter) Validate() error

Validate checks the field values on OccurredAtFilter 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 (*OccurredAtFilter) ValidateAll

func (m *OccurredAtFilter) ValidateAll() error

ValidateAll checks the field values on OccurredAtFilter 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 OccurredAtFilterMultiError, or nil if none found.

type OccurredAtFilterMultiError

type OccurredAtFilterMultiError []error

OccurredAtFilterMultiError is an error wrapping multiple validation errors returned by OccurredAtFilter.ValidateAll() if the designated constraints aren't met.

func (OccurredAtFilterMultiError) AllErrors

func (m OccurredAtFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OccurredAtFilterMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type OccurredAtFilterValidationError

type OccurredAtFilterValidationError struct {
	// contains filtered or unexported fields
}

OccurredAtFilterValidationError is the validation error returned by OccurredAtFilter.Validate if the designated constraints aren't met.

func (OccurredAtFilterValidationError) Cause

Cause function returns cause value.

func (OccurredAtFilterValidationError) Error

Error satisfies the builtin error interface

func (OccurredAtFilterValidationError) ErrorName

ErrorName returns error name.

func (OccurredAtFilterValidationError) Field

Field function returns field value.

func (OccurredAtFilterValidationError) Key

Key function returns key value.

func (OccurredAtFilterValidationError) Reason

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 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Filters event by a particular key/value tag associated when them. Will filter for either events 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 TimeComparison

type TimeComparison int32
const (
	TimeComparison_TIME_COMPARISON_UNSPECIFIED TimeComparison = 0
	// Events which occurred before the specified time.
	TimeComparison_TIME_COMPARISON_BEFORE TimeComparison = 1
	// Events which occurred after the specified time.
	TimeComparison_TIME_COMPARISON_AFTER TimeComparison = 2
)

func (TimeComparison) Descriptor

func (TimeComparison) Enum

func (x TimeComparison) Enum() *TimeComparison

func (TimeComparison) EnumDescriptor deprecated

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

Deprecated: Use TimeComparison.Descriptor instead.

func (TimeComparison) Number

func (TimeComparison) String

func (x TimeComparison) String() string

func (TimeComparison) Type

Jump to

Keyboard shortcuts

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