class

CRE::Policy::Policy

Inherits Reference < Object

Constructors

new(name : String, description : String | Nil, matcher : Matcher, max_age : Time::Span, warn_at : Time::Span | Nil, enforce_action : Action, notify_channels : Array(Channel), triggers : Hash(Trigger, Action))
Source

Instance methods

description
Source
enforce_action
Source
in_warning_window?(c : Domain::Credential, now : Time = Time.utc) : Bool
Source
matcher
Source
matches?(c : Domain::Credential) : Bool
Source
max_age
Source
name
Source
notify_channels
Source
overdue?(c : Domain::Credential, now : Time = Time.utc) : Bool
Source
trigger_action_for(trigger : Trigger) : Action | Nil
Source
triggers
Source
warn_at
Source