Esempio n. 1
0
func makeManifestJson(batch *metadata.LoadBatch) ([]byte, error) {
	m := manifest{}
	for _, k := range batch.Loads {
		m.Entries = append(m.Entries,
			entry{URL: common.NormalizeS3URL(k.KeyName),
				Mandatory: true},
		)
	}

	return json.Marshal(m)
}
Esempio n. 2
0
func manifestUrl(bucketName, uuid string) string {
	return common.NormalizeS3URL(bucketName + "/" + uuid + ".json")
}