Documentation ¶
Index ¶
- Constants
- type Strategy
- func (d *Strategy) Enforce(enforcer *core.MetricEnforcer, cache cache.Reader) (int, error)
- func (d *Strategy) Equals(other core.Interface) bool
- func (d *Strategy) GetPolicyName() string
- func (d *Strategy) SetPolicyName(policyName string)
- func (d *Strategy) StrategyType() string
- func (d *Strategy) Violated(cache cache.Reader) map[string]interface{}
Constants ¶
View Source
const (
StrategyType = "dontschedule"
)
StrategyType is set to not schedule.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy telemetryPolicyV1.TASPolicyStrategy
Strategy represents the TAS policy strategies.
func (*Strategy) Equals ¶
Equals implementation which checks to see if all rules and the policy name are equal for this strategy and another. Used to avoid duplications and to find the correct strategy for deletions in the index.
func (*Strategy) GetPolicyName ¶
GetPolicyName returns the set policy name for this strategy.
func (*Strategy) SetPolicyName ¶
SetPolicyName sets a connected policy name for this strategy.
func (*Strategy) StrategyType ¶
StrategyType returns the strategy type constant.
Click to show internal directories.
Click to hide internal directories.