postconsume

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	// Primary database key of the document.
	DocumentID int64

	// Formatted filename, not including paths.
	DocumentFilename string

	// Date and time when the document was created.
	DocumentCreated time.Time

	// Date and time when the document was last modified.
	DocumentModified time.Time

	// Date and time when the document was added.
	DocumentAdded time.Time

	// Path to the original document file.
	DocumentSourcePath string

	// Path to the generated archive file.
	DocumentArchivePath string

	// Path to the generated thumbnail image.
	DocumentThumbnailPath string

	// URL for document download.
	DocumentDownloadURL *url.URL

	// URL for the document thumbnail image.
	DocumentThumbnailURL *url.URL

	// Name of the assigned correspondent.
	DocumentCorrespondent string

	// Names of tags applied to document.
	DocumentTags []string

	// Filename of original document.
	DocumentOriginalFilename string
}

Flags contains attributes for storing the environment variables given to a post-consumption script. The separate "kpflag" package implements bindings for github.com/alecthomas/kingpin/v2.

Jump to

Keyboard shortcuts

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