Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
NewCacheFromFile returns a new mesh cache, based on watching a file.
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 (*InMemoryCache) Get ¶
func (c *InMemoryCache) Get() v1alpha1.MeshConfig
Get the value of mesh config.
func (*InMemoryCache) Set ¶
func (c *InMemoryCache) Set(cfg v1alpha1.MeshConfig)
Set the value of mesh config.
Click to show internal directories.
Click to hide internal directories.