istio: istio.io/istio/pilot/pkg/config/memory Index | Files

package memory

import "istio.io/istio/pilot/pkg/config/memory"

Package memory provides an in-memory volatile config store implementation

Index

Package Files

config.go controller.go monitor.go

Constants

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

func Make Uses

func Make(descriptor schema.Set) model.ConfigStore

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

func MakeWithLedger Uses

func MakeWithLedger(descriptor schema.Set, 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.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(string, Handler)
    ScheduleProcessEvent(ConfigEvent)
}

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 7 packages (graph) and is imported by 4 packages. Updated 2019-10-22. Refresh now. Tools for package owners.