Skip to content

Commit 7f69c85

Browse files
committed
Added ocm 1.2 optional fields (unused for now)
1 parent d8ff782 commit 7f69c85

File tree

1 file changed

+4
-2
lines changed
  • internal/http/services/opencloudmesh/ocmd

1 file changed

+4
-2
lines changed

internal/http/services/opencloudmesh/ocmd/specs.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ type Protocol interface {
108108
type WebDAV struct {
109109
SharedSecret string `json:"sharedSecret" validate:"required"`
110110
Permissions []string `json:"permissions" validate:"required,dive,required,oneof=read write share"`
111+
Requirements []string `json:"requirements"`
111112
URI string `json:"uri" validate:"required"`
112113
}
113114

@@ -135,8 +136,9 @@ func (w *WebDAV) ToOCMProtocol() *ocm.Protocol {
135136

136137
// Webapp contains the parameters for the Webapp protocol.
137138
type Webapp struct {
138-
URI string `json:"uri" validate:"required"`
139-
ViewMode string `json:"viewMode" validate:"required,dive,required,oneof=view read write"`
139+
URI string `json:"uri" validate:"required"`
140+
ViewMode string `json:"viewMode" validate:"required,dive,required,oneof=view read write"`
141+
SharedSecret string `json:"sharedSecret"`
140142
}
141143

142144
// ToOCMProtocol convert the protocol to a ocm Protocol struct.

0 commit comments

Comments
 (0)