package store
import "github.com/gobuffalo/packr/v2/jam/store"
Index ¶
- Constants
- func Clean(root string) error
- func GoBin() string
- func GoPath() string
- type Disk
- func NewDisk(path string, pkg string) *Disk
- func (d *Disk) Clean(box *parser.Box) error
- func (d *Disk) Close() error
- func (d *Disk) FileNames(box *parser.Box) ([]string, error)
- func (d *Disk) Files(box *parser.Box) ([]*parser.File, error)
- func (d *Disk) Pack(box *parser.Box) error
- type FnStore
- func (f *FnStore) Clean(box *parser.Box) error
- func (f *FnStore) FileNames(box *parser.Box) ([]string, error)
- func (f *FnStore) Files(box *parser.Box) ([]*parser.File, error)
- func (f *FnStore) Pack(box *parser.Box) error
- type Legacy
- func NewLegacy() *Legacy
- func (l *Legacy) Close() error
- func (l *Legacy) Pack(box *parser.Box) error
- type Store
Constants ¶
const DISK_GLOBAL_KEY = "__packr_global__"
Functions ¶
func Clean ¶
func GoBin ¶
func GoBin() string
GoBin returns the current GO_BIN env var or if it's missing, a default of "go"
func GoPath ¶
func GoPath() string
GoPath returns the current GOPATH env var or if it's missing, the default.
Types ¶
type Disk ¶
func NewDisk ¶
func (*Disk) Clean ¶
func (*Disk) Close ¶
Close ...
func (*Disk) FileNames ¶
func (*Disk) Files ¶
func (*Disk) Pack ¶
type FnStore ¶
type FnStore struct { FileNamesFn func(*parser.Box) ([]string, error) FilesFn func(*parser.Box) ([]*parser.File, error) PackFn func(*parser.Box) error CleanFn func(*parser.Box) error }
func (*FnStore) Clean ¶
func (*FnStore) FileNames ¶
func (*FnStore) Files ¶
func (*FnStore) Pack ¶
type Legacy ¶
type Legacy struct { *Disk // contains filtered or unexported fields }
func NewLegacy ¶
func NewLegacy() *Legacy
func (*Legacy) Close ¶
Close ...
func (*Legacy) Pack ¶
type Store ¶
type Store interface { FileNames(*parser.Box) ([]string, error) Files(*parser.Box) ([]*parser.File, error) Pack(*parser.Box) error Clean(*parser.Box) error }
Source Files ¶
clean.go disk.go disk_tmpl.go env.go fn.go legacy.go store.go
Directories ¶
Path | Synopsis |
---|---|
jam/store/_fixtures | |
jam/store/_fixtures/disk | |
jam/store/_fixtures/disk/e | |
jam/store/_fixtures/disk/_r | |
jam/store/_fixtures/disk/w |
- Version
- v2.8.3 (latest)
- Published
- Nov 23, 2021
- Platform
- js/wasm
- Imports
- 21 packages
- Last checked
- 10 hours ago –
Tools for package owners.