Bump reva to pull in the ocm changes in reva edge.

Fixes #7003
This commit is contained in:
André Duffeck
2023-10-11 11:40:57 +02:00
parent 9e07f2f0d1
commit b6d5cd78f0
210 changed files with 24545 additions and 5573 deletions
@@ -27,58 +27,16 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// REQUIRED.
// View mode.
type OpenInAppRequest_ViewMode int32
const (
OpenInAppRequest_VIEW_MODE_INVALID OpenInAppRequest_ViewMode = 0
// The resource can be opened but not downloaded.
OpenInAppRequest_VIEW_MODE_VIEW_ONLY OpenInAppRequest_ViewMode = 1
// The resource can be downloaded.
OpenInAppRequest_VIEW_MODE_READ_ONLY OpenInAppRequest_ViewMode = 2
// The resource can be downloaded and updated. The underlying application
// MUST be a fully capable editor to support this mode.
OpenInAppRequest_VIEW_MODE_READ_WRITE OpenInAppRequest_ViewMode = 3
// The resource can be downloaded and updated, but must be shown in
// preview mode. If the underlying application does not support a preview mode,
// or if in a view-only mode users are not allowed to switch to edit mode,
// then this mode MUST fall back to READ_WRITE.
OpenInAppRequest_VIEW_MODE_PREVIEW OpenInAppRequest_ViewMode = 4
)
var OpenInAppRequest_ViewMode_name = map[int32]string{
0: "VIEW_MODE_INVALID",
1: "VIEW_MODE_VIEW_ONLY",
2: "VIEW_MODE_READ_ONLY",
3: "VIEW_MODE_READ_WRITE",
4: "VIEW_MODE_PREVIEW",
}
var OpenInAppRequest_ViewMode_value = map[string]int32{
"VIEW_MODE_INVALID": 0,
"VIEW_MODE_VIEW_ONLY": 1,
"VIEW_MODE_READ_ONLY": 2,
"VIEW_MODE_READ_WRITE": 3,
"VIEW_MODE_PREVIEW": 4,
}
func (x OpenInAppRequest_ViewMode) String() string {
return proto.EnumName(OpenInAppRequest_ViewMode_name, int32(x))
}
func (OpenInAppRequest_ViewMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c007b70b037097fe, []int{0, 0}
}
type OpenInAppRequest struct {
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
// REQUIRED.
// The resourceInfo to be opened. The gateway grpc message has a ref instead.
ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"`
ViewMode OpenInAppRequest_ViewMode `protobuf:"varint,3,opt,name=view_mode,json=viewMode,proto3,enum=cs3.app.provider.v1beta1.OpenInAppRequest_ViewMode" json:"view_mode,omitempty"`
ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"`
// REQUIRED.
// View mode.
ViewMode ViewMode `protobuf:"varint,3,opt,name=view_mode,json=viewMode,proto3,enum=cs3.app.provider.v1beta1.ViewMode" json:"view_mode,omitempty"`
// REQUIRED.
// The access token this application provider will use when contacting
// the storage provider to read and write.
@@ -133,11 +91,11 @@ func (m *OpenInAppRequest) GetResourceInfo() *v1beta11.ResourceInfo {
return nil
}
func (m *OpenInAppRequest) GetViewMode() OpenInAppRequest_ViewMode {
func (m *OpenInAppRequest) GetViewMode() ViewMode {
if m != nil {
return m.ViewMode
}
return OpenInAppRequest_VIEW_MODE_INVALID
return ViewMode_VIEW_MODE_INVALID
}
func (m *OpenInAppRequest) GetAccessToken() string {
@@ -210,7 +168,6 @@ func (m *OpenInAppResponse) GetAppUrl() *OpenInAppURL {
}
func init() {
proto.RegisterEnum("cs3.app.provider.v1beta1.OpenInAppRequest_ViewMode", OpenInAppRequest_ViewMode_name, OpenInAppRequest_ViewMode_value)
proto.RegisterType((*OpenInAppRequest)(nil), "cs3.app.provider.v1beta1.OpenInAppRequest")
proto.RegisterType((*OpenInAppResponse)(nil), "cs3.app.provider.v1beta1.OpenInAppResponse")
}
@@ -220,39 +177,35 @@ func init() {
}
var fileDescriptor_c007b70b037097fe = []byte{
// 510 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 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, 0x98, 0xa9, 0xec, 0xe9, 0x38, 0x24, 0x84, 0x65, 0x0a, 0x1f,
0xb4, 0x4c, 0x0d, 0xb6, 0x32, 0xc6, 0xca, 0xa6, 0x63, 0x7c, 0x8f, 0x1e, 0x33, 0x80, 0x20, 0x95,
0x57, 0x3a, 0xf3, 0x46, 0xff, 0xed, 0x06, 0x99, 0x9f, 0xd1, 0x09, 0xad, 0x31, 0x80, 0x33, 0x79,
0xd5, 0x57, 0xa8, 0xe1, 0x1b, 0xd0, 0xf5, 0x3d, 0xbc, 0x40, 0xf5, 0x12, 0xc3, 0x07, 0x9b, 0xcf,
0xaf, 0x79, 0xb8, 0x11, 0x9b, 0x27, 0x33, 0xfc, 0x86, 0xf6, 0x43, 0x71, 0xbd, 0xd6, 0x31, 0xb4,
0xcb, 0x23, 0x41, 0xe4, 0x67, 0xcf, 0xde, 0xb7, 0x3e, 0x3d, 0x2b, 0x28, 0x03, 0xfd, 0xac, 0x54,
0x8f, 0x5c, 0xff, 0x57, 0xc5, 0x39, 0x52, 0x03, 0xe2, 0x02, 0x90, 0xc2, 0x43, 0x66, 0xbd, 0x61,
0x06, 0xfc, 0xd1, 0xd2, 0xdc, 0x05, 0x98, 0x17, 0xd2, 0xdc, 0x48, 0x17, 0x35, 0xfd, 0x33, 0x0d,
0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x27, 0x47, 0xc0, 0x89, 0x2a, 0x04, 0x00, 0x00,
// 438 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0x95, 0x0e, 0x15, 0xea, 0x0e, 0x18, 0xbe, 0x10, 0xaa, 0x21, 0x95, 0x1e, 0x50, 0xb5,
0x21, 0x57, 0x6d, 0x3f, 0xc0, 0x94, 0xee, 0x54, 0x09, 0xd4, 0xc8, 0xb0, 0x1d, 0x50, 0xa5, 0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,
0xd2, 0xd6, 0x4b, 0x37, 0x7d, 0xf7, 0x68, 0x97, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb9, 0xb9,
0x16, 0xb5, 0x92, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
+120 -26
View File
@@ -20,6 +20,80 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Defines the view modes.
type ViewMode int32
const (
ViewMode_VIEW_MODE_INVALID ViewMode = 0
// The resource can be opened but not downloaded.
ViewMode_VIEW_MODE_VIEW_ONLY ViewMode = 1
// The resource can be downloaded.
ViewMode_VIEW_MODE_READ_ONLY ViewMode = 2
// The resource can be downloaded and updated. The underlying application
// MUST be a fully capable editor to support this mode.
ViewMode_VIEW_MODE_READ_WRITE ViewMode = 3
// The resource can be downloaded and updated, but must be shown in
// preview mode. If the underlying application does not support a preview mode,
// or if in a view-only mode users are not allowed to switch to edit mode,
// then this mode MUST fall back to READ_WRITE.
ViewMode_VIEW_MODE_PREVIEW ViewMode = 4
)
var ViewMode_name = map[int32]string{
0: "VIEW_MODE_INVALID",
1: "VIEW_MODE_VIEW_ONLY",
2: "VIEW_MODE_READ_ONLY",
3: "VIEW_MODE_READ_WRITE",
4: "VIEW_MODE_PREVIEW",
}
var ViewMode_value = map[string]int32{
"VIEW_MODE_INVALID": 0,
"VIEW_MODE_VIEW_ONLY": 1,
"VIEW_MODE_READ_ONLY": 2,
"VIEW_MODE_READ_WRITE": 3,
"VIEW_MODE_PREVIEW": 4,
}
func (x ViewMode) String() string {
return proto.EnumName(ViewMode_name, int32(x))
}
func (ViewMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f3a36ae8e74be4dc, []int{0}
}
// Defines the valid targets for an app URL.
type Target int32
const (
Target_TARGET_INVALID Target = 0
// The app URL is to be opened within an iframe
Target_TARGET_IFRAME Target = 1
// The app URL is to be opened on a new blank page
Target_TARGET_BLANK Target = 2
)
var Target_name = map[int32]string{
0: "TARGET_INVALID",
1: "TARGET_IFRAME",
2: "TARGET_BLANK",
}
var Target_value = map[string]int32{
"TARGET_INVALID": 0,
"TARGET_IFRAME": 1,
"TARGET_BLANK": 2,
}
func (x Target) String() string {
return proto.EnumName(Target_name, int32(x))
}
func (Target) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f3a36ae8e74be4dc, []int{1}
}
// Represents the information for the app URL to be called by the clients.
type OpenInAppURL struct {
// REQUIRED.
@@ -35,10 +109,13 @@ type OpenInAppURL struct {
FormParameters map[string]string `protobuf:"bytes,3,rep,name=form_parameters,json=formParameters,proto3" json:"form_parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// OPTIONAL.
// The headers to be added to the request.
Headers map[string]string `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Headers map[string]string `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// REQUIRED.
// Whether the target for the app URL is an iframe or a new page.
Target Target `protobuf:"varint,5,opt,name=target,proto3,enum=cs3.app.provider.v1beta1.Target" json:"target,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OpenInAppURL) Reset() { *m = OpenInAppURL{} }
@@ -94,7 +171,16 @@ func (m *OpenInAppURL) GetHeaders() map[string]string {
return nil
}
func (m *OpenInAppURL) GetTarget() Target {
if m != nil {
return m.Target
}
return Target_TARGET_INVALID
}
func init() {
proto.RegisterEnum("cs3.app.provider.v1beta1.ViewMode", ViewMode_name, ViewMode_value)
proto.RegisterEnum("cs3.app.provider.v1beta1.Target", Target_name, Target_value)
proto.RegisterType((*OpenInAppURL)(nil), "cs3.app.provider.v1beta1.OpenInAppURL")
proto.RegisterMapType((map[string]string)(nil), "cs3.app.provider.v1beta1.OpenInAppURL.FormParametersEntry")
proto.RegisterMapType((map[string]string)(nil), "cs3.app.provider.v1beta1.OpenInAppURL.HeadersEntry")
@@ -105,26 +191,34 @@ func init() {
}
var fileDescriptor_f3a36ae8e74be4dc = []byte{
// 324 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x4b, 0xf3, 0x40,
0x10, 0xc6, 0x49, 0xf2, 0xbe, 0x2d, 0xae, 0xa5, 0x95, 0x55, 0x34, 0x14, 0x0f, 0xc5, 0x53, 0x4f,
0x1b, 0x6a, 0x2e, 0xd2, 0x5b, 0x5a, 0x14, 0x05, 0xc5, 0x10, 0xa8, 0x07, 0x29, 0x94, 0x6d, 0xb2,
0xa5, 0x62, 0x92, 0x1d, 0x66, 0x93, 0x40, 0x0f, 0x7e, 0x19, 0x8f, 0x7e, 0x14, 0x3f, 0x8e, 0x9f,
0x40, 0xf2, 0x67, 0xa5, 0x82, 0x05, 0xbd, 0xed, 0xcc, 0x3c, 0xf3, 0x7b, 0x78, 0x98, 0x25, 0xc3,
0x50, 0xb9, 0x0e, 0x07, 0x70, 0x00, 0x65, 0xf1, 0x14, 0x09, 0x74, 0x8a, 0xd1, 0x52, 0x64, 0x7c,
0xe4, 0xa0, 0x50, 0x32, 0xc7, 0x50, 0x28, 0x06, 0x28, 0x33, 0x49, 0xed, 0x50, 0xb9, 0x8c, 0x03,
0x30, 0xad, 0x64, 0x8d, 0xf2, 0xec, 0xc3, 0x24, 0x9d, 0x7b, 0x10, 0xe9, 0x4d, 0xea, 0x01, 0xcc,
0x82, 0x5b, 0x7a, 0x42, 0xda, 0x1c, 0x60, 0x91, 0x63, 0x6c, 0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x00,
// 458 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4d, 0x6f, 0xd3, 0x40,
0x10, 0xc5, 0x76, 0x9b, 0xc2, 0x10, 0x52, 0x77, 0x5b, 0xa8, 0x55, 0x71, 0x88, 0x38, 0x45, 0x3d,
0x6c, 0x94, 0xfa, 0x52, 0xe5, 0xb6, 0x69, 0x5c, 0xb0, 0xc8, 0x87, 0xb5, 0x4a, 0x53, 0x81, 0x22,
0x45, 0x5b, 0x67, 0x4b, 0x2b, 0xe2, 0xec, 0x68, 0xed, 0x04, 0xf5, 0xc0, 0x8d, 0x5f, 0xc2, 0x11,
0xf1, 0x4b, 0xf8, 0x55, 0xc8, 0x5f, 0x90, 0x20, 0x22, 0xc1, 0x6d, 0xe7, 0xbd, 0x37, 0x6f, 0x46,
0x4f, 0xb3, 0xd0, 0x08, 0x63, 0xb7, 0x29, 0x10, 0x9b, 0xa8, 0xd5, 0xea, 0x7e, 0x26, 0x75, 0x73,
0xd5, 0xba, 0x91, 0x89, 0x68, 0x35, 0xb5, 0x8c, 0xd5, 0x52, 0x87, 0x32, 0xa6, 0xa8, 0x55, 0xa2,
0x88, 0x13, 0xc6, 0x2e, 0x15, 0x88, 0xb4, 0x54, 0xd2, 0x42, 0xf9, 0xea, 0xbb, 0x05, 0xd5, 0x21,
0xca, 0x85, 0xbf, 0x60, 0x88, 0x57, 0xbc, 0x47, 0x8e, 0x61, 0x4f, 0x20, 0x4e, 0x97, 0x7a, 0xee,
0x18, 0x75, 0xa3, 0xf1, 0x84, 0x57, 0x04, 0xe2, 0x95, 0x9e, 0x93, 0x17, 0x50, 0x89, 0x64, 0x72,
0xa7, 0x66, 0x8e, 0x99, 0xe3, 0x79, 0x45, 0x42, 0xd8, 0xbf, 0x55, 0x3a, 0x9a, 0xa2, 0xd0, 0x22,
0x92, 0x89, 0xd4, 0xb1, 0x63, 0xd5, 0xad,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 0x05, 0x0e,
0xe0, 0x59, 0x89, 0x5d, 0x72, 0xd6, 0xf7, 0x6c, 0x83, 0xd8, 0x50, 0x2d, 0xa0, 0x4e, 0x8f, 0x0d,
0xde, 0xda, 0x66, 0xe7, 0x33, 0xbc, 0x0c, 0x55, 0xb4, 0x35, 0xf7, 0x4e, 0x8d, 0x97, 0x37, 0x1c,
0xa4, 0x27, 0x1c, 0x18, 0xef, 0xf7, 0x4b, 0x4d, 0x21, 0xf9, 0x6a, 0x5a, 0x17, 0x2c, 0xf8, 0x66,
0x3a, 0x17, 0xb1, 0x4b, 0x19, 0x22, 0x0d, 0x4a, 0x8f, 0x71, 0xab, 0x93, 0x0a, 0x7e, 0x64, 0xd4,
0x84, 0x21, 0x4e, 0x4a, 0x6a, 0x52, 0x50, 0x37, 0x95, 0xec, 0x63, 0xb8, 0x3f, 0x03, 0x00, 0x00,
0xff, 0xff, 0x85, 0x9b, 0x05, 0x50, 0x44, 0x03, 0x00, 0x00,
}
+46 -34
View File
@@ -63,7 +63,7 @@ type ProviderInfo struct {
MimeTypes []string `protobuf:"bytes,2,rep,name=mime_types,json=mimeTypes,proto3" json:"mime_types,omitempty"`
// REQUIRED.
// The address where the app provider can be reached.
// For example, tcp://localhost:1099.
// For example, localhost:1099.
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
Capability ProviderInfo_Capability `protobuf:"varint,4,opt,name=capability,proto3,enum=cs3.app.registry.v1beta1.ProviderInfo_Capability" json:"capability,omitempty"`
// OPTIONAL.
@@ -79,7 +79,11 @@ type ProviderInfo struct {
Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
// OPTIONAL.
// Whether the app can be opened only on desktop
DesktopOnly bool `protobuf:"varint,8,opt,name=desktop_only,json=desktopOnly,proto3" json:"desktop_only,omitempty"`
DesktopOnly bool `protobuf:"varint,8,opt,name=desktop_only,json=desktopOnly,proto3" json:"desktop_only,omitempty"`
// OPTIONAL.
// The action to be displayed to the user on the context menu.
// By default this is "Open with".
Action string `protobuf:"bytes,9,opt,name=action,proto3" json:"action,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -166,6 +170,13 @@ func (m *ProviderInfo) GetDesktopOnly() bool {
return false
}
func (m *ProviderInfo) GetAction() string {
if m != nil {
return m.Action
}
return ""
}
// Represents a mime type and its corresponding file extension.
type MimeTypeInfo struct {
// OPTIONAL.
@@ -301,37 +312,38 @@ func init() {
}
var fileDescriptor_2e6a666226304af3 = []byte{
// 506 bytes of a gzipped FileDescriptorProto
// 514 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xdd, 0x8e, 0xd2, 0x40,
0x14, 0xb6, 0x2d, 0xb2, 0x70, 0x60, 0x11, 0xc7, 0x68, 0xc6, 0x9f, 0x4d, 0x2a, 0x89, 0xa6, 0x57,
0x25, 0xc0, 0x13, 0x14, 0x96, 0x8b, 0xc6, 0x55, 0x70, 0x42, 0x30, 0x1a, 0x92, 0x66, 0x68, 0x67,
0x4d, 0x63, 0xe9, 0x1c, 0x3b, 0x65, 0x95, 0x0b, 0x5f, 0xc1, 0x87, 0xf0, 0xd2, 0x47, 0xf1, 0x25,
0x7c, 0x15, 0xd3, 0xa1, 0x65, 0x89, 0xc9, 0x26, 0xc6, 0xec, 0xdd, 0xf4, 0xfb, 0xeb, 0x9c, 0xf9,
0x72, 0xc0, 0x09, 0xd5, 0xa8, 0xcf, 0x11, 0xfb, 0x99, 0xf8, 0x18, 0xab, 0x3c, 0xdb, 0xf5, 0xaf,
0x06, 0x6b, 0x91, 0xf3, 0x41, 0x3f, 0x13, 0x4a, 0x6e, 0xb3, 0x50, 0x28, 0x17, 0x33, 0x99, 0x4b,
0x42, 0x43, 0x35, 0x72, 0x39, 0xa2, 0x5b, 0x29, 0xdd, 0x52, 0xf9, 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