Skip to content

Commit 64a09ad

Browse files
committed
Support fields "created" and "origin" for backup storages, fixes #45
1 parent 8cbc8bc commit 64a09ad

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

upcloud/storage.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package upcloud
22

3-
import "encoding/xml"
3+
import (
4+
"encoding/xml"
5+
"time"
6+
)
47

58
// Constants
69
const (
@@ -54,6 +57,9 @@ type Storage struct {
5457
Type string `xml:"type"`
5558
UUID string `xml:"uuid"`
5659
Zone string `xml:"zone"`
60+
// Only for type "backup":
61+
Origin string `xml:"origin"`
62+
Created time.Time `xml:"created"`
5763
}
5864

5965
// StorageDetails represents detailed information about a piece of storage

0 commit comments

Comments
 (0)