diff --git a/config-host-main.go b/config-host-main.go index 68f66b52..6f7a73bb 100644 --- a/config-host-main.go +++ b/config-host-main.go @@ -44,8 +44,8 @@ EXAMPLES: type HostMessage struct { op string Host string `json:"host"` - AccessKeyID string `json:"access-key-id,omitempty"` - SecretAccessKey string `json:"secret-access-key,omitempty"` + AccessKeyID string `json:"accessKeyId,omitempty"` + SecretAccessKey string `json:"secretAccessKey,omitempty"` } // String string printer for Content metadata diff --git a/ls.go b/ls.go index 7ccd4134..2c080038 100644 --- a/ls.go +++ b/ls.go @@ -39,7 +39,7 @@ const ( // ContentMessage container for content message structure. type ContentMessage struct { Filetype string `json:"type"` - Time time.Time `json:"last-modified"` + Time time.Time `json:"lastModified"` Size int64 `json:"size"` Name string `json:"name"` } diff --git a/session-main.go b/session-main.go index 5a665016..771f00e3 100644 --- a/session-main.go +++ b/session-main.go @@ -83,7 +83,7 @@ func listSessions() *probe.Error { // ClearSessionMessage container for clearing session messages type ClearSessionMessage struct { Status string `json:"success"` - SessionID string `json:"session-id"` + SessionID string `json:"sessionId"` } func (c ClearSessionMessage) String() string { diff --git a/share-duration.go b/share-duration.go index 060b5f6a..e993a3c9 100644 --- a/share-duration.go +++ b/share-duration.go @@ -59,8 +59,8 @@ func (s shareDuration) String() string { return console.Colorize("Share", fmt.Sprintf("Expiry: %s\n URL: %s", durationString(), s.presignedURL)) } shareMessageBytes, err := json.Marshal(struct { - Expires time.Duration `json:"expire-seconds"` - PresignedURL string `json:"presigned-url"` + Expires time.Duration `json:"expireSeconds"` + PresignedURL string `json:"presignedURL"` }{ Expires: time.Duration(s.Seconds()), PresignedURL: s.presignedURL, diff --git a/update-main.go b/update-main.go index 505c54c8..010a8a98 100644 --- a/update-main.go +++ b/update-main.go @@ -59,7 +59,7 @@ type Updates struct { // UpdateMessage container to hold update messages type UpdateMessage struct { Update bool `json:"update"` - Download string `json:"download-url"` + Download string `json:"downloadURL"` Version time.Time `json:"version"` }