Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PoliciesRoot - path in config and status registry for policies results.
PoliciesRoot = "policies"
)
Variables ¶
View Source
var FxOptionsFuncTag = config.GroupTag("policy-fx-funcs")
FxOptionsFuncTag allows sub-modules to provide their options to per policy apps independently.
Functions ¶
func GetSelectorsShortDescription ¶
func GetSelectorsShortDescription(selectors []*policylangv1.Selector) string
GetSelectorsShortDescription returns a short description of the selectors.
Types ¶
type Policy ¶
type Policy interface { PolicyBase GetEvaluationInterval() time.Duration GetStatusRegistry() status.Registry TicksInDurationPb(*durationpb.Duration) int TicksInDuration(time.Duration) int }
Policy is for read only access to full policy state.
type PolicyBase ¶
PolicyBase is for read only access to base policy info.
Click to show internal directories.
Click to hide internal directories.