Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPolicyBackend ¶
func NewPolicyBackend(path string, client *api.Client) state.PolicyBackend
NewPolicyBackend returns the Consul implementation of the state.PolicyBackend interface.
Types ¶
type PolicyBackend ¶
type PolicyBackend struct {
// contains filtered or unexported fields
}
PolicyBackend is the Consul implementation of the state.PolicyBackend interface.
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.