meshconfig

package
v0.0.0-...-48a44ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() v1alpha1.MeshConfig

Default mesh configuration

Types

type Cache

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

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

FsCache is a Cache implementation that reads mesh from file.

func NewCacheFromFile

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

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

func (*FsCache) Close

func (c *FsCache) Close() error

Close closes this cache.

func (*FsCache) Get

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

Get returns the cached copy of mesh config.

type InMemoryCache

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

InMemoryCache is an in-memory only mesh cache

func NewInMemory

func NewInMemory() *InMemoryCache

NewInMemory returns a new InMemoryCache

func (*InMemoryCache) Get

Get the value of mesh config.

func (*InMemoryCache) Set

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

Set the value of mesh config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL