aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-06-01 17:20:22 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-06-01 17:20:22 +0200
commit25a4517383c03540bd3d7695e14f60c1bb20da2d (patch)
tree5f3df59b6c20162b68d8881199da2f6b9439ed40 /skate/cmd
parent00c08c0776972544bfae315b50081596079214f2 (diff)
downloadrefcat-25a4517383c03540bd3d7695e14f60c1bb20da2d.tar.gz
refcat-25a4517383c03540bd3d7695e14f60c1bb20da2d.zip
add mapper: MapperReleaseContainerName
Diffstat (limited to 'skate/cmd')
-rw-r--r--skate/cmd/skate-map/main.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/skate/cmd/skate-map/main.go b/skate/cmd/skate-map/main.go
index 572ecec..060e324 100644
--- a/skate/cmd/skate-map/main.go
+++ b/skate/cmd/skate-map/main.go
@@ -67,15 +67,16 @@ func main() {
availableMappers := map[string]skate.Mapper{
// Add new mapper functions here. TODO: add more docs, and improve
// composability, e.g. like middleware.
- "id": skate.Identity,
- "ff": skate.CreateFixedMapper(*extraValue),
- "ti": skate.MapperTitle,
- "tn": skate.MapperTitleNormalized,
- "ty": skate.MapperTitleNysiis,
- "ts": skate.MapperTitleSandcrawler,
- "ru": skate.MapperURLFromRef,
- "cni": skate.MapperContainerName,
- "cns": skate.MapperContainerNameSandcrawler,
+ "id": skate.Identity,
+ "ff": skate.CreateFixedMapper(*extraValue),
+ "ti": skate.MapperTitle,
+ "tn": skate.MapperTitleNormalized,
+ "ty": skate.MapperTitleNysiis,
+ "ts": skate.MapperTitleSandcrawler,
+ "ru": skate.MapperURLFromRef,
+ "cni": skate.MapperContainerName,
+ "cns": skate.MapperContainerNameSandcrawler,
+ "rcns": skate.MapperReleaseContainerName,
}
if *logFile != "" {
f, err := os.OpenFile(*logFile, os.O_CREATE|os.O_APPEND, 0644)