prism

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 6 Imported by: 0

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

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

func NewProvider(client *aha.Client, productID string) *Provider

NewProvider creates a new Aha.io canvas provider.

func (*Provider) CreateCanvas

func (p *Provider) CreateCanvas(ctx context.Context, c *canvas.Canvas) (string, error)

CreateCanvas creates a new canvas in Aha.io as a Strategic Model.

func (*Provider) DeleteCanvas

func (p *Provider) DeleteCanvas(ctx context.Context, externalID string) error

DeleteCanvas removes a canvas from Aha.io. Note: Aha API may not support deletion; this returns an error if unsupported.

func (*Provider) GetCanvas

func (p *Provider) GetCanvas(ctx context.Context, externalID string) (*canvas.Canvas, error)

GetCanvas retrieves a canvas from Aha.io.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the provider identifier.

func (*Provider) SupportedTypes

func (p *Provider) SupportedTypes() []canvas.CanvasType

SupportedTypes returns the canvas types supported by Aha Strategic Models.

func (*Provider) UpdateCanvas

func (p *Provider) UpdateCanvas(ctx context.Context, externalID string, c *canvas.Canvas) error

UpdateCanvas updates an existing canvas in Aha.io.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL