Don't expose UUIDs in API. #168

Probably we should expose sources, but not as UUIDs. TODO.
This commit is contained in:
Andrey Smirnov
2015-02-06 22:37:14 +03:00
parent ce208f347e
commit f438637a98

View File

@@ -18,15 +18,15 @@ import (
// Snapshot is immutable state of repository: list of packages
type Snapshot struct {
// Persisten internal ID
UUID string
UUID string `json:"-"`
// Human-readable name
Name string
// Date of creation
CreatedAt time.Time
// Source: kind + ID
SourceKind string
SourceIDs []string
SourceKind string `json:"-"`
SourceIDs []string `json:"-"`
// Description of how snapshot was created
Description string