mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-16 12:08:04 +00:00
Don't expose UUIDs in API. #168
Probably we should expose sources, but not as UUIDs. TODO.
This commit is contained in:
+3
-3
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user