karakeep

package
v0.95.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package karakeep implements the Karakeep adapter for the bookmark capability.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() bm.Service

func NewWithClient

func NewWithClient(client client) bm.Service

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func (*Adapter) Archive

func (a *Adapter) Archive(ctx context.Context, id string) (bool, error)

func (*Adapter) AttachTags

func (a *Adapter) AttachTags(ctx context.Context, id string, tags []string) error

func (*Adapter) CheckURL

func (a *Adapter) CheckURL(ctx context.Context, url string) (bool, string, error)

func (*Adapter) Create

func (a *Adapter) Create(ctx context.Context, url string) (*ability.Bookmark, error)

func (*Adapter) Delete

func (*Adapter) Delete(ctx context.Context, id string) error

func (*Adapter) DetachTags

func (a *Adapter) DetachTags(ctx context.Context, id string, tags []string) error

func (*Adapter) Get

func (a *Adapter) Get(ctx context.Context, id string) (*ability.Bookmark, error)

func (*Adapter) List

func (*Adapter) Search

func (*Adapter) SetCursorSecret

func (a *Adapter) SetCursorSecret(secret []byte)

type Webhook

type Webhook struct {
	// contains filtered or unexported fields
}

Webhook implements ability.WebhookConverter for Karakeep. It validates Bearer token auth and converts Karakeep webhook payloads.

func NewWebhook

func NewWebhook() *Webhook

NewWebhook creates a Webhook that reads the Bearer token from provider config lazily at verification time (following the example webhook pattern).

func (*Webhook) Convert

func (*Webhook) Convert(body []byte, _ map[string]string) ([]types.DataEvent, error)

Convert transforms the raw Karakeep webhook body into a DataEvent record. The headers parameter is accepted for interface compliance but unused.

func (*Webhook) VerifySignature

func (w *Webhook) VerifySignature(headers map[string]string, _ []byte) error

VerifySignature validates the Bearer token from the Authorization header. The body parameter is accepted for interface compliance but unused (Bearer auth does not sign the body).

func (*Webhook) WebhookPath

func (*Webhook) WebhookPath() string

WebhookPath returns the URL path segment for Karakeep webhooks. The full URL is /webhook/provider/karakeep/events.

Jump to

Keyboard shortcuts

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