Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for file_watcher (0.41 sec)

  1. pkg/filewatcher/fakefilewatcher.go

    // limitations under the License.
    
    package filewatcher
    
    import (
    	"errors"
    	"fmt"
    	"sync"
    
    	"github.com/fsnotify/fsnotify"
    )
    
    // NewFileWatcherFunc returns a function which creates a new file
    // watcher. This may be used to provide test hooks for using the
    // FakeWatcher implementation below.
    type NewFileWatcherFunc func() FileWatcher
    
    // FakeWatcher provides a fake file watcher implementation for unit
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. pkg/kube/inject/watcher.go

    	Run(<-chan struct{})
    
    	// Get returns the sidecar and values configuration.
    	Get() (*Config, string, error)
    }
    
    var _ Watcher = &fileWatcher{}
    
    var _ Watcher = &configMapWatcher{}
    
    type fileWatcher struct {
    	watcher    *fsnotify.Watcher
    	configFile string
    	valuesFile string
    	handler    func(*Config, string) error
    }
    
    type configMapWatcher struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/NonHierarchicalFileWatcherUpdater.java

        private final FileWatcher fileWatcher;
        private final Multiset<String> watchedDirectories = HashMultiset.create();
        private final Map<String, String> watchedDirectoryForSnapshot = new HashMap<>();
        private final Set<String> watchedWatchableHierarchies = new HashSet<>();
    
        public NonHierarchicalFileWatcherUpdater(
            FileWatcher fileWatcher,
            FileWatcherProbeRegistry probeRegistry,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 04:59:05 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  4. pilot/pkg/config/monitor/file_snapshot_test.go

    	g := NewWithT(t)
    
    	ts := &testState{
    		ConfigFiles: map[string][]byte{"gateway.yml": []byte(gatewayYAML)},
    	}
    
    	ts.testSetup(t)
    
    	fileWatcher := NewFileSnapshot(ts.rootPath, collection.SchemasFor(), "foo")
    	configs, err := fileWatcher.ReadConfigFiles()
    	g.Expect(err).NotTo(HaveOccurred())
    	g.Expect(configs).To(HaveLen(1))
    	g.Expect(configs[0].Domain).To(Equal("foo"))
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. pkg/config/mesh/networks_watcher_test.go

    	"time"
    
    	. "github.com/onsi/gomega"
    
    	meshconfig "istio.io/api/mesh/v1alpha1"
    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/filewatcher"
    )
    
    func TestNewNetworksWatcherWithBadInputShouldFail(t *testing.T) {
    	g := NewWithT(t)
    	_, err := mesh.NewNetworksWatcher(filewatcher.NewWatcher(), "")
    	g.Expect(err).ToNot(BeNil())
    }
    
    func TestNetworksWatcherShouldNotifyHandlers(t *testing.T) {
    	g := NewWithT(t)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. pkg/config/mesh/networks_watcher.go

    	return &internalNetworkWatcher{
    		networks: networks,
    	}
    }
    
    // NewNetworksWatcher creates a new watcher for changes to the given networks config file.
    func NewNetworksWatcher(fileWatcher filewatcher.FileWatcher, filename string) (NetworksWatcher, error) {
    	meshNetworks, err := ReadMeshNetworks(filename)
    	if err != nil {
    		return nil, fmt.Errorf("failed to read mesh networks configuration from %q: %v", filename, err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 18:33:38 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/NonHierarchicalFileWatcherUpdaterTest.groovy

     */
    
    package org.gradle.internal.watch.registry.impl
    
    import net.rubygrapefruit.platform.file.FileWatcher
    import org.gradle.internal.watch.registry.FileWatcherUpdater
    
    class NonHierarchicalFileWatcherUpdaterTest extends AbstractFileWatcherUpdaterTest {
    
        @Override
        FileWatcherUpdater createUpdater(FileWatcher watcher, WatchableHierarchies watchableHierarchies) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. pkg/config/mesh/watcher_test.go

    	meshconfig "istio.io/api/mesh/v1alpha1"
    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/filewatcher"
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    func TestNewWatcherWithBadInputShouldFail(t *testing.T) {
    	g := NewWithT(t)
    	_, err := mesh.NewFileWatcher(filewatcher.NewWatcher(), "", false)
    	g.Expect(err).ToNot(BeNil())
    }
    
    func TestWatcherShouldNotifyHandlers(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/DefaultFileWatcherRegistry.java

     * limitations under the License.
     */
    
    package org.gradle.internal.watch.registry.impl;
    
    import net.rubygrapefruit.platform.file.FileWatchEvent;
    import net.rubygrapefruit.platform.file.FileWatcher;
    import net.rubygrapefruit.platform.internal.jni.AbstractNativeFileEventFunctions;
    import net.rubygrapefruit.platform.internal.jni.NativeLogger;
    import org.gradle.internal.snapshot.FileSystemLocationSnapshot;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/AbstractFileWatcherRegistryFactory.java

     * limitations under the License.
     */
    
    package org.gradle.internal.watch.registry.impl;
    
    import net.rubygrapefruit.platform.file.FileWatchEvent;
    import net.rubygrapefruit.platform.file.FileWatcher;
    import net.rubygrapefruit.platform.internal.jni.AbstractNativeFileEventFunctions;
    import org.gradle.internal.watch.registry.FileWatcherProbeRegistry;
    import org.gradle.internal.watch.registry.FileWatcherRegistry;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:33 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top