scheduleonmetric

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StrategyType = "scheduleonmetric"
)

StrategyType is set to schedule.

Variables

This section is empty.

Functions

This section is empty.

Types

type Strategy

Strategy represents the TAS policy strategies.

func (*Strategy) Enforce

func (d *Strategy) Enforce(enforcer *core.MetricEnforcer, cache cache.Reader) (int, error)

Enforce is unimplemented.

func (*Strategy) Equals

func (d *Strategy) Equals(other core.Interface) bool

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

func (d *Strategy) GetPolicyName() string

GetPolicyName returns the policy name associated with this strategy.

func (*Strategy) SetPolicyName

func (d *Strategy) SetPolicyName(policyName string)

SetPolicyName sets the policy name for this strategy.

func (*Strategy) StrategyType

func (d *Strategy) StrategyType() string

StrategyType returns the constant name of the strategy used to index it for other objects.

func (*Strategy) Violated

func (d *Strategy) Violated(cache cache.Reader) map[string]interface{}

Violated is unimplemented for this strategy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL