Documentation
¶
Index ¶
- Constants
- func SignPackage(rpm *buffer.HashedBuffer, privateKey string) (reader io.Reader, signSize int64, original int64, err error)
- type Changelog
- type Client
- type Entry
- type File
- type FileMetadata
- type Package
- type RepoChecksum
- type RepoData
- type RepoLocation
- type Repomd
- type SetupArgs
- type VersionMetadata
Constants ¶
View Source
const ( RepositoryPublicKey = "repository.key" RepositoryPrivateKey = "private.key" )
View Source
const Name = "rpm"
Variables ¶
This section is empty.
Functions ¶
func SignPackage ¶
Types ¶
type Entry ¶
type Entry struct { Name string `json:"name" xml:"name,attr"` Flags string `json:"flags,omitempty" xml:"flags,attr,omitempty"` Version string `json:"version,omitempty" xml:"ver,attr,omitempty"` Epoch string `json:"epoch,omitempty" xml:"epoch,attr,omitempty"` Release string `json:"release,omitempty" xml:"rel,attr,omitempty"` }
type FileMetadata ¶
type FileMetadata struct { Architecture string `json:"architecture,omitempty"` Epoch string `json:"epoch,omitempty"` Version string `json:"version,omitempty"` Release string `json:"release,omitempty"` Vendor string `json:"vendor,omitempty"` Group string `json:"group,omitempty"` Packager string `json:"packager,omitempty"` SourceRpm string `json:"sourceRPM,omitempty"` BuildHost string `json:"buildHost,omitempty"` BuildTime uint64 `json:"buildTime,omitempty"` FileTime uint64 `json:"fileTime,omitempty"` InstalledSize uint64 `json:"installedSize,omitempty"` ArchiveSize uint64 `json:"archiveSize,omitempty"` Provides []*Entry `json:"provide,omitempty"` Requires []*Entry `json:"require,omitempty"` Conflicts []*Entry `json:"conflict,omitempty"` Obsoletes []*Entry `json:"obsolete,omitempty"` Files []*File `json:"files,omitempty"` Changelogs []*Changelog `json:"changelogs,omitempty"` }
type Package ¶
type Package struct { PkgName string `json:"name"` PkgVersion string `json:"version"` VersionMetadata *VersionMetadata `json:"versionMetadata"` FileMetadata *FileMetadata `json:"fileMetadata"` HashSHA256 string `json:"hashSha256"` FileSize int64 `json:"size"` FilePath string `json:"filePath"` // contains filtered or unexported fields }
type RepoChecksum ¶
type RepoData ¶
type RepoData struct { Type string `xml:"type,attr"` Checksum RepoChecksum `xml:"checksum"` OpenChecksum RepoChecksum `xml:"open-checksum"` Location RepoLocation `xml:"location"` Timestamp int64 `xml:"timestamp"` Size int64 `xml:"size"` OpenSize int64 `xml:"open-size"` }
type RepoLocation ¶
type RepoLocation struct {
Href string `xml:"href,attr"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.