Documentation ¶
Index ¶
- type BinVersion
- type Database
- type LocalDatabase
- func (db LocalDatabase) Add(target string, installment *BinVersion, current bool) error
- func (db LocalDatabase) Get(target string, version string) (*BinVersion, error)
- func (db LocalDatabase) GetCurrent(target string) (*BinVersion, error)
- func (db LocalDatabase) SetCurrent(target string, version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinVersion ¶
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 }
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
Click to show internal directories.
Click to hide internal directories.