import "istio.io/istio/cni/pkg/install-cni/pkg/util"
func CreateFileWatcher(dir string) (watcher *fsnotify.Watcher, fileModified chan bool, errChan chan error, err error)
Creates a file watcher that watches for any changes to the directory
Given the raw plugin interface, return the plugin asserted as a map[string]interface{}
Given an unmarshalled CNI config JSON map, return the plugin list asserted as a []interface{}
Marshal the CNI config map and append a new line
Read CNI config from file and return the unmarshalled JSON as a map
Waits until a file is modified (returns nil), the context is cancelled (returns context error), or returns error
Package util imports 5 packages (graph) and is imported by 2 packages. Updated 2020-10-30. Refresh now. Tools for package owners.