model

package
v0.0.0-...-01c1a50 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	RelPath  string // key
	RepoName string
}

func (*Package) IsRPM

func (pkg *Package) IsRPM() bool

type PersistablePackage

type PersistablePackage struct {
	Package
}

func (*PersistablePackage) Serial

func (pp *PersistablePackage) Serial() ([]byte, []byte, error)

type PersistableRepo

type PersistableRepo struct {
	Repo
}

func (*PersistableRepo) Serial

func (pr *PersistableRepo) Serial() ([]byte, []byte, error)

type Repo

type Repo struct {
	Name     string
	AbsPath  string              // key
	Packages map[string]*Package // relative paths of packages
}

func (*Repo) AddPackage

func (repo *Repo) AddPackage(pkg *Package) error

func (*Repo) GetPackage

func (repo *Repo) GetPackage(relPath string) (*Package, error)

GetPackage gets a package from a repo.

func (*Repo) RmPackage

func (repo *Repo) RmPackage(path string) error

func (*Repo) SetPackages

func (repo *Repo) SetPackages(pkgs []*Package) error

Jump to

Keyboard shortcuts

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