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