package bindata

import "github.com/golang-migrate/migrate/v4/source/go_bindata"

Index

Variables

var (
	ErrNoAssetSource = fmt.Errorf("expects *AssetSource")
)

Functions

func WithInstance

func WithInstance(instance interface{}) (source.Driver, error)

Types

type AssetFunc

type AssetFunc func(name string) ([]byte, error)

type AssetSource

type AssetSource struct {
	Names     []string
	AssetFunc AssetFunc
}

func Resource

func Resource(names []string, afn AssetFunc) *AssetSource

type Bindata

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

func (*Bindata) Close

func (b *Bindata) Close() error

func (*Bindata) First

func (b *Bindata) First() (version uint, err error)

func (*Bindata) Next

func (b *Bindata) Next(version uint) (nextVersion uint, err error)

func (*Bindata) Open

func (b *Bindata) Open(url string) (source.Driver, error)

func (*Bindata) Prev

func (b *Bindata) Prev(version uint) (prevVersion uint, err error)

func (*Bindata) ReadDown

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

func (*Bindata) ReadUp

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

Source Files

go-bindata.go

Directories

PathSynopsis
source/go_bindata/examples
source/go_bindata/examples/migrations
Version
v4.0.0
Published
Oct 10, 2018
Platform
linux/amd64
Imports
6 packages
Last checked
1 minute ago

Tools for package owners.