Documentation
¶
Index ¶
- func ConfigReconcileLoop(backend TrafficWeightBackend, c cache.Cache, seconds time.Duration, ...)
- type DynamoNoResultsError
- type FakeBackend
- type Item
- type StoreConfig
- type TrafficWeightBackend
- func NewBackend(backendType, clusterName string, awsRegion string, tableName string, ...) (TrafficWeightBackend, error)
- func NewDynamodbBackend(logger logr.Logger, clusterName string, awsRegion string, tableName string) TrafficWeightBackend
- func NewFakeBackend(logger logr.Logger) TrafficWeightBackend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigReconcileLoop ¶
func ConfigReconcileLoop(backend TrafficWeightBackend, c cache.Cache, seconds time.Duration, log log.Logger, events chan event.GenericEvent)
Types ¶
type DynamoNoResultsError ¶
type DynamoNoResultsError struct {
// contains filtered or unexported fields
}
func (*DynamoNoResultsError) Error ¶
func (e *DynamoNoResultsError) Error() string
type FakeBackend ¶
func (*FakeBackend) OnWeightUpdate ¶
func (b *FakeBackend) OnWeightUpdate(config StoreConfig) error
func (*FakeBackend) ReadWeight ¶
func (b *FakeBackend) ReadWeight() (int, error)
type StoreConfig ¶
var Store StoreConfig
type TrafficWeightBackend ¶
type TrafficWeightBackend interface { ReadWeight() (int, error) OnWeightUpdate(StoreConfig) error }
func NewBackend ¶
func NewDynamodbBackend ¶
func NewFakeBackend ¶
func NewFakeBackend(logger logr.Logger) TrafficWeightBackend
Click to show internal directories.
Click to hide internal directories.