package store

import "github.com/gobuffalo/packr/v2/jam/store"

Index

Constants

const DISK_GLOBAL_KEY = "__packr_global__"

Functions

func Clean

func Clean(root string) error

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

type Disk struct {
	DBPath    string
	DBPackage string
	// contains filtered or unexported fields
}

func NewDisk

func NewDisk(path string, pkg string) *Disk

func (*Disk) Clean

func (d *Disk) Clean(box *parser.Box) error

func (*Disk) Close

func (d *Disk) Close() error

Close ...

func (*Disk) FileNames

func (d *Disk) FileNames(box *parser.Box) ([]string, error)

func (*Disk) Files

func (d *Disk) Files(box *parser.Box) ([]*parser.File, error)

func (*Disk) Pack

func (d *Disk) Pack(box *parser.Box) error

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 (f *FnStore) Clean(box *parser.Box) error

func (*FnStore) FileNames

func (f *FnStore) FileNames(box *parser.Box) ([]string, error)

func (*FnStore) Files

func (f *FnStore) Files(box *parser.Box) ([]*parser.File, error)

func (*FnStore) Pack

func (f *FnStore) Pack(box *parser.Box) error

type Legacy

type Legacy struct {
	*Disk
	// contains filtered or unexported fields
}

func NewLegacy

func NewLegacy() *Legacy

func (*Legacy) Close

func (l *Legacy) Close() error

Close ...

func (*Legacy) Pack

func (l *Legacy) Pack(box *parser.Box) error

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

PathSynopsis
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.