summaryrefslogtreecommitdiff
path: root/vendor/gopkg.in/fsnotify.v1/fsnotify.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-02-28 17:08:52 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-01 13:20:16 +0000
commit2537d0dd0010d8ba75baec21050917e11ade0ff4 (patch)
tree4b4020b2f8b5cff69ce9b305670011bdf63d9cec /vendor/gopkg.in/fsnotify.v1/fsnotify.go
parentb2a5d5aa5ad185afa15b4f2fbb144093fe88fd64 (diff)
downloadpodman-2537d0dd0010d8ba75baec21050917e11ade0ff4.tar.gz
podman-2537d0dd0010d8ba75baec21050917e11ade0ff4.tar.bz2
podman-2537d0dd0010d8ba75baec21050917e11ade0ff4.zip
Remove unused vendor gopkg.in/fsnotify.v1
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #425 Approved by: rhatdan
Diffstat (limited to 'vendor/gopkg.in/fsnotify.v1/fsnotify.go')
-rw-r--r--vendor/gopkg.in/fsnotify.v1/fsnotify.go62
1 files changed, 0 insertions, 62 deletions
diff --git a/vendor/gopkg.in/fsnotify.v1/fsnotify.go b/vendor/gopkg.in/fsnotify.v1/fsnotify.go
deleted file mode 100644
index e7f55fee7..000000000
--- a/vendor/gopkg.in/fsnotify.v1/fsnotify.go
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2012 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// +build !plan9
-
-// Package fsnotify provides a platform-independent interface for file system notifications.
-package fsnotify
-
-import (
- "bytes"
- "fmt"
-)
-
-// Event represents a single file system notification.
-type Event struct {
- Name string // Relative path to the file or directory.
- Op Op // File operation that triggered the event.
-}
-
-// Op describes a set of file operations.
-type Op uint32
-
-// These are the generalized file operations that can trigger a notification.
-const (
- Create Op = 1 << iota
- Write
- Remove
- Rename
- Chmod
-)
-
-func (op Op) String() string {
- // Use a buffer for efficient string concatenation
- var buffer bytes.Buffer
-
- if op&Create == Create {
- buffer.WriteString("|CREATE")
- }
- if op&Remove == Remove {
- buffer.WriteString("|REMOVE")
- }
- if op&Write == Write {
- buffer.WriteString("|WRITE")
- }
- if op&Rename == Rename {
- buffer.WriteString("|RENAME")
- }
- if op&Chmod == Chmod {
- buffer.WriteString("|CHMOD")
- }
- if buffer.Len() == 0 {
- return ""
- }
- return buffer.String()[1:] // Strip leading pipe
-}
-
-// String returns a string representation of the event in the form
-// "file: REMOVE|WRITE|..."
-func (e Event) String() string {
- return fmt.Sprintf("%q: %s", e.Name, e.Op.String())
-}