Home
last modified time | relevance | path

Searched refs:blobsDir (Results 1 – 17 of 17) sorted by relevance

/dports/net/bosh-cli/bosh-cli-5.5.0/cmd/
H A Dremove_blob_test.go17 blobsDir *fakereldir.FakeBlobsDir
24 blobsDir = &fakereldir.FakeBlobsDir{}
27 command = NewRemoveBlobCmd(blobsDir, ui)
45 blobsDir.UntrackBlobReturns(nil)
50 Expect(blobsDir.UntrackBlobCallCount()).To(Equal(1))
51 Expect(blobsDir.UntrackBlobArgsForCall(0)).To(Equal("/path/to/blob.tgz"))
57 blobsDir.UntrackBlobReturns(errors.New("fake-err"))
H A Dadd_blob_test.go18 blobsDir *fakereldir.FakeBlobsDir
25 blobsDir = &fakereldir.FakeBlobsDir{}
28 command = NewAddBlobCmd(blobsDir, fs, ui)
49 blobsDir.TrackBlobReturns(boshreldir.Blob{Path: "my-blob.tgz"}, nil)
54 Expect(blobsDir.TrackBlobCallCount()).To(Equal(1))
56 blobsPath, src := blobsDir.TrackBlobArgsForCall(0)
67 blobsDir.TrackBlobReturns(boshreldir.Blob{}, errors.New("fake-err"))
83 Expect(blobsDir.TrackBlobCallCount()).To(Equal(0))
H A Dsync_blobs_test.go15 blobsDir *fakereldir.FakeBlobsDir
22 blobsDir = &fakereldir.FakeBlobsDir{}
23 command = NewSyncBlobsCmd(blobsDir, numOfWorkers)
35 Expect(blobsDir.SyncBlobsCallCount()).To(Equal(1))
36 Expect(blobsDir.SyncBlobsArgsForCall(0)).To(Equal(5))
40 blobsDir.SyncBlobsReturns(errors.New("fake-err"))
H A Dupload_blobs.go10 blobsDir boshreldir.BlobsDir member
13 func NewUploadBlobsCmd(blobsDir boshreldir.BlobsDir) UploadBlobsCmd {
14 return UploadBlobsCmd{blobsDir: blobsDir}
18 err := c.blobsDir.UploadBlobs()
H A Dsync_blobs.go9 blobsDir boshreldir.BlobsDir member
13 func NewSyncBlobsCmd(blobsDir boshreldir.BlobsDir, numOfParallelWorkers int) SyncBlobsCmd {
14 return SyncBlobsCmd{blobsDir: blobsDir, numOfParallelWorkers: numOfParallelWorkers}
18 err := c.blobsDir.SyncBlobs(c.numOfParallelWorkers)
H A Dremove_blob.go10 blobsDir boshreldir.BlobsDir member
14 func NewRemoveBlobCmd(blobsDir boshreldir.BlobsDir, ui biui.UI) RemoveBlobCmd {
15 return RemoveBlobCmd{blobsDir: blobsDir, ui: ui}
19 err := c.blobsDir.UntrackBlob(opts.Args.BlobsPath)
H A Dupload_blobs_test.go15 blobsDir *fakereldir.FakeBlobsDir
20 blobsDir = &fakereldir.FakeBlobsDir{}
21 command = NewUploadBlobsCmd(blobsDir)
31 Expect(blobsDir.UploadBlobsCallCount()).To(Equal(1))
35 blobsDir.UploadBlobsReturns(errors.New("fake-err"))
H A Dadd_blob.go13 blobsDir boshreldir.BlobsDir member
18 func NewAddBlobCmd(blobsDir boshreldir.BlobsDir, fs boshsys.FileSystem, ui boshui.UI) AddBlobCmd {
19 return AddBlobCmd{blobsDir: blobsDir, fs: fs, ui: ui}
30 blob, err := c.blobsDir.TrackBlob(opts.Args.BlobsPath, file)
H A Dblobs.go10 blobsDir boshreldir.BlobsDir member
14 func NewBlobsCmd(blobsDir boshreldir.BlobsDir, ui boshui.UI) BlobsCmd {
15 return BlobsCmd{blobsDir: blobsDir, ui: ui}
19 blobs, err := c.blobsDir.Blobs()
H A Dblobs_test.go18 blobsDir *fakereldir.FakeBlobsDir
24 blobsDir = &fakereldir.FakeBlobsDir{}
26 command = NewBlobsCmd(blobsDir, ui)
50 blobsDir.BlobsReturns(blobs, nil)
85 blobsDir.BlobsReturns(nil, errors.New("fake-err"))
H A Dcmd.go426 return NewBlobsCmd(c.blobsDir(opts.Directory), deps.UI).Run()
429 return NewAddBlobCmd(c.blobsDir(opts.Directory), deps.FS, deps.UI).Run(*opts)
432 return NewRemoveBlobCmd(c.blobsDir(opts.Directory), deps.UI).Run(*opts)
435 return NewUploadBlobsCmd(c.blobsDir(opts.Directory)).Run()
438 return NewSyncBlobsCmd(c.blobsDir(opts.Directory), c.BoshOpts.Parallel).Run()
574 func (c Cmd) blobsDir(dir DirOrCWDArg) boshreldir.BlobsDir { func
/dports/net/bosh-cli/bosh-cli-5.5.0/releasedir/
H A Dfs_blobs_dir_test.go30 blobsDir FSBlobsDir
45 return blobsDir.Blobs()
512 Expect(blobsDir.Blobs()).To(Equal([]Blob{
533 Expect(blobsDir.Blobs()).To(Equal([]Blob{
557 Expect(blobsDir.Blobs()).To(BeEmpty())
569 Expect(blobsDir.Blobs()).To(BeEmpty())
581 Expect(blobsDir.Blobs()).To(BeEmpty())
593 Expect(blobsDir.Blobs()).To(BeEmpty())
614 Expect(blobsDir.Blobs()).To(Equal([]Blob{
635 Expect(blobsDir.Blobs()).To(Equal([]Blob{
[all …]
H A Dfs_release_dir.go30 blobsDir BlobsDir member
50 blobsDir BlobsDir,
65 blobsDir: blobsDir,
96 err = d.blobsDir.Init()
216 err = d.blobsDir.SyncBlobs(1)
H A Dfs_release_dir_test.go27 blobsDir *fakereldir.FakeBlobsDir
41 blobsDir = &fakereldir.FakeBlobsDir{}
56 blobsDir,
99 blobsDir,
129 Expect(blobsDir.InitCallCount()).To(Equal(1))
133 blobsDir.InitReturns(errors.New("fake-err"))
566 blobsDir.SyncBlobsStub = func(numOfParallelWorkers int) error {
H A Dprovider.go64 blobsDir := p.NewFSBlobsDir(dirPath)
82 blobsDir,
/dports/misc/perkeep/perkeep-0.11/dev/devcam/
H A Dserver.go401 blobsDir := filepath.Join(c.root, "sha1")
402 if err := cpDir(templateDir, blobsDir, nil); err != nil {
/dports/misc/perkeep/perkeep-0.11/pkg/deploy/gce/
H A Dhandler.go896 blobsDir := filepath.Join(dataDir, "instance-conf")
897 if err := os.MkdirAll(blobsDir, 0700); err != nil {
900 instConf, err := localdisk.New(blobsDir)