node-api/glue/types.go
Adam Štrauch e58d6462a9
All checks were successful
continuous-integration/drone/push Build is passing
Massive handlers refactoring
Taking logic from handler into glue module
Add tests for apps
Updated docker library
2022-02-06 00:01:05 +01:00

16 lines
454 B
Go

package glue
import "github.com/rosti-cz/node-api/apps"
// 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