Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSource ¶
FindSource determines the correct Installer for the given source.
Types ¶
type LocalInstaller ¶
type LocalInstaller struct {
// contains filtered or unexported fields
}
LocalInstaller installs pack repos from the filesystem
func NewLocalInstaller ¶
func NewLocalInstaller(source string, home draftpath.Home) (*LocalInstaller, error)
NewLocalInstaller creates a new LocalInstaller
func (*LocalInstaller) Install ¶
func (i *LocalInstaller) Install() error
Install creates a symlink to the pack repo directory in $DRAFT_HOME
func (*LocalInstaller) Path ¶
func (i *LocalInstaller) Path() string
Path is where the pack repo will be symlinked to.
func (*LocalInstaller) Update ¶
func (i *LocalInstaller) Update() error
Update updates a local repository
type VCSInstaller ¶
VCSInstaller installs packs from a remote repository
func NewVCSInstaller ¶
func NewVCSInstaller(source, version string, home draftpath.Home) (*VCSInstaller, error)
NewVCSInstaller creates a new VCSInstaller.
func (*VCSInstaller) Install ¶
func (i *VCSInstaller) Install() error
Install clones a remote repository and creates a symlink to the pack repo directory in DRAFT_HOME
Implements Installer
func (*VCSInstaller) Path ¶
func (i *VCSInstaller) Path() string
Path is where the pack repo will be symlinked to.
func (*VCSInstaller) Update ¶
func (i *VCSInstaller) Update() error
Update updates a remote repository
Click to show internal directories.
Click to hide internal directories.