db

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinVersion

type BinVersion struct {
	Version string
	Path    string
}

type Database

type Database interface {
	Get(target string, version string) (*BinVersion, error)
	GetCurrent(target string) (*BinVersion, error)
	SetCurrent(target string, version string) error
	Add(target string, installment *BinVersion, current bool) error
}

func Init

func Init(config *configuration.Config) (Database, error)

type LocalDatabase

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

func (LocalDatabase) Add

func (db LocalDatabase) Add(target string, installment *BinVersion, current bool) error

func (LocalDatabase) Get

func (db LocalDatabase) Get(target string, version string) (*BinVersion, error)

func (LocalDatabase) GetCurrent

func (db LocalDatabase) GetCurrent(target string) (*BinVersion, error)

func (LocalDatabase) SetCurrent

func (db LocalDatabase) SetCurrent(target string, version string) error

Jump to

Keyboard shortcuts

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