Documentation
¶
Overview ¶
Package karakeep implements the Karakeep adapter for the bookmark capability.
Index ¶
- func New() bm.Service
- func NewWithClient(client client) bm.Service
- type Adapter
- func (a *Adapter) Archive(ctx context.Context, id string) (bool, error)
- func (a *Adapter) AttachTags(ctx context.Context, id string, tags []string) error
- func (a *Adapter) CheckURL(ctx context.Context, url string) (bool, string, error)
- func (a *Adapter) Create(ctx context.Context, url string) (*ability.Bookmark, error)
- func (*Adapter) Delete(ctx context.Context, id string) error
- func (a *Adapter) DetachTags(ctx context.Context, id string, tags []string) error
- func (a *Adapter) Get(ctx context.Context, id string) (*ability.Bookmark, error)
- func (a *Adapter) List(ctx context.Context, q *bm.ListQuery) (*ability.ListResult[ability.Bookmark], error)
- func (a *Adapter) Search(ctx context.Context, q *bm.SearchQuery) (*ability.ListResult[ability.Bookmark], error)
- func (a *Adapter) SetCursorSecret(secret []byte)
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithClient ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) AttachTags ¶
func (*Adapter) DetachTags ¶
func (*Adapter) Search ¶
func (a *Adapter) Search(ctx context.Context, q *bm.SearchQuery) (*ability.ListResult[ability.Bookmark], error)
func (*Adapter) SetCursorSecret ¶
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 ¶
Convert transforms the raw Karakeep webhook body into a DataEvent record. The headers parameter is accepted for interface compliance but unused.
func (*Webhook) VerifySignature ¶
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 ¶
WebhookPath returns the URL path segment for Karakeep webhooks. The full URL is /webhook/provider/karakeep/events.