impl.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package bundle_packager
  2. import (
  3. "github.com/langgenius/dify-plugin-daemon/internal/types/entities/bundle_entities"
  4. "github.com/langgenius/dify-plugin-daemon/internal/types/entities/manifest_entities"
  5. )
  6. type BundlePackagerImpl struct {
  7. bundle *bundle_entities.Bundle
  8. }
  9. func NewBundlePackager(zip []byte) BundlePackager {
  10. return nil
  11. }
  12. func (p *BundlePackagerImpl) Export() ([]byte, error) {
  13. return nil, nil
  14. }
  15. func (p *BundlePackagerImpl) Icon() ([]byte, error) {
  16. return nil, nil
  17. }
  18. func (p *BundlePackagerImpl) Manifest() (*bundle_entities.Bundle, error) {
  19. return p.bundle, nil
  20. }
  21. func (p *BundlePackagerImpl) Regenerate(bundle bundle_entities.Bundle) error {
  22. return nil
  23. }
  24. func (p *BundlePackagerImpl) AppendGithubDependency(repoPattern bundle_entities.GithubRepoPattern) {
  25. }
  26. func (p *BundlePackagerImpl) AppendMarketplaceDependency(marketplacePattern bundle_entities.MarketplacePattern) {
  27. }
  28. func (p *BundlePackagerImpl) AppendPackageDependency(packagePath string) {
  29. }
  30. func (p *BundlePackagerImpl) ListDependencies() ([]bundle_entities.Dependency, error) {
  31. return nil, nil
  32. }
  33. func (p *BundlePackagerImpl) Remove(index int) error {
  34. return nil
  35. }
  36. func (p *BundlePackagerImpl) BumpVersion(target manifest_entities.Version) {
  37. }