import "istio.io/istio/galley/pkg/config/collection"
type Instance struct {
// contains filtered or unexported fields
}
Instance is collection of resources, indexed by name.
func New(collection collection.Schema) *Instance
New returns a new collection.Instance
Clear the contents of this instance.
Clone the instance
ForEach executes the given function for each entry
Generation of the current state of the collection.Instance
Get the instance with the given name
func (c *Instance) Name() collection.Name
Name of the collection
Remove an entry from the collection.
func (c *Instance) Schema() collection.Schema
Schema for the collection.
Set an entry in the collection
Size returns the number of items in the set
type Set struct {
// contains filtered or unexported fields
}
Set of collections
func NewSet(schemas collection.Schemas) *Set
NewSet returns a new set of collections for the given schemas.
NewSetFromCollections creates a new set based on the given collections
Clone the set.
func (s *Set) Collection(n collection.Name) *Instance
Collection returns the named collection
func (s *Set) Names() collection.Names
Names of the collections in the set.
Package collection imports 5 packages (graph) and is imported by 1 packages. Updated 2020-08-05. Refresh now. Tools for package owners.