Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultCellar() string
- func LinkTree(targetRoot, root string) error
- type Binary
- type Checksum
- type Downloader
- type HomebrewRelocator
- type InstallReceipt
- type InstallablePackage
- type License
- type Manifest
- type Options
- type Package
- type PackageURL
- type Resolution
- type ResolvedPackage
- type Resolver
- type RuntimeDep
- type System
- type Tab
- type Unpacker
Constants ¶
View Source
const ReceiptJson = "INSTALL_RECEIPT.json"
Variables ¶
View Source
var ( MacOSVersion string RequireCodeSign bool )
Functions ¶
func DefaultCellar ¶
func DefaultCellar() string
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func (*Downloader) Prep ¶
func (d *Downloader) Prep(urls []PackageURL) (int64, error)
func (*Downloader) Stage ¶
func (d *Downloader) Stage(dir string, urls []PackageURL) (map[string]string, error)
type HomebrewRelocator ¶
type HomebrewRelocator struct {
Cellar string
}
func (*HomebrewRelocator) Relocate ¶
func (h *HomebrewRelocator) Relocate(pkg *ResolvedPackage, root string) error
type InstallReceipt ¶
type InstallReceipt struct {
ChangedFiles []string `json:"changed_files"`
}
type InstallablePackage ¶
type InstallablePackage struct {
// contains filtered or unexported fields
}
func (*InstallablePackage) DependencyNames ¶
func (i *InstallablePackage) DependencyNames() []string
func (*InstallablePackage) Install ¶
func (i *InstallablePackage) Install(tmpdir string) error
func (*InstallablePackage) Name ¶
func (i *InstallablePackage) Name() string
func (*InstallablePackage) Version ¶
func (i *InstallablePackage) Version() string
type Package ¶
type Package struct { Name string `json:"name"` Description string `json:"description"` Url string `json:"url"` Version string `json:"version"` License *License `json:"license"` Checksum *Checksum `json:"checksum"` Dependencies []string `json:"dependencies"` Binaries []*Binary `json:"binaries"` Path string }
type PackageURL ¶
type Resolution ¶
type Resolution struct { Cellar string ToInstall []*ResolvedPackage }
func (*Resolution) ComputeURLs ¶
func (r *Resolution) ComputeURLs() ([]PackageURL, error)
func (*Resolution) Explain ¶
func (r *Resolution) Explain(w io.Writer, d *Downloader) error
func (*Resolution) PruneInstalled ¶
func (r *Resolution) PruneInstalled()
type ResolvedPackage ¶
type ResolvedPackage struct { Package Installed bool IncludedBy []*ResolvedPackage IncludedByNames []string DepedentPackages []*ResolvedPackage }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve() (*Resolution, error)
type RuntimeDep ¶
type Tab ¶
type Tab struct { Version string `json:"homebrew_version"` ChangedFiles []string `json:"changed_files"` ModTime int64 `json:"source_modified_time"` Compiler string `json:"compiler"` Arch string `json:"arch"` RuntimeDeps []*RuntimeDep `json:"runtime_dependencies"` BuiltOn struct { OS string `json:"os"` OSVersion string `json:"os_version"` CPU string `json:"cpu_family"` XCode string `json:"xcode"` CLT string `json:"clt"` } `json:"built_on"` }
Click to show internal directories.
Click to hide internal directories.