Back to godoc.org
istio.io/istio / galley / pkg / config / collection

Package collection

v0.0.0-...-d503ee9
Latest Go to latest

The latest major version is .

Published: 1 day ago | License: Apache-2.0 | Module: istio.io/istio

Index

type Instance

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

Instance is collection of resources, indexed by name.

func New

func New(collection collection.Schema) *Instance

New returns a new collection.Instance

func (*Instance) Clear

func (c *Instance) Clear()

Clear the contents of this instance.

func (*Instance) Clone

func (c *Instance) Clone() *Instance

Clone the instance

func (*Instance) ForEach

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

ForEach executes the given function for each entry

func (*Instance) Generation

func (c *Instance) Generation() int64

Generation of the current state of the collection.Instance

func (*Instance) Get

func (c *Instance) Get(name resource.FullName) *resource.Instance

Get the instance with the given name

func (*Instance) Name

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

Name of the collection

func (*Instance) Remove

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

Remove an entry from the collection.

func (*Instance) Schema

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

Schema for the collection.

func (*Instance) Set

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

Set an entry in the collection

func (*Instance) Size

func (c *Instance) Size() int

Size returns the number of items in the set

type Set

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

Set of collections

func NewSet

func NewSet(schemas collection.Schemas) *Set

NewSet returns a new set of collections for the given schemas.

func NewSetFromCollections

func NewSetFromCollections(collections []*Instance) *Set

NewSetFromCollections creates a new set based on the given collections

func (*Set) Clone

func (s *Set) Clone() *Set

Clone the set.

func (*Set) Collection

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

Collection returns the named collection

func (*Set) Names

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

Names of the collections in the set.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier