istio: istio.io/istio/galley/pkg/config/source/inmemory Index | Files

package inmemory

import "istio.io/istio/galley/pkg/config/source/inmemory"

Index

Package Files

collection.go source.go

type Collection Uses

type Collection struct {
    // contains filtered or unexported fields
}

Collection is an in-memory collection that implements event.Source

func NewCollection Uses

func NewCollection(c collection.Name) *Collection

NewCollection returns a new in-memory collection.

func (*Collection) AllSorted Uses

func (c *Collection) AllSorted() []*resource.Entry

AllSorted returns all entries in this collection, in sort order. Warning: This is not performant!

func (*Collection) Clear Uses

func (c *Collection) Clear()

Clear the contents of this collection.

func (*Collection) Dispatch Uses

func (c *Collection) Dispatch(handler event.Handler)

Dispatch an event handler to receive resource events.

func (*Collection) Remove Uses

func (c *Collection) Remove(n resource.Name)

Remove the entry from the collection

func (*Collection) Set Uses

func (c *Collection) Set(entry *resource.Entry)

Set the entry in the collection

func (*Collection) Start Uses

func (c *Collection) Start()

Start dispatching events for the collection.

func (*Collection) Stop Uses

func (c *Collection) Stop()

Stop dispatching events and reset internal state.

type Source Uses

type Source struct {
    // contains filtered or unexported fields
}

Source is an in-memory processor.Source implementation.

func New Uses

func New(collections collection.Names) *Source

New returns a new in-memory source, based on given collections.

func (*Source) Clear Uses

func (s *Source) Clear()

Clear contents of this source

func (*Source) Dispatch Uses

func (s *Source) Dispatch(h event.Handler)

Dispatch implements event.Source

func (*Source) Get Uses

func (s *Source) Get(collection collection.Name) *Collection

Get returns the named collection.

func (*Source) Start Uses

func (s *Source) Start()

Start implements processor.Source

func (*Source) Stop Uses

func (s *Source) Stop()

Stop implements processor.Source

Package inmemory imports 8 packages (graph) and is imported by 1 packages. Updated 2019-10-19. Refresh now. Tools for package owners.