source

package
v0.0.0-...-043d1ac Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: AGPL-3.0-or-later, GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAll

func GetAll() (sources map[string]*Source, keys set.Set, err error)

Types

type Source

type Source struct {
	Name     string   `bson:"name"`
	SubNames []string `bson:"sub_names"`
	Version  string   `bson:"version"`
	Release  string   `bson:"release"`
	Repo     string   `bson:"repo"`
	Arch     string   `bson:"arch"`
	Path     string   `bson:"path"`
}

func (*Source) FullVersion

func (s *Source) FullVersion() string

func (*Source) Key

func (s *Source) Key() string

func (*Source) Keys

func (s *Source) Keys() []string

func (*Source) Queue

func (s *Source) Queue(db *database.Database, force bool) (
	queued bool, err error)

func (*Source) Remove

func (s *Source) Remove(db *database.Database) (err error)

func (*Source) Upsert

func (s *Source) Upsert(db *database.Database) (err error)

Jump to

Keyboard shortcuts

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