istio: Index | Files

package memory

import ""

Package memory provides an in-memory volatile config store implementation


Package Files

config.go controller.go monitor.go


const (
    // BufferSize specifies the buffer size of event channel
    BufferSize = 100

func Make Uses

func Make(schemas collection.Schemas) model.ConfigStore

Make creates an in-memory config store from a config schemas

func MakeWithLedger Uses

func MakeWithLedger(schemas collection.Schemas, configLedger ledger.Ledger) model.ConfigStore

func NewController Uses

func NewController(cs model.ConfigStore) model.ConfigStoreCache

NewController return an implementation of model.ConfigStoreCache This is a client-side monitor that dispatches events as the changes are being made on the client.

type ConfigEvent Uses

type ConfigEvent struct {
    // contains filtered or unexported fields

ConfigEvent defines the event to be processed

type Handler Uses

type Handler func(model.Config, model.Config, model.Event)

Handler specifies a function to apply on a Config for a given event type

type Monitor Uses

type Monitor interface {
    Run(<-chan struct{})
    AppendEventHandler(resource.GroupVersionKind, Handler)

Monitor provides methods of manipulating changes in the config store

func NewBufferedMonitor Uses

func NewBufferedMonitor(store model.ConfigStore, bufferSize int) Monitor

NewBufferedMonitor returns new Monitor implementation with the specified event buffer size

func NewMonitor Uses

func NewMonitor(store model.ConfigStore) Monitor

NewMonitor returns new Monitor implementation with a default event buffer size.

Package memory imports 8 packages (graph) and is imported by 5 packages. Updated 2020-03-17. Refresh now. Tools for package owners.