istio: istio.io/istio/galley/pkg/config/collection Index | Files

package collection

import "istio.io/istio/galley/pkg/config/collection"

Index

Package Files

instance.go set.go

type ChangeNotifierFn Uses

type ChangeNotifierFn func()

ChangeNotifierFn is called when a collection instance changes.

type Instance Uses

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

Instance is collection of resources, indexed by name.

func New Uses

func New(collection collection.Name) *Instance

New returns a new collection.Instance

func (*Instance) Clear Uses

func (c *Instance) Clear()

Clear the contents of this instance.

func (*Instance) Clone Uses

func (c *Instance) Clone() *Instance

Clone the instance

func (*Instance) ForEach Uses

func (c *Instance) ForEach(fn func(e *resource.Entry) bool)

ForEach executes the given function for each entry

func (*Instance) Generation Uses

func (c *Instance) Generation() int64

Generation of the current state of the collection.Instance

func (*Instance) Get Uses

func (c *Instance) Get(name resource.Name) *resource.Entry

Get the instance with the given name

func (*Instance) Name Uses

func (c *Instance) Name() collection.Name

Name of the collection

func (*Instance) Remove Uses

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

Remove an entry from the collection.

func (*Instance) Set Uses

func (c *Instance) Set(r *resource.Entry)

Set an entry in the collection

func (*Instance) Size Uses

func (c *Instance) Size() int

Size returns the number of items in the set

type Set Uses

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

Set of collections

func NewSet Uses

func NewSet(names []collection.Name) *Set

NewSet returns a new set of collections

func NewSetFromCollections Uses

func NewSetFromCollections(collections []*Instance) *Set

NewSetFromCollections creates a new set based on the given collections

func (*Set) Clone Uses

func (s *Set) Clone() *Set

Clone the set.

func (*Set) Collection Uses

func (s *Set) Collection(n collection.Name) *Instance

Collection returns the named collection

func (*Set) Names Uses

func (s *Set) Names() collection.Names

Names of the collections in the set.

Package collection imports 5 packages (graph) and is imported by 8 packages. Updated 2019-10-15. Refresh now. Tools for package owners.