vendor: containerd/fifo f15a3290365b9d2627d189e619ab4008e0069caf
full diff: bda0ff6ed7...f15a329036
- add go.mod
- replace "golang.org/x/net/context"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
			
			
This commit is contained in:
		| @@ -5,7 +5,7 @@ github.com/containerd/btrfs                         153935315f4ab9be5bf03650a134 | ||||
| github.com/containerd/cgroups                       b4448137398923af7f4918b8b2ad8249172ca7a6 | ||||
| github.com/containerd/console                       v1.0.0 | ||||
| github.com/containerd/continuity                    d3ef23f19fbb106bb73ffde425d07a9187e30745 | ||||
| github.com/containerd/fifo                          bda0ff6ed73c67bfb5e62bc9c697f146b7fd7f13 | ||||
| github.com/containerd/fifo                          f15a3290365b9d2627d189e619ab4008e0069caf | ||||
| github.com/containerd/go-runc                       a5c2862aed5e6358b305b0e16bfce58e0549b1cd | ||||
| github.com/containerd/ttrpc                         v1.0.1 | ||||
| github.com/containerd/typeurl                       v1.0.1 | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/github.com/containerd/fifo/fifo.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/containerd/fifo/fifo.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -17,6 +17,7 @@ | ||||
| package fifo | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| 	"io" | ||||
| 	"os" | ||||
| 	"runtime" | ||||
| @@ -24,7 +25,6 @@ import ( | ||||
| 	"syscall" | ||||
|  | ||||
| 	"github.com/pkg/errors" | ||||
| 	"golang.org/x/net/context" | ||||
| ) | ||||
|  | ||||
| type fifo struct { | ||||
|   | ||||
							
								
								
									
										9
									
								
								vendor/github.com/containerd/fifo/go.mod
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								vendor/github.com/containerd/fifo/go.mod
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| module github.com/containerd/fifo | ||||
|  | ||||
| go 1.13 | ||||
|  | ||||
| require ( | ||||
| 	github.com/pkg/errors v0.8.1 | ||||
| 	github.com/stretchr/testify v1.4.0 | ||||
| 	golang.org/x/sys v0.0.0-20191210023423-ac6580df4449 | ||||
| ) | ||||
							
								
								
									
										3
									
								
								vendor/github.com/containerd/fifo/handle_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/containerd/fifo/handle_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -27,6 +27,7 @@ import ( | ||||
| 	"github.com/pkg/errors" | ||||
| ) | ||||
|  | ||||
| //nolint:golint | ||||
| const O_PATH = 010000000 | ||||
|  | ||||
| type handle struct { | ||||
| @@ -56,6 +57,7 @@ func getHandle(fn string) (*handle, error) { | ||||
| 	h := &handle{ | ||||
| 		f:    f, | ||||
| 		name: fn, | ||||
| 		//nolint:unconvert | ||||
| 		dev: uint64(stat.Dev), | ||||
| 		ino: stat.Ino, | ||||
| 		fd:  fd, | ||||
| @@ -83,6 +85,7 @@ func (h *handle) Path() (string, error) { | ||||
| 	if err := syscall.Stat(h.procPath(), &stat); err != nil { | ||||
| 		return "", errors.Wrapf(err, "path %v could not be statted", h.procPath()) | ||||
| 	} | ||||
| 	//nolint:unconvert | ||||
| 	if uint64(stat.Dev) != h.dev || stat.Ino != h.ino { | ||||
| 		return "", errors.Errorf("failed to verify handle %v/%v %v/%v", stat.Dev, h.dev, stat.Ino, h.ino) | ||||
| 	} | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/github.com/containerd/fifo/raw.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/containerd/fifo/raw.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -23,7 +23,7 @@ import ( | ||||
| ) | ||||
|  | ||||
| // SyscallConn provides raw access to the fifo's underlying filedescrptor. | ||||
| // See syscall.Conn for guarentees provided by this interface. | ||||
| // See syscall.Conn for guarantees provided by this interface. | ||||
| func (f *fifo) SyscallConn() (syscall.RawConn, error) { | ||||
| 	// deterministic check for closed | ||||
| 	select { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sebastiaan van Stijn
					Sebastiaan van Stijn