file

package
v0.0.0-...-a1f2fe4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseYaml

func ParseYaml(data []byte) ([]*model.Config, error)

ParseYaml is a utility method used for testing purposes. It parses the given yaml file into an array of config objects sorted them according to their keys.

Types

type Monitor

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

Monitor will monitor a directory containing yaml files for changes, updating a ConfigStore as changes are detected.

func NewMonitor

func NewMonitor(delegateStore model.ConfigStore, rootDirectory string, types []string) *Monitor

NewMonitor creates a new config store that monitors files under the given root directory for changes to config. If no types are provided (nil or empty), all IstioConfigTypes will be allowed.

func (*Monitor) Start

func (m *Monitor) Start(ctx context.Context)

Start launches a thread that monitors files under the root directory, updating the underlying config store when changes are detected.

Jump to

Keyboard shortcuts

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