mirror of https://github.com/perkeep/perkeep.git
vendor: go4.org/strutil go4.org/syncutil
They were internal packages (under pkg), which we are now moving to go4.org, so we in turn need to vendor them in now. Change-Id: I92224f731404d0bd4ca1c57492bed37cb3367ed4
This commit is contained in:
parent
e1798e796e
commit
12eddf9c19
|
@ -48,10 +48,11 @@ import (
|
|||
"camlistore.org/pkg/search"
|
||||
"camlistore.org/pkg/server"
|
||||
"camlistore.org/pkg/sorted"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types/camtypes"
|
||||
"camlistore.org/pkg/webserver"
|
||||
|
||||
"go4.org/syncutil"
|
||||
|
||||
_ "camlistore.org/pkg/sorted/kvfile"
|
||||
)
|
||||
|
||||
|
|
|
@ -31,7 +31,8 @@ import (
|
|||
"camlistore.org/pkg/client"
|
||||
"camlistore.org/pkg/cmdmain"
|
||||
"camlistore.org/pkg/httputil"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const buffered = 16 // arbitrary
|
||||
|
|
|
@ -23,7 +23,8 @@ import (
|
|||
"camlistore.org/pkg/blobserver"
|
||||
"camlistore.org/pkg/client"
|
||||
"camlistore.org/pkg/httputil"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
// TODO(mpl): move Uploader to pkg/client, or maybe its own pkg, and clean up files.go
|
||||
|
@ -56,9 +57,9 @@ type fileOptions struct {
|
|||
// the above permanode.
|
||||
tag string
|
||||
// perform for the client the actions needing gpg signing when uploading a file.
|
||||
vivify bool
|
||||
exifTime bool // use the time in exif metadata as the modtime if possible.
|
||||
capCtime bool // use mtime as ctime if ctime > mtime
|
||||
vivify bool
|
||||
exifTime bool // use the time in exif metadata as the modtime if possible.
|
||||
capCtime bool // use mtime as ctime if ctime > mtime
|
||||
contentsOnly bool // do not store any of the file's attributes, only its contents.
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,8 @@ import (
|
|||
|
||||
"camlistore.org/pkg/cmdmain"
|
||||
"camlistore.org/pkg/search"
|
||||
"camlistore.org/pkg/strutil"
|
||||
|
||||
"go4.org/strutil"
|
||||
)
|
||||
|
||||
type searchCmd struct {
|
||||
|
|
|
@ -21,7 +21,8 @@ import (
|
|||
"time"
|
||||
|
||||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
type BlobHub interface {
|
||||
|
|
|
@ -102,9 +102,10 @@ import (
|
|||
"camlistore.org/pkg/pools"
|
||||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/sorted"
|
||||
"camlistore.org/pkg/strutil"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/third_party/go/pkg/archive/zip"
|
||||
|
||||
"go4.org/strutil"
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
// TODO: evaluate whether this should even be 0, to keep the schema blobs together at least.
|
||||
|
|
|
@ -39,9 +39,10 @@ import (
|
|||
"camlistore.org/pkg/context"
|
||||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/sorted"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/test"
|
||||
"camlistore.org/third_party/go/pkg/archive/zip"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const debug = false
|
||||
|
|
|
@ -53,10 +53,11 @@ import (
|
|||
"camlistore.org/pkg/context"
|
||||
"camlistore.org/pkg/jsonconfig"
|
||||
"camlistore.org/pkg/sorted"
|
||||
"camlistore.org/pkg/strutil"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types"
|
||||
"camlistore.org/third_party/github.com/camlistore/lock"
|
||||
|
||||
"go4.org/strutil"
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
// TODO(wathiede): replace with glog.V(2) when we decide our logging story.
|
||||
|
|
|
@ -40,7 +40,8 @@ import (
|
|||
"camlistore.org/pkg/googlestorage"
|
||||
"camlistore.org/pkg/jsonconfig"
|
||||
"camlistore.org/pkg/oauthutil"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
|
||||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
|
|
@ -20,8 +20,9 @@ import (
|
|||
"os"
|
||||
|
||||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const maxParallelStats = 20
|
||||
|
|
|
@ -18,7 +18,8 @@ package mongo
|
|||
|
||||
import (
|
||||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
|
||||
"camlistore.org/third_party/labix.org/v2/mgo"
|
||||
"camlistore.org/third_party/labix.org/v2/mgo/bson"
|
||||
|
|
|
@ -20,7 +20,8 @@ import (
|
|||
"fmt"
|
||||
|
||||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
|
||||
"camlistore.org/third_party/labix.org/v2/mgo/bson"
|
||||
)
|
||||
|
|
|
@ -35,7 +35,8 @@ import (
|
|||
"camlistore.org/pkg/context"
|
||||
"camlistore.org/pkg/jsonconfig"
|
||||
"camlistore.org/pkg/sorted"
|
||||
"camlistore.org/pkg/strutil"
|
||||
|
||||
"go4.org/strutil"
|
||||
)
|
||||
|
||||
type nsto struct {
|
||||
|
|
|
@ -18,7 +18,8 @@ package s3
|
|||
|
||||
import (
|
||||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
var removeGate = syncutil.NewGate(20) // arbitrary
|
||||
|
|
|
@ -21,7 +21,8 @@ import (
|
|||
"os"
|
||||
|
||||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
var statGate = syncutil.NewGate(20) // arbitrary
|
||||
|
|
|
@ -32,8 +32,9 @@ import (
|
|||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/blobserver"
|
||||
"camlistore.org/pkg/context"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/test"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
type Opts struct {
|
||||
|
|
|
@ -44,8 +44,9 @@ import (
|
|||
"camlistore.org/pkg/osutil"
|
||||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/search"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types/camtypes"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
// A Client provides access to a Camlistore server.
|
||||
|
|
|
@ -23,7 +23,8 @@ import (
|
|||
"fmt"
|
||||
|
||||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/strutil"
|
||||
|
||||
"go4.org/strutil"
|
||||
)
|
||||
|
||||
func ParseFields(v []byte, dst ...interface{}) error {
|
||||
|
|
|
@ -42,7 +42,8 @@ import (
|
|||
"camlistore.org/pkg/context"
|
||||
"camlistore.org/pkg/httputil"
|
||||
"camlistore.org/pkg/osutil"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
|
||||
"golang.org/x/oauth2"
|
||||
// TODO(mpl): switch to google.golang.org/cloud/compute
|
||||
|
|
|
@ -34,7 +34,8 @@ import (
|
|||
"camlistore.org/pkg/readerutil"
|
||||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/search"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
|
||||
"camlistore.org/third_party/bazil.org/fuse"
|
||||
"camlistore.org/third_party/bazil.org/fuse/fs"
|
||||
|
|
|
@ -28,9 +28,10 @@ import (
|
|||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/search"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/third_party/bazil.org/fuse"
|
||||
"camlistore.org/third_party/bazil.org/fuse/fs"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const refreshTime = 1 * time.Minute
|
||||
|
|
|
@ -22,7 +22,8 @@ import (
|
|||
"fmt"
|
||||
|
||||
"camlistore.org/pkg/context"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const buffered = 32 // arbitrary
|
||||
|
|
|
@ -40,8 +40,9 @@ import (
|
|||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/search"
|
||||
"camlistore.org/pkg/server"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types/camtypes"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -37,7 +37,8 @@ import (
|
|||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/schema/nodeattr"
|
||||
"camlistore.org/pkg/search"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
|
||||
"camlistore.org/third_party/code.google.com/p/goauth2/oauth"
|
||||
"camlistore.org/third_party/github.com/tgulacsi/picago"
|
||||
|
|
|
@ -57,7 +57,8 @@ import (
|
|||
"camlistore.org/pkg/importer"
|
||||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/schema/nodeattr"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -40,8 +40,9 @@ import (
|
|||
"camlistore.org/pkg/importer"
|
||||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/schema/nodeattr"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/third_party/github.com/garyburd/go-oauth/oauth"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -35,9 +35,10 @@ import (
|
|||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/schema/nodeattr"
|
||||
"camlistore.org/pkg/sorted"
|
||||
"camlistore.org/pkg/strutil"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types/camtypes"
|
||||
|
||||
"go4.org/strutil"
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
// Corpus is an in-memory summary of all of a user's blobs' metadata.
|
||||
|
|
|
@ -36,9 +36,10 @@ import (
|
|||
"camlistore.org/pkg/jsonconfig"
|
||||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/sorted"
|
||||
"camlistore.org/pkg/strutil"
|
||||
"camlistore.org/pkg/types"
|
||||
"camlistore.org/pkg/types/camtypes"
|
||||
|
||||
"go4.org/strutil"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -29,8 +29,9 @@ import (
|
|||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/env"
|
||||
"camlistore.org/pkg/singleflight"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const closedIndex = -1
|
||||
|
|
|
@ -28,7 +28,8 @@ import (
|
|||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/blobserver"
|
||||
"camlistore.org/pkg/rollsum"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -41,11 +41,12 @@ import (
|
|||
"unicode/utf8"
|
||||
|
||||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/strutil"
|
||||
"camlistore.org/pkg/types"
|
||||
"camlistore.org/third_party/github.com/bradfitz/latlong"
|
||||
"camlistore.org/third_party/github.com/rwcarlsen/goexif/exif"
|
||||
"camlistore.org/third_party/github.com/rwcarlsen/goexif/tiff"
|
||||
|
||||
"go4.org/strutil"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -31,9 +31,10 @@ import (
|
|||
|
||||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/httputil"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types"
|
||||
"camlistore.org/pkg/types/camtypes"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
func (sh *Handler) serveDescribe(rw http.ResponseWriter, req *http.Request) {
|
||||
|
|
|
@ -35,9 +35,10 @@ import (
|
|||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/context"
|
||||
"camlistore.org/pkg/index"
|
||||
"camlistore.org/pkg/strutil"
|
||||
"camlistore.org/pkg/types"
|
||||
"camlistore.org/pkg/types/camtypes"
|
||||
|
||||
"go4.org/strutil"
|
||||
)
|
||||
|
||||
type SortType int
|
||||
|
|
|
@ -40,9 +40,10 @@ import (
|
|||
"camlistore.org/pkg/schema"
|
||||
"camlistore.org/pkg/search"
|
||||
"camlistore.org/pkg/singleflight"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types"
|
||||
|
||||
"go4.org/syncutil"
|
||||
|
||||
_ "camlistore.org/third_party/github.com/nf/cr2"
|
||||
"camlistore.org/third_party/go/pkg/image/jpeg"
|
||||
)
|
||||
|
|
|
@ -40,9 +40,10 @@ import (
|
|||
"camlistore.org/pkg/index"
|
||||
"camlistore.org/pkg/jsonconfig"
|
||||
"camlistore.org/pkg/sorted"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types/camtypes"
|
||||
"camlistore.org/third_party/code.google.com/p/xsrftoken"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -39,7 +39,6 @@ import (
|
|||
"camlistore.org/pkg/search"
|
||||
"camlistore.org/pkg/server/app"
|
||||
"camlistore.org/pkg/sorted"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"camlistore.org/pkg/types/camtypes"
|
||||
uistatic "camlistore.org/server/camlistored/ui"
|
||||
closurestatic "camlistore.org/server/camlistored/ui/closure"
|
||||
|
@ -48,6 +47,8 @@ import (
|
|||
glitchstatic "camlistore.org/third_party/glitch"
|
||||
lessstatic "camlistore.org/third_party/less"
|
||||
reactstatic "camlistore.org/third_party/react"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -40,7 +40,8 @@ import (
|
|||
"camlistore.org/pkg/blob"
|
||||
"camlistore.org/pkg/jsonconfig"
|
||||
"camlistore.org/pkg/netutil"
|
||||
"camlistore.org/pkg/syncutil"
|
||||
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
// A Service controls the generation of video thumbnails.
|
||||
|
|
|
@ -25,7 +25,7 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"camlistore.org/pkg/strutil"
|
||||
"go4.org/strutil"
|
||||
)
|
||||
|
||||
// RWMutexTracker is a sync.RWMutex that tracks who owns the current
|
|
@ -3,7 +3,7 @@ package syncutil_test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"camlistore.org/pkg/syncutil"
|
||||
"go4.org/syncutil"
|
||||
)
|
||||
|
||||
func TestSem(t *testing.T) {
|
Loading…
Reference in New Issue