Skip to content

Commit 1120c69

Browse files
committed
replacing new imports
1 parent 5ba23f4 commit 1120c69

File tree

20 files changed

+47
-58
lines changed

20 files changed

+47
-58
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go:
44
- 1.8
55
- tip
66

7-
go_import_path: gopkg.in/src-d/go-billy.v2
7+
go_import_path: gopkg.in/src-d/go-billy.v3
88

99
matrix:
1010
allow_failures:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# go-billy [![GoDoc](https://godoc.org/gopkg.in/src-d/go-billy.v2?status.svg)](https://godoc.org/gopkg.in/src-d/go-billy.v2) [![Build Status](https://travis-ci.org/src-d/go-billy.svg)](https://travis-ci.org/src-d/go-billy) [![Build status](https://ci.appveyor.com/api/projects/status/vx2qn6vlakbi724t?svg=true)](https://ci.appveyor.com/project/mcuadros/go-billy) [![codecov](https://codecov.io/gh/src-d/go-billy/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/go-billy) [![codebeat badge](https://codebeat.co/badges/03bdec03-b477-4472-bbe3-b552e3799174)](https://codebeat.co/projects/github-com-src-d-go-billy)
1+
# go-billy [![GoDoc](https://godoc.org/gopkg.in/src-d/go-billy.v3?status.svg)](https://godoc.org/gopkg.in/src-d/go-billy.v3) [![Build Status](https://travis-ci.org/src-d/go-billy.svg)](https://travis-ci.org/src-d/go-billy) [![Build status](https://ci.appveyor.com/api/projects/status/vx2qn6vlakbi724t?svg=true)](https://ci.appveyor.com/project/mcuadros/go-billy) [![codecov](https://codecov.io/gh/src-d/go-billy/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/go-billy) [![codebeat badge](https://codebeat.co/badges/03bdec03-b477-4472-bbe3-b552e3799174)](https://codebeat.co/projects/github-com-src-d-go-billy)
22

