diff options
author | Steve <nilslice@gmail.com> | 2017-02-06 11:47:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 11:47:27 -0800 |
commit | 8da338b766f9a3035f89ca1f89367b0bc5a23f06 (patch) | |
tree | 7439cb9c4e0430bb51e5fe3217ca5630c8c5f4ad /system/addon/addon.go | |
parent | e9747661400953c20f0c9ee7fd3aa003ae8c44af (diff) |
[core] add support for DB indexes (#62)
* fix typo in log message
* update namespace to use prefix __index_ to avoid possible user conflicts
Diffstat (limited to 'system/addon/addon.go')
-rw-r--r-- | system/addon/addon.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/addon/addon.go b/system/addon/addon.go index 51be9dc..5414d6f 100644 --- a/system/addon/addon.go +++ b/system/addon/addon.go @@ -163,6 +163,11 @@ func Disable(key string) error { return nil } +// KeyFromMeta creates a unique string identifier for an addon based on its url and name +func KeyFromMeta(meta Meta) (string, error) { + return reverseDNS(meta) +} + func setStatus(key, status string) error { a, err := db.Addon(key) if err != nil { |