Versions in this module Expand all Collapse all v0 v0.1.4 Oct 29, 2024 Changes in this version + var AllSupportedSTSKeys = []KeyName type Function + func NewNumericGreaterThanIfExistsFunc(key Key, value int) (Function, error) type KeyName + const S3XAmzServerSideEncryptionAwsKmsKeyID + const STSDurationSeconds + const SVCDurationSeconds v0.1.3 Dec 27, 2023 Changes in this version + var AllSupportedAdminKeys = append([]KeyName{ ... }, JWTKeys) + var AllSupportedKeys = append([]KeyName{ ... }, JWTKeys) + var CommonKeys = append([]KeyName{ ... }, JWTKeys) + var JWTKeys = []KeyName + type Function interface + String func() string + func NewBinaryEqualsFunc(qualifier string, key Key, values ...string) (Function, error) + func NewBoolFunc(key Key, value bool) (Function, error) + func NewDateEqualsFunc(key Key, value time.Time) (Function, error) + func NewDateGreaterThanEqualsFunc(key Key, value time.Time) (Function, error) + func NewDateGreaterThanFunc(key Key, value time.Time) (Function, error) + func NewDateLessThanEqualsFunc(key Key, value time.Time) (Function, error) + func NewDateLessThanFunc(key Key, value time.Time) (Function, error) + func NewDateNotEqualsFunc(key Key, value time.Time) (Function, error) + func NewIPAddressFunc(key Key, IPNets ...*net.IPNet) (Function, error) + func NewNotIPAddressFunc(key Key, IPNets ...*net.IPNet) (Function, error) + func NewNullFunc(key Key, value bool) (Function, error) + func NewNumericEqualsFunc(key Key, value int) (Function, error) + func NewNumericGreaterThanEqualsFunc(key Key, value int) (Function, error) + func NewNumericGreaterThanFunc(key Key, value int) (Function, error) + func NewNumericLessThanEqualsFunc(key Key, value int) (Function, error) + func NewNumericLessThanFunc(key Key, value int) (Function, error) + func NewNumericNotEqualsFunc(key Key, value int) (Function, error) + func NewStringEqualsFunc(qualifier string, key Key, values ...string) (Function, error) + func NewStringEqualsIgnoreCaseFunc(qualifier string, key Key, values ...string) (Function, error) + func NewStringLikeFunc(qualifier string, key Key, values ...string) (Function, error) + func NewStringNotEqualsFunc(qualifier string, key Key, values ...string) (Function, error) + func NewStringNotEqualsIgnoreCaseFunc(qualifier string, key Key, values ...string) (Function, error) + func NewStringNotLikeFunc(qualifier string, key Key, values ...string) (Function, error) + type Functions []Function + func NewFunctions(functions ...Function) Functions + func (functions *Functions) GobDecode(data []byte) error + func (functions *Functions) UnmarshalJSON(data []byte) error + func (functions Functions) Clone() Functions + func (functions Functions) Equals(funcs Functions) bool + func (functions Functions) Evaluate(values map[string][]string) bool + func (functions Functions) GobEncode() ([]byte, error) + func (functions Functions) Keys() KeySet + func (functions Functions) MarshalJSON() ([]byte, error) + func (functions Functions) String() string + type Key struct + func NewKey(name KeyName, variable string) Key + func (key *Key) UnmarshalJSON(data []byte) error + func (key Key) Is(name KeyName) bool + func (key Key) IsValid() bool + func (key Key) MarshalJSON() ([]byte, error) + func (key Key) Name() string + func (key Key) String() string + func (key Key) VarName() string + type KeyName string + const AWSCurrentTime + const AWSEpochTime + const AWSGroups + const AWSPrincipalType + const AWSReferer + const AWSSecureTransport + const AWSSourceIP + const AWSUserAgent + const AWSUserID + const AWSUsername + const ExistingObjectTag + const JWTAddress + const JWTAud + const JWTBirthdate + const JWTClientID + const JWTEmail + const JWTFamilyName + const JWTGender + const JWTGivenName + const JWTGroups + const JWTIss + const JWTJti + const JWTMiddleName + const JWTName + const JWTNickName + const JWTPhoneNumber + const JWTPicture + const JWTPrefUsername + const JWTProfile + const JWTScope + const JWTSub + const JWTUpn + const JWTWebsite + const LDAPGroups + const LDAPUser + const LDAPUsername + const RequestObjectTag + const RequestObjectTagKeys + const S3AuthType + const S3Delimiter + const S3LocationConstraint + const S3MaxKeys + const S3ObjectLockLegalHold + const S3ObjectLockMode + const S3ObjectLockRemainingRetentionDays + const S3ObjectLockRetainUntilDate + const S3Prefix + const S3SignatureAge + const S3SignatureVersion + const S3VersionID + const S3XAmzContentSha256 + const S3XAmzCopySource + const S3XAmzMetadataDirective + const S3XAmzServerSideEncryption + const S3XAmzServerSideEncryptionCustomerAlgorithm + const S3XAmzStorageClass + func (key KeyName) Name() string + func (key KeyName) ToKey() Key + func (key KeyName) VarName() string + type KeySet map[Key]struct + func NewKeySet(keys ...Key) KeySet + func (set KeySet) Add(key Key) + func (set KeySet) Difference(sset KeySet) KeySet + func (set KeySet) IsEmpty() bool + func (set KeySet) Match(key Key) bool + func (set KeySet) Merge(mset KeySet) + func (set KeySet) String() string + func (set KeySet) ToSlice() []Key + type Value struct + func NewBoolValue(b bool) Value + func NewIntValue(i int) Value + func NewStringValue(s string) Value + func (v *Value) StoreBool(b bool) + func (v *Value) StoreInt(i int) + func (v *Value) StoreString(s string) + func (v *Value) UnmarshalJSON(data []byte) error + func (v Value) GetBool() (bool, error) + func (v Value) GetInt() (int, error) + func (v Value) GetString() (string, error) + func (v Value) GetType() reflect.Kind + func (v Value) MarshalJSON() ([]byte, error) + func (v Value) String() string + type ValueSet map[Value]struct + func NewValueSet(values ...Value) ValueSet + func (set *ValueSet) UnmarshalJSON(data []byte) error + func (set ValueSet) Add(value Value) + func (set ValueSet) Clone() ValueSet + func (set ValueSet) MarshalJSON() ([]byte, error) + func (set ValueSet) ToSlice() []Value