Documentation ¶
Index ¶
- type Checksum
- type File
- type Filelists
- type FilelistsPackage
- type Location
- type Other
- type OtherChangelog
- type OtherPackage
- type Package
- type PackageInfo
- type PackageInfos
- type Primary
- type PrimaryFormat
- type PrimaryFormatEntry
- type PrimaryFormatHeaderRange
- type PrimaryPackage
- type PrimarySize
- type PrimaryTime
- type RepoData
- type Repomd
- type RepomdData
- type RepomdRequirements
- type RpmRepo
- func (r *RpmRepo) CreateBaseDir() error
- func (r *RpmRepo) CreateRepoData(packages PackageInfos) (RepoData, error)
- func (r *RpmRepo) Dump(data RepoData, distroName string, version string, arch string) error
- func (r *RpmRepo) GetFilelists(packages PackageInfos) Filelists
- func (r *RpmRepo) GetOther(packages PackageInfos) Other
- func (r *RpmRepo) GetPrimary(packages PackageInfos) Primary
- func (r *RpmRepo) GetRepomd(in map[string]RepomdRequirements) Repomd
- func (r *RpmRepo) GetXML(in interface{}) (out []byte, size int, checksum string, err error)
- func (r *RpmRepo) GetZip(in []byte) (out []byte, size int, checksum string)
- func (r *RpmRepo) ReadFlags(f int) string
- func (r *RpmRepo) ReindexPackages() error
- func (r *RpmRepo) Repository(uploaded []byte, uploadedName string, distroName string, version string, ...) error
- func (r *RpmRepo) SavePackage(data io.Reader, pkg string, distroName string, version string, arch string) error
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filelists ¶
type Filelists struct { XMLName xml.Name `xml:"filelists"` Packages int `xml:"packages"` Package []FilelistsPackage `xml:"package"` Xmlns string `xml:"xmlns,attr"` }
type FilelistsPackage ¶
type Other ¶
type Other struct { XMLName xml.Name `xml:"otherdata"` Packages int `xml:"packages"` Package []OtherPackage `xml:"package"` Xmlns string `xml:"xmlns,attr"` }
type OtherChangelog ¶
type OtherPackage ¶
type OtherPackage struct { Changelog []OtherChangelog `xml:"changelog"` Package }
type PackageInfo ¶
type PackageInfo struct { Path string rpm.PackageFile }
type PackageInfos ¶
type PackageInfos map[string]PackageInfo
type PrimaryFormat ¶
type PrimaryFormat struct { License string `xml:"rpm:license"` Vendor string `xml:"rpm:vendor"` Groups []string `xml:"rpm:group"` Buildhost string `xml:"rpm:buildhost"` SourceRPM string `xml:"rpm:sourcerpm"` HeaderRange PrimaryFormatHeaderRange `xml:"rpm:heander-range"` Provides []PrimaryFormatEntry `xml:"rpm:provides>rpm:entry"` Requires []PrimaryFormatEntry `xml:"rpm:requires>rpm:entry"` Conflicts []PrimaryFormatEntry `xml:"rpm:conflicts>rpm:entry"` Files []File `xml:"file"` }
type PrimaryFormatEntry ¶
type PrimaryPackage ¶
type PrimaryPackage struct { Type string `xml:"type,attr"` Name string `xml:"name"` Architecture string `xml:"arch"` Version Version `xml:"version"` Checksum Checksum `xml:"checksum"` Summary string `xml:"summary"` Description string `xml:"description"` Packager string `xml:"packager"` URL string `xml:"url"` Time PrimaryTime `xml:"time"` Size PrimarySize `xml:"size"` Format PrimaryFormat `xml:"format"` Location Location `xml:"location"` }
type PrimarySize ¶
type PrimaryTime ¶
type RepomdData ¶
type RepomdRequirements ¶
type RpmRepo ¶
type RpmRepo struct {
// contains filtered or unexported fields
}
func NewRpmBuilder ¶
func NewRpmBuilder(config *config.ServiceConfigBuilder) *RpmRepo
func (*RpmRepo) CreateBaseDir ¶
CreateBaseDir - creates base directory
func (*RpmRepo) CreateRepoData ¶
func (r *RpmRepo) CreateRepoData(packages PackageInfos) (RepoData, error)
func (*RpmRepo) GetFilelists ¶
func (r *RpmRepo) GetFilelists(packages PackageInfos) Filelists
func (*RpmRepo) GetOther ¶
func (r *RpmRepo) GetOther(packages PackageInfos) Other
func (*RpmRepo) GetPrimary ¶
func (r *RpmRepo) GetPrimary(packages PackageInfos) Primary
func (*RpmRepo) ReindexPackages ¶
ReindexPackages - reindex packages on repository server
func (*RpmRepo) Repository ¶
Click to show internal directories.
Click to hide internal directories.