packr: github.com/gobuffalo/packr/v2/jam/store Index | Files

package store

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

Index

Package Files

clean.go disk.go disk_tmpl.go env.go fn.go legacy.go store.go

Constants

const DISK_GLOBAL_KEY = "__packr_global__"

func Clean Uses

func Clean(root string) error

func GoBin Uses

func GoBin() string

GoBin returns the current GO_BIN env var or if it's missing, a default of "go"

func GoPath Uses

func GoPath() string

GoPath returns the current GOPATH env var or if it's missing, the default.

type Disk Uses

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

func NewDisk Uses

func NewDisk(path string, pkg string) *Disk

func (*Disk) Clean Uses

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

func (*Disk) Close Uses

func (d *Disk) Close() error

Close ...

func (*Disk) FileNames Uses

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

func (*Disk) Files Uses

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

func (*Disk) Pack Uses

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

type FnStore Uses

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 Uses

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

func (*FnStore) FileNames Uses

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

func (*FnStore) Files Uses

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

func (*FnStore) Pack Uses

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

type Legacy Uses

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

func NewLegacy Uses

func NewLegacy() *Legacy

func (*Legacy) Close Uses

func (l *Legacy) Close() error

Close ...

func (*Legacy) Pack Uses

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

type Store Uses

type Store interface {
    FileNames(*parser.Box) ([]string, error)
    Files(*parser.Box) ([]*parser.File, error)
    Pack(*parser.Box) error
    Clean(*parser.Box) error
}

Package store imports 23 packages (graph) and is imported by 6 packages. Updated 2019-06-26. Refresh now. Tools for package owners.