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

package inmemory

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

Index

Package Files

kubesource.go

type KubeSource Uses

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

KubeSource is an in-memory source implementation that can handle K8s style resources.

func NewKubeSource Uses

func NewKubeSource(resources schema.KubeResources) *KubeSource

NewKubeSource returns a new in-memory Source that works with Kubernetes resources.

func (*KubeSource) ApplyContent Uses

func (s *KubeSource) ApplyContent(name, yamlText string) error

ApplyContent applies the given yamltext to this source. The content is tracked with the given name. If ApplyContent gets called multiple times with the same name, the contents applied by the previous incarnation will be overwritten or removed, depending on the new content.

func (*KubeSource) Clear Uses

func (s *KubeSource) Clear()

Clear the contents of this source

func (*KubeSource) ContentNames Uses

func (s *KubeSource) ContentNames() map[string]struct{}

ContentNames returns the names known to this source.

func (*KubeSource) Dispatch Uses

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

Dispatch implements processor.Source

func (*KubeSource) Get Uses

func (s *KubeSource) Get(collection collection.Name) *inmemory.Collection

Get returns the named collection.

func (*KubeSource) RemoveContent Uses

func (s *KubeSource) RemoveContent(name string)

RemoveContent removes the content for the given name

func (*KubeSource) SetDefaultNamespace Uses

func (s *KubeSource) SetDefaultNamespace(defaultNs string)

SetDefaultNamespace enables injecting a default namespace for resources where none is already specified

func (*KubeSource) Start Uses

func (s *KubeSource) Start()

Start implements processor.Source

func (*KubeSource) Stop Uses

func (s *KubeSource) Stop()

Stop implements processor.Source

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