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

package mesh

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

Index

Package Files

const.go defaults.go fs.go inmemory.go

Variables

var MeshConfigResourceName = resource.NewFullName("istio-system", "meshconfig")

MeshConfigResourceName is the resource name for the Istio MeshConfig resource.

var MeshNetworksResourceName = resource.NewFullName("istio-system", "meshnetworks")

MeshNetworksResourceName is the resource name for the Istio MeshNetworks resource.

func DefaultMeshConfig Uses

func DefaultMeshConfig() *v1alpha1.MeshConfig

DefaultMeshConfig returns a default meshconfig.

func DefaultMeshNetworks Uses

func DefaultMeshNetworks() *v1alpha1.MeshNetworks

DefaultMeshNetworks returns a default meshnetworks configuration. By default, it is empty.

type FsSource Uses

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

FsSource is a event.InMemorySource implementation that reads mesh from file.

func NewMeshConfigFS Uses

func NewMeshConfigFS(path string) (*FsSource, error)

NewMeshConfigFS returns a new meshconfig cache, based on watching a file.

func (*FsSource) Close Uses

func (c *FsSource) Close() error

Close closes this cache.

func (*FsSource) Dispatch Uses

func (c *FsSource) Dispatch(h event.Handler)

Dispatch implements event.Source

func (*FsSource) Start Uses

func (c *FsSource) Start()

Start implements event.Source

func (*FsSource) Stop Uses

func (c *FsSource) Stop()

Stop implements event.Source

type InMemorySource Uses

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

InMemorySource is an event.InMemorySource implementation for meshconfig. When the mesh config is first set, add & fullsync events will be published. Otherwise a reset event will be sent.

func NewInmemoryMeshCfg Uses

func NewInmemoryMeshCfg() *InMemorySource

NewInmemoryMeshCfg returns a new in-memory source of MeshConfig.

func NewInmemoryMeshNetworks Uses

func NewInmemoryMeshNetworks() *InMemorySource

NewInmemoryMeshNetworks returns a new-inmemory source of MeshNetworks.

func (*InMemorySource) Dispatch Uses

func (s *InMemorySource) Dispatch(handler event.Handler)

Dispatch implements event.Dispatcher

func (*InMemorySource) IsSynced Uses

func (s *InMemorySource) IsSynced() bool

IsSynced indicates that the InMemorySource has been given a Mesh config at least once.

func (*InMemorySource) Set Uses

func (s *InMemorySource) Set(cfg proto.Message)

Set new meshconfig

func (*InMemorySource) Start Uses

func (s *InMemorySource) Start()

Start implements event.InMemorySource

func (*InMemorySource) Stop Uses

func (s *InMemorySource) Stop()

Stop implements event.InMemorySource

Package mesh imports 14 packages (graph) and is imported by 4 packages. Updated 2020-10-08. Refresh now. Tools for package owners.