attachment

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadPageAssets

func UploadPageAssets(upserter Upserter, pageID string, assets []Asset) error

UploadPageAssets uploads assets for a page and stops at the first failure.

Types

type Asset

type Asset struct {
	Filename   string
	SourcePath string
}

Asset describes a local image file to be uploaded as a Confluence attachment.

func ResolveMarkdownImageAssets

func ResolveMarkdownImageAssets(storage, bodyFilePath, assetsRoot string) (string, []Asset, error)

ResolveMarkdownImageAssets rewrites local image URL references in storage to attachment references.

type Upserter

type Upserter interface {
	UpsertPageAttachment(pageID, filename, sourcePath string) error
}

Upserter uploads or updates page attachments.

Jump to

Keyboard shortcuts

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