packr: github.com/gobuffalo/packr/v2/file/resolver Index | Files | Directories

package resolver

import "github.com/gobuffalo/packr/v2/file/resolver"

Index

Package Files

disk.go hex_gzip.go ident.go in_memory.go packable.go resolver.go

Variables

var DefaultResolver = defaultResolver()

func HexGzipString Uses

func HexGzipString(s string) (string, error)

func Key Uses

func Key(s string) string

func OsPath Uses

func OsPath(s string) string

func ResolvePathInBase Uses

func ResolvePathInBase(base, path string) (string, error)

ResolvePathInBase returns a path that is guaranteed to be inside of the base directory or an error

func String Uses

func String(r Resolver) string

func UnHexGzipString Uses

func UnHexGzipString(packed string) (string, error)

type Disk Uses

type Disk struct {
    Root string
}

func (*Disk) FileMap Uses

func (d *Disk) FileMap() map[string]file.File

func (*Disk) Resolve Uses

func (d *Disk) Resolve(box string, name string) (file.File, error)

func (Disk) String Uses

func (d Disk) String() string

type HexGzip Uses

type HexGzip struct {
    // contains filtered or unexported fields
}

func NewHexGzip Uses

func NewHexGzip(files map[string]string) (*HexGzip, error)

func (*HexGzip) FileMap Uses

func (hg *HexGzip) FileMap() map[string]file.File

func (*HexGzip) Resolve Uses

func (hg *HexGzip) Resolve(box string, name string) (file.File, error)

func (HexGzip) String Uses

func (hg HexGzip) String() string

type InMemory Uses

type InMemory struct {
    *packd.MemoryBox
}

func NewInMemory Uses

func NewInMemory(files map[string]file.File) *InMemory

func (*InMemory) FileMap Uses

func (d *InMemory) FileMap() map[string]file.File

func (*InMemory) Pack Uses

func (d *InMemory) Pack(name string, f file.File) error

func (*InMemory) Resolve Uses

func (d *InMemory) Resolve(box string, name string) (file.File, error)

func (InMemory) String Uses

func (d InMemory) String() string

type Packable Uses

type Packable interface {
    Pack(name string, f file.File) error
}

type Resolver Uses

type Resolver interface {
    Resolve(string, string) (file.File, error)
}

Directories

PathSynopsis
encoding/hexPackage hex implements hexadecimal encoding and decoding.

Package resolver imports 16 packages (graph) and is imported by 41 packages. Updated 2019-08-26. Refresh now. Tools for package owners.