attachment

package
v0.0.0-...-d0e302c Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttachmentChecksumPrefix = `mark:checksum: `
)

Variables

This section is empty.

Functions

func CompileAttachmentLinks(markdown []byte, attachments []Attachment) []byte

func GetChecksum

func GetChecksum(reader io.Reader) (string, error)

Types

type Attacher

type Attacher interface {
	Attach(Attachment)
}

type Attachment

type Attachment struct {
	ID        string
	Name      string
	Filename  string
	FileBytes []byte
	Checksum  string
	Link      string
	Width     string
	Height    string
	Replace   string
}

func ResolveAttachments

func ResolveAttachments(
	api *confluence.API,
	page *confluence.PageInfo,
	attachments []Attachment,
) ([]Attachment, error)

func ResolveLocalAttachments

func ResolveLocalAttachments(opener vfs.Opener, base string, replacements []string) ([]Attachment, error)

Jump to

Keyboard shortcuts

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