driver

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDriver

type IDriver interface {
	// Name of driver
	Name() string
	// CmdCreate - get command for create new transaction
	CmdCreate() *cli.Command
	// CmdUp - get command for apply transactions
	CmdUp() *cli.Command
	// CmdDown - get command for cancel transactions
	CmdDown() *cli.Command
	// Up - apply transactions
	// Deprecated. Use UpFS
	Up(
		c context.Context,
		uri string,
		registryName string,
		path string,
	) error
	// UpFS - apply transactions
	UpFS(
		c context.Context,
		uri string,
		registryName string,
		fs filesystem.FS,
	) (err_ error)
	// Down - cancel transactions
	// Deprecated. Use DownFS
	Down(
		c context.Context,
		uri string,
		registryName string,
		path string,
		count int,
	) error
	// DownFS - cancel transactions
	DownFS(
		c context.Context,
		uri string,
		registryName string,
		fs filesystem.FS,
		count int,
	) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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