memory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPolicyBackend

func NewPolicyBackend() state.PolicyBackend

Types

type PolicyBackend

type PolicyBackend struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

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