yaml

package
v1.0.51 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilFile = fmt.Errorf("no file")
	ErrNoPath  = fmt.Errorf("no file path")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Path        string
	WithComment string
}

type Yaml

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

func New

func New(config *Config) (*Yaml, error)

func (*Yaml) Close

func (y *Yaml) Close() error

func (*Yaml) Drop

func (y *Yaml) Drop() error

func (*Yaml) Lock

func (y *Yaml) Lock() error

func (*Yaml) Open

func (y *Yaml) Open(filePath string) (database.Driver, error)

func (*Yaml) Run

func (y *Yaml) Run(migration io.Reader) error

func (*Yaml) SetVersion added in v1.0.21

func (y *Yaml) SetVersion(version int, dirty bool) error

func (*Yaml) Unlock

func (y *Yaml) Unlock() error

func (*Yaml) Version

func (y *Yaml) Version() (int, bool, error)

Jump to

Keyboard shortcuts

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