Documentation
¶
Index ¶
- Variables
- func SignedByColumnar(lib, sig io.Reader) error
- type Driver
- func (d Driver) GetPackage(version *semver.Version, platformTuple string, allowPrerelease bool) (PkgInfo, error)
- func (d Driver) GetWithConstraint(c *semver.Constraints, platformTuple string) (PkgInfo, error)
- func (d Driver) HasNonPrerelease() bool
- func (d Driver) MaxVersion() pkginfo
- func (d Driver) Versions(platformTuple string) semver.Collection
- type FileProgressModel
- type PkgInfo
- type ProgressFunc
- type Registry
- type SimpleItemDelegate
Constants ¶
This section is empty.
Variables ¶
View Source
var ( )
View Source
var ( Version = "unknown" // use this default client for all requests, // it will add the dbc user-agent to all requests DefaultClient = http.DefaultClient )
Functions ¶
func SignedByColumnar ¶
SignedByColumnar returns nil if the library was signed by the columnar public key (embedded in the CLI) or an error otherwise.
Types ¶
type Driver ¶
type Driver struct {
Registry *Registry `yaml:"-"`
Title string `yaml:"name"`
Desc string `yaml:"description"`
License string `yaml:"license"`
Path string `yaml:"path"`
URLs []string `yaml:"urls"`
DocsUrl string `yaml:"docs_url"`
PkgInfo []pkginfo `yaml:"pkginfo"`
}
func GetDriverList ¶
func (Driver) GetPackage ¶
func (Driver) GetWithConstraint ¶
func (Driver) HasNonPrerelease ¶ added in v0.2.0
func (Driver) MaxVersion ¶
func (d Driver) MaxVersion() pkginfo
type FileProgressModel ¶
func NewFileProgress ¶
func NewFileProgress(opts ...progress.Option) FileProgressModel
func (FileProgressModel) Init ¶
func (m FileProgressModel) Init() tea.Cmd
func (*FileProgressModel) SetPercent ¶
func (m *FileProgressModel) SetPercent(written, total int64) tea.Cmd
func (FileProgressModel) View ¶
func (m FileProgressModel) View() string
type PkgInfo ¶
func (PkgInfo) DownloadPackage ¶
func (p PkgInfo) DownloadPackage(prog ProgressFunc) (*os.File, error)
type ProgressFunc ¶
type ProgressFunc func(written, total int64)
type SimpleItemDelegate ¶
type SimpleItemDelegate struct {
Prompt string
}
func (SimpleItemDelegate) Height ¶
func (d SimpleItemDelegate) Height() int
func (SimpleItemDelegate) Spacing ¶
func (d SimpleItemDelegate) Spacing() int
Click to show internal directories.
Click to hide internal directories.
