Documentation
¶
Index ¶
- Variables
- func Init(interval string, op repository.InfoOperator, c repository.Constructor, ...)
- type Hub
- func (h *Hub) Add(i *repository.Info) error
- func (h *Hub) Delete(name string) (repository.Repository, error)
- func (h *Hub) Get(name string) (repository.Repository, error)
- func (h *Hub) Init(interval string) error
- func (h *Hub) List() []repository.Repository
- func (h *Hub) SetConstructor(c repository.Constructor, args ...interface{})
- func (h *Hub) Uninstall(pluginID string, brief *repository.InstallerBrief) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Init ¶
func Init(interval string, op repository.InfoOperator, c repository.Constructor, d repository.DestroyPlugin, initRepoArgs ...interface{})
Init use Singleton pattern design, generating a new Hub that is globally one assigned to the h variable.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub repository manager hub.
func (*Hub) Delete ¶
func (h *Hub) Delete(name string) (repository.Repository, error)
Delete delete repo.
func (*Hub) SetConstructor ¶
func (h *Hub) SetConstructor(c repository.Constructor, args ...interface{})
SetConstructor overflow constructor.
func (*Hub) Uninstall ¶
func (h *Hub) Uninstall(pluginID string, brief *repository.InstallerBrief) error
Uninstall plugin.
Click to show internal directories.
Click to hide internal directories.