update-depiction

command
v0.0.22 Latest Latest
Warning

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

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

Documentation

Overview

update-depiction is a command-tool for applying geotagging updates to one or more depictions. For example:

$> cat fixtures/geotag/1527827539.geojson | bin/update-depiction \
	-depiction-id 1527827539 -parent-id 1159396131 \
	-depiction-reader-uri repo:///usr/local/sfomuseum/go-sfomuseum-geotag/fixtures/sfomuseum-data-media-collection \
	-subject-reader-uri repo:///usr/local/sfomuseum/go-sfomuseum-geotag/fixtures/sfomuseum-data-collection \
	-parent-reader-uri repo:///usr/local/sfomuseum/go-sfomuseum-geotag/fixtures/sfomuseum-data-architecture

Or, reading from the default remote endpoints and updating local data:

$> cat fixtures/geotag/1527827539.geojson | bin/update-depiction \
	-depiction-id 1527827539 -parent-id 1159396131 \
	-depiction-writer-uri repo:///usr/local/data/sfomuseum-data-media-collection \
	-subject-writer-uri repo:///usr/local/data/sfomuseum-data-collection

Or, reading and writing to the default remote endpoints:

$> cat fixtures/geotag/1527827539.geojson | bin/update-depiction \
	-depiction-id 1527827539 -parent-id 1159396131 \
	-access-token 'file:///usr/local/sfomuseum/lockedbox/github/geotag'

This tool may still change. Specifically rather than reading depiction and parent parameters from flags and "geotag" records from STDIN, it may be updated to expect one or more JSON-encoded `geotag.Depiction` records as series of paths or read from STDIN in concert with a `-stdin` flag. This would allow the tool to be run as a Lambda function reading files from S3 (or any valid gocloud.dev/blob source).

Jump to

Keyboard shortcuts

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