Documentation ¶
Index ¶
Constants ¶
View Source
const ( PropertyName = "conda.name" PropertyChannel = "conda.channel" PropertySubdir = "conda.subdir" PropertyMetadata = "conda.metadata" )
Variables ¶
View Source
var ( ErrInvalidStructure = util.SilentWrap{Message: "package structure is invalid", Err: util.ErrInvalidArgument} ErrInvalidName = util.SilentWrap{Message: "package name is invalid", Err: util.ErrInvalidArgument} ErrInvalidVersion = util.SilentWrap{Message: "package version is invalid", Err: util.ErrInvalidArgument} )
Functions ¶
This section is empty.
Types ¶
type FileMetadata ¶
type FileMetadata struct { IsCondaPackage bool `json:"is_conda"` Architecture string `json:"architecture,omitempty"` NoArch string `json:"noarch,omitempty"` Build string `json:"build,omitempty"` BuildNumber int64 `json:"build_number,omitempty"` Dependencies []string `json:"dependencies,omitempty"` Platform string `json:"platform,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` }
FileMetadata represents the metadata of a Conda package file
type Package ¶
type Package struct { Name string Version string Subdir string VersionMetadata *VersionMetadata FileMetadata *FileMetadata }
Package represents a Conda package
func ParsePackageBZ2 ¶
ParsePackageBZ2 parses the Conda package file compressed with bzip2
type VersionMetadata ¶
type VersionMetadata struct { Description string `json:"description,omitempty"` Summary string `json:"summary,omitempty"` ProjectURL string `json:"project_url,omitempty"` RepositoryURL string `json:"repository_url,omitempty"` DocumentationURL string `json:"documentation_url,omitempty"` License string `json:"license,omitempty"` LicenseFamily string `json:"license_family,omitempty"` }
VersionMetadata represents the metadata of a Conda package
Click to show internal directories.
Click to hide internal directories.