istio: istio.io/istio/galley/pkg/meshconfig Index | Files

package meshconfig

import "istio.io/istio/galley/pkg/meshconfig"

Index

Package Files

cache.go inmemory.go

Variables

var DefaultMeshConfig = func() v1alpha1.MeshConfig {
    meshconfig := mesh.DefaultMeshConfig()
    meshconfig.IngressClass = "istio"
    meshconfig.IngressControllerMode = v1alpha1.MeshConfig_STRICT
    return meshconfig
}()

type Cache Uses

type Cache interface {
    // Get returns the cached copy of mesh config.
    Get() v1alpha1.MeshConfig
}

Cache is an interface for getting a cached copy of mesh.

type FsCache Uses

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

FsCache is a Cache implementation that reads mesh from file.

func NewCacheFromFile Uses

func NewCacheFromFile(path string) (*FsCache, error)

NewCacheFromFile returns a new mesh cache, based on watching a file.

func (*FsCache) Close Uses

func (c *FsCache) Close() error

Close closes this cache.

func (*FsCache) Get Uses

func (c *FsCache) Get() v1alpha1.MeshConfig

Get returns the cached copy of mesh config.

type InMemoryCache Uses

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

InMemoryCache is an in-memory only mesh cache

func NewInMemory Uses

func NewInMemory() *InMemoryCache

NewInMemory returns a new InMemoryCache

func (*InMemoryCache) Get Uses

func (c *InMemoryCache) Get() v1alpha1.MeshConfig

Get the value of mesh config.

func (*InMemoryCache) Set Uses

func (c *InMemoryCache) Set(cfg v1alpha1.MeshConfig)

Set the value of mesh config.

Package meshconfig imports 7 packages (graph) and is imported by 5 packages. Updated 2019-09-24. Refresh now. Tools for package owners.