Documentation
¶
Index ¶
- func NewPolicyBackend() state.PolicyBackend
- type PolicyBackend
- func (p *PolicyBackend) DeletePolicy(class string) error
- func (p *PolicyBackend) GetPolicies() (map[string]*state.ClientScalingPolicy, error)
- func (p *PolicyBackend) GetPolicy(class string) (*state.ClientScalingPolicy, error)
- func (p *PolicyBackend) PutPolicy(policy *state.ClientScalingPolicy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPolicyBackend ¶
func NewPolicyBackend() state.PolicyBackend
Types ¶
type PolicyBackend ¶
func (*PolicyBackend) DeletePolicy ¶
func (p *PolicyBackend) DeletePolicy(class string) error
DeletePolicy satisfies the DeletePolicy function on the state.PolicyBackend interface.
func (*PolicyBackend) GetPolicies ¶
func (p *PolicyBackend) GetPolicies() (map[string]*state.ClientScalingPolicy, error)
GetPolicies satisfies the GetPolicies function on the state.PolicyBackend interface.
func (*PolicyBackend) GetPolicy ¶
func (p *PolicyBackend) GetPolicy(class string) (*state.ClientScalingPolicy, error)
GetPolicy satisfies the GetPolicy function on the state.PolicyBackend interface.
func (*PolicyBackend) PutPolicy ¶
func (p *PolicyBackend) PutPolicy(policy *state.ClientScalingPolicy) error
PutPolicy satisfies the PutPolicy function on the state.PolicyBackend interface.
Click to show internal directories.
Click to hide internal directories.