Documentation
¶
Index ¶
- type ArchiveHandler
- type ArchiveHandlerFactory
- type ErrHandler
- type ExecPermissionHandler
- type GithubRealease
- type GithubReleaseAsset
- type GithubReleaseHandler
- func (g *GithubReleaseHandler) DownloadAssetFromLatestVersion(repo string, assetName string, filepath string) (GithubReleaseWithAsset, error)
- func (g *GithubReleaseHandler) LatestVersion(repo string) (GithubRealease, error)
- func (g *GithubReleaseHandler) LatestVersionWithAssets(repo string) (GithubReleaseWithAssets, error)
- type GithubReleaseWithAsset
- type GithubReleaseWithAssets
- type InstallsListHandler
- type JsonInstallsHandler
- type LinkHander
- type NativeArchiveHandlerFactory
- type NpmHandler
- type SymbolicLinkHandler
- type TarHandler
- type UnixExecPermissionHandler
- type ZipHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveHandler ¶
type ArchiveHandlerFactory ¶
type ArchiveHandlerFactory interface {
GetHandler(filename string) (ArchiveHandler, error)
}
type ExecPermissionHandler ¶
type GithubRealease ¶
type GithubReleaseAsset ¶
type GithubReleaseHandler ¶
type GithubReleaseHandler struct {
// contains filtered or unexported fields
}
func NewGitReleaseHandler ¶
func NewGitReleaseHandler(logger loggers.Logger) *GithubReleaseHandler
func (*GithubReleaseHandler) DownloadAssetFromLatestVersion ¶
func (g *GithubReleaseHandler) DownloadAssetFromLatestVersion(repo string, assetName string, filepath string) (GithubReleaseWithAsset, error)
func (*GithubReleaseHandler) LatestVersion ¶
func (g *GithubReleaseHandler) LatestVersion(repo string) (GithubRealease, error)
func (*GithubReleaseHandler) LatestVersionWithAssets ¶
func (g *GithubReleaseHandler) LatestVersionWithAssets(repo string) (GithubReleaseWithAssets, error)
type GithubReleaseWithAsset ¶
type GithubReleaseWithAsset struct {
GithubRealease
Asset GithubReleaseAsset
}
type GithubReleaseWithAssets ¶
type GithubReleaseWithAssets struct {
GithubRealease
Assets []GithubReleaseAsset
}
type InstallsListHandler ¶
type JsonInstallsHandler ¶
type JsonInstallsHandler struct {
// contains filtered or unexported fields
}
func NewJsonInstallsHandler ¶
func NewJsonInstallsHandler(runtimeConf runtime.Conf) *JsonInstallsHandler
func (*JsonInstallsHandler) GetInstalls ¶
func (j *JsonInstallsHandler) GetInstalls() (map[string](*string), error)
func (*JsonInstallsHandler) SetVersion ¶
func (j *JsonInstallsHandler) SetVersion(id string, version *string) error
type LinkHander ¶
type NativeArchiveHandlerFactory ¶
type NativeArchiveHandlerFactory struct{}
func NewNativeArchiveHandlerFactory ¶
func NewNativeArchiveHandlerFactory() *NativeArchiveHandlerFactory
func (*NativeArchiveHandlerFactory) GetHandler ¶
func (f *NativeArchiveHandlerFactory) GetHandler(filename string) (ArchiveHandler, error)
type NpmHandler ¶
type NpmHandler struct {
// contains filtered or unexported fields
}
func NewNpmHandler ¶
func NewNpmHandler(logger loggers.Logger) *NpmHandler
func (*NpmHandler) GetLatestVersion ¶
func (h *NpmHandler) GetLatestVersion(pkg string) (string, error)
func (*NpmHandler) Install ¶
func (h *NpmHandler) Install(pkg string) error
func (*NpmHandler) Remove ¶
func (h *NpmHandler) Remove(pkg string) error
func (*NpmHandler) Update ¶
func (h *NpmHandler) Update(pkg string) error
type SymbolicLinkHandler ¶
type SymbolicLinkHandler struct{}
func NewSymbolicLinkHandler ¶
func NewSymbolicLinkHandler() *SymbolicLinkHandler
func (*SymbolicLinkHandler) CreateLink ¶
func (s *SymbolicLinkHandler) CreateLink(source string, destination string) error
type TarHandler ¶
type TarHandler struct {
// contains filtered or unexported fields
}
Tar handler
func NewTarHandler ¶
func NewTarHandler(filename string) *TarHandler
type UnixExecPermissionHandler ¶
type UnixExecPermissionHandler struct{}
func NewUnixExecPermissionHandler ¶
func NewUnixExecPermissionHandler() *UnixExecPermissionHandler
func (*UnixExecPermissionHandler) SetPermission ¶
func (s *UnixExecPermissionHandler) SetPermission(filepath string) error
type ZipHandler ¶
type ZipHandler struct{}
Zip handler
func NewZipHandler ¶
func NewZipHandler() *ZipHandler
Click to show internal directories.
Click to hide internal directories.