Documentation ¶
Index ¶
- Constants
- type Strategy
- func (d *Strategy) Enforce(_ *core.MetricEnforcer, _ 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.Reader) map[string]interface{}
Constants ¶
View Source
const (
StrategyType = "scheduleonmetric"
)
StrategyType is set to 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 checks if this strategy shares a policy name and all rules with another strategy. This (like the equal method under the other strategy, is a naive implementation which could be expanded.
func (*Strategy) GetPolicyName ¶
GetPolicyName returns the policy name associated with this strategy.
func (*Strategy) SetPolicyName ¶
SetPolicyName sets the policy name for this strategy.
func (*Strategy) StrategyType ¶
StrategyType returns the constant name of the strategy used to index it for other objects.
Click to show internal directories.
Click to hide internal directories.