feat: first pass at registry plugin

This commit is contained in:
Jose Diaz-Gonzalez
2021-03-04 20:44:49 -05:00
parent 518337812f
commit a755f69e92
12 changed files with 429 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package registry
import (
"fmt"
"github.com/dokku/dokku/plugins/common"
)
// TriggerInstall runs the install step for the registry plugin
func TriggerInstall() error {
if err := common.PropertySetup("registry"); err != nil {
return fmt.Errorf("Unable to install the registry plugin: %s", err.Error())
}
return nil
}
// TriggerPostDelete destroys the registry property for a given app container
func TriggerPostDelete(appName string) error {
return common.PropertyDestroy("registry", appName)
}