33
The missing interface filesystem abstraction for Go.
44
Billy implements an interface based on the `os` standard library, allowing to develop applications without dependency on the underlying storage. Make virtually free implement an mocks and testing over filesystem operations.
@@ -8,7 +8,7 @@ Billy was born as part of [src-d/go-git](https://github.com/src-d/go-git) projec
88
## Installation
99

1010
```go
11-
go get -u gopkg.in/src-d/go-billy.v2/...
11+
go get -u gopkg.in/src-d/go-billy.v3/...
1212
```
1313

1414
## Why billy?

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "{build}"
22
platform: x64
33

4-
clone_folder: c:\gopath\src\gopkg.in\src-d\go-billy.v2
4+
clone_folder: c:\gopath\src\gopkg.in\src-d\go-billy.v3
55

66
environment:
77
GOPATH: c:\gopath

fs.go

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,24 @@ type Filesystem interface {
2929
type Basic interface {
3030
// Create creates the named file with mode 0666 (before umask), truncating
3131
// it if it already exists. If successful, methods on the returned File can
32-
// be used for I/O; the associated file descriptor has mode O_RDWR. If there
33-
// is an error, it will be of type *PathError.
32+
// be used for I/O; the associated file descriptor has mode O_RDWR.
3433
Create(filename string) (File, error)
3534
// Open opens the named file for reading. If successful, methods on the
3635
// returned file can be used for reading; the associated file descriptor has
37-
// mode O_RDONLY. If there is an error, it will be of type *PathError.
36+
// mode O_RDONLY.
3837
Open(filename string) (File, error)
3938
// OpenFile is the generalized open call; most users will use Open or Create
4039
// instead. It opens the named file with specified flag (O_RDONLY etc.) and
4140
// perm, (0666 etc.) if applicable. If successful, methods on the returned
42-
// File can be used for I/O. If there is an error, it will be of type
43-
// *PathError.
41+
// File can be used for I/O.
4442
OpenFile(filename string, flag int, perm os.FileMode) (File, error)
45-
// Stat returns a FileInfo describing the named file. If there is an error,
46-
// it will be of type *PathError.
43+
// Stat returns a FileInfo describing the named file.
4744
Stat(filename string) (os.FileInfo, error)
4845
// Rename renames (moves) oldpath to newpath. If newpath already exists and
4946
// is not a directory, Rename replaces it. OS-specific restrictions may
50-
// apply when oldpath and newpath are in different directories. If there is
51-
// an error, it will be of type *LinkError.
47+
// apply when oldpath and newpath are in different directories.
5248
Rename(oldpath, newpath string) error
53-
// Remove removes the named file or directory. If there is an error, it will
54-
// be of type *PathError.
49+
// Remove removes the named file or directory.
5550
Remove(filename string) error
5651
// Join joins any number of path elements into a single path, adding a
5752
// Separator if necessary. Join calls filepath.Clean on the result; in
@@ -90,39 +85,33 @@ type Dir interface {
9085
type Symlink interface {
9186
// Lstat returns a FileInfo describing the named file. If the file is a
9287
// symbolic link, the returned FileInfo describes the symbolic link. Lstat
93-
// makes no attempt to follow the link. If there is an error, it will be of
94-
// type *PathError.
88+
// makes no attempt to follow the link.
9589
Lstat(filename string) (os.FileInfo, error)
9690
// Symlink creates a symbolic-link from link to target. target may be an
9791
// absolute or relative path, and need not refer to an existing node.
98-
// Parent directories of link are created as necessary. If there is an
99-
// error, it will be of type *LinkError.
92+
// Parent directories of link are created as necessary.
10093
Symlink(target, link string) error
101-
// Readlink returns the target path of link. If there is an error, it will
102-
// be of type *PathError.
94+
// Readlink returns the target path of link.
10395
Readlink(link string) (string, error)
10496
}
10597

10698
// Change abstract the FileInfo change related operations in a storage-agnostic
10799
// interface as an extension to the Basic interface
108100
type Change interface {
109101
// Chmod changes the mode of the named file to mode. If the file is a
110-
// symbolic link, it changes the mode of the link's target. If there is an
111-
// error, it will be of type *PathError.
102+
// symbolic link, it changes the mode of the link's target.
112103
Chmod(name string, mode os.FileMode) error
113104
// Lchown changes the numeric uid and gid of the named file. If the file is
114-
// a symbolic link, it changes the uid and gid of the link itself. If there
115-
// is an error, it will be of type *PathError.
105+
// a symbolic link, it changes the uid and gid of the link itself.
116106
Lchown(name string, uid, gid int) error
117107
// Chown changes the numeric uid and gid of the named file. If the file is a
118-
// symbolic link, it changes the uid and gid of the link's target. If there
119-
// is an error, it will be of type *PathError.
108+
// symbolic link, it changes the uid and gid of the link's target.
120109
Chown(name string, uid, gid int) error
121110
// Chtimes changes the access and modification times of the named file,
122111
// similar to the Unix utime() or utimes() functions.
123112
//
124113
// The underlying filesystem may truncate or round the values to a less
125-
// precise time unit. If there is an error, it will be of type *PathError.
114+
// precise time unit.
126115
Chtimes(name string, atime time.Time, mtime time.Time) error
127116
}
128117

helper/chroot/chroot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"path/filepath"
66
"strings"
77

8-
"gopkg.in/src-d/go-billy.v2"
8+
"gopkg.in/src-d/go-billy.v3"
99
)
1010

1111
// ChrootHelper is a helper to implement billy.Chroot.

helper/chroot/chroot_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"path/filepath"
66
"testing"
77

8-
"gopkg.in/src-d/go-billy.v2"
9-
"gopkg.in/src-d/go-billy.v2/test"
8+
"gopkg.in/src-d/go-billy.v3"
9+
"gopkg.in/src-d/go-billy.v3/test"
1010

1111
. "gopkg.in/check.v1"
1212
)

helper/mount/mount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"fmt"
1010

11-
"gopkg.in/src-d/go-billy.v2"
11+
"gopkg.in/src-d/go-billy.v3"
1212
)
1313

1414
var separator = string(filepath.Separator)

helper/mount/mount_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"path/filepath"
66
"testing"
77

8-
"gopkg.in/src-d/go-billy.v2"
9-
"gopkg.in/src-d/go-billy.v2/memfs"
10-
"gopkg.in/src-d/go-billy.v2/test"
11-
"gopkg.in/src-d/go-billy.v2/util"
8+
"gopkg.in/src-d/go-billy.v3"
9+
"gopkg.in/src-d/go-billy.v3/memfs"
10+
"gopkg.in/src-d/go-billy.v3/test"
11+
"gopkg.in/src-d/go-billy.v3/util"
1212

1313
. "gopkg.in/check.v1"
1414
)

memfs/memory.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package memfs provides a billy filesystem base on memory.
2-
package memfs // import "gopkg.in/src-d/go-billy.v2/memfs"
2+
package memfs // import "gopkg.in/src-d/go-billy.v3/memfs"
33

44
import (
55
"errors"
@@ -10,9 +10,9 @@ import (
1010
"strings"
1111
"time"
1212

13-
"gopkg.in/src-d/go-billy.v2"
14-
"gopkg.in/src-d/go-billy.v2/helper/chroot"
15-
"gopkg.in/src-d/go-billy.v2/util"
13+
"gopkg.in/src-d/go-billy.v3"
14+
"gopkg.in/src-d/go-billy.v3/helper/chroot"
15+
"gopkg.in/src-d/go-billy.v3/util"
1616
)
1717

1818
const separator = filepath.Separator

memfs/memory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package memfs
33
import (
44
"testing"
55

6-
"gopkg.in/src-d/go-billy.v2/test"
6+
"gopkg.in/src-d/go-billy.v3/test"
77

88
. "gopkg.in/check.v1"
99
)

0 commit comments

Comments
 (0)