import "istio.io/istio/galley/pkg/config/source/inmemory"
type Collection struct {
// contains filtered or unexported fields
}
Collection is an in-memory collection that implements event.Source
func NewCollection(s collection.Schema) *Collection
NewCollection returns a new in-memory collection.
func (c *Collection) AllSorted() []*resource.Instance
AllSorted returns all entries in this collection, in sort order. Warning: This is not performant!
func (c *Collection) Clear()
Clear the contents of this collection.
func (c *Collection) Dispatch(handler event.Handler)
Dispatch an event handler to receive resource events.
func (c *Collection) Remove(n resource.FullName)
Remove the entry from the collection
func (c *Collection) Set(entry *resource.Instance)
Set the entry in the collection
func (c *Collection) Start()
Start dispatching events for the collection.
func (c *Collection) Stop()
Stop dispatching events and reset internal state.
type Source struct {
// contains filtered or unexported fields
}
Source is an in-memory processor.Source implementation.
func New(collections collection.Schemas) *Source
New returns a new in-memory source, based on given collections.
Clear contents of this source
Dispatch implements event.Source
func (s *Source) Get(collection collection.Name) *Collection
Get returns the named collection.
Start implements processor.Source
Stop implements processor.Source
Package inmemory imports 8 packages (graph) and is imported by 2 packages. Updated 2020-11-14. Refresh now. Tools for package owners.