2022-02-05 23:01:05 +00:00
|
|
|
package glue
|
|
|
|
|
|
|
|
import "github.com/rosti-cz/node-api/apps"
|
|
|
|
|
2024-01-30 23:16:40 +00:00
|
|
|
const ownerUID = 1000
|
|
|
|
const ownerGID = 1000
|
|
|
|
|
2022-02-05 23:01:05 +00:00
|
|
|
// Path where authorized keys are
|
|
|
|
const sshPubKeysLocation = "/srv/.ssh/authorized_keys"
|
|
|
|
|
|
|
|
// SnapshotMetadata is snapshot structure encapsulation that combines key and metadata about the snapshot
|
|
|
|
type SnapshotMetadata struct {
|
|
|
|
Key string `json:"key"`
|
|
|
|
Metadata apps.Snapshot `json:"metadata"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// SnapshotsMetadata is returned by handlers
|
|
|
|
type SnapshotsMetadata []SnapshotMetadata
|