func (pm *Manager) createFromContext(ctx context.Context, tarCtx io.Reader, pluginDir, repoName string, p *v2.Plugin) error { if err := chrootarchive.Untar(tarCtx, pluginDir, nil); err != nil { return err } if err := p.InitPlugin(); err != nil { return err } if err := pm.pluginStore.Add(p); err != nil { return err } pm.pluginEventLogger(p.GetID(), repoName, "create") return nil }