annotate

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package annotate is the HTTP half of canvas annotations: bind, validate and write one note against a canvas owner key the caller has already authorized. Every canvas level (root, org, stack, env) wraps these two functions with its own authorization, the same shape as the node-position handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c echo.Context, store repo.Store, owner string) error

Delete removes one annotation by id, scoped to the owner so a request can never delete another canvas's note.

func DeleteGroup

func DeleteGroup(c echo.Context, store repo.Store, owner string) error

DeleteGroup removes one group by id, scoped to the owner.

func Save

func Save(c echo.Context, store repo.Store, owner string) error

Save upserts one annotation posted as JSON. The server owns the id: a save without one is a create and gets a fresh uuid. The id always comes back in the response so the client can address the note from then on.

func SaveGroup

func SaveGroup(c echo.Context, store repo.Store, owner string) error

SaveGroup upserts one graph group posted as JSON, same contract as Save: the server mints the id on create and always returns it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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