Debian Codegraph @

helper/temporal/temporal.go

raw symbols SCIP
1 package temporalscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/
2
3 import (
4 "github.com/go-git/go-billy/v6scip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/"
5 "github.com/go-git/go-billy/v6/utilscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/util`/"
6 )
7
8 // Temporal is a helper that implements billy.TempFile over any filesystem.
9 type Temporalscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal# struct {
10 billyscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/.Filesystemscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal#Filesystem.
11 defaultDirscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal#defaultDir. string
12 }
13
14 // New creates a new filesystem wrapping up 'fs' the intercepts the calls to
15 // the TempFile method. The param defaultDir is used as default directory were
16 // the tempfiles are created.
17 func Newscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/New().(fs billyscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/.Filesystemscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Filesystem#, defaultDir string) billyscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/.Filesystemscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Filesystem# {
18 return &Temporalscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal#{
19 Filesystemscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal#Filesystem.: fs,
20 defaultDirscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal#defaultDir.: defaultDir,
21 }
22 }
23
24 func (h *Temporalscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal#) TempFilescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal#TempFile().(dir, prefix string) (billyscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/.Filescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/File#, error) {
25 if dir == "" {
26 dir = h.defaultDirscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal#defaultDir.
27 }
28
29 return utilscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/util`/.TempFilescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/util`/TempFile().(h.Filesystemscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/Temporal#Filesystem., dir, prefix)
30 }