digikam

package
v0.0.0-...-685bba1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: BSD-3-Clause, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoPickLabel           PickLabel = "0"
	ItemRejected          PickLabel = "1"
	ItemPendingValidation           = "2"
	ItemAccepted                    = "3"
)

Variables

View Source
var (
	NsDk = xmp.NewNamespace("digiKam", "http://www.digikam.org/ns/1.0/", NewModel)
)

Functions

func NewModel

func NewModel(name string) xmp.Model

Types

type ColorLabel

type ColorLabel string
const (
	NoColorLabel ColorLabel = "0"
	LabelRed     ColorLabel = "1"
	LabelOrange  ColorLabel = "2"
	LabelYellow  ColorLabel = "3"
	LabelGreen   ColorLabel = "4"
	LabelBlue    ColorLabel = "5"
	LabelMagenta ColorLabel = "6"
	LabelGray    ColorLabel = "7"
	LabelBlack   ColorLabel = "8"
	LabelWhite   ColorLabel = "9"
)

type Digikam

type Digikam struct {
	TagsList               xmp.StringList `xmp:"digiKam:TagsList"`
	CaptionsAutorNames     xmp.AltString  `xmp:"digiKam:CaptionsAutorNames"`
	CaptionsDateTimeStamps xmp.AltString  `xmp:"digiKam:CaptionsDateTimeStamps"`
	ImageHistory           string         `xmp:"digiKam:ImageHistory"`
	ImageUniqueID          string         `xmp:"digiKam:ImageUniqueID"`
	LensCorrectionSettings string         `xmp:"digiKam:LensCorrectionSettings"`
	ColorLabel             ColorLabel     `xmp:"digiKam:ColorLabel"`
	PickLabel              PickLabel      `xmp:"digiKam:PickLabel"`
}

func FindModel

func FindModel(d *xmp.Document) *Digikam

func MakeModel

func MakeModel(d *xmp.Document) (*Digikam, error)

func (Digikam) Can

func (x Digikam) Can(nsName string) bool

func (*Digikam) CanTag

func (x *Digikam) CanTag(tag string) bool

func (*Digikam) GetTag

func (x *Digikam) GetTag(tag string) (string, error)

func (Digikam) Namespaces

func (x Digikam) Namespaces() xmp.NamespaceList

func (*Digikam) SetTag

func (x *Digikam) SetTag(tag, value string) error

func (*Digikam) SyncFromXMP

func (x *Digikam) SyncFromXMP(d *xmp.Document) error

func (*Digikam) SyncModel

func (x *Digikam) SyncModel(d *xmp.Document) error

func (Digikam) SyncToXMP

func (x Digikam) SyncToXMP(d *xmp.Document) error

type PickLabel

type PickLabel string

Jump to

Keyboard shortcuts

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