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