Documentation ¶
Index ¶
- type Author
- type Notification
- type Packager
- func (p *Packager) AllPlugins() ([]Plugin, error)
- func (p *Packager) AppFromId(id string) (*struct{}, error)
- func (p *Packager) CheckForPluginUpdates() ([]*PluginUpdate, error)
- func (p *Packager) CreatePluginDirectory() error
- func (p *Packager) DecodeProviders(url string) ([]*Provider, error)
- func (p *Packager) DecodeStore() ([]*SimplePlugin, error)
- func (p *Packager) ExecuteUpdate(update *PluginUpdate) error
- func (p *Packager) GetApps() ([]*struct{}, error)
- func (p *Packager) GetServers() ([]*Provider, error)
- func (p *Packager) GetTrackers() ([]*Provider, error)
- func (p *Packager) InstallPlugin(repo string) error
- func (p *Packager) LoadPlugins() framework.View
- func (p *Packager) ServerFromId(id string) (*Provider, error)
- func (p *Packager) TrackerFromId(id string) (*Provider, error)
- func (p *Packager) UninstallPlugin(id string) error
- type Plugin
- type PluginUpdate
- type Provider
- type SimplePlugin
- type Tile
- type Viewer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶ added in v0.1.2
type Packager ¶
type Packager struct { API string Plugin string Debug bool // contains filtered or unexported fields }
Packager is an object that returns providers from getmelange.com
func (*Packager) AllPlugins ¶
func (*Packager) AppFromId ¶
AppFromId will (in the future) return the Application associated with a particular id.
func (*Packager) CheckForPluginUpdates ¶
func (p *Packager) CheckForPluginUpdates() ([]*PluginUpdate, error)
func (*Packager) CreatePluginDirectory ¶
func (*Packager) DecodeProviders ¶
func (*Packager) DecodeStore ¶
func (p *Packager) DecodeStore() ([]*SimplePlugin, error)
func (*Packager) ExecuteUpdate ¶
func (p *Packager) ExecuteUpdate(update *PluginUpdate) error
func (*Packager) GetServers ¶
GetServers will download Servers from getmelange.com.
func (*Packager) GetTrackers ¶
GetTrackers will download Trackers from getmelange.com.
func (*Packager) InstallPlugin ¶
func (*Packager) LoadPlugins ¶
func (*Packager) ServerFromId ¶
ServerFromId will return the Provider instance associated with a particular Id.
func (*Packager) TrackerFromId ¶
TrackerFromId will return the Provider instance associated with a particular Id.
func (*Packager) UninstallPlugin ¶
type Plugin ¶
type Plugin struct { Id string `json:"id"` Name string `json:"name"` Version string `json:"version"` Description string `json:"description"` Permissions map[string][]string `json:"permissions"` Notifications map[string]*Notification `json:"notifications"` Author Author `json:"author"` Homepage string `json:"homepage"` HideSidebar bool `json:"hideSidebar"` Tiles map[string]Tile `json:"tiles"` Viewers map[string]Viewer `json:"viewers"` }
type PluginUpdate ¶
type Provider ¶
type Provider struct { Id string `json:"id"` // Metadata Name string `json:"name"` Description string `json:"description"` Image string `json:"image"` URL string `json:"url"` // Addressing Properties Alias string `json:"alias"` Fingerprint string `json:"fingerprint"` EncryptionKey string `json:"encryption_key"` // Random Proof string `json:"proof"` Users int `json:"users"` Key *identity.Address `json:"-"` }
Provider is a JSON Object that represents either a Server or a Tracker. It is used to pass information from getmelange.com to the Melange client.
func (*Provider) LoadDefaults ¶
LoadDefaults will do several things on a provider. 1. Create an ID Based on its Name, URL, and Fingerprint 2. Set a default image for the Melange Client. 3. Create the (*identity).Address