Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReadMeshConfigData (0.27 sec)

  1. pkg/config/mesh/watcher.go

    // if the given file does not exist or failed during parsing.
    func NewFileWatcher(fileWatcher filewatcher.FileWatcher, filename string, multiWatch bool) (Watcher, error) {
    	meshConfigYaml, err := ReadMeshConfigData(filename)
    	if err != nil {
    		return nil, err
    	}
    
    	meshConfig, err := ApplyMeshConfigDefaults(meshConfigYaml)
    	if err != nil {
    		return nil, err
    	}
    
    	w := &internalWatcher{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 18:33:38 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. pkg/config/mesh/mesh.go

    	if err != nil {
    		return nil, multierror.Prefix(err, "cannot read mesh config file")
    	}
    	return ApplyMeshConfigDefaults(string(yaml))
    }
    
    // ReadMeshConfigData gets mesh configuration yaml from a config file
    func ReadMeshConfigData(filename string) (string, error) {
    	yaml, err := os.ReadFile(filename)
    	if err != nil {
    		return "", multierror.Prefix(err, "cannot read mesh config file")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top