Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for lockVersion (0.18 sec)

  1. src/cmd/go/internal/modfetch/cache.go

    func (e *DownloadDirPartialError) Is(err error) bool { return err == fs.ErrNotExist }
    
    // lockVersion locks a file within the module cache that guards the downloading
    // and extraction of the zipfile for the given module version.
    func lockVersion(ctx context.Context, mod module.Version) (unlock func(), err error) {
    	path, err := CachePath(ctx, mod, "lock")
    	if err != nil {
    		return nil, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/fetch.go

    	// DownloadZip uses the same lockfile as Download.
    	// Invoke DownloadZip before locking the file.
    	zipfile, err := DownloadZip(ctx, mod)
    	if err != nil {
    		return "", err
    	}
    
    	unlock, err := lockVersion(ctx, mod)
    	if err != nil {
    		return "", err
    	}
    	defer unlock()
    
    	ctx, span = trace.StartSpan(ctx, "unzip "+zipfile)
    	defer span.Done()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. pkg/kubelet/container/testing/runtime_mock.go

    	container "k8s.io/kubernetes/pkg/kubelet/container"
    )
    
    // MockVersion is a mock of Version interface.
    type MockVersion struct {
    	ctrl     *gomock.Controller
    	recorder *MockVersionMockRecorder
    }
    
    // MockVersionMockRecorder is the mock recorder for MockVersion.
    type MockVersionMockRecorder struct {
    	mock *MockVersion
    }
    
    // NewMockVersion creates a new mock instance.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top