packrmigrate

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

This package has been adapted from https://github.com/stephenafamo/packr-migrate.

NOTE: watch out for the local bug fix when updating!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithInstance

func WithInstance(box *packr.Box) (source.Driver, error)

Types

type Packr

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

func (*Packr) Close

func (p *Packr) Close() error

func (*Packr) First

func (p *Packr) First() (version uint, err error)

func (*Packr) Next

func (p *Packr) Next(version uint) (nextVersion uint, err error)

func (*Packr) Open

func (p *Packr) Open(url string) (source.Driver, error)

func (*Packr) Prev

func (p *Packr) Prev(version uint) (prevVersion uint, err error)

func (*Packr) ReadDown

func (p *Packr) ReadDown(version uint) (r io.ReadCloser, identifier string, err error)

func (*Packr) ReadUp

func (p *Packr) ReadUp(version uint) (r io.ReadCloser, identifier string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL