Documentation ¶
Index ¶
- type LocalExtension
- type Manager
- func (e *Manager) ChangeExtension(path string)
- func (e *Manager) CurrentExt() *LocalExtension
- func (e *Manager) Exit()
- func (e *Manager) InstallExtension(extension RemoteExtension, override bool) error
- func (e *Manager) ListLocalExtension() []*LocalExtension
- func (e *Manager) ListLocalExtensionWithoutAction() []*LocalExtension
- func (e *Manager) ListRemoteExtension() []*RemoteExtensionResp
- func (e *Manager) Refresh()
- func (e *Manager) RefreshExtension()
- func (e *Manager) RefreshLocal()
- func (e *Manager) Upgrade(ext *LocalExtension) (*object.Commit, error)
- type RemoteAction
- type RemoteExtension
- type RemoteExtensionResp
- type ShortManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalExtension ¶
type LocalExtension struct { RemoteExtension FullPath string `json:"fullPath"` DirName string `json:"dirName"` Shortcut string `json:"shortcut"` Action RemoteAction `json:"action"` RunCount int64 `json:"runCount"` }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(shortManager ShortManager) *Manager
func (*Manager) ChangeExtension ¶
func (*Manager) CurrentExt ¶
func (e *Manager) CurrentExt() *LocalExtension
func (*Manager) InstallExtension ¶
func (e *Manager) InstallExtension(extension RemoteExtension, override bool) error
func (*Manager) ListLocalExtension ¶
func (e *Manager) ListLocalExtension() []*LocalExtension
func (*Manager) ListLocalExtensionWithoutAction ¶
func (e *Manager) ListLocalExtensionWithoutAction() []*LocalExtension
func (*Manager) ListRemoteExtension ¶
func (e *Manager) ListRemoteExtension() []*RemoteExtensionResp
func (*Manager) RefreshExtension ¶
func (e *Manager) RefreshExtension()
func (*Manager) RefreshLocal ¶
func (e *Manager) RefreshLocal()
type RemoteAction ¶
type RemoteExtension ¶
type RemoteExtensionResp ¶
type RemoteExtensionResp struct { RemoteExtension Installed bool `json:"installed"` FullPath string `json:"fullPath"` }
type ShortManager ¶
Click to show internal directories.
Click to hide internal directories.