Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Installer ¶
type Installer interface { // Install adds a rig to a path Install() error // Path is the directory of the installed rig. Path() string // Update updates a rig. Update() error }
Installer provides an interface for installing client rigs.
func FindSource ¶
FindSource determines the correct Installer for the given source.
type LocalInstaller ¶
LocalInstaller installs rigs from the filesystem
func NewLocalInstaller ¶
func NewLocalInstaller(source string, name string) (*LocalInstaller, error)
NewLocalInstaller creates a new LocalInstaller
func (*LocalInstaller) Install ¶
func (i *LocalInstaller) Install() error
Install creates a symlink to the rig directory
func (*LocalInstaller) Path ¶
func (i *LocalInstaller) Path() string
Path is where the rig will be installed into.
func (*LocalInstaller) Update ¶
func (i *LocalInstaller) Update() error
Update updates a local repository, which is a no-op.
type VCSInstaller ¶
VCSInstaller installs rigs from a remote repository
func NewVCSInstaller ¶
func NewVCSInstaller(source, name, version string) (*VCSInstaller, error)
NewVCSInstaller creates a new VCSInstaller.
func (*VCSInstaller) Install ¶
func (i *VCSInstaller) Install() error
Install clones a remote repository to the rig directory
Implements Installer
func (*VCSInstaller) Path ¶
func (i *VCSInstaller) Path() string
Path is where the rig will be installed into.
func (*VCSInstaller) Update ¶
func (i *VCSInstaller) Update() error
Update updates a remote repository
Click to show internal directories.
Click to hide internal directories.