Documentation
¶
Overview ¶
Package prism provides integration between aha-go and the PRISM ecosystem.
This package implements the export.CanvasProvider interface from prism-roadmap, allowing canvases to be exported to Aha.io Strategic Models.
Usage ¶
import (
"github.com/grokify/aha-go"
"github.com/grokify/aha-go/prism"
"github.com/grokify/prism-roadmap/canvas/export"
)
// Create Aha client
client, _ := aha.NewClient()
// Create provider
provider := prism.NewProvider(client, "PROD")
// Register with export registry
registry := export.NewRegistry()
registry.Register(provider)
// Export a canvas
externalID, _ := registry.Export(ctx, "aha", myCanvas)
Package prism provides a CanvasProvider implementation for Aha.io Strategic Models. This allows exporting prism-roadmap canvases to Aha.io.
Index ¶
- type Provider
- func (p *Provider) CreateCanvas(ctx context.Context, c *canvas.Canvas) (string, error)
- func (p *Provider) DeleteCanvas(ctx context.Context, externalID string) error
- func (p *Provider) GetCanvas(ctx context.Context, externalID string) (*canvas.Canvas, error)
- func (p *Provider) Name() string
- func (p *Provider) SupportedTypes() []canvas.CanvasType
- func (p *Provider) UpdateCanvas(ctx context.Context, externalID string, c *canvas.Canvas) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements export.CanvasProvider for Aha.io Strategic Models.
func NewProvider ¶
NewProvider creates a new Aha.io canvas provider.
func (*Provider) CreateCanvas ¶
CreateCanvas creates a new canvas in Aha.io as a Strategic Model.
func (*Provider) DeleteCanvas ¶
DeleteCanvas removes a canvas from Aha.io. Note: Aha API may not support deletion; this returns an error if unsupported.
func (*Provider) SupportedTypes ¶
func (p *Provider) SupportedTypes() []canvas.CanvasType
SupportedTypes returns the canvas types supported by Aha Strategic Models.