Bump cs3apis to latest master

Also includes a reva bump

Closes: #9554
This commit is contained in:
Ralf Haferkamp
2024-07-11 14:14:05 +02:00
parent 10ce8db793
commit a33dd51581
141 changed files with 42093 additions and 25059 deletions
+3 -1
View File
@@ -14,7 +14,7 @@ require (
github.com/blevesearch/bleve/v2 v2.4.0
github.com/cenkalti/backoff v2.2.1+incompatible
github.com/coreos/go-oidc/v3 v3.10.0
github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781
github.com/cs3org/go-cs3apis v0.0.0-20240425114016-d2cb31692b4e
github.com/cs3org/reva/v2 v2.21.0
github.com/dhowden/tag v0.0.0-20230630033851-978a0926ee25
github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e
@@ -368,3 +368,5 @@ replace github.com/unrolled/secure => github.com/DeepDiver1975/secure v0.0.0-202
// exclude the v2 line of go-sqlite3 which was released accidentally and prevents pulling in newer versions of go-sqlite3
// see https://github.com/mattn/go-sqlite3/issues/965 for more details
exclude github.com/mattn/go-sqlite3 v2.0.3+incompatible
replace github.com/cs3org/reva/v2 => github.com/rhafer/reva/v2 v2.0.0-20240711124633-d9f27b3a83d1
+4 -6
View File
@@ -1023,10 +1023,8 @@ github.com/crewjam/httperr v0.2.0 h1:b2BfXR8U3AlIHwNeFFvZ+BV1LFvKLlzMjzaTnZMybNo
github.com/crewjam/httperr v0.2.0/go.mod h1:Jlz+Sg/XqBQhyMjdDiC+GNNRzZTD7x39Gu3pglZ5oH4=
github.com/crewjam/saml v0.4.14 h1:g9FBNx62osKusnFzs3QTN5L9CVA/Egfgm+stJShzw/c=
github.com/crewjam/saml v0.4.14/go.mod h1:UVSZCf18jJkk6GpWNVqcyQJMD5HsRugBPf4I1nl2mME=
github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781 h1:BUdwkIlf8IS2FasrrPg8gGPHQPOrQ18MS1Oew2tmGtY=
github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY=
github.com/cs3org/reva/v2 v2.21.0 h1:TLmWaU4BTIsi2FQtB8SxMKDT46ql28Do1Vc7IVWSAsE=
github.com/cs3org/reva/v2 v2.21.0/go.mod h1:Rb2XnhpGKnH7k6WBFZlMygbyBxW6ma09Z4Uk+ro0v+A=
github.com/cs3org/go-cs3apis v0.0.0-20240425114016-d2cb31692b4e h1:Cm2l8m2riLa79eh7V2wHd1Ra7wR3TbngmeLZBJ9MxTU=
github.com/cs3org/go-cs3apis v0.0.0-20240425114016-d2cb31692b4e/go.mod h1:yyP8PRo0EZou3nSH7H4qjlzQwaydPeIRNgX50npQHpE=
github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4=
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
@@ -1916,6 +1914,8 @@ github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 h1:MkV+77GLUNo
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
github.com/rhafer/reva/v2 v2.0.0-20240711124633-d9f27b3a83d1 h1:glMiCv50PUgbf/vpWUzsprE3OMLtq7fQAtheVsDiuEU=
github.com/rhafer/reva/v2 v2.0.0-20240711124633-d9f27b3a83d1/go.mod h1:+5pteFc4ymQnhYG2cOtg/jzaIZKgxrgIeH0D4fuC6gA=
github.com/riandyrn/otelchi v0.8.0 h1:q60HKpwt1MmGjOWgM7m5gGyXYAY3DfTSdfBdBt6ICV4=
github.com/riandyrn/otelchi v0.8.0/go.mod h1:ErTae2TG7lrOtEPFsd5/hYLOHJpkk0NNyMaeTMWxl0U=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
@@ -2423,7 +2423,6 @@ golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190415081028-16da32be82c5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -2759,7 +2758,6 @@ google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
+269 -204
View File
@@ -1,33 +1,51 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/app/provider/v1beta1/provider_api.proto
package providerv1beta1
import (
context "context"
fmt "fmt"
v1beta12 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type OpenInAppRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
@@ -46,66 +64,74 @@ type OpenInAppRequest struct {
// ResourceIds MUST NOT change when a resource is renamed.
// The access token MUST be short-lived.
// TODO(labkode): investigate token derivation techniques.
AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
}
func (m *OpenInAppRequest) Reset() { *m = OpenInAppRequest{} }
func (m *OpenInAppRequest) String() string { return proto.CompactTextString(m) }
func (*OpenInAppRequest) ProtoMessage() {}
func (x *OpenInAppRequest) Reset() {
*x = OpenInAppRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OpenInAppRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OpenInAppRequest) ProtoMessage() {}
func (x *OpenInAppRequest) ProtoReflect() protoreflect.Message {
mi := &file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OpenInAppRequest.ProtoReflect.Descriptor instead.
func (*OpenInAppRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c007b70b037097fe, []int{0}
return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0}
}
func (m *OpenInAppRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenInAppRequest.Unmarshal(m, b)
}
func (m *OpenInAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenInAppRequest.Marshal(b, m, deterministic)
}
func (m *OpenInAppRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenInAppRequest.Merge(m, src)
}
func (m *OpenInAppRequest) XXX_Size() int {
return xxx_messageInfo_OpenInAppRequest.Size(m)
}
func (m *OpenInAppRequest) XXX_DiscardUnknown() {
xxx_messageInfo_OpenInAppRequest.DiscardUnknown(m)
}
var xxx_messageInfo_OpenInAppRequest proto.InternalMessageInfo
func (m *OpenInAppRequest) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *OpenInAppRequest) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *OpenInAppRequest) GetResourceInfo() *v1beta11.ResourceInfo {
if m != nil {
return m.ResourceInfo
func (x *OpenInAppRequest) GetResourceInfo() *v1beta11.ResourceInfo {
if x != nil {
return x.ResourceInfo
}
return nil
}
func (m *OpenInAppRequest) GetViewMode() ViewMode {
if m != nil {
return m.ViewMode
func (x *OpenInAppRequest) GetViewMode() ViewMode {
if x != nil {
return x.ViewMode
}
return ViewMode_VIEW_MODE_INVALID
}
func (m *OpenInAppRequest) GetAccessToken() string {
if m != nil {
return m.AccessToken
func (x *OpenInAppRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
type OpenInAppResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The response status.
Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
@@ -115,179 +141,218 @@ type OpenInAppResponse struct {
// REQUIRED.
// The url that user agents will render to clients.
// Usually the rendering happens by using HTML iframes or in separate browser tabs.
AppUrl *OpenInAppURL `protobuf:"bytes,3,opt,name=app_url,json=appUrl,proto3" json:"app_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
AppUrl *OpenInAppURL `protobuf:"bytes,3,opt,name=app_url,json=appUrl,proto3" json:"app_url,omitempty"`
}
func (m *OpenInAppResponse) Reset() { *m = OpenInAppResponse{} }
func (m *OpenInAppResponse) String() string { return proto.CompactTextString(m) }
func (*OpenInAppResponse) ProtoMessage() {}
func (x *OpenInAppResponse) Reset() {
*x = OpenInAppResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OpenInAppResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OpenInAppResponse) ProtoMessage() {}
func (x *OpenInAppResponse) ProtoReflect() protoreflect.Message {
mi := &file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OpenInAppResponse.ProtoReflect.Descriptor instead.
func (*OpenInAppResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c007b70b037097fe, []int{1}
return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1}
}
func (m *OpenInAppResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenInAppResponse.Unmarshal(m, b)
}
func (m *OpenInAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenInAppResponse.Marshal(b, m, deterministic)
}
func (m *OpenInAppResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenInAppResponse.Merge(m, src)
}
func (m *OpenInAppResponse) XXX_Size() int {
return xxx_messageInfo_OpenInAppResponse.Size(m)
}
func (m *OpenInAppResponse) XXX_DiscardUnknown() {
xxx_messageInfo_OpenInAppResponse.DiscardUnknown(m)
}
var xxx_messageInfo_OpenInAppResponse proto.InternalMessageInfo
func (m *OpenInAppResponse) GetStatus() *v1beta12.Status {
if m != nil {
return m.Status
func (x *OpenInAppResponse) GetStatus() *v1beta12.Status {
if x != nil {
return x.Status
}
return nil
}
func (m *OpenInAppResponse) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *OpenInAppResponse) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *OpenInAppResponse) GetAppUrl() *OpenInAppURL {
if m != nil {
return m.AppUrl
func (x *OpenInAppResponse) GetAppUrl() *OpenInAppURL {
if x != nil {
return x.AppUrl
}
return nil
}
func init() {
proto.RegisterType((*OpenInAppRequest)(nil), "cs3.app.provider.v1beta1.OpenInAppRequest")
proto.RegisterType((*OpenInAppResponse)(nil), "cs3.app.provider.v1beta1.OpenInAppResponse")
var File_cs3_app_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor
var file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc = []byte{
0x0a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63,
0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70,
0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63,
0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfa, 0x01, 0x0a,
0x10, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73,
0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3f, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6d, 0x6f,
0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61,
0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x76, 0x69,
0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63,
0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb8, 0x01, 0x0a, 0x11, 0x4f, 0x70,
0x65, 0x6e, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61,
0x71, 0x75, 0x65, 0x12, 0x3f, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
0x4f, 0x70, 0x65, 0x6e, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x55, 0x52, 0x4c, 0x52, 0x06, 0x61, 0x70,
0x70, 0x55, 0x72, 0x6c, 0x32, 0x73, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x41, 0x50, 0x49, 0x12, 0x64, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x6e, 0x41, 0x70, 0x70,
0x12, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e,
0x49, 0x6e, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x6e, 0x41, 0x70,
0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xfa, 0x01, 0x0a, 0x1c, 0x63, 0x6f,
0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72,
0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33,
0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x50, 0xaa, 0x02, 0x18, 0x43, 0x73,
0x33, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x70, 0x70,
0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0xe2, 0x02, 0x24, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x70, 0x70, 0x5c, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x73, 0x33, 0x3a, 0x3a,
0x41, 0x70, 0x70, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x3a, 0x3a, 0x56,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/app/provider/v1beta1/provider_api.proto", fileDescriptor_c007b70b037097fe)
var (
file_cs3_app_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once
file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc
)
func file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte {
file_cs3_app_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() {
file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData)
})
return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData
}
var fileDescriptor_c007b70b037097fe = []byte{
// 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, 0xc8,
0x73, 0xde, 0xa1, 0x88, 0x2d, 0x7e, 0x67, 0x3b, 0xa9, 0x38, 0xf1, 0x5d, 0x38, 0xf2, 0x09, 0xf8,
0x0c, 0x7c, 0x24, 0x4e, 0x28, 0x8e, 0x13, 0x55, 0x42, 0x11, 0xbd, 0xc5, 0x7e, 0x7e, 0xcf, 0xfb,
0xe7, 0x89, 0xc9, 0xb9, 0x34, 0xcb, 0x99, 0x40, 0x9c, 0xa1, 0x56, 0x65, 0x96, 0x82, 0x9e, 0x95,
0xf3, 0x1b, 0xb0, 0x62, 0xde, 0x5e, 0x24, 0x02, 0x33, 0x86, 0x5a, 0x59, 0x45, 0x43, 0x69, 0x96,
0x4c, 0x20, 0xb2, 0x46, 0x63, 0x1e, 0x1e, 0x4d, 0x3b, 0xcb, 0x68, 0x30, 0xaa, 0xd0, 0x12, 0x4c,
0x5d, 0x63, 0x74, 0x5a, 0x91, 0x1a, 0x65, 0x0b, 0x18, 0x2b, 0x6c, 0xd1, 0xa8, 0xef, 0x2a, 0xd5,
0x58, 0xa5, 0xc5, 0x17, 0xf8, 0x7f, 0xad, 0xd7, 0x15, 0x6d, 0xbf, 0x21, 0x98, 0x16, 0x71, 0xa7,
0x5a, 0x9e, 0xfc, 0x09, 0xc8, 0xc9, 0x06, 0x21, 0x5f, 0xe7, 0x11, 0x22, 0x87, 0x87, 0x02, 0x8c,
0xa5, 0x73, 0xd2, 0x57, 0x28, 0x1e, 0x0a, 0x08, 0x83, 0x71, 0x30, 0x1d, 0x2e, 0x5e, 0xb1, 0x6a,
0xa9, 0xda, 0xe6, 0x8b, 0xb0, 0x8d, 0x03, 0xb8, 0x07, 0xe9, 0x86, 0x3c, 0x6d, 0x3a, 0x27, 0x59,
0x7e, 0xab, 0xc2, 0x9e, 0x73, 0x9e, 0x39, 0xa7, 0x1f, 0xf6, 0x9f, 0x48, 0x18, 0xf7, 0x96, 0x75,
0x7e, 0xab, 0xf8, 0xb1, 0xde, 0x3b, 0xd1, 0x0b, 0x32, 0x28, 0x33, 0xd8, 0x25, 0xf7, 0x2a, 0x85,
0xf0, 0x68, 0x1c, 0x4c, 0x9f, 0x2d, 0x26, 0xac, 0x2b, 0x5b, 0x76, 0x9d, 0xc1, 0xee, 0x83, 0x4a,
0x81, 0x3f, 0x29, 0xfd, 0x17, 0x7d, 0x43, 0x8e, 0x85, 0x94, 0x60, 0x4c, 0x62, 0xd5, 0x57, 0xc8,
0xc3, 0x47, 0xe3, 0x60, 0x3a, 0xe0, 0xc3, 0xfa, 0xee, 0x53, 0x75, 0x35, 0xf9, 0x15, 0x90, 0x17,
0x7b, 0xcb, 0x1b, 0x54, 0xb9, 0x01, 0x3a, 0x23, 0xfd, 0x3a, 0x6f, 0xbf, 0xfd, 0x4b, 0xd7, 0x56,
0xa3, 0x6c, 0xbb, 0x7d, 0x74, 0x32, 0xf7, 0xd8, 0x5e, 0x5c, 0xbd, 0x43, 0xe3, 0xba, 0x20, 0x8f,
0x05, 0x62, 0x52, 0xe8, 0x3b, 0xb7, 0xdb, 0x70, 0xf1, 0xb6, 0x7b, 0xb7, 0x76, 0xc2, 0x2b, 0xfe,
0x9e, 0xf7, 0x05, 0xe2, 0x95, 0xbe, 0x5b, 0x18, 0x32, 0x8c, 0x3d, 0x18, 0xc5, 0x6b, 0x9a, 0x92,
0x41, 0x8b, 0xd1, 0xb3, 0x03, 0x6a, 0xf9, 0x5f, 0x3d, 0x3a, 0x3f, 0x88, 0xad, 0x93, 0x59, 0x7d,
0x27, 0xa7, 0x52, 0xdd, 0x77, 0x3a, 0x56, 0x27, 0xed, 0x48, 0x98, 0xc5, 0xd5, 0xf3, 0x8a, 0x83,
0xcf, 0xcf, 0x1b, 0xca, 0x43, 0x3f, 0x7a, 0x47, 0x97, 0x51, 0xfc, 0xb3, 0x17, 0x5e, 0x9a, 0x25,
0x8b, 0x10, 0x59, 0xe3, 0x61, 0xd7, 0xf3, 0x55, 0x05, 0xfc, 0x76, 0xd2, 0x36, 0x42, 0xdc, 0x36,
0xd2, 0xd6, 0x4b, 0x37, 0x7d, 0xf7, 0x68, 0x97, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb9, 0xb9,
0x16, 0xb5, 0x92, 0x03, 0x00, 0x00,
var file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_cs3_app_provider_v1beta1_provider_api_proto_goTypes = []interface{}{
(*OpenInAppRequest)(nil), // 0: cs3.app.provider.v1beta1.OpenInAppRequest
(*OpenInAppResponse)(nil), // 1: cs3.app.provider.v1beta1.OpenInAppResponse
(*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque
(*v1beta11.ResourceInfo)(nil), // 3: cs3.storage.provider.v1beta1.ResourceInfo
(ViewMode)(0), // 4: cs3.app.provider.v1beta1.ViewMode
(*v1beta12.Status)(nil), // 5: cs3.rpc.v1beta1.Status
(*OpenInAppURL)(nil), // 6: cs3.app.provider.v1beta1.OpenInAppURL
}
var file_cs3_app_provider_v1beta1_provider_api_proto_depIdxs = []int32{
2, // 0: cs3.app.provider.v1beta1.OpenInAppRequest.opaque:type_name -> cs3.types.v1beta1.Opaque
3, // 1: cs3.app.provider.v1beta1.OpenInAppRequest.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo
4, // 2: cs3.app.provider.v1beta1.OpenInAppRequest.view_mode:type_name -> cs3.app.provider.v1beta1.ViewMode
5, // 3: cs3.app.provider.v1beta1.OpenInAppResponse.status:type_name -> cs3.rpc.v1beta1.Status
2, // 4: cs3.app.provider.v1beta1.OpenInAppResponse.opaque:type_name -> cs3.types.v1beta1.Opaque
6, // 5: cs3.app.provider.v1beta1.OpenInAppResponse.app_url:type_name -> cs3.app.provider.v1beta1.OpenInAppURL
0, // 6: cs3.app.provider.v1beta1.ProviderAPI.OpenInApp:input_type -> cs3.app.provider.v1beta1.OpenInAppRequest
1, // 7: cs3.app.provider.v1beta1.ProviderAPI.OpenInApp:output_type -> cs3.app.provider.v1beta1.OpenInAppResponse
7, // [7:8] is the sub-list for method output_type
6, // [6:7] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ProviderAPIClient is the client API for ProviderAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ProviderAPIClient interface {
// Returns the App URL and all necessary info to open a resource in an online editor.
// MUST return CODE_NOT_FOUND if the resource does not exist.
OpenInApp(ctx context.Context, in *OpenInAppRequest, opts ...grpc.CallOption) (*OpenInAppResponse, error)
}
type providerAPIClient struct {
cc *grpc.ClientConn
}
func NewProviderAPIClient(cc *grpc.ClientConn) ProviderAPIClient {
return &providerAPIClient{cc}
}
func (c *providerAPIClient) OpenInApp(ctx context.Context, in *OpenInAppRequest, opts ...grpc.CallOption) (*OpenInAppResponse, error) {
out := new(OpenInAppResponse)
err := c.cc.Invoke(ctx, "/cs3.app.provider.v1beta1.ProviderAPI/OpenInApp", in, out, opts...)
if err != nil {
return nil, err
func init() { file_cs3_app_provider_v1beta1_provider_api_proto_init() }
func file_cs3_app_provider_v1beta1_provider_api_proto_init() {
if File_cs3_app_provider_v1beta1_provider_api_proto != nil {
return
}
return out, nil
}
// ProviderAPIServer is the server API for ProviderAPI service.
type ProviderAPIServer interface {
// Returns the App URL and all necessary info to open a resource in an online editor.
// MUST return CODE_NOT_FOUND if the resource does not exist.
OpenInApp(context.Context, *OpenInAppRequest) (*OpenInAppResponse, error)
}
// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations.
type UnimplementedProviderAPIServer struct {
}
func (*UnimplementedProviderAPIServer) OpenInApp(ctx context.Context, req *OpenInAppRequest) (*OpenInAppResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method OpenInApp not implemented")
}
func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) {
s.RegisterService(&_ProviderAPI_serviceDesc, srv)
}
func _ProviderAPI_OpenInApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OpenInAppRequest)
if err := dec(in); err != nil {
return nil, err
file_cs3_app_provider_v1beta1_resources_proto_init()
if !protoimpl.UnsafeEnabled {
file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*OpenInAppRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*OpenInAppResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
if interceptor == nil {
return srv.(ProviderAPIServer).OpenInApp(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cs3.app.provider.v1beta1.ProviderAPI/OpenInApp",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProviderAPIServer).OpenInApp(ctx, req.(*OpenInAppRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ProviderAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "cs3.app.provider.v1beta1.ProviderAPI",
HandlerType: (*ProviderAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "OpenInApp",
Handler: _ProviderAPI_OpenInApp_Handler,
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/app/provider/v1beta1/provider_api.proto",
GoTypes: file_cs3_app_provider_v1beta1_provider_api_proto_goTypes,
DependencyIndexes: file_cs3_app_provider_v1beta1_provider_api_proto_depIdxs,
MessageInfos: file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes,
}.Build()
File_cs3_app_provider_v1beta1_provider_api_proto = out.File
file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc = nil
file_cs3_app_provider_v1beta1_provider_api_proto_goTypes = nil
file_cs3_app_provider_v1beta1_provider_api_proto_depIdxs = nil
}
@@ -0,0 +1,129 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/app/provider/v1beta1/provider_api.proto
package providerv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
ProviderAPI_OpenInApp_FullMethodName = "/cs3.app.provider.v1beta1.ProviderAPI/OpenInApp"
)
// ProviderAPIClient is the client API for ProviderAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ProviderAPIClient interface {
// Returns the App URL and all necessary info to open a resource in an online editor.
// MUST return CODE_NOT_FOUND if the resource does not exist.
OpenInApp(ctx context.Context, in *OpenInAppRequest, opts ...grpc.CallOption) (*OpenInAppResponse, error)
}
type providerAPIClient struct {
cc grpc.ClientConnInterface
}
func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient {
return &providerAPIClient{cc}
}
func (c *providerAPIClient) OpenInApp(ctx context.Context, in *OpenInAppRequest, opts ...grpc.CallOption) (*OpenInAppResponse, error) {
out := new(OpenInAppResponse)
err := c.cc.Invoke(ctx, ProviderAPI_OpenInApp_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ProviderAPIServer is the server API for ProviderAPI service.
// All implementations should embed UnimplementedProviderAPIServer
// for forward compatibility
type ProviderAPIServer interface {
// Returns the App URL and all necessary info to open a resource in an online editor.
// MUST return CODE_NOT_FOUND if the resource does not exist.
OpenInApp(context.Context, *OpenInAppRequest) (*OpenInAppResponse, error)
}
// UnimplementedProviderAPIServer should be embedded to have forward compatible implementations.
type UnimplementedProviderAPIServer struct {
}
func (UnimplementedProviderAPIServer) OpenInApp(context.Context, *OpenInAppRequest) (*OpenInAppResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method OpenInApp not implemented")
}
// UnsafeProviderAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ProviderAPIServer will
// result in compilation errors.
type UnsafeProviderAPIServer interface {
mustEmbedUnimplementedProviderAPIServer()
}
func RegisterProviderAPIServer(s grpc.ServiceRegistrar, srv ProviderAPIServer) {
s.RegisterService(&ProviderAPI_ServiceDesc, srv)
}
func _ProviderAPI_OpenInApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OpenInAppRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProviderAPIServer).OpenInApp(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ProviderAPI_OpenInApp_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProviderAPIServer).OpenInApp(ctx, req.(*OpenInAppRequest))
}
return interceptor(ctx, in, info, handler)
}
// ProviderAPI_ServiceDesc is the grpc.ServiceDesc for ProviderAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ProviderAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.app.provider.v1beta1.ProviderAPI",
HandlerType: (*ProviderAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "OpenInApp",
Handler: _ProviderAPI_OpenInApp_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/app/provider/v1beta1/provider_api.proto",
}
+279 -119
View File
@@ -1,24 +1,42 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/app/provider/v1beta1/resources.proto
package providerv1beta1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Defines the view modes.
type ViewMode int32
@@ -39,28 +57,49 @@ const (
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",
}
// Enum value maps for ViewMode.
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",
}
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,
}
)
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) Enum() *ViewMode {
p := new(ViewMode)
*p = x
return p
}
func (x ViewMode) String() string {
return proto.EnumName(ViewMode_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ViewMode) Descriptor() protoreflect.EnumDescriptor {
return file_cs3_app_provider_v1beta1_resources_proto_enumTypes[0].Descriptor()
}
func (ViewMode) Type() protoreflect.EnumType {
return &file_cs3_app_provider_v1beta1_resources_proto_enumTypes[0]
}
func (x ViewMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ViewMode.Descriptor instead.
func (ViewMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f3a36ae8e74be4dc, []int{0}
return file_cs3_app_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
// Defines the valid targets for an app URL.
@@ -74,28 +113,53 @@ const (
Target_TARGET_BLANK Target = 2
)
var Target_name = map[int32]string{
0: "TARGET_INVALID",
1: "TARGET_IFRAME",
2: "TARGET_BLANK",
}
// Enum value maps for Target.
var (
Target_name = map[int32]string{
0: "TARGET_INVALID",
1: "TARGET_IFRAME",
2: "TARGET_BLANK",
}
Target_value = map[string]int32{
"TARGET_INVALID": 0,
"TARGET_IFRAME": 1,
"TARGET_BLANK": 2,
}
)
var Target_value = map[string]int32{
"TARGET_INVALID": 0,
"TARGET_IFRAME": 1,
"TARGET_BLANK": 2,
func (x Target) Enum() *Target {
p := new(Target)
*p = x
return p
}
func (x Target) String() string {
return proto.EnumName(Target_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Target) Descriptor() protoreflect.EnumDescriptor {
return file_cs3_app_provider_v1beta1_resources_proto_enumTypes[1].Descriptor()
}
func (Target) Type() protoreflect.EnumType {
return &file_cs3_app_provider_v1beta1_resources_proto_enumTypes[1]
}
func (x Target) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Target.Descriptor instead.
func (Target) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f3a36ae8e74be4dc, []int{1}
return file_cs3_app_provider_v1beta1_resources_proto_rawDescGZIP(), []int{1}
}
// Represents the information for the app URL to be called by the clients.
type OpenInAppURL struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The URL that clients will perform requests to.
AppUrl string `protobuf:"bytes,1,opt,name=app_url,json=appUrl,proto3" json:"app_url,omitempty"`
@@ -112,113 +176,209 @@ type OpenInAppURL struct {
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:"-"`
Target Target `protobuf:"varint,5,opt,name=target,proto3,enum=cs3.app.provider.v1beta1.Target" json:"target,omitempty"`
}
func (m *OpenInAppURL) Reset() { *m = OpenInAppURL{} }
func (m *OpenInAppURL) String() string { return proto.CompactTextString(m) }
func (*OpenInAppURL) ProtoMessage() {}
func (x *OpenInAppURL) Reset() {
*x = OpenInAppURL{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_app_provider_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OpenInAppURL) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OpenInAppURL) ProtoMessage() {}
func (x *OpenInAppURL) ProtoReflect() protoreflect.Message {
mi := &file_cs3_app_provider_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OpenInAppURL.ProtoReflect.Descriptor instead.
func (*OpenInAppURL) Descriptor() ([]byte, []int) {
return fileDescriptor_f3a36ae8e74be4dc, []int{0}
return file_cs3_app_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *OpenInAppURL) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenInAppURL.Unmarshal(m, b)
}
func (m *OpenInAppURL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenInAppURL.Marshal(b, m, deterministic)
}
func (m *OpenInAppURL) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenInAppURL.Merge(m, src)
}
func (m *OpenInAppURL) XXX_Size() int {
return xxx_messageInfo_OpenInAppURL.Size(m)
}
func (m *OpenInAppURL) XXX_DiscardUnknown() {
xxx_messageInfo_OpenInAppURL.DiscardUnknown(m)
}
var xxx_messageInfo_OpenInAppURL proto.InternalMessageInfo
func (m *OpenInAppURL) GetAppUrl() string {
if m != nil {
return m.AppUrl
func (x *OpenInAppURL) GetAppUrl() string {
if x != nil {
return x.AppUrl
}
return ""
}
func (m *OpenInAppURL) GetMethod() string {
if m != nil {
return m.Method
func (x *OpenInAppURL) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
func (m *OpenInAppURL) GetFormParameters() map[string]string {
if m != nil {
return m.FormParameters
func (x *OpenInAppURL) GetFormParameters() map[string]string {
if x != nil {
return x.FormParameters
}
return nil
}
func (m *OpenInAppURL) GetHeaders() map[string]string {
if m != nil {
return m.Headers
func (x *OpenInAppURL) GetHeaders() map[string]string {
if x != nil {
return x.Headers
}
return nil
}
func (m *OpenInAppURL) GetTarget() Target {
if m != nil {
return m.Target
func (x *OpenInAppURL) GetTarget() Target {
if x != nil {
return x.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")
var File_cs3_app_provider_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_app_provider_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e,
0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x22, 0xac, 0x03, 0x0a, 0x0c, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x6e, 0x41,
0x70, 0x70, 0x55, 0x52, 0x4c, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x5f, 0x75, 0x72, 0x6c,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x70, 0x70, 0x55, 0x72, 0x6c, 0x12, 0x16,
0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x63, 0x0a, 0x0f, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x70,
0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49,
0x6e, 0x41, 0x70, 0x70, 0x55, 0x52, 0x4c, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61,
0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x66, 0x6f, 0x72,
0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4d, 0x0a, 0x07, 0x68,
0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x6e, 0x41, 0x70,
0x70, 0x55, 0x52, 0x4c, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x38, 0x0a, 0x06, 0x74, 0x61,
0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61,
0x72, 0x67, 0x65, 0x74, 0x1a, 0x41, 0x0a, 0x13, 0x46, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61,
0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65,
0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
0x02, 0x38, 0x01, 0x2a, 0x84, 0x01, 0x0a, 0x08, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65,
0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e,
0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x49, 0x45, 0x57, 0x5f,
0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01,
0x12, 0x17, 0x0a, 0x13, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45,
0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x49, 0x45,
0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x57, 0x52, 0x49, 0x54,
0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45,
0x5f, 0x50, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x04, 0x2a, 0x41, 0x0a, 0x06, 0x54, 0x61,
0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x49,
0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x41, 0x52, 0x47,
0x45, 0x54, 0x5f, 0x49, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x54,
0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x42, 0x4c, 0x41, 0x4e, 0x4b, 0x10, 0x02, 0x42, 0xf8, 0x01,
0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72,
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e,
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33,
0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63,
0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x50, 0xaa, 0x02, 0x18,
0x43, 0x73, 0x33, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x41,
0x70, 0x70, 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x70, 0x70, 0x5c, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x73, 0x33,
0x3a, 0x3a, 0x41, 0x70, 0x70, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x3a,
0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/app/provider/v1beta1/resources.proto", fileDescriptor_f3a36ae8e74be4dc)
var (
file_cs3_app_provider_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_app_provider_v1beta1_resources_proto_rawDescData = file_cs3_app_provider_v1beta1_resources_proto_rawDesc
)
func file_cs3_app_provider_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_app_provider_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_app_provider_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_app_provider_v1beta1_resources_proto_rawDescData)
})
return file_cs3_app_provider_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_f3a36ae8e74be4dc = []byte{
// 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, 0xc6, 0xd3, 0xb3, 0x36, 0xdd, 0x36, 0x95, 0xae, 0x4f,
0xa4, 0x97, 0x4a, 0x47, 0xc1, 0xaf, 0x66, 0x6f, 0x91, 0xe8, 0x07, 0x5e, 0xbb, 0xdd, 0x00, 0x49,
0x1f, 0xf6, 0xee, 0xa4, 0x98, 0xa5, 0xe6, 0x3b, 0x99, 0xb9, 0xfb, 0x8f, 0xe6, 0x6f, 0xf2, 0xae,
0xdc, 0xb5, 0xf4, 0x20, 0xe7, 0x50, 0x49, 0x84, 0xfe, 0x20, 0x13, 0x67, 0xb7, 0x6e, 0x34, 0x6a,
0x67, 0xf5, 0xed, 0x6e, 0xa3, 0x4c, 0xc7, 0x0b, 0xfd, 0x09, 0x83, 0xc3, 0xbf, 0xec, 0x4b, 0x6c,
0xb0, 0x3e, 0xca, 0x87, 0x22, 0xb1, 0xf4, 0x49, 0x8e, 0x60, 0x77, 0x25, 0xe6, 0x4b, 0x59, 0xa4,
0x95, 0x17, 0x6d, 0xf3, 0xdc, 0x38, 0x69, 0x43, 0x75, 0x7d, 0xab, 0xff, 0xe9, 0x3d, 0xfd, 0x62,
0xc0, 0xe3, 0xf1, 0xbd, 0xfc, 0xd4, 0x57, 0x33, 0x49, 0x9e, 0xc3, 0xc1, 0xd8, 0xf7, 0xae, 0xa7,
0xfd, 0x61, 0xd7, 0x9b, 0xfa, 0x83, 0x31, 0xeb, 0xf9, 0x5d, 0xfb, 0x11, 0x39, 0x86, 0xc3, 0xdf,
0x70, 0xf6, 0x1a, 0x0e, 0x7a, 0xef, 0x6c, 0x63, 0x93, 0xe0, 0x1e, 0xeb, 0xe6, 0x84, 0x49, 0x1c,
0x38, 0xfa, 0x83, 0xb8, 0xe6, 0xfe, 0xc8, 0xb3, 0xad, 0xcd, 0x11, 0x01, 0xf7, 0xd2, 0xc2, 0xde,
0x39, 0x65, 0x50, 0xc9, 0x73, 0x21, 0x04, 0x6a, 0x23, 0xc6, 0x5f, 0x7b, 0xa3, 0xb5, 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,
var file_cs3_app_provider_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_cs3_app_provider_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_cs3_app_provider_v1beta1_resources_proto_goTypes = []interface{}{
(ViewMode)(0), // 0: cs3.app.provider.v1beta1.ViewMode
(Target)(0), // 1: cs3.app.provider.v1beta1.Target
(*OpenInAppURL)(nil), // 2: cs3.app.provider.v1beta1.OpenInAppURL
nil, // 3: cs3.app.provider.v1beta1.OpenInAppURL.FormParametersEntry
nil, // 4: cs3.app.provider.v1beta1.OpenInAppURL.HeadersEntry
}
var file_cs3_app_provider_v1beta1_resources_proto_depIdxs = []int32{
3, // 0: cs3.app.provider.v1beta1.OpenInAppURL.form_parameters:type_name -> cs3.app.provider.v1beta1.OpenInAppURL.FormParametersEntry
4, // 1: cs3.app.provider.v1beta1.OpenInAppURL.headers:type_name -> cs3.app.provider.v1beta1.OpenInAppURL.HeadersEntry
1, // 2: cs3.app.provider.v1beta1.OpenInAppURL.target:type_name -> cs3.app.provider.v1beta1.Target
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_cs3_app_provider_v1beta1_resources_proto_init() }
func file_cs3_app_provider_v1beta1_resources_proto_init() {
if File_cs3_app_provider_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_app_provider_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*OpenInAppURL); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_app_provider_v1beta1_resources_proto_rawDesc,
NumEnums: 2,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_app_provider_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_app_provider_v1beta1_resources_proto_depIdxs,
EnumInfos: file_cs3_app_provider_v1beta1_resources_proto_enumTypes,
MessageInfos: file_cs3_app_provider_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_app_provider_v1beta1_resources_proto = out.File
file_cs3_app_provider_v1beta1_resources_proto_rawDesc = nil
file_cs3_app_provider_v1beta1_resources_proto_goTypes = nil
file_cs3_app_provider_v1beta1_resources_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,324 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/app/registry/v1beta1/registry_api.proto
package registryv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
RegistryAPI_GetAppProviders_FullMethodName = "/cs3.app.registry.v1beta1.RegistryAPI/GetAppProviders"
RegistryAPI_AddAppProvider_FullMethodName = "/cs3.app.registry.v1beta1.RegistryAPI/AddAppProvider"
RegistryAPI_ListAppProviders_FullMethodName = "/cs3.app.registry.v1beta1.RegistryAPI/ListAppProviders"
RegistryAPI_ListSupportedMimeTypes_FullMethodName = "/cs3.app.registry.v1beta1.RegistryAPI/ListSupportedMimeTypes"
RegistryAPI_GetDefaultAppProviderForMimeType_FullMethodName = "/cs3.app.registry.v1beta1.RegistryAPI/GetDefaultAppProviderForMimeType"
RegistryAPI_SetDefaultAppProviderForMimeType_FullMethodName = "/cs3.app.registry.v1beta1.RegistryAPI/SetDefaultAppProviderForMimeType"
)
// RegistryAPIClient is the client API for RegistryAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RegistryAPIClient interface {
// Returns the app providers that are capable of handling this resource info.
// MUST return CODE_NOT_FOUND if no providers are available.
GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...grpc.CallOption) (*GetAppProvidersResponse, error)
// Registers a new app provider to the registry.
AddAppProvider(ctx context.Context, in *AddAppProviderRequest, opts ...grpc.CallOption) (*AddAppProviderResponse, error)
// Returns a list of the available app providers known by this registry.
ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...grpc.CallOption) (*ListAppProvidersResponse, error)
// Returns a list of the supported mime types along with the apps which they can be opened with.
ListSupportedMimeTypes(ctx context.Context, in *ListSupportedMimeTypesRequest, opts ...grpc.CallOption) (*ListSupportedMimeTypesResponse, error)
// Returns the default app provider which serves a specified mime type.
GetDefaultAppProviderForMimeType(ctx context.Context, in *GetDefaultAppProviderForMimeTypeRequest, opts ...grpc.CallOption) (*GetDefaultAppProviderForMimeTypeResponse, error)
// Sets the default app provider for a specified mime type.
SetDefaultAppProviderForMimeType(ctx context.Context, in *SetDefaultAppProviderForMimeTypeRequest, opts ...grpc.CallOption) (*SetDefaultAppProviderForMimeTypeResponse, error)
}
type registryAPIClient struct {
cc grpc.ClientConnInterface
}
func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient {
return &registryAPIClient{cc}
}
func (c *registryAPIClient) GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...grpc.CallOption) (*GetAppProvidersResponse, error) {
out := new(GetAppProvidersResponse)
err := c.cc.Invoke(ctx, RegistryAPI_GetAppProviders_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *registryAPIClient) AddAppProvider(ctx context.Context, in *AddAppProviderRequest, opts ...grpc.CallOption) (*AddAppProviderResponse, error) {
out := new(AddAppProviderResponse)
err := c.cc.Invoke(ctx, RegistryAPI_AddAppProvider_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *registryAPIClient) ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...grpc.CallOption) (*ListAppProvidersResponse, error) {
out := new(ListAppProvidersResponse)
err := c.cc.Invoke(ctx, RegistryAPI_ListAppProviders_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *registryAPIClient) ListSupportedMimeTypes(ctx context.Context, in *ListSupportedMimeTypesRequest, opts ...grpc.CallOption) (*ListSupportedMimeTypesResponse, error) {
out := new(ListSupportedMimeTypesResponse)
err := c.cc.Invoke(ctx, RegistryAPI_ListSupportedMimeTypes_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *registryAPIClient) GetDefaultAppProviderForMimeType(ctx context.Context, in *GetDefaultAppProviderForMimeTypeRequest, opts ...grpc.CallOption) (*GetDefaultAppProviderForMimeTypeResponse, error) {
out := new(GetDefaultAppProviderForMimeTypeResponse)
err := c.cc.Invoke(ctx, RegistryAPI_GetDefaultAppProviderForMimeType_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *registryAPIClient) SetDefaultAppProviderForMimeType(ctx context.Context, in *SetDefaultAppProviderForMimeTypeRequest, opts ...grpc.CallOption) (*SetDefaultAppProviderForMimeTypeResponse, error) {
out := new(SetDefaultAppProviderForMimeTypeResponse)
err := c.cc.Invoke(ctx, RegistryAPI_SetDefaultAppProviderForMimeType_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RegistryAPIServer is the server API for RegistryAPI service.
// All implementations should embed UnimplementedRegistryAPIServer
// for forward compatibility
type RegistryAPIServer interface {
// Returns the app providers that are capable of handling this resource info.
// MUST return CODE_NOT_FOUND if no providers are available.
GetAppProviders(context.Context, *GetAppProvidersRequest) (*GetAppProvidersResponse, error)
// Registers a new app provider to the registry.
AddAppProvider(context.Context, *AddAppProviderRequest) (*AddAppProviderResponse, error)
// Returns a list of the available app providers known by this registry.
ListAppProviders(context.Context, *ListAppProvidersRequest) (*ListAppProvidersResponse, error)
// Returns a list of the supported mime types along with the apps which they can be opened with.
ListSupportedMimeTypes(context.Context, *ListSupportedMimeTypesRequest) (*ListSupportedMimeTypesResponse, error)
// Returns the default app provider which serves a specified mime type.
GetDefaultAppProviderForMimeType(context.Context, *GetDefaultAppProviderForMimeTypeRequest) (*GetDefaultAppProviderForMimeTypeResponse, error)
// Sets the default app provider for a specified mime type.
SetDefaultAppProviderForMimeType(context.Context, *SetDefaultAppProviderForMimeTypeRequest) (*SetDefaultAppProviderForMimeTypeResponse, error)
}
// UnimplementedRegistryAPIServer should be embedded to have forward compatible implementations.
type UnimplementedRegistryAPIServer struct {
}
func (UnimplementedRegistryAPIServer) GetAppProviders(context.Context, *GetAppProvidersRequest) (*GetAppProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAppProviders not implemented")
}
func (UnimplementedRegistryAPIServer) AddAppProvider(context.Context, *AddAppProviderRequest) (*AddAppProviderResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddAppProvider not implemented")
}
func (UnimplementedRegistryAPIServer) ListAppProviders(context.Context, *ListAppProvidersRequest) (*ListAppProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAppProviders not implemented")
}
func (UnimplementedRegistryAPIServer) ListSupportedMimeTypes(context.Context, *ListSupportedMimeTypesRequest) (*ListSupportedMimeTypesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListSupportedMimeTypes not implemented")
}
func (UnimplementedRegistryAPIServer) GetDefaultAppProviderForMimeType(context.Context, *GetDefaultAppProviderForMimeTypeRequest) (*GetDefaultAppProviderForMimeTypeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDefaultAppProviderForMimeType not implemented")
}
func (UnimplementedRegistryAPIServer) SetDefaultAppProviderForMimeType(context.Context, *SetDefaultAppProviderForMimeTypeRequest) (*SetDefaultAppProviderForMimeTypeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetDefaultAppProviderForMimeType not implemented")
}
// UnsafeRegistryAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RegistryAPIServer will
// result in compilation errors.
type UnsafeRegistryAPIServer interface {
mustEmbedUnimplementedRegistryAPIServer()
}
func RegisterRegistryAPIServer(s grpc.ServiceRegistrar, srv RegistryAPIServer) {
s.RegisterService(&RegistryAPI_ServiceDesc, srv)
}
func _RegistryAPI_GetAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAppProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).GetAppProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_GetAppProviders_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).GetAppProviders(ctx, req.(*GetAppProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegistryAPI_AddAppProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddAppProviderRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).AddAppProvider(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_AddAppProvider_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).AddAppProvider(ctx, req.(*AddAppProviderRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegistryAPI_ListAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAppProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).ListAppProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_ListAppProviders_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).ListAppProviders(ctx, req.(*ListAppProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegistryAPI_ListSupportedMimeTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListSupportedMimeTypesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).ListSupportedMimeTypes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_ListSupportedMimeTypes_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).ListSupportedMimeTypes(ctx, req.(*ListSupportedMimeTypesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegistryAPI_GetDefaultAppProviderForMimeType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDefaultAppProviderForMimeTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).GetDefaultAppProviderForMimeType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_GetDefaultAppProviderForMimeType_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).GetDefaultAppProviderForMimeType(ctx, req.(*GetDefaultAppProviderForMimeTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegistryAPI_SetDefaultAppProviderForMimeType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetDefaultAppProviderForMimeTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).SetDefaultAppProviderForMimeType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_SetDefaultAppProviderForMimeType_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).SetDefaultAppProviderForMimeType(ctx, req.(*SetDefaultAppProviderForMimeTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
// RegistryAPI_ServiceDesc is the grpc.ServiceDesc for RegistryAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RegistryAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.app.registry.v1beta1.RegistryAPI",
HandlerType: (*RegistryAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAppProviders",
Handler: _RegistryAPI_GetAppProviders_Handler,
},
{
MethodName: "AddAppProvider",
Handler: _RegistryAPI_AddAppProvider_Handler,
},
{
MethodName: "ListAppProviders",
Handler: _RegistryAPI_ListAppProviders_Handler,
},
{
MethodName: "ListSupportedMimeTypes",
Handler: _RegistryAPI_ListSupportedMimeTypes_Handler,
},
{
MethodName: "GetDefaultAppProviderForMimeType",
Handler: _RegistryAPI_GetDefaultAppProviderForMimeType_Handler,
},
{
MethodName: "SetDefaultAppProviderForMimeType",
Handler: _RegistryAPI_SetDefaultAppProviderForMimeType_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/app/registry/v1beta1/registry_api.proto",
}
+340 -171
View File
@@ -1,25 +1,43 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/app/registry/v1beta1/resources.proto
package registryv1beta1
import (
fmt "fmt"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// REQUIRED.
// The capability of the underlying app.
@@ -33,28 +51,53 @@ const (
ProviderInfo_CAPABILITY_EDITOR ProviderInfo_Capability = 2
)
var ProviderInfo_Capability_name = map[int32]string{
0: "CAPABILITY_INVALID",
1: "CAPABILITY_VIEWER",
2: "CAPABILITY_EDITOR",
}
// Enum value maps for ProviderInfo_Capability.
var (
ProviderInfo_Capability_name = map[int32]string{
0: "CAPABILITY_INVALID",
1: "CAPABILITY_VIEWER",
2: "CAPABILITY_EDITOR",
}
ProviderInfo_Capability_value = map[string]int32{
"CAPABILITY_INVALID": 0,
"CAPABILITY_VIEWER": 1,
"CAPABILITY_EDITOR": 2,
}
)
var ProviderInfo_Capability_value = map[string]int32{
"CAPABILITY_INVALID": 0,
"CAPABILITY_VIEWER": 1,
"CAPABILITY_EDITOR": 2,
func (x ProviderInfo_Capability) Enum() *ProviderInfo_Capability {
p := new(ProviderInfo_Capability)
*p = x
return p
}
func (x ProviderInfo_Capability) String() string {
return proto.EnumName(ProviderInfo_Capability_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProviderInfo_Capability) Descriptor() protoreflect.EnumDescriptor {
return file_cs3_app_registry_v1beta1_resources_proto_enumTypes[0].Descriptor()
}
func (ProviderInfo_Capability) Type() protoreflect.EnumType {
return &file_cs3_app_registry_v1beta1_resources_proto_enumTypes[0]
}
func (x ProviderInfo_Capability) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProviderInfo_Capability.Descriptor instead.
func (ProviderInfo_Capability) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_2e6a666226304af3, []int{0, 0}
return file_cs3_app_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0, 0}
}
// Represents the information of the app provider.
type ProviderInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
@@ -83,102 +126,110 @@ type ProviderInfo struct {
// 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:"-"`
Action string `protobuf:"bytes,9,opt,name=action,proto3" json:"action,omitempty"`
}
func (m *ProviderInfo) Reset() { *m = ProviderInfo{} }
func (m *ProviderInfo) String() string { return proto.CompactTextString(m) }
func (*ProviderInfo) ProtoMessage() {}
func (x *ProviderInfo) Reset() {
*x = ProviderInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_app_registry_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProviderInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProviderInfo) ProtoMessage() {}
func (x *ProviderInfo) ProtoReflect() protoreflect.Message {
mi := &file_cs3_app_registry_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProviderInfo.ProtoReflect.Descriptor instead.
func (*ProviderInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_2e6a666226304af3, []int{0}
return file_cs3_app_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *ProviderInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProviderInfo.Unmarshal(m, b)
}
func (m *ProviderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProviderInfo.Marshal(b, m, deterministic)
}
func (m *ProviderInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProviderInfo.Merge(m, src)
}
func (m *ProviderInfo) XXX_Size() int {
return xxx_messageInfo_ProviderInfo.Size(m)
}
func (m *ProviderInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ProviderInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ProviderInfo proto.InternalMessageInfo
func (m *ProviderInfo) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *ProviderInfo) GetMimeTypes() []string {
if m != nil {
return m.MimeTypes
func (x *ProviderInfo) GetMimeTypes() []string {
if x != nil {
return x.MimeTypes
}
return nil
}
func (m *ProviderInfo) GetAddress() string {
if m != nil {
return m.Address
func (x *ProviderInfo) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (m *ProviderInfo) GetCapability() ProviderInfo_Capability {
if m != nil {
return m.Capability
func (x *ProviderInfo) GetCapability() ProviderInfo_Capability {
if x != nil {
return x.Capability
}
return ProviderInfo_CAPABILITY_INVALID
}
func (m *ProviderInfo) GetName() string {
if m != nil {
return m.Name
func (x *ProviderInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *ProviderInfo) GetDescription() string {
if m != nil {
return m.Description
func (x *ProviderInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *ProviderInfo) GetIcon() string {
if m != nil {
return m.Icon
func (x *ProviderInfo) GetIcon() string {
if x != nil {
return x.Icon
}
return ""
}
func (m *ProviderInfo) GetDesktopOnly() bool {
if m != nil {
return m.DesktopOnly
func (x *ProviderInfo) GetDesktopOnly() bool {
if x != nil {
return x.DesktopOnly
}
return false
}
func (m *ProviderInfo) GetAction() string {
if m != nil {
return m.Action
func (x *ProviderInfo) GetAction() string {
if x != nil {
return x.Action
}
return ""
}
// Represents a mime type and its corresponding file extension.
type MimeTypeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
@@ -207,143 +258,261 @@ type MimeTypeInfo struct {
AllowCreation bool `protobuf:"varint,8,opt,name=allow_creation,json=allowCreation,proto3" json:"allow_creation,omitempty"`
// OPTIONAL.
// name of the default application to open this mime type
DefaultApplication string `protobuf:"bytes,9,opt,name=default_application,json=defaultApplication,proto3" json:"default_application,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
DefaultApplication string `protobuf:"bytes,9,opt,name=default_application,json=defaultApplication,proto3" json:"default_application,omitempty"`
}
func (m *MimeTypeInfo) Reset() { *m = MimeTypeInfo{} }
func (m *MimeTypeInfo) String() string { return proto.CompactTextString(m) }
func (*MimeTypeInfo) ProtoMessage() {}
func (x *MimeTypeInfo) Reset() {
*x = MimeTypeInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_app_registry_v1beta1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MimeTypeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MimeTypeInfo) ProtoMessage() {}
func (x *MimeTypeInfo) ProtoReflect() protoreflect.Message {
mi := &file_cs3_app_registry_v1beta1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MimeTypeInfo.ProtoReflect.Descriptor instead.
func (*MimeTypeInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_2e6a666226304af3, []int{1}
return file_cs3_app_registry_v1beta1_resources_proto_rawDescGZIP(), []int{1}
}
func (m *MimeTypeInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MimeTypeInfo.Unmarshal(m, b)
}
func (m *MimeTypeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MimeTypeInfo.Marshal(b, m, deterministic)
}
func (m *MimeTypeInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_MimeTypeInfo.Merge(m, src)
}
func (m *MimeTypeInfo) XXX_Size() int {
return xxx_messageInfo_MimeTypeInfo.Size(m)
}
func (m *MimeTypeInfo) XXX_DiscardUnknown() {
xxx_messageInfo_MimeTypeInfo.DiscardUnknown(m)
}
var xxx_messageInfo_MimeTypeInfo proto.InternalMessageInfo
func (m *MimeTypeInfo) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *MimeTypeInfo) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *MimeTypeInfo) GetMimeType() string {
if m != nil {
return m.MimeType
func (x *MimeTypeInfo) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
func (m *MimeTypeInfo) GetExt() string {
if m != nil {
return m.Ext
func (x *MimeTypeInfo) GetExt() string {
if x != nil {
return x.Ext
}
return ""
}
func (m *MimeTypeInfo) GetAppProviders() []*ProviderInfo {
if m != nil {
return m.AppProviders
func (x *MimeTypeInfo) GetAppProviders() []*ProviderInfo {
if x != nil {
return x.AppProviders
}
return nil
}
func (m *MimeTypeInfo) GetName() string {
if m != nil {
return m.Name
func (x *MimeTypeInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *MimeTypeInfo) GetDescription() string {
if m != nil {
return m.Description
func (x *MimeTypeInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *MimeTypeInfo) GetIcon() string {
if m != nil {
return m.Icon
func (x *MimeTypeInfo) GetIcon() string {
if x != nil {
return x.Icon
}
return ""
}
func (m *MimeTypeInfo) GetAllowCreation() bool {
if m != nil {
return m.AllowCreation
func (x *MimeTypeInfo) GetAllowCreation() bool {
if x != nil {
return x.AllowCreation
}
return false
}
func (m *MimeTypeInfo) GetDefaultApplication() string {
if m != nil {
return m.DefaultApplication
func (x *MimeTypeInfo) GetDefaultApplication() string {
if x != nil {
return x.DefaultApplication
}
return ""
}
func init() {
proto.RegisterEnum("cs3.app.registry.v1beta1.ProviderInfo_Capability", ProviderInfo_Capability_name, ProviderInfo_Capability_value)
proto.RegisterType((*ProviderInfo)(nil), "cs3.app.registry.v1beta1.ProviderInfo")
proto.RegisterType((*MimeTypeInfo)(nil), "cs3.app.registry.v1beta1.MimeTypeInfo")
var File_cs3_app_registry_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_app_registry_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e,
0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x03, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52,
0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6d, 0x65, 0x5f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x69, 0x6d,
0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x12, 0x51, 0x0a, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x04,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x43, 0x61, 0x70,
0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c,
0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f,
0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x21, 0x0a,
0x0c, 0x64, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x08, 0x20,
0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x4f, 0x6e, 0x6c, 0x79,
0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x52, 0x0a, 0x0a, 0x43, 0x61, 0x70, 0x61,
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49,
0x4c, 0x49, 0x54, 0x59, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x15,
0x0a, 0x11, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x49, 0x45,
0x57, 0x45, 0x52, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c,
0x49, 0x54, 0x59, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x22, 0xdf, 0x02, 0x0a,
0x0c, 0x4d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a,
0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65,
0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a,
0x03, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x78, 0x74, 0x12,
0x4b, 0x0a, 0x0d, 0x61, 0x70, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,
0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70,
0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c,
0x61, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f,
0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d,
0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a,
0x13, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x66, 0x61,
0x75, 0x6c, 0x74, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xf8,
0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42,
0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
0x01, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73,
0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f,
0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02,
0x18, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c,
0x41, 0x70, 0x70, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x70, 0x70, 0x5c, 0x52,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c,
0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x73,
0x33, 0x3a, 0x3a, 0x41, 0x70, 0x70, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
func init() {
proto.RegisterFile("cs3/app/registry/v1beta1/resources.proto", fileDescriptor_2e6a666226304af3)
var (
file_cs3_app_registry_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_app_registry_v1beta1_resources_proto_rawDescData = file_cs3_app_registry_v1beta1_resources_proto_rawDesc
)
func file_cs3_app_registry_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_app_registry_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_app_registry_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_app_registry_v1beta1_resources_proto_rawDescData)
})
return file_cs3_app_registry_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_2e6a666226304af3 = []byte{
// 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, 0xb8, 0x19, 0x7f, 0x36, 0xa9, 0x24, 0x9a, 0x5e,
0x0d, 0x01, 0x9e, 0xa0, 0xb0, 0x5c, 0x34, 0xae, 0x82, 0x13, 0x82, 0xd1, 0x90, 0x34, 0x43, 0x3b,
0x6b, 0x1a, 0x4b, 0x67, 0xec, 0x94, 0x55, 0x2e, 0x7c, 0x19, 0x2f, 0xbc, 0xf0, 0x51, 0x7c, 0x09,
0x5f, 0xc5, 0x74, 0x98, 0xb2, 0xc4, 0x64, 0x13, 0x63, 0xbc, 0x9b, 0xf9, 0xfe, 0x7a, 0x3a, 0x5f,
0x0e, 0x78, 0x91, 0x1a, 0xf5, 0x99, 0x94, 0xfd, 0x9c, 0x7f, 0x48, 0x54, 0x91, 0xef, 0xfa, 0xd7,
0x83, 0x35, 0x2f, 0xd8, 0xa0, 0x9f, 0x73, 0x25, 0xb6, 0x79, 0xc4, 0x15, 0x91, 0xb9, 0x28, 0x04,
0xc2, 0x91, 0x1a, 0x11, 0x26, 0x25, 0xa9, 0x94, 0xc4, 0x28, 0x1f, 0x9f, 0x97, 0x19, 0xc5, 0x4e,
0x72, 0x75, 0x30, 0xeb, 0xdb, 0xde, 0xd8, 0xfb, 0xee, 0x40, 0x7b, 0x9e, 0x8b, 0xeb, 0x24, 0xe6,
0x79, 0x90, 0x5d, 0x09, 0x34, 0x80, 0xba, 0x90, 0xec, 0xd3, 0x96, 0x63, 0xcb, 0xb5, 0xbc, 0xd6,
0xf0, 0x11, 0x29, 0xa3, 0xf7, 0x16, 0x13, 0x40, 0x66, 0x5a, 0x40, 0x8d, 0x10, 0x9d, 0x03, 0x6c,
0x92, 0x0d, 0x0f, 0xb5, 0x08, 0xdb, 0xae, 0xe3, 0x35, 0x69, 0xb3, 0x44, 0x16, 0x25, 0x80, 0x30,
0x9c, 0xb0, 0x38, 0xce, 0xb9, 0x52, 0xd8, 0x71, 0x2d, 0xaf, 0x49, 0xab, 0x2b, 0x7a, 0x03, 0x10,
0x31, 0xc9, 0xd6, 0x49, 0x9a, 0x14, 0x3b, 0x5c, 0x73, 0x2d, 0xaf, 0x33, 0x1c, 0x90, 0xdb, 0x7e,
0x85, 0x1c, 0xcf, 0x49, 0x26, 0x07, 0x23, 0x3d, 0x0a, 0x41, 0x08, 0x6a, 0x19, 0xdb, 0x70, 0x7c,
0x57, 0x7f, 0x49, 0x9f, 0x91, 0x0b, 0xad, 0x98, 0xab, 0x28, 0x4f, 0x64, 0x91, 0x88, 0x0c, 0xd7,
0x35, 0x75, 0x0c, 0x95, 0xae, 0x24, 0x12, 0x19, 0x3e, 0xd9, 0xbb, 0xca, 0x33, 0x7a, 0x06, 0xed,
0x98, 0xab, 0x8f, 0x85, 0x90, 0xa1, 0xc8, 0xd2, 0x1d, 0x6e, 0xb8, 0x96, 0xd7, 0xd0, 0xb6, 0x12,
0x9b, 0x65, 0xe9, 0x0e, 0x9d, 0x41, 0x9d, 0x45, 0x3a, 0xb3, 0xa9, 0x8d, 0xe6, 0xd6, 0xa3, 0x00,
0x37, 0xe3, 0xa1, 0x33, 0x40, 0x13, 0x7f, 0xee, 0x8f, 0x83, 0xcb, 0x60, 0xf1, 0x2e, 0x0c, 0x5e,
0x2f, 0xfd, 0xcb, 0xe0, 0xa2, 0x7b, 0x07, 0x3d, 0x84, 0xfb, 0x47, 0xf8, 0x32, 0x98, 0xbe, 0x9d,
0xd2, 0xae, 0xf5, 0x07, 0x3c, 0xbd, 0x08, 0x16, 0x33, 0xda, 0xb5, 0x7b, 0xbf, 0x6c, 0x68, 0xbf,
0x32, 0x6f, 0xfa, 0xaf, 0x45, 0x3d, 0x81, 0xe6, 0xa1, 0x28, 0x6c, 0xeb, 0x91, 0x1b, 0x55, 0x4f,
0xa8, 0x0b, 0x0e, 0xff, 0x52, 0x98, 0x8a, 0xca, 0x23, 0x7a, 0x09, 0xa7, 0x4c, 0xca, 0x50, 0x9a,
0x67, 0x57, 0xb8, 0xe6, 0x3a, 0x5e, 0x6b, 0xf8, 0xe2, 0xef, 0x1a, 0xa2, 0x6d, 0x26, 0x65, 0x05,
0xa8, 0xff, 0x58, 0xcc, 0x73, 0xe8, 0xb0, 0x34, 0x15, 0x9f, 0xc3, 0x28, 0xe7, 0x4c, 0x1b, 0xf7,
0xd5, 0x9c, 0x6a, 0x74, 0x62, 0x40, 0xd4, 0x87, 0x07, 0x31, 0xbf, 0x62, 0xdb, 0xb4, 0x08, 0x99,
0x94, 0x69, 0x12, 0xb1, 0xa3, 0xa6, 0x90, 0xa1, 0xfc, 0x1b, 0x66, 0xfc, 0x15, 0x9e, 0x46, 0x62,
0x73, 0xeb, 0xcf, 0x8d, 0x3b, 0xb4, 0x5a, 0xba, 0x79, 0xb9, 0x3a, 0x73, 0xeb, 0xfd, 0xbd, 0x4a,
0x63, 0x24, 0xdf, 0x6c, 0x67, 0xe2, 0xd3, 0x1f, 0x36, 0x9e, 0xa8, 0x11, 0xf1, 0xa5, 0x24, 0xb4,
0xca, 0x58, 0x0e, 0xc6, 0xa5, 0xe0, 0xa7, 0xa6, 0x56, 0xbe, 0x94, 0xab, 0x8a, 0x5a, 0x19, 0x6a,
0x5d, 0xd7, 0x0b, 0x39, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x25, 0x86, 0x7b, 0x9b, 0xf5, 0x03,
0x00, 0x00,
var file_cs3_app_registry_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_cs3_app_registry_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_cs3_app_registry_v1beta1_resources_proto_goTypes = []interface{}{
(ProviderInfo_Capability)(0), // 0: cs3.app.registry.v1beta1.ProviderInfo.Capability
(*ProviderInfo)(nil), // 1: cs3.app.registry.v1beta1.ProviderInfo
(*MimeTypeInfo)(nil), // 2: cs3.app.registry.v1beta1.MimeTypeInfo
(*v1beta1.Opaque)(nil), // 3: cs3.types.v1beta1.Opaque
}
var file_cs3_app_registry_v1beta1_resources_proto_depIdxs = []int32{
3, // 0: cs3.app.registry.v1beta1.ProviderInfo.opaque:type_name -> cs3.types.v1beta1.Opaque
0, // 1: cs3.app.registry.v1beta1.ProviderInfo.capability:type_name -> cs3.app.registry.v1beta1.ProviderInfo.Capability
3, // 2: cs3.app.registry.v1beta1.MimeTypeInfo.opaque:type_name -> cs3.types.v1beta1.Opaque
1, // 3: cs3.app.registry.v1beta1.MimeTypeInfo.app_providers:type_name -> cs3.app.registry.v1beta1.ProviderInfo
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_cs3_app_registry_v1beta1_resources_proto_init() }
func file_cs3_app_registry_v1beta1_resources_proto_init() {
if File_cs3_app_registry_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_app_registry_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ProviderInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_app_registry_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MimeTypeInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_app_registry_v1beta1_resources_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_app_registry_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_app_registry_v1beta1_resources_proto_depIdxs,
EnumInfos: file_cs3_app_registry_v1beta1_resources_proto_enumTypes,
MessageInfos: file_cs3_app_registry_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_app_registry_v1beta1_resources_proto = out.File
file_cs3_app_registry_v1beta1_resources_proto_rawDesc = nil
file_cs3_app_registry_v1beta1_resources_proto_goTypes = nil
file_cs3_app_registry_v1beta1_resources_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,246 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/auth/applications/v1beta1/applications_api.proto
package applicationsv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
ApplicationsAPI_GenerateAppPassword_FullMethodName = "/cs3.auth.applications.v1beta1.ApplicationsAPI/GenerateAppPassword"
ApplicationsAPI_ListAppPasswords_FullMethodName = "/cs3.auth.applications.v1beta1.ApplicationsAPI/ListAppPasswords"
ApplicationsAPI_InvalidateAppPassword_FullMethodName = "/cs3.auth.applications.v1beta1.ApplicationsAPI/InvalidateAppPassword"
ApplicationsAPI_GetAppPassword_FullMethodName = "/cs3.auth.applications.v1beta1.ApplicationsAPI/GetAppPassword"
)
// ApplicationsAPIClient is the client API for ApplicationsAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ApplicationsAPIClient interface {
// GenerateAppPassword creates a password with specified scope to be used by
// third-party applications.
GenerateAppPassword(ctx context.Context, in *GenerateAppPasswordRequest, opts ...grpc.CallOption) (*GenerateAppPasswordResponse, error)
// ListAppPasswords lists the application passwords created by a user.
ListAppPasswords(ctx context.Context, in *ListAppPasswordsRequest, opts ...grpc.CallOption) (*ListAppPasswordsResponse, error)
// InvalidateAppPassword invalidates a generated password.
InvalidateAppPassword(ctx context.Context, in *InvalidateAppPasswordRequest, opts ...grpc.CallOption) (*InvalidateAppPasswordResponse, error)
// GetAppPassword retrieves the password information by the combination of username and password.
GetAppPassword(ctx context.Context, in *GetAppPasswordRequest, opts ...grpc.CallOption) (*GetAppPasswordResponse, error)
}
type applicationsAPIClient struct {
cc grpc.ClientConnInterface
}
func NewApplicationsAPIClient(cc grpc.ClientConnInterface) ApplicationsAPIClient {
return &applicationsAPIClient{cc}
}
func (c *applicationsAPIClient) GenerateAppPassword(ctx context.Context, in *GenerateAppPasswordRequest, opts ...grpc.CallOption) (*GenerateAppPasswordResponse, error) {
out := new(GenerateAppPasswordResponse)
err := c.cc.Invoke(ctx, ApplicationsAPI_GenerateAppPassword_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationsAPIClient) ListAppPasswords(ctx context.Context, in *ListAppPasswordsRequest, opts ...grpc.CallOption) (*ListAppPasswordsResponse, error) {
out := new(ListAppPasswordsResponse)
err := c.cc.Invoke(ctx, ApplicationsAPI_ListAppPasswords_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationsAPIClient) InvalidateAppPassword(ctx context.Context, in *InvalidateAppPasswordRequest, opts ...grpc.CallOption) (*InvalidateAppPasswordResponse, error) {
out := new(InvalidateAppPasswordResponse)
err := c.cc.Invoke(ctx, ApplicationsAPI_InvalidateAppPassword_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationsAPIClient) GetAppPassword(ctx context.Context, in *GetAppPasswordRequest, opts ...grpc.CallOption) (*GetAppPasswordResponse, error) {
out := new(GetAppPasswordResponse)
err := c.cc.Invoke(ctx, ApplicationsAPI_GetAppPassword_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ApplicationsAPIServer is the server API for ApplicationsAPI service.
// All implementations should embed UnimplementedApplicationsAPIServer
// for forward compatibility
type ApplicationsAPIServer interface {
// GenerateAppPassword creates a password with specified scope to be used by
// third-party applications.
GenerateAppPassword(context.Context, *GenerateAppPasswordRequest) (*GenerateAppPasswordResponse, error)
// ListAppPasswords lists the application passwords created by a user.
ListAppPasswords(context.Context, *ListAppPasswordsRequest) (*ListAppPasswordsResponse, error)
// InvalidateAppPassword invalidates a generated password.
InvalidateAppPassword(context.Context, *InvalidateAppPasswordRequest) (*InvalidateAppPasswordResponse, error)
// GetAppPassword retrieves the password information by the combination of username and password.
GetAppPassword(context.Context, *GetAppPasswordRequest) (*GetAppPasswordResponse, error)
}
// UnimplementedApplicationsAPIServer should be embedded to have forward compatible implementations.
type UnimplementedApplicationsAPIServer struct {
}
func (UnimplementedApplicationsAPIServer) GenerateAppPassword(context.Context, *GenerateAppPasswordRequest) (*GenerateAppPasswordResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GenerateAppPassword not implemented")
}
func (UnimplementedApplicationsAPIServer) ListAppPasswords(context.Context, *ListAppPasswordsRequest) (*ListAppPasswordsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAppPasswords not implemented")
}
func (UnimplementedApplicationsAPIServer) InvalidateAppPassword(context.Context, *InvalidateAppPasswordRequest) (*InvalidateAppPasswordResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method InvalidateAppPassword not implemented")
}
func (UnimplementedApplicationsAPIServer) GetAppPassword(context.Context, *GetAppPasswordRequest) (*GetAppPasswordResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAppPassword not implemented")
}
// UnsafeApplicationsAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ApplicationsAPIServer will
// result in compilation errors.
type UnsafeApplicationsAPIServer interface {
mustEmbedUnimplementedApplicationsAPIServer()
}
func RegisterApplicationsAPIServer(s grpc.ServiceRegistrar, srv ApplicationsAPIServer) {
s.RegisterService(&ApplicationsAPI_ServiceDesc, srv)
}
func _ApplicationsAPI_GenerateAppPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GenerateAppPasswordRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationsAPIServer).GenerateAppPassword(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ApplicationsAPI_GenerateAppPassword_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationsAPIServer).GenerateAppPassword(ctx, req.(*GenerateAppPasswordRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationsAPI_ListAppPasswords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAppPasswordsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationsAPIServer).ListAppPasswords(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ApplicationsAPI_ListAppPasswords_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationsAPIServer).ListAppPasswords(ctx, req.(*ListAppPasswordsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationsAPI_InvalidateAppPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InvalidateAppPasswordRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationsAPIServer).InvalidateAppPassword(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ApplicationsAPI_InvalidateAppPassword_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationsAPIServer).InvalidateAppPassword(ctx, req.(*InvalidateAppPasswordRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ApplicationsAPI_GetAppPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAppPasswordRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationsAPIServer).GetAppPassword(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ApplicationsAPI_GetAppPassword_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationsAPIServer).GetAppPassword(ctx, req.(*GetAppPasswordRequest))
}
return interceptor(ctx, in, info, handler)
}
// ApplicationsAPI_ServiceDesc is the grpc.ServiceDesc for ApplicationsAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ApplicationsAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.auth.applications.v1beta1.ApplicationsAPI",
HandlerType: (*ApplicationsAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GenerateAppPassword",
Handler: _ApplicationsAPI_GenerateAppPassword_Handler,
},
{
MethodName: "ListAppPasswords",
Handler: _ApplicationsAPI_ListAppPasswords_Handler,
},
{
MethodName: "InvalidateAppPassword",
Handler: _ApplicationsAPI_InvalidateAppPassword_Handler,
},
{
MethodName: "GetAppPassword",
Handler: _ApplicationsAPI_GetAppPassword_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/auth/applications/v1beta1/applications_api.proto",
}
@@ -1,31 +1,53 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/auth/applications/v1beta1/resources.proto
package applicationsv1beta1
import (
fmt "fmt"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/auth/provider/v1beta1"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
v1beta12 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// AppPassword stores information about secondary passwords generated by users
// to be used with third-party applications.
type AppPassword struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The generated access password.
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
@@ -47,121 +69,225 @@ type AppPassword struct {
Ctime *v1beta12.Timestamp `protobuf:"bytes,6,opt,name=ctime,proto3" json:"ctime,omitempty"`
// REQUIRED.
// The last time the password was used.
Utime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=utime,proto3" json:"utime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Utime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=utime,proto3" json:"utime,omitempty"`
}
func (m *AppPassword) Reset() { *m = AppPassword{} }
func (m *AppPassword) String() string { return proto.CompactTextString(m) }
func (*AppPassword) ProtoMessage() {}
func (x *AppPassword) Reset() {
*x = AppPassword{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_auth_applications_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AppPassword) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppPassword) ProtoMessage() {}
func (x *AppPassword) ProtoReflect() protoreflect.Message {
mi := &file_cs3_auth_applications_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AppPassword.ProtoReflect.Descriptor instead.
func (*AppPassword) Descriptor() ([]byte, []int) {
return fileDescriptor_1b1b72514a65f2c5, []int{0}
return file_cs3_auth_applications_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *AppPassword) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AppPassword.Unmarshal(m, b)
}
func (m *AppPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AppPassword.Marshal(b, m, deterministic)
}
func (m *AppPassword) XXX_Merge(src proto.Message) {
xxx_messageInfo_AppPassword.Merge(m, src)
}
func (m *AppPassword) XXX_Size() int {
return xxx_messageInfo_AppPassword.Size(m)
}
func (m *AppPassword) XXX_DiscardUnknown() {
xxx_messageInfo_AppPassword.DiscardUnknown(m)
}
var xxx_messageInfo_AppPassword proto.InternalMessageInfo
func (m *AppPassword) GetPassword() string {
if m != nil {
return m.Password
func (x *AppPassword) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (m *AppPassword) GetTokenScope() map[string]*v1beta1.Scope {
if m != nil {
return m.TokenScope
func (x *AppPassword) GetTokenScope() map[string]*v1beta1.Scope {
if x != nil {
return x.TokenScope
}
return nil
}
func (m *AppPassword) GetLabel() string {
if m != nil {
return m.Label
func (x *AppPassword) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
func (m *AppPassword) GetUser() *v1beta11.UserId {
if m != nil {
return m.User
func (x *AppPassword) GetUser() *v1beta11.UserId {
if x != nil {
return x.User
}
return nil
}
func (m *AppPassword) GetExpiration() *v1beta12.Timestamp {
if m != nil {
return m.Expiration
func (x *AppPassword) GetExpiration() *v1beta12.Timestamp {
if x != nil {
return x.Expiration
}
return nil
}
func (m *AppPassword) GetCtime() *v1beta12.Timestamp {
if m != nil {
return m.Ctime
func (x *AppPassword) GetCtime() *v1beta12.Timestamp {
if x != nil {
return x.Ctime
}
return nil
}
func (m *AppPassword) GetUtime() *v1beta12.Timestamp {
if m != nil {
return m.Utime
func (x *AppPassword) GetUtime() *v1beta12.Timestamp {
if x != nil {
return x.Utime
}
return nil
}
func init() {
proto.RegisterType((*AppPassword)(nil), "cs3.auth.applications.v1beta1.AppPassword")
proto.RegisterMapType((map[string]*v1beta1.Scope)(nil), "cs3.auth.applications.v1beta1.AppPassword.TokenScopeEntry")
var File_cs3_auth_applications_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_auth_applications_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x2d, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x1d, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29,
0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0xda, 0x03, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x50, 0x61, 0x73, 0x73, 0x77,
0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
0x5b, 0x0a, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05,
0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62,
0x65, 0x6c, 0x12, 0x35, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e,
0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65,
0x72, 0x49, 0x64, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x0a, 0x65, 0x78, 0x70,
0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70,
0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65,
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70,
0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x75,
0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x75, 0x74, 0x69, 0x6d, 0x65, 0x1a,
0x5f, 0x0a, 0x0f, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
0x42, 0x9a, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63,
0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f,
0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x41, 0xaa, 0x02,
0x1d, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02,
0x1d, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02,
0x29, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x20, 0x43, 0x73, 0x33,
0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x3a, 0x3a, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/auth/applications/v1beta1/resources.proto", fileDescriptor_1b1b72514a65f2c5)
var (
file_cs3_auth_applications_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_auth_applications_v1beta1_resources_proto_rawDescData = file_cs3_auth_applications_v1beta1_resources_proto_rawDesc
)
func file_cs3_auth_applications_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_auth_applications_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_auth_applications_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_applications_v1beta1_resources_proto_rawDescData)
})
return file_cs3_auth_applications_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_1b1b72514a65f2c5 = []byte{
// 412 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xdf, 0xca, 0xd3, 0x30,
0x18, 0xc6, 0x69, 0xbb, 0x4e, 0x4d, 0x41, 0x25, 0x7a, 0x50, 0x86, 0x83, 0xce, 0xa3, 0x79, 0x60,
0xca, 0x56, 0x14, 0x19, 0x9e, 0x74, 0xc3, 0x03, 0xcf, 0x46, 0x9d, 0x1e, 0xe8, 0x60, 0x64, 0x6d,
0xc0, 0xb0, 0xb6, 0x09, 0x49, 0x3a, 0xed, 0x5d, 0x78, 0x0d, 0x1e, 0x7a, 0x29, 0x5e, 0x82, 0x57,
0x23, 0x49, 0xff, 0xac, 0x7c, 0xf0, 0x8d, 0x9d, 0x25, 0x7d, 0x7e, 0xcf, 0xf3, 0xe6, 0x7d, 0xfb,
0x82, 0xd7, 0xa9, 0x8c, 0x42, 0x5c, 0xa9, 0xef, 0x21, 0xe6, 0x3c, 0xa7, 0x29, 0x56, 0x94, 0x95,
0x32, 0x3c, 0x2f, 0x8e, 0x44, 0xe1, 0x45, 0x28, 0x88, 0x64, 0x95, 0x48, 0x89, 0x44, 0x5c, 0x30,
0xc5, 0xe0, 0x34, 0x95, 0x11, 0xd2, 0x38, 0x1a, 0xe2, 0xa8, 0xc5, 0x27, 0xaf, 0xfa, 0x34, 0x2e,
0xd8, 0x99, 0x66, 0x44, 0xdc, 0x97, 0xd4, 0xa0, 0x34, 0x23, 0xa5, 0xa2, 0xaa, 0x0e, 0x2b, 0x79,
0x05, 0xd5, 0x45, 0x43, 0x55, 0x73, 0x72, 0x79, 0x97, 0xb9, 0x35, 0xf2, 0xcb, 0x7f, 0x0e, 0xf0,
0x62, 0xce, 0xb7, 0x58, 0xca, 0x1f, 0x4c, 0x64, 0x70, 0x02, 0x1e, 0xf2, 0xf6, 0xec, 0x5b, 0x81,
0x35, 0x7f, 0x94, 0xf4, 0x77, 0xf8, 0x0d, 0x78, 0x8a, 0x9d, 0x48, 0x79, 0x90, 0x29, 0xe3, 0xc4,
0xb7, 0x03, 0x67, 0xee, 0x2d, 0x57, 0xe8, 0x6a, 0x57, 0x68, 0x10, 0x8e, 0x76, 0xda, 0xfd, 0x49,
0x9b, 0x3f, 0x94, 0x4a, 0xd4, 0x09, 0x50, 0xfd, 0x07, 0xf8, 0x1c, 0xb8, 0x39, 0x3e, 0x92, 0xdc,
0x77, 0x4c, 0xd5, 0xe6, 0x02, 0xdf, 0x80, 0x91, 0xee, 0xce, 0x1f, 0x05, 0xd6, 0xdc, 0x5b, 0xce,
0x4c, 0xad, 0xae, 0x6f, 0xa4, 0x95, 0xbe, 0xce, 0x67, 0x49, 0xc4, 0xc7, 0x2c, 0x31, 0x38, 0x7c,
0x0f, 0x00, 0xf9, 0xc9, 0xa9, 0x30, 0x6f, 0xf1, 0x5d, 0x63, 0x7e, 0x61, 0xcc, 0x4d, 0xef, 0x9d,
0x69, 0x47, 0x0b, 0x22, 0x15, 0x2e, 0x78, 0x32, 0xe0, 0xe1, 0x12, 0xb8, 0xa9, 0xa2, 0x05, 0xf1,
0xc7, 0x37, 0x18, 0x1b, 0x54, 0x7b, 0x2a, 0xe3, 0x79, 0x70, 0x8b, 0xc7, 0xa0, 0x93, 0x03, 0x78,
0x72, 0x67, 0x22, 0xf0, 0x29, 0x70, 0x4e, 0xa4, 0x6e, 0x27, 0xaf, 0x8f, 0xf0, 0x2d, 0x70, 0xcf,
0x38, 0xaf, 0xf4, 0xb8, 0x75, 0x70, 0x70, 0x19, 0x77, 0xb7, 0x25, 0x7d, 0x01, 0x93, 0x93, 0x34,
0xf8, 0xca, 0x7e, 0x67, 0xad, 0x7f, 0x59, 0x60, 0x96, 0xb2, 0xe2, 0xfa, 0x1f, 0x5a, 0x3f, 0x4e,
0xba, 0x95, 0xd9, 0xea, 0x95, 0xd8, 0x5a, 0x5f, 0x9f, 0x0d, 0xb9, 0x16, 0xfb, 0x6d, 0x3b, 0x9b,
0x38, 0xfe, 0x63, 0x4f, 0x37, 0x32, 0x42, 0xb1, 0x0e, 0x8b, 0x87, 0x61, 0x5f, 0x16, 0x6b, 0x4d,
0xfd, 0x35, 0xfa, 0x5e, 0xeb, 0xfb, 0xa1, 0xbe, 0x6f, 0xf5, 0xe3, 0xd8, 0xac, 0x5d, 0xf4, 0x3f,
0x00, 0x00, 0xff, 0xff, 0x4f, 0x72, 0x99, 0xb3, 0x3b, 0x03, 0x00, 0x00,
var file_cs3_auth_applications_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_cs3_auth_applications_v1beta1_resources_proto_goTypes = []interface{}{
(*AppPassword)(nil), // 0: cs3.auth.applications.v1beta1.AppPassword
nil, // 1: cs3.auth.applications.v1beta1.AppPassword.TokenScopeEntry
(*v1beta11.UserId)(nil), // 2: cs3.identity.user.v1beta1.UserId
(*v1beta12.Timestamp)(nil), // 3: cs3.types.v1beta1.Timestamp
(*v1beta1.Scope)(nil), // 4: cs3.auth.provider.v1beta1.Scope
}
var file_cs3_auth_applications_v1beta1_resources_proto_depIdxs = []int32{
1, // 0: cs3.auth.applications.v1beta1.AppPassword.token_scope:type_name -> cs3.auth.applications.v1beta1.AppPassword.TokenScopeEntry
2, // 1: cs3.auth.applications.v1beta1.AppPassword.user:type_name -> cs3.identity.user.v1beta1.UserId
3, // 2: cs3.auth.applications.v1beta1.AppPassword.expiration:type_name -> cs3.types.v1beta1.Timestamp
3, // 3: cs3.auth.applications.v1beta1.AppPassword.ctime:type_name -> cs3.types.v1beta1.Timestamp
3, // 4: cs3.auth.applications.v1beta1.AppPassword.utime:type_name -> cs3.types.v1beta1.Timestamp
4, // 5: cs3.auth.applications.v1beta1.AppPassword.TokenScopeEntry.value:type_name -> cs3.auth.provider.v1beta1.Scope
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_cs3_auth_applications_v1beta1_resources_proto_init() }
func file_cs3_auth_applications_v1beta1_resources_proto_init() {
if File_cs3_auth_applications_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_auth_applications_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AppPassword); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_auth_applications_v1beta1_resources_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_auth_applications_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_auth_applications_v1beta1_resources_proto_depIdxs,
MessageInfos: file_cs3_auth_applications_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_auth_applications_v1beta1_resources_proto = out.File
file_cs3_auth_applications_v1beta1_resources_proto_rawDesc = nil
file_cs3_auth_applications_v1beta1_resources_proto_goTypes = nil
file_cs3_auth_applications_v1beta1_resources_proto_depIdxs = nil
}
@@ -1,33 +1,51 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/auth/provider/v1beta1/provider_api.proto
package providerv1beta1
import (
context "context"
fmt "fmt"
v1beta12 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AuthenticateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
@@ -39,59 +57,67 @@ type AuthenticateRequest struct {
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// OPTIONAL.
// The secret of the client.
ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
}
func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} }
func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) }
func (*AuthenticateRequest) ProtoMessage() {}
func (x *AuthenticateRequest) Reset() {
*x = AuthenticateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AuthenticateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AuthenticateRequest) ProtoMessage() {}
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message {
mi := &file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2ddf0fa535f43d36, []int{0}
return file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0}
}
func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthenticateRequest.Unmarshal(m, b)
}
func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthenticateRequest.Marshal(b, m, deterministic)
}
func (m *AuthenticateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthenticateRequest.Merge(m, src)
}
func (m *AuthenticateRequest) XXX_Size() int {
return xxx_messageInfo_AuthenticateRequest.Size(m)
}
func (m *AuthenticateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AuthenticateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AuthenticateRequest proto.InternalMessageInfo
func (m *AuthenticateRequest) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *AuthenticateRequest) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *AuthenticateRequest) GetClientId() string {
if m != nil {
return m.ClientId
func (x *AuthenticateRequest) GetClientId() string {
if x != nil {
return x.ClientId
}
return ""
}
func (m *AuthenticateRequest) GetClientSecret() string {
if m != nil {
return m.ClientSecret
func (x *AuthenticateRequest) GetClientSecret() string {
if x != nil {
return x.ClientSecret
}
return ""
}
type AuthenticateResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The response status.
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
@@ -101,179 +127,220 @@ type AuthenticateResponse struct {
// REQUIRED.
// The scope of the token to be issued.
// This would be a list of resources with corresponding role-based access scope.
TokenScope map[string]*Scope `protobuf:"bytes,3,rep,name=token_scope,json=tokenScope,proto3" json:"token_scope,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:"-"`
TokenScope map[string]*Scope `protobuf:"bytes,3,rep,name=token_scope,json=tokenScope,proto3" json:"token_scope,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} }
func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) }
func (*AuthenticateResponse) ProtoMessage() {}
func (x *AuthenticateResponse) Reset() {
*x = AuthenticateResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AuthenticateResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AuthenticateResponse) ProtoMessage() {}
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message {
mi := &file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2ddf0fa535f43d36, []int{1}
return file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1}
}
func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthenticateResponse.Unmarshal(m, b)
}
func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthenticateResponse.Marshal(b, m, deterministic)
}
func (m *AuthenticateResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthenticateResponse.Merge(m, src)
}
func (m *AuthenticateResponse) XXX_Size() int {
return xxx_messageInfo_AuthenticateResponse.Size(m)
}
func (m *AuthenticateResponse) XXX_DiscardUnknown() {
xxx_messageInfo_AuthenticateResponse.DiscardUnknown(m)
}
var xxx_messageInfo_AuthenticateResponse proto.InternalMessageInfo
func (m *AuthenticateResponse) GetStatus() *v1beta11.Status {
if m != nil {
return m.Status
func (x *AuthenticateResponse) GetStatus() *v1beta11.Status {
if x != nil {
return x.Status
}
return nil
}
func (m *AuthenticateResponse) GetUser() *v1beta12.User {
if m != nil {
return m.User
func (x *AuthenticateResponse) GetUser() *v1beta12.User {
if x != nil {
return x.User
}
return nil
}
func (m *AuthenticateResponse) GetTokenScope() map[string]*Scope {
if m != nil {
return m.TokenScope
func (x *AuthenticateResponse) GetTokenScope() map[string]*Scope {
if x != nil {
return x.TokenScope
}
return nil
}
func init() {
proto.RegisterType((*AuthenticateRequest)(nil), "cs3.auth.provider.v1beta1.AuthenticateRequest")
proto.RegisterType((*AuthenticateResponse)(nil), "cs3.auth.provider.v1beta1.AuthenticateResponse")
proto.RegisterMapType((map[string]*Scope)(nil), "cs3.auth.provider.v1beta1.AuthenticateResponse.TokenScopeEntry")
var File_cs3_auth_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor
var file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc = []byte{
0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19,
0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x61,
0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63,
0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x01, 0x0a,
0x13, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52,
0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e,
0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65,
0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73,
0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69,
0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0xbf, 0x02, 0x0a, 0x14, 0x41, 0x75,
0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61,
0x74, 0x75, 0x73, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73,
0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x60, 0x0a, 0x0b, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e,
0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e,
0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x1a, 0x5f, 0x0a, 0x0f, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65,
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x7e, 0x0a, 0x0b, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x6f, 0x0a, 0x0c, 0x41, 0x75,
0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,
0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,
0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x80, 0x02, 0x0a, 0x1d,
0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73,
0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f,
0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x50, 0xaa,
0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x19, 0x43, 0x73,
0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c,
0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75,
0x74, 0x68, 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
0x02, 0x1c, 0x43, 0x73, 0x33, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x3a, 0x3a, 0x50, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/auth/provider/v1beta1/provider_api.proto", fileDescriptor_2ddf0fa535f43d36)
var (
file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once
file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc
)
func file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte {
file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() {
file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData)
})
return file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData
}
var fileDescriptor_2ddf0fa535f43d36 = []byte{
// 459 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x8b, 0xd3, 0x40,
0x14, 0xc7, 0x49, 0xa2, 0xc5, 0x4e, 0x56, 0x76, 0x19, 0x05, 0xdb, 0xea, 0x62, 0x59, 0x2f, 0x15,
0x64, 0x42, 0x1b, 0x10, 0xf1, 0x22, 0xed, 0xe2, 0x61, 0x4f, 0x86, 0x54, 0x3d, 0x48, 0xa1, 0x66,
0xa7, 0x0f, 0x36, 0xec, 0x9a, 0x99, 0x9d, 0x79, 0x29, 0xe4, 0xe2, 0xc1, 0xa3, 0x7f, 0x86, 0x47,
0xff, 0x09, 0xef, 0xfe, 0x55, 0x32, 0x3f, 0x12, 0x54, 0x6c, 0x71, 0x6f, 0xed, 0xfb, 0x7c, 0xde,
0x9b, 0xef, 0x9b, 0x0c, 0x79, 0xc6, 0x75, 0x9a, 0x14, 0x35, 0x5e, 0x24, 0x52, 0x89, 0x6d, 0xb9,
0x01, 0x95, 0x6c, 0xa7, 0xe7, 0x80, 0xc5, 0xb4, 0x2b, 0xac, 0x0b, 0x59, 0x32, 0xa9, 0x04, 0x0a,
0x3a, 0xe4, 0x3a, 0x65, 0xc6, 0x66, 0x2d, 0x64, 0xde, 0x1e, 0x3d, 0xdd, 0x3d, 0x48, 0x81, 0x16,
0xb5, 0xe2, 0xa0, 0xdd, 0x14, 0xa7, 0x96, 0x1b, 0xa8, 0xb0, 0xc4, 0x26, 0xa9, 0xf5, 0x1e, 0xf5,
0x91, 0x51, 0x95, 0xe4, 0x9d, 0xa0, 0xb1, 0xc0, 0xba, 0xa5, 0xc7, 0x86, 0x62, 0x23, 0x41, 0x77,
0xdc, 0xfe, 0x73, 0xf8, 0xe4, 0x6b, 0x40, 0xee, 0xcd, 0x6b, 0xbc, 0x30, 0x07, 0xf1, 0x02, 0x21,
0x87, 0xeb, 0x1a, 0x34, 0xd2, 0x29, 0xe9, 0x09, 0x59, 0x5c, 0xd7, 0x30, 0x08, 0xc6, 0xc1, 0x24,
0x9e, 0x0d, 0x99, 0x59, 0xcb, 0x75, 0xfa, 0x39, 0xec, 0x8d, 0x15, 0x72, 0x2f, 0xd2, 0x87, 0xa4,
0xcf, 0xaf, 0x4a, 0xa8, 0x70, 0x5d, 0x6e, 0x06, 0xe1, 0x38, 0x98, 0xf4, 0xf3, 0x3b, 0xae, 0x70,
0xb6, 0xa1, 0x4f, 0xc8, 0x5d, 0x0f, 0x35, 0x70, 0x05, 0x38, 0x88, 0xac, 0x70, 0xe0, 0x8a, 0x4b,
0x5b, 0x3b, 0xf9, 0x11, 0x92, 0xfb, 0x7f, 0x86, 0xd1, 0x52, 0x54, 0x1a, 0x68, 0x42, 0x7a, 0x6e,
0x29, 0x9f, 0xe6, 0x81, 0x4d, 0xa3, 0x24, 0xef, 0xb2, 0x2c, 0x2d, 0xce, 0xbd, 0x46, 0x53, 0x72,
0xcb, 0xdc, 0x99, 0x8d, 0x11, 0xcf, 0x1e, 0x5b, 0xbd, 0xbd, 0x4d, 0x66, 0x48, 0xd7, 0xf8, 0x4e,
0x83, 0xca, 0xad, 0x4c, 0x3f, 0x92, 0x18, 0xc5, 0x25, 0x54, 0x6b, 0xcd, 0x85, 0x84, 0x41, 0x34,
0x8e, 0x26, 0xf1, 0xec, 0x15, 0xdb, 0xf9, 0x3d, 0xd9, 0xbf, 0xb2, 0xb2, 0xb7, 0x66, 0xc4, 0xd2,
0x4c, 0x78, 0x5d, 0xa1, 0x6a, 0x72, 0x82, 0x5d, 0x61, 0xb4, 0x26, 0x87, 0x7f, 0x61, 0x7a, 0x44,
0xa2, 0x4b, 0x68, 0xec, 0x5e, 0xfd, 0xdc, 0xfc, 0xa4, 0xcf, 0xc9, 0xed, 0x6d, 0x71, 0x55, 0x83,
0x0f, 0x3f, 0xde, 0x13, 0xc0, 0xce, 0xc9, 0x9d, 0xfe, 0x32, 0x7c, 0x11, 0xcc, 0x3e, 0x93, 0x38,
0xf3, 0xd2, 0x3c, 0x3b, 0xa3, 0x82, 0x1c, 0xfc, 0x9e, 0x91, 0xb2, 0xff, 0x5e, 0xc6, 0xbe, 0x82,
0x51, 0x72, 0xc3, 0xe5, 0x17, 0x5f, 0x02, 0x72, 0xcc, 0xc5, 0xa7, 0xdd, 0x6d, 0x8b, 0xa3, 0x2e,
0x9f, 0x2c, 0x33, 0xf3, 0x04, 0xb3, 0xe0, 0xc3, 0x61, 0x6b, 0x79, 0xe9, 0x5b, 0x18, 0x9d, 0xce,
0xb3, 0xef, 0xe1, 0xf0, 0x54, 0xa7, 0xf6, 0x1c, 0xd6, 0x36, 0xb1, 0xf7, 0xd3, 0x85, 0x31, 0x7e,
0x5a, 0xb6, 0x32, 0x6c, 0xd5, 0xb2, 0x95, 0x67, 0xe7, 0x3d, 0xfb, 0xb4, 0xd3, 0x5f, 0x01, 0x00,
0x00, 0xff, 0xff, 0xb6, 0x5c, 0x02, 0x69, 0xb8, 0x03, 0x00, 0x00,
var file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_cs3_auth_provider_v1beta1_provider_api_proto_goTypes = []interface{}{
(*AuthenticateRequest)(nil), // 0: cs3.auth.provider.v1beta1.AuthenticateRequest
(*AuthenticateResponse)(nil), // 1: cs3.auth.provider.v1beta1.AuthenticateResponse
nil, // 2: cs3.auth.provider.v1beta1.AuthenticateResponse.TokenScopeEntry
(*v1beta1.Opaque)(nil), // 3: cs3.types.v1beta1.Opaque
(*v1beta11.Status)(nil), // 4: cs3.rpc.v1beta1.Status
(*v1beta12.User)(nil), // 5: cs3.identity.user.v1beta1.User
(*Scope)(nil), // 6: cs3.auth.provider.v1beta1.Scope
}
var file_cs3_auth_provider_v1beta1_provider_api_proto_depIdxs = []int32{
3, // 0: cs3.auth.provider.v1beta1.AuthenticateRequest.opaque:type_name -> cs3.types.v1beta1.Opaque
4, // 1: cs3.auth.provider.v1beta1.AuthenticateResponse.status:type_name -> cs3.rpc.v1beta1.Status
5, // 2: cs3.auth.provider.v1beta1.AuthenticateResponse.user:type_name -> cs3.identity.user.v1beta1.User
2, // 3: cs3.auth.provider.v1beta1.AuthenticateResponse.token_scope:type_name -> cs3.auth.provider.v1beta1.AuthenticateResponse.TokenScopeEntry
6, // 4: cs3.auth.provider.v1beta1.AuthenticateResponse.TokenScopeEntry.value:type_name -> cs3.auth.provider.v1beta1.Scope
0, // 5: cs3.auth.provider.v1beta1.ProviderAPI.Authenticate:input_type -> cs3.auth.provider.v1beta1.AuthenticateRequest
1, // 6: cs3.auth.provider.v1beta1.ProviderAPI.Authenticate:output_type -> cs3.auth.provider.v1beta1.AuthenticateResponse
6, // [6:7] is the sub-list for method output_type
5, // [5:6] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ProviderAPIClient is the client API for ProviderAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ProviderAPIClient interface {
// Authenticate authenticates a client.
Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
}
type providerAPIClient struct {
cc *grpc.ClientConn
}
func NewProviderAPIClient(cc *grpc.ClientConn) ProviderAPIClient {
return &providerAPIClient{cc}
}
func (c *providerAPIClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) {
out := new(AuthenticateResponse)
err := c.cc.Invoke(ctx, "/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate", in, out, opts...)
if err != nil {
return nil, err
func init() { file_cs3_auth_provider_v1beta1_provider_api_proto_init() }
func file_cs3_auth_provider_v1beta1_provider_api_proto_init() {
if File_cs3_auth_provider_v1beta1_provider_api_proto != nil {
return
}
return out, nil
}
// ProviderAPIServer is the server API for ProviderAPI service.
type ProviderAPIServer interface {
// Authenticate authenticates a client.
Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
}
// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations.
type UnimplementedProviderAPIServer struct {
}
func (*UnimplementedProviderAPIServer) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented")
}
func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) {
s.RegisterService(&_ProviderAPI_serviceDesc, srv)
}
func _ProviderAPI_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AuthenticateRequest)
if err := dec(in); err != nil {
return nil, err
file_cs3_auth_provider_v1beta1_resources_proto_init()
if !protoimpl.UnsafeEnabled {
file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AuthenticateRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AuthenticateResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
if interceptor == nil {
return srv.(ProviderAPIServer).Authenticate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProviderAPIServer).Authenticate(ctx, req.(*AuthenticateRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ProviderAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "cs3.auth.provider.v1beta1.ProviderAPI",
HandlerType: (*ProviderAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Authenticate",
Handler: _ProviderAPI_Authenticate_Handler,
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/auth/provider/v1beta1/provider_api.proto",
GoTypes: file_cs3_auth_provider_v1beta1_provider_api_proto_goTypes,
DependencyIndexes: file_cs3_auth_provider_v1beta1_provider_api_proto_depIdxs,
MessageInfos: file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes,
}.Build()
File_cs3_auth_provider_v1beta1_provider_api_proto = out.File
file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc = nil
file_cs3_auth_provider_v1beta1_provider_api_proto_goTypes = nil
file_cs3_auth_provider_v1beta1_provider_api_proto_depIdxs = nil
}
@@ -0,0 +1,127 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/auth/provider/v1beta1/provider_api.proto
package providerv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
ProviderAPI_Authenticate_FullMethodName = "/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate"
)
// ProviderAPIClient is the client API for ProviderAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ProviderAPIClient interface {
// Authenticate authenticates a client.
Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
}
type providerAPIClient struct {
cc grpc.ClientConnInterface
}
func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient {
return &providerAPIClient{cc}
}
func (c *providerAPIClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) {
out := new(AuthenticateResponse)
err := c.cc.Invoke(ctx, ProviderAPI_Authenticate_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ProviderAPIServer is the server API for ProviderAPI service.
// All implementations should embed UnimplementedProviderAPIServer
// for forward compatibility
type ProviderAPIServer interface {
// Authenticate authenticates a client.
Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
}
// UnimplementedProviderAPIServer should be embedded to have forward compatible implementations.
type UnimplementedProviderAPIServer struct {
}
func (UnimplementedProviderAPIServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented")
}
// UnsafeProviderAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ProviderAPIServer will
// result in compilation errors.
type UnsafeProviderAPIServer interface {
mustEmbedUnimplementedProviderAPIServer()
}
func RegisterProviderAPIServer(s grpc.ServiceRegistrar, srv ProviderAPIServer) {
s.RegisterService(&ProviderAPI_ServiceDesc, srv)
}
func _ProviderAPI_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AuthenticateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProviderAPIServer).Authenticate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ProviderAPI_Authenticate_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProviderAPIServer).Authenticate(ctx, req.(*AuthenticateRequest))
}
return interceptor(ctx, in, info, handler)
}
// ProviderAPI_ServiceDesc is the grpc.ServiceDesc for ProviderAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ProviderAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.auth.provider.v1beta1.ProviderAPI",
HandlerType: (*ProviderAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Authenticate",
Handler: _ProviderAPI_Authenticate_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/auth/provider/v1beta1/provider_api.proto",
}
+222 -94
View File
@@ -1,25 +1,43 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/auth/provider/v1beta1/resources.proto
package providerv1beta1
import (
fmt "fmt"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The role associated with the scope.
type Role int32
@@ -43,119 +61,229 @@ const (
Role_ROLE_UPLOADER Role = 7
)
var Role_name = map[int32]string{
0: "ROLE_INVALID",
1: "ROLE_OWNER",
2: "ROLE_LEGACY",
3: "ROLE_VIEWER",
4: "ROLE_EDITOR",
5: "ROLE_FILE_EDITOR",
6: "ROLE_COOWNER",
7: "ROLE_UPLOADER",
}
// Enum value maps for Role.
var (
Role_name = map[int32]string{
0: "ROLE_INVALID",
1: "ROLE_OWNER",
2: "ROLE_LEGACY",
3: "ROLE_VIEWER",
4: "ROLE_EDITOR",
5: "ROLE_FILE_EDITOR",
6: "ROLE_COOWNER",
7: "ROLE_UPLOADER",
}
Role_value = map[string]int32{
"ROLE_INVALID": 0,
"ROLE_OWNER": 1,
"ROLE_LEGACY": 2,
"ROLE_VIEWER": 3,
"ROLE_EDITOR": 4,
"ROLE_FILE_EDITOR": 5,
"ROLE_COOWNER": 6,
"ROLE_UPLOADER": 7,
}
)
var Role_value = map[string]int32{
"ROLE_INVALID": 0,
"ROLE_OWNER": 1,
"ROLE_LEGACY": 2,
"ROLE_VIEWER": 3,
"ROLE_EDITOR": 4,
"ROLE_FILE_EDITOR": 5,
"ROLE_COOWNER": 6,
"ROLE_UPLOADER": 7,
func (x Role) Enum() *Role {
p := new(Role)
*p = x
return p
}
func (x Role) String() string {
return proto.EnumName(Role_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Role) Descriptor() protoreflect.EnumDescriptor {
return file_cs3_auth_provider_v1beta1_resources_proto_enumTypes[0].Descriptor()
}
func (Role) Type() protoreflect.EnumType {
return &file_cs3_auth_provider_v1beta1_resources_proto_enumTypes[0]
}
func (x Role) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Role.Descriptor instead.
func (Role) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_a291f551e0c9d7e6, []int{0}
return file_cs3_auth_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
// Scope defines role-based permissions for various resources.
type Scope struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The resource embedded in the request of a particular method. It depends on
// the method, hence is left as opaque.
Resource *v1beta1.OpaqueEntry `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// REQUIRED.
// The role associated with the resource.
Role Role `protobuf:"varint,2,opt,name=role,proto3,enum=cs3.auth.provider.v1beta1.Role" json:"role,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Role Role `protobuf:"varint,2,opt,name=role,proto3,enum=cs3.auth.provider.v1beta1.Role" json:"role,omitempty"`
}
func (m *Scope) Reset() { *m = Scope{} }
func (m *Scope) String() string { return proto.CompactTextString(m) }
func (*Scope) ProtoMessage() {}
func (x *Scope) Reset() {
*x = Scope{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_auth_provider_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Scope) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Scope) ProtoMessage() {}
func (x *Scope) ProtoReflect() protoreflect.Message {
mi := &file_cs3_auth_provider_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Scope.ProtoReflect.Descriptor instead.
func (*Scope) Descriptor() ([]byte, []int) {
return fileDescriptor_a291f551e0c9d7e6, []int{0}
return file_cs3_auth_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *Scope) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Scope.Unmarshal(m, b)
}
func (m *Scope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Scope.Marshal(b, m, deterministic)
}
func (m *Scope) XXX_Merge(src proto.Message) {
xxx_messageInfo_Scope.Merge(m, src)
}
func (m *Scope) XXX_Size() int {
return xxx_messageInfo_Scope.Size(m)
}
func (m *Scope) XXX_DiscardUnknown() {
xxx_messageInfo_Scope.DiscardUnknown(m)
}
var xxx_messageInfo_Scope proto.InternalMessageInfo
func (m *Scope) GetResource() *v1beta1.OpaqueEntry {
if m != nil {
return m.Resource
func (x *Scope) GetResource() *v1beta1.OpaqueEntry {
if x != nil {
return x.Resource
}
return nil
}
func (m *Scope) GetRole() Role {
if m != nil {
return m.Role
func (x *Scope) GetRole() Role {
if x != nil {
return x.Role
}
return Role_ROLE_INVALID
}
func init() {
proto.RegisterEnum("cs3.auth.provider.v1beta1.Role", Role_name, Role_value)
proto.RegisterType((*Scope)(nil), "cs3.auth.provider.v1beta1.Scope")
var File_cs3_auth_provider_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_auth_provider_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x73, 0x33,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65,
0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x78, 0x0a, 0x05, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x3a,
0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x72, 0x6f,
0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61,
0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x2a,
0x96, 0x01, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x4f, 0x4c, 0x45,
0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x4f,
0x4c, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x4f,
0x4c, 0x45, 0x5f, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x52,
0x4f, 0x4c, 0x45, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x45, 0x52, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b,
0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, 0x0a,
0x10, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x4f,
0x52, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x4f, 0x57,
0x4e, 0x45, 0x52, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x50,
0x4c, 0x4f, 0x41, 0x44, 0x45, 0x52, 0x10, 0x07, 0x42, 0xfe, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d,
0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f,
0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x61,
0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x50, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33,
0x2e, 0x41, 0x75, 0x74, 0x68, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74,
0x68, 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0xe2, 0x02, 0x25, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x43, 0x73, 0x33,
0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
func init() {
proto.RegisterFile("cs3/auth/provider/v1beta1/resources.proto", fileDescriptor_a291f551e0c9d7e6)
var (
file_cs3_auth_provider_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_auth_provider_v1beta1_resources_proto_rawDescData = file_cs3_auth_provider_v1beta1_resources_proto_rawDesc
)
func file_cs3_auth_provider_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_auth_provider_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_auth_provider_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_provider_v1beta1_resources_proto_rawDescData)
})
return file_cs3_auth_provider_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_a291f551e0c9d7e6 = []byte{
// 336 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x4f, 0x4f, 0xc2, 0x30,
0x18, 0xc6, 0xed, 0xf8, 0xa3, 0x29, 0x0a, 0xb5, 0xf1, 0x00, 0x26, 0x28, 0xf1, 0x84, 0x1e, 0xba,
0xc0, 0x6e, 0xde, 0xc6, 0xa8, 0x66, 0xc9, 0xc2, 0x96, 0xaa, 0x10, 0x0d, 0x89, 0x81, 0xd9, 0x44,
0x13, 0xb4, 0xb3, 0x1b, 0x44, 0x6e, 0x7e, 0x0a, 0x3f, 0x80, 0x47, 0x3f, 0x8a, 0x9f, 0xca, 0xb4,
0xac, 0xf3, 0xc4, 0xf1, 0x7d, 0x9e, 0xdf, 0xf3, 0xb4, 0x7d, 0x0b, 0xcf, 0xe3, 0xd4, 0xb1, 0x67,
0xcb, 0xec, 0xd9, 0x4e, 0xa4, 0x58, 0xbd, 0x3c, 0x71, 0x69, 0xaf, 0x7a, 0x73, 0x9e, 0xcd, 0x7a,
0xb6, 0xe4, 0xa9, 0x58, 0xca, 0x98, 0xa7, 0x24, 0x91, 0x22, 0x13, 0xb8, 0x15, 0xa7, 0x0e, 0x51,
0x28, 0x31, 0x28, 0xc9, 0xd1, 0xe3, 0xb6, 0x6a, 0xc9, 0xd6, 0x09, 0x4f, 0x8b, 0xb4, 0x9e, 0x36,
0xc9, 0xb3, 0x0f, 0x58, 0xb9, 0x89, 0x45, 0xc2, 0xf1, 0x25, 0xdc, 0x33, 0xad, 0x4d, 0xd0, 0x01,
0xdd, 0x5a, 0xff, 0x84, 0xa8, 0xd6, 0x0d, 0x9c, 0x47, 0x49, 0x98, 0xcc, 0xde, 0x97, 0x9c, 0xbe,
0x65, 0x72, 0xcd, 0x0a, 0x1e, 0x3b, 0xb0, 0x2c, 0xc5, 0x82, 0x37, 0xad, 0x0e, 0xe8, 0xd6, 0xfb,
0xa7, 0x64, 0xeb, 0x6d, 0x08, 0x13, 0x0b, 0xce, 0x34, 0x7c, 0xf1, 0x05, 0x60, 0x59, 0x8d, 0x18,
0xc1, 0x7d, 0x16, 0x06, 0xf4, 0xd1, 0x1f, 0x8d, 0xdd, 0xc0, 0x1f, 0xa2, 0x1d, 0x5c, 0x87, 0x50,
0x2b, 0xe1, 0x64, 0x44, 0x19, 0x02, 0xb8, 0x01, 0x6b, 0x7a, 0x0e, 0xe8, 0xb5, 0xeb, 0xdd, 0x23,
0xab, 0x10, 0xc6, 0x3e, 0x9d, 0x50, 0x86, 0x4a, 0x85, 0x40, 0x87, 0xfe, 0x6d, 0xc8, 0x50, 0x19,
0x1f, 0x41, 0xa4, 0x85, 0x2b, 0xff, 0x5f, 0xad, 0x14, 0x47, 0x79, 0xe1, 0xa6, 0xba, 0x8a, 0x0f,
0xe1, 0x81, 0x56, 0xee, 0xa2, 0x20, 0x74, 0x87, 0x94, 0xa1, 0xdd, 0xc1, 0x27, 0x80, 0xed, 0x58,
0xbc, 0x6e, 0x7f, 0xc5, 0xa0, 0xce, 0xcc, 0xfe, 0x23, 0xb5, 0xc4, 0x08, 0x3c, 0x34, 0x0c, 0x93,
0x23, 0xdf, 0x56, 0xc9, 0x73, 0xa3, 0x1f, 0xab, 0xe5, 0xa5, 0x0e, 0x71, 0x55, 0x49, 0x64, 0x4a,
0xc6, 0xbd, 0x81, 0x22, 0x7e, 0xb5, 0x37, 0x55, 0xde, 0xd4, 0x78, 0xd3, 0xdc, 0x9b, 0x57, 0xf5,
0xe7, 0x38, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x68, 0x6b, 0x72, 0xb1, 0x03, 0x02, 0x00, 0x00,
var file_cs3_auth_provider_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_cs3_auth_provider_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cs3_auth_provider_v1beta1_resources_proto_goTypes = []interface{}{
(Role)(0), // 0: cs3.auth.provider.v1beta1.Role
(*Scope)(nil), // 1: cs3.auth.provider.v1beta1.Scope
(*v1beta1.OpaqueEntry)(nil), // 2: cs3.types.v1beta1.OpaqueEntry
}
var file_cs3_auth_provider_v1beta1_resources_proto_depIdxs = []int32{
2, // 0: cs3.auth.provider.v1beta1.Scope.resource:type_name -> cs3.types.v1beta1.OpaqueEntry
0, // 1: cs3.auth.provider.v1beta1.Scope.role:type_name -> cs3.auth.provider.v1beta1.Role
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_cs3_auth_provider_v1beta1_resources_proto_init() }
func file_cs3_auth_provider_v1beta1_resources_proto_init() {
if File_cs3_auth_provider_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_auth_provider_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Scope); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_auth_provider_v1beta1_resources_proto_rawDesc,
NumEnums: 1,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_auth_provider_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_auth_provider_v1beta1_resources_proto_depIdxs,
EnumInfos: file_cs3_auth_provider_v1beta1_resources_proto_enumTypes,
MessageInfos: file_cs3_auth_provider_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_auth_provider_v1beta1_resources_proto = out.File
file_cs3_auth_provider_v1beta1_resources_proto_rawDesc = nil
file_cs3_auth_provider_v1beta1_resources_proto_goTypes = nil
file_cs3_auth_provider_v1beta1_resources_proto_depIdxs = nil
}
@@ -1,83 +1,109 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/auth/registry/v1beta1/registry_api.proto
package registryv1beta1
import (
context "context"
fmt "fmt"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type GetAuthProvidersRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
// REQUIRED.
// The type of authentication provider.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
}
func (m *GetAuthProvidersRequest) Reset() { *m = GetAuthProvidersRequest{} }
func (m *GetAuthProvidersRequest) String() string { return proto.CompactTextString(m) }
func (*GetAuthProvidersRequest) ProtoMessage() {}
func (x *GetAuthProvidersRequest) Reset() {
*x = GetAuthProvidersRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAuthProvidersRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAuthProvidersRequest) ProtoMessage() {}
func (x *GetAuthProvidersRequest) ProtoReflect() protoreflect.Message {
mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAuthProvidersRequest.ProtoReflect.Descriptor instead.
func (*GetAuthProvidersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_154ff675d363d74d, []int{0}
return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{0}
}
func (m *GetAuthProvidersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAuthProvidersRequest.Unmarshal(m, b)
}
func (m *GetAuthProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAuthProvidersRequest.Marshal(b, m, deterministic)
}
func (m *GetAuthProvidersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAuthProvidersRequest.Merge(m, src)
}
func (m *GetAuthProvidersRequest) XXX_Size() int {
return xxx_messageInfo_GetAuthProvidersRequest.Size(m)
}
func (m *GetAuthProvidersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetAuthProvidersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetAuthProvidersRequest proto.InternalMessageInfo
func (m *GetAuthProvidersRequest) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *GetAuthProvidersRequest) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *GetAuthProvidersRequest) GetType() string {
if m != nil {
return m.Type
func (x *GetAuthProvidersRequest) GetType() string {
if x != nil {
return x.Type
}
return ""
}
type GetAuthProvidersResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The response status.
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
@@ -86,100 +112,116 @@ type GetAuthProvidersResponse struct {
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
// REQUIRED.
// The auth providers handling the requested auth call.
Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"`
}
func (m *GetAuthProvidersResponse) Reset() { *m = GetAuthProvidersResponse{} }
func (m *GetAuthProvidersResponse) String() string { return proto.CompactTextString(m) }
func (*GetAuthProvidersResponse) ProtoMessage() {}
func (x *GetAuthProvidersResponse) Reset() {
*x = GetAuthProvidersResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAuthProvidersResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAuthProvidersResponse) ProtoMessage() {}
func (x *GetAuthProvidersResponse) ProtoReflect() protoreflect.Message {
mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAuthProvidersResponse.ProtoReflect.Descriptor instead.
func (*GetAuthProvidersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_154ff675d363d74d, []int{1}
return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{1}
}
func (m *GetAuthProvidersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAuthProvidersResponse.Unmarshal(m, b)
}
func (m *GetAuthProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAuthProvidersResponse.Marshal(b, m, deterministic)
}
func (m *GetAuthProvidersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAuthProvidersResponse.Merge(m, src)
}
func (m *GetAuthProvidersResponse) XXX_Size() int {
return xxx_messageInfo_GetAuthProvidersResponse.Size(m)
}
func (m *GetAuthProvidersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetAuthProvidersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetAuthProvidersResponse proto.InternalMessageInfo
func (m *GetAuthProvidersResponse) GetStatus() *v1beta11.Status {
if m != nil {
return m.Status
func (x *GetAuthProvidersResponse) GetStatus() *v1beta11.Status {
if x != nil {
return x.Status
}
return nil
}
func (m *GetAuthProvidersResponse) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *GetAuthProvidersResponse) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *GetAuthProvidersResponse) GetProviders() []*ProviderInfo {
if m != nil {
return m.Providers
func (x *GetAuthProvidersResponse) GetProviders() []*ProviderInfo {
if x != nil {
return x.Providers
}
return nil
}
type ListAuthProvidersRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // TODO(labkode): maybe add some filter?
}
func (m *ListAuthProvidersRequest) Reset() { *m = ListAuthProvidersRequest{} }
func (m *ListAuthProvidersRequest) String() string { return proto.CompactTextString(m) }
func (*ListAuthProvidersRequest) ProtoMessage() {}
func (x *ListAuthProvidersRequest) Reset() {
*x = ListAuthProvidersRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAuthProvidersRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAuthProvidersRequest) ProtoMessage() {}
func (x *ListAuthProvidersRequest) ProtoReflect() protoreflect.Message {
mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListAuthProvidersRequest.ProtoReflect.Descriptor instead.
func (*ListAuthProvidersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_154ff675d363d74d, []int{2}
return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{2}
}
func (m *ListAuthProvidersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListAuthProvidersRequest.Unmarshal(m, b)
}
func (m *ListAuthProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListAuthProvidersRequest.Marshal(b, m, deterministic)
}
func (m *ListAuthProvidersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListAuthProvidersRequest.Merge(m, src)
}
func (m *ListAuthProvidersRequest) XXX_Size() int {
return xxx_messageInfo_ListAuthProvidersRequest.Size(m)
}
func (m *ListAuthProvidersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListAuthProvidersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListAuthProvidersRequest proto.InternalMessageInfo
func (m *ListAuthProvidersRequest) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *ListAuthProvidersRequest) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
type ListAuthProvidersResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The response status.
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
@@ -188,218 +230,262 @@ type ListAuthProvidersResponse struct {
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
// REQUIRED.
// The list of auth providers this registry knows about.
Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"`
}
func (m *ListAuthProvidersResponse) Reset() { *m = ListAuthProvidersResponse{} }
func (m *ListAuthProvidersResponse) String() string { return proto.CompactTextString(m) }
func (*ListAuthProvidersResponse) ProtoMessage() {}
func (x *ListAuthProvidersResponse) Reset() {
*x = ListAuthProvidersResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAuthProvidersResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAuthProvidersResponse) ProtoMessage() {}
func (x *ListAuthProvidersResponse) ProtoReflect() protoreflect.Message {
mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListAuthProvidersResponse.ProtoReflect.Descriptor instead.
func (*ListAuthProvidersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_154ff675d363d74d, []int{3}
return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{3}
}
func (m *ListAuthProvidersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListAuthProvidersResponse.Unmarshal(m, b)
}
func (m *ListAuthProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListAuthProvidersResponse.Marshal(b, m, deterministic)
}
func (m *ListAuthProvidersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListAuthProvidersResponse.Merge(m, src)
}
func (m *ListAuthProvidersResponse) XXX_Size() int {
return xxx_messageInfo_ListAuthProvidersResponse.Size(m)
}
func (m *ListAuthProvidersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListAuthProvidersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListAuthProvidersResponse proto.InternalMessageInfo
func (m *ListAuthProvidersResponse) GetStatus() *v1beta11.Status {
if m != nil {
return m.Status
func (x *ListAuthProvidersResponse) GetStatus() *v1beta11.Status {
if x != nil {
return x.Status
}
return nil
}
func (m *ListAuthProvidersResponse) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *ListAuthProvidersResponse) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *ListAuthProvidersResponse) GetProviders() []*ProviderInfo {
if m != nil {
return m.Providers
func (x *ListAuthProvidersResponse) GetProviders() []*ProviderInfo {
if x != nil {
return x.Providers
}
return nil
}
func init() {
proto.RegisterType((*GetAuthProvidersRequest)(nil), "cs3.auth.registry.v1beta1.GetAuthProvidersRequest")
proto.RegisterType((*GetAuthProvidersResponse)(nil), "cs3.auth.registry.v1beta1.GetAuthProvidersResponse")
proto.RegisterType((*ListAuthProvidersRequest)(nil), "cs3.auth.registry.v1beta1.ListAuthProvidersRequest")
proto.RegisterType((*ListAuthProvidersResponse)(nil), "cs3.auth.registry.v1beta1.ListAuthProvidersResponse")
var File_cs3_auth_registry_v1beta1_registry_api_proto protoreflect.FileDescriptor
var file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc = []byte{
0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19,
0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x61,
0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x60, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06,
0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12,
0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
0x79, 0x70, 0x65, 0x22, 0xc5, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75,
0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x4d, 0x0a, 0x18, 0x4c,
0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79,
0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71,
0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x19, 0x4c,
0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72,
0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61,
0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09,
0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x73, 0x32, 0x8a, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x41, 0x50, 0x49, 0x12, 0x7b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75,
0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73,
0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x7e, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68,
0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x42, 0x80, 0x02, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x42, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x70, 0x69, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33,
0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02,
0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x2e,
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x52, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x43,
0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68,
0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/auth/registry/v1beta1/registry_api.proto", fileDescriptor_154ff675d363d74d)
var (
file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescOnce sync.Once
file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData = file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc
)
func file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP() []byte {
file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescOnce.Do(func() {
file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData)
})
return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData
}
var fileDescriptor_154ff675d363d74d = []byte{
// 395 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x93, 0x41, 0x4b, 0xf3, 0x30,
0x1c, 0xc6, 0x69, 0xf7, 0x32, 0x58, 0x76, 0x78, 0x67, 0x2e, 0x6b, 0x8b, 0x83, 0xd1, 0x8b, 0x13,
0x24, 0xa5, 0xad, 0x5f, 0x60, 0x1b, 0x22, 0x03, 0xc5, 0x52, 0xc1, 0x83, 0x0c, 0xb4, 0xab, 0xd1,
0xf5, 0xe0, 0x92, 0x25, 0xe9, 0x60, 0x08, 0x1e, 0x3c, 0xfa, 0x31, 0x3c, 0xfa, 0x3d, 0xf4, 0xe0,
0xa7, 0x92, 0xb4, 0x69, 0x15, 0x67, 0x87, 0x03, 0x2f, 0xde, 0xda, 0x3e, 0xbf, 0xff, 0xf3, 0xfc,
0x79, 0xd2, 0x80, 0xbd, 0x98, 0xfb, 0x4e, 0x94, 0x8a, 0xa9, 0xc3, 0xf0, 0x4d, 0xc2, 0x05, 0x5b,
0x3a, 0x0b, 0x77, 0x82, 0x45, 0xe4, 0x96, 0x1f, 0x2e, 0x22, 0x9a, 0x20, 0xca, 0x88, 0x20, 0xd0,
0x8c, 0xb9, 0x8f, 0x24, 0x8d, 0x0a, 0x11, 0x29, 0xda, 0xda, 0x5d, 0x67, 0xc4, 0x49, 0xca, 0x62,
0xcc, 0x73, 0x17, 0x6b, 0x5b, 0xa2, 0x8c, 0xc6, 0x25, 0xc0, 0x45, 0x24, 0xd2, 0x42, 0xed, 0x48,
0x55, 0x2c, 0x29, 0xe6, 0xa5, 0x9e, 0xbd, 0xe5, 0xb2, 0x7d, 0x09, 0xda, 0x87, 0x58, 0xf4, 0x53,
0x31, 0x0d, 0x18, 0x59, 0x24, 0x57, 0x98, 0xf1, 0x10, 0xcf, 0x53, 0xcc, 0x05, 0x74, 0x41, 0x9d,
0xd0, 0x68, 0x9e, 0x62, 0x43, 0xeb, 0x6a, 0xbd, 0xa6, 0x67, 0x22, 0xb9, 0x6e, 0x3e, 0xac, 0xac,
0xd0, 0x49, 0x06, 0x84, 0x0a, 0x84, 0x10, 0xfc, 0x93, 0xba, 0xa1, 0x77, 0xb5, 0x5e, 0x23, 0xcc,
0x9e, 0xed, 0x17, 0x0d, 0x18, 0xab, 0x11, 0x9c, 0x92, 0x19, 0xc7, 0xd0, 0x01, 0xf5, 0x7c, 0x5b,
0x95, 0xd1, 0xce, 0x32, 0x18, 0x8d, 0xcb, 0x84, 0xd3, 0x4c, 0x0e, 0x15, 0xf6, 0x69, 0x29, 0xfd,
0xa7, 0x4b, 0x1d, 0x80, 0x06, 0x2d, 0x82, 0x8d, 0x5a, 0xb7, 0xd6, 0x6b, 0x7a, 0x3b, 0xa8, 0xb2,
0x79, 0x54, 0x2c, 0x39, 0x9a, 0x5d, 0x93, 0xf0, 0x63, 0xd2, 0x3e, 0x06, 0xc6, 0x51, 0xc2, 0x7f,
0xab, 0x2a, 0xfb, 0x55, 0x03, 0xe6, 0x37, 0x7e, 0x7f, 0xae, 0x17, 0xef, 0x51, 0x07, 0xcd, 0x50,
0xc1, 0xfd, 0x60, 0x04, 0xef, 0x40, 0xeb, 0xeb, 0x71, 0x43, 0x6f, 0x8d, 0x6f, 0xc5, 0xef, 0x67,
0xf9, 0x1b, 0xcd, 0xa8, 0xde, 0xee, 0xc1, 0xd6, 0x4a, 0xa9, 0x70, 0x9d, 0x53, 0xd5, 0x91, 0x5a,
0xfb, 0x9b, 0x0d, 0xe5, 0xf9, 0x83, 0x07, 0x0d, 0x74, 0x62, 0x72, 0x5b, 0x3d, 0x3b, 0x68, 0x95,
0x5d, 0xd1, 0x24, 0x90, 0x57, 0x30, 0xd0, 0xce, 0xff, 0x17, 0x94, 0x82, 0x9e, 0xf4, 0xda, 0xb0,
0x1f, 0x3e, 0xeb, 0xe6, 0x90, 0xfb, 0x48, 0x06, 0xa1, 0x62, 0x08, 0x9d, 0xb9, 0x03, 0x49, 0xbc,
0x65, 0xda, 0x58, 0x6a, 0xe3, 0x42, 0x1b, 0x2b, 0x6d, 0x52, 0xcf, 0xae, 0xb6, 0xff, 0x1e, 0x00,
0x00, 0xff, 0xff, 0xd4, 0x56, 0xe4, 0xbd, 0x8d, 0x04, 0x00, 0x00,
var file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_cs3_auth_registry_v1beta1_registry_api_proto_goTypes = []interface{}{
(*GetAuthProvidersRequest)(nil), // 0: cs3.auth.registry.v1beta1.GetAuthProvidersRequest
(*GetAuthProvidersResponse)(nil), // 1: cs3.auth.registry.v1beta1.GetAuthProvidersResponse
(*ListAuthProvidersRequest)(nil), // 2: cs3.auth.registry.v1beta1.ListAuthProvidersRequest
(*ListAuthProvidersResponse)(nil), // 3: cs3.auth.registry.v1beta1.ListAuthProvidersResponse
(*v1beta1.Opaque)(nil), // 4: cs3.types.v1beta1.Opaque
(*v1beta11.Status)(nil), // 5: cs3.rpc.v1beta1.Status
(*ProviderInfo)(nil), // 6: cs3.auth.registry.v1beta1.ProviderInfo
}
var file_cs3_auth_registry_v1beta1_registry_api_proto_depIdxs = []int32{
4, // 0: cs3.auth.registry.v1beta1.GetAuthProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque
5, // 1: cs3.auth.registry.v1beta1.GetAuthProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status
4, // 2: cs3.auth.registry.v1beta1.GetAuthProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque
6, // 3: cs3.auth.registry.v1beta1.GetAuthProvidersResponse.providers:type_name -> cs3.auth.registry.v1beta1.ProviderInfo
4, // 4: cs3.auth.registry.v1beta1.ListAuthProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque
5, // 5: cs3.auth.registry.v1beta1.ListAuthProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status
4, // 6: cs3.auth.registry.v1beta1.ListAuthProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque
6, // 7: cs3.auth.registry.v1beta1.ListAuthProvidersResponse.providers:type_name -> cs3.auth.registry.v1beta1.ProviderInfo
0, // 8: cs3.auth.registry.v1beta1.RegistryAPI.GetAuthProviders:input_type -> cs3.auth.registry.v1beta1.GetAuthProvidersRequest
2, // 9: cs3.auth.registry.v1beta1.RegistryAPI.ListAuthProviders:input_type -> cs3.auth.registry.v1beta1.ListAuthProvidersRequest
1, // 10: cs3.auth.registry.v1beta1.RegistryAPI.GetAuthProviders:output_type -> cs3.auth.registry.v1beta1.GetAuthProvidersResponse
3, // 11: cs3.auth.registry.v1beta1.RegistryAPI.ListAuthProviders:output_type -> cs3.auth.registry.v1beta1.ListAuthProvidersResponse
10, // [10:12] is the sub-list for method output_type
8, // [8:10] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// RegistryAPIClient is the client API for RegistryAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RegistryAPIClient interface {
// Returns the auth provider that is reponsible for the given
// resource reference.
// MUST return CODE_NOT_FOUND if the reference does not exist.
GetAuthProviders(ctx context.Context, in *GetAuthProvidersRequest, opts ...grpc.CallOption) (*GetAuthProvidersResponse, error)
// Returns a list of the available auth providers known by this registry.
ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error)
}
type registryAPIClient struct {
cc *grpc.ClientConn
}
func NewRegistryAPIClient(cc *grpc.ClientConn) RegistryAPIClient {
return &registryAPIClient{cc}
}
func (c *registryAPIClient) GetAuthProviders(ctx context.Context, in *GetAuthProvidersRequest, opts ...grpc.CallOption) (*GetAuthProvidersResponse, error) {
out := new(GetAuthProvidersResponse)
err := c.cc.Invoke(ctx, "/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProviders", in, out, opts...)
if err != nil {
return nil, err
func init() { file_cs3_auth_registry_v1beta1_registry_api_proto_init() }
func file_cs3_auth_registry_v1beta1_registry_api_proto_init() {
if File_cs3_auth_registry_v1beta1_registry_api_proto != nil {
return
}
return out, nil
}
func (c *registryAPIClient) ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) {
out := new(ListAuthProvidersResponse)
err := c.cc.Invoke(ctx, "/cs3.auth.registry.v1beta1.RegistryAPI/ListAuthProviders", in, out, opts...)
if err != nil {
return nil, err
file_cs3_auth_registry_v1beta1_resources_proto_init()
if !protoimpl.UnsafeEnabled {
file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAuthProvidersRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAuthProvidersResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListAuthProvidersRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListAuthProvidersResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
return out, nil
}
// RegistryAPIServer is the server API for RegistryAPI service.
type RegistryAPIServer interface {
// Returns the auth provider that is reponsible for the given
// resource reference.
// MUST return CODE_NOT_FOUND if the reference does not exist.
GetAuthProviders(context.Context, *GetAuthProvidersRequest) (*GetAuthProvidersResponse, error)
// Returns a list of the available auth providers known by this registry.
ListAuthProviders(context.Context, *ListAuthProvidersRequest) (*ListAuthProvidersResponse, error)
}
// UnimplementedRegistryAPIServer can be embedded to have forward compatible implementations.
type UnimplementedRegistryAPIServer struct {
}
func (*UnimplementedRegistryAPIServer) GetAuthProviders(ctx context.Context, req *GetAuthProvidersRequest) (*GetAuthProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAuthProviders not implemented")
}
func (*UnimplementedRegistryAPIServer) ListAuthProviders(ctx context.Context, req *ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAuthProviders not implemented")
}
func RegisterRegistryAPIServer(s *grpc.Server, srv RegistryAPIServer) {
s.RegisterService(&_RegistryAPI_serviceDesc, srv)
}
func _RegistryAPI_GetAuthProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAuthProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).GetAuthProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProviders",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).GetAuthProviders(ctx, req.(*GetAuthProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegistryAPI_ListAuthProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAuthProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).ListAuthProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cs3.auth.registry.v1beta1.RegistryAPI/ListAuthProviders",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).ListAuthProviders(ctx, req.(*ListAuthProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
var _RegistryAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "cs3.auth.registry.v1beta1.RegistryAPI",
HandlerType: (*RegistryAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAuthProviders",
Handler: _RegistryAPI_GetAuthProviders_Handler,
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
{
MethodName: "ListAuthProviders",
Handler: _RegistryAPI_ListAuthProviders_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/auth/registry/v1beta1/registry_api.proto",
GoTypes: file_cs3_auth_registry_v1beta1_registry_api_proto_goTypes,
DependencyIndexes: file_cs3_auth_registry_v1beta1_registry_api_proto_depIdxs,
MessageInfos: file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes,
}.Build()
File_cs3_auth_registry_v1beta1_registry_api_proto = out.File
file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc = nil
file_cs3_auth_registry_v1beta1_registry_api_proto_goTypes = nil
file_cs3_auth_registry_v1beta1_registry_api_proto_depIdxs = nil
}
@@ -0,0 +1,170 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/auth/registry/v1beta1/registry_api.proto
package registryv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
RegistryAPI_GetAuthProviders_FullMethodName = "/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProviders"
RegistryAPI_ListAuthProviders_FullMethodName = "/cs3.auth.registry.v1beta1.RegistryAPI/ListAuthProviders"
)
// RegistryAPIClient is the client API for RegistryAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RegistryAPIClient interface {
// Returns the auth provider that is reponsible for the given
// resource reference.
// MUST return CODE_NOT_FOUND if the reference does not exist.
GetAuthProviders(ctx context.Context, in *GetAuthProvidersRequest, opts ...grpc.CallOption) (*GetAuthProvidersResponse, error)
// Returns a list of the available auth providers known by this registry.
ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error)
}
type registryAPIClient struct {
cc grpc.ClientConnInterface
}
func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient {
return &registryAPIClient{cc}
}
func (c *registryAPIClient) GetAuthProviders(ctx context.Context, in *GetAuthProvidersRequest, opts ...grpc.CallOption) (*GetAuthProvidersResponse, error) {
out := new(GetAuthProvidersResponse)
err := c.cc.Invoke(ctx, RegistryAPI_GetAuthProviders_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *registryAPIClient) ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) {
out := new(ListAuthProvidersResponse)
err := c.cc.Invoke(ctx, RegistryAPI_ListAuthProviders_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RegistryAPIServer is the server API for RegistryAPI service.
// All implementations should embed UnimplementedRegistryAPIServer
// for forward compatibility
type RegistryAPIServer interface {
// Returns the auth provider that is reponsible for the given
// resource reference.
// MUST return CODE_NOT_FOUND if the reference does not exist.
GetAuthProviders(context.Context, *GetAuthProvidersRequest) (*GetAuthProvidersResponse, error)
// Returns a list of the available auth providers known by this registry.
ListAuthProviders(context.Context, *ListAuthProvidersRequest) (*ListAuthProvidersResponse, error)
}
// UnimplementedRegistryAPIServer should be embedded to have forward compatible implementations.
type UnimplementedRegistryAPIServer struct {
}
func (UnimplementedRegistryAPIServer) GetAuthProviders(context.Context, *GetAuthProvidersRequest) (*GetAuthProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAuthProviders not implemented")
}
func (UnimplementedRegistryAPIServer) ListAuthProviders(context.Context, *ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAuthProviders not implemented")
}
// UnsafeRegistryAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RegistryAPIServer will
// result in compilation errors.
type UnsafeRegistryAPIServer interface {
mustEmbedUnimplementedRegistryAPIServer()
}
func RegisterRegistryAPIServer(s grpc.ServiceRegistrar, srv RegistryAPIServer) {
s.RegisterService(&RegistryAPI_ServiceDesc, srv)
}
func _RegistryAPI_GetAuthProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAuthProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).GetAuthProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_GetAuthProviders_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).GetAuthProviders(ctx, req.(*GetAuthProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegistryAPI_ListAuthProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAuthProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).ListAuthProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_ListAuthProviders_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).ListAuthProviders(ctx, req.(*ListAuthProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
// RegistryAPI_ServiceDesc is the grpc.ServiceDesc for RegistryAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RegistryAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.auth.registry.v1beta1.RegistryAPI",
HandlerType: (*RegistryAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAuthProviders",
Handler: _RegistryAPI_GetAuthProviders_Handler,
},
{
MethodName: "ListAuthProviders",
Handler: _RegistryAPI_ListAuthProviders_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/auth/registry/v1beta1/registry_api.proto",
}
+175 -74
View File
@@ -1,28 +1,50 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/auth/registry/v1beta1/resources.proto
package registryv1beta1
import (
fmt "fmt"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// ProviderInfo provides the information about an authentication provider.
type ProviderInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information (containing storage-specific information).
// For example, additional metadata attached to the resource.
@@ -41,90 +63,169 @@ type ProviderInfo struct {
// Information to describe the functionalities
// offered by the storage provider. Meant to be read
// by humans.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
}
func (m *ProviderInfo) Reset() { *m = ProviderInfo{} }
func (m *ProviderInfo) String() string { return proto.CompactTextString(m) }
func (*ProviderInfo) ProtoMessage() {}
func (x *ProviderInfo) Reset() {
*x = ProviderInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_auth_registry_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProviderInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProviderInfo) ProtoMessage() {}
func (x *ProviderInfo) ProtoReflect() protoreflect.Message {
mi := &file_cs3_auth_registry_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProviderInfo.ProtoReflect.Descriptor instead.
func (*ProviderInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_d0bd226beb320d12, []int{0}
return file_cs3_auth_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *ProviderInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProviderInfo.Unmarshal(m, b)
}
func (m *ProviderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProviderInfo.Marshal(b, m, deterministic)
}
func (m *ProviderInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProviderInfo.Merge(m, src)
}
func (m *ProviderInfo) XXX_Size() int {
return xxx_messageInfo_ProviderInfo.Size(m)
}
func (m *ProviderInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ProviderInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ProviderInfo proto.InternalMessageInfo
func (m *ProviderInfo) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *ProviderInfo) GetProviderType() string {
if m != nil {
return m.ProviderType
func (x *ProviderInfo) GetProviderType() string {
if x != nil {
return x.ProviderType
}
return ""
}
func (m *ProviderInfo) GetAddress() string {
if m != nil {
return m.Address
func (x *ProviderInfo) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (m *ProviderInfo) GetDescription() string {
if m != nil {
return m.Description
func (x *ProviderInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func init() {
proto.RegisterType((*ProviderInfo)(nil), "cs3.auth.registry.v1beta1.ProviderInfo")
var File_cs3_auth_registry_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_auth_registry_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x73, 0x33,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65,
0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x01, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70,
0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75,
0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18,
0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xfe, 0x01, 0x0a, 0x1d, 0x63,
0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72,
0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33,
0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x19, 0x43,
0x73, 0x33, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x41,
0x75, 0x74, 0x68, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c,
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x43,
0x73, 0x33, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x68, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/auth/registry/v1beta1/resources.proto", fileDescriptor_d0bd226beb320d12)
var (
file_cs3_auth_registry_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_auth_registry_v1beta1_resources_proto_rawDescData = file_cs3_auth_registry_v1beta1_resources_proto_rawDesc
)
func file_cs3_auth_registry_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_auth_registry_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_auth_registry_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_registry_v1beta1_resources_proto_rawDescData)
})
return file_cs3_auth_registry_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_d0bd226beb320d12 = []byte{
// 271 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xb1, 0x4e, 0xc3, 0x30,
0x10, 0x86, 0xe5, 0x00, 0x45, 0xb8, 0x05, 0xa4, 0x4c, 0x09, 0x52, 0xa5, 0x08, 0x96, 0xb2, 0x38,
0x0a, 0x79, 0x82, 0xa6, 0x13, 0x13, 0x91, 0x85, 0x18, 0x50, 0x24, 0x94, 0x3a, 0x07, 0x64, 0xa0,
0x36, 0x3e, 0xa7, 0x52, 0x36, 0x9e, 0xa5, 0x23, 0x8f, 0xc2, 0x53, 0x21, 0xbb, 0x36, 0x62, 0xe9,
0x78, 0xf7, 0x7f, 0xff, 0x27, 0xdd, 0xd1, 0x5b, 0x81, 0x65, 0xde, 0x0e, 0xe6, 0x3d, 0xd7, 0xf0,
0xd6, 0xa3, 0xd1, 0x63, 0xbe, 0x2d, 0xd6, 0x60, 0xda, 0x22, 0xd7, 0x80, 0x72, 0xd0, 0x02, 0x90,
0x29, 0x2d, 0x8d, 0x8c, 0x53, 0x81, 0x25, 0xb3, 0x28, 0x0b, 0x28, 0xf3, 0xe8, 0xd5, 0xdc, 0x5a,
0xcc, 0xa8, 0x00, 0xff, 0xda, 0x6e, 0xda, 0x37, 0xaf, 0x77, 0x84, 0xce, 0x6a, 0x2d, 0xb7, 0x7d,
0x07, 0xfa, 0x7e, 0xf3, 0x2a, 0xe3, 0x82, 0x4e, 0xa4, 0x6a, 0x3f, 0x07, 0x48, 0x48, 0x46, 0x16,
0xd3, 0xbb, 0x94, 0x59, 0xf7, 0xbe, 0xe2, 0x05, 0xec, 0xc1, 0x01, 0xdc, 0x83, 0xf1, 0x0d, 0x3d,
0x57, 0x5e, 0xf1, 0x62, 0xc1, 0x24, 0xca, 0xc8, 0xe2, 0x8c, 0xcf, 0xc2, 0xf2, 0x71, 0x54, 0x10,
0x27, 0xf4, 0xb4, 0xed, 0x3a, 0x0d, 0x88, 0xc9, 0xb1, 0x8b, 0xc3, 0x18, 0x67, 0x74, 0xda, 0x01,
0x0a, 0xdd, 0x2b, 0xd3, 0xcb, 0x4d, 0x72, 0xe2, 0xd2, 0xff, 0xab, 0xea, 0x8b, 0xd0, 0xb9, 0x90,
0x1f, 0xec, 0xe0, 0x95, 0xd5, 0x05, 0x0f, 0x1f, 0xa9, 0xed, 0x59, 0x35, 0x79, 0xbe, 0x0c, 0x8c,
0x47, 0x76, 0xd1, 0xd1, 0x6a, 0xc9, 0xbf, 0xa3, 0x74, 0x85, 0x25, 0x5b, 0x5a, 0x09, 0x0f, 0x92,
0xa7, 0xa2, 0xb2, 0xc4, 0x8f, 0xcb, 0x1a, 0x9b, 0x35, 0x21, 0x6b, 0x7c, 0xb6, 0x9e, 0xb8, 0x77,
0x95, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x90, 0x2e, 0x3a, 0xdc, 0x95, 0x01, 0x00, 0x00,
var file_cs3_auth_registry_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cs3_auth_registry_v1beta1_resources_proto_goTypes = []interface{}{
(*ProviderInfo)(nil), // 0: cs3.auth.registry.v1beta1.ProviderInfo
(*v1beta1.Opaque)(nil), // 1: cs3.types.v1beta1.Opaque
}
var file_cs3_auth_registry_v1beta1_resources_proto_depIdxs = []int32{
1, // 0: cs3.auth.registry.v1beta1.ProviderInfo.opaque:type_name -> cs3.types.v1beta1.Opaque
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_cs3_auth_registry_v1beta1_resources_proto_init() }
func file_cs3_auth_registry_v1beta1_resources_proto_init() {
if File_cs3_auth_registry_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_auth_registry_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ProviderInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_auth_registry_v1beta1_resources_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_auth_registry_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_auth_registry_v1beta1_resources_proto_depIdxs,
MessageInfos: file_cs3_auth_registry_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_auth_registry_v1beta1_resources_proto = out.File
file_cs3_auth_registry_v1beta1_resources_proto_rawDesc = nil
file_cs3_auth_registry_v1beta1_resources_proto_goTypes = nil
file_cs3_auth_registry_v1beta1_resources_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+364 -122
View File
@@ -1,30 +1,53 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/gateway/v1beta1/resources.proto
package gatewayv1beta1
import (
fmt "fmt"
v1beta12 "github.com/cs3org/go-cs3apis/cs3/sharing/collaboration/v1beta1"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// A file upload protocol object stores information about
// uploading resources using a specific protocol.
type FileUploadProtocol struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
@@ -44,68 +67,72 @@ type FileUploadProtocol struct {
// OPTIONAL.
// A token that MUST be validated by the data gateway for the upload.
// Only makes sense for uploads passing through the data gateway.
Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
}
func (m *FileUploadProtocol) Reset() { *m = FileUploadProtocol{} }
func (m *FileUploadProtocol) String() string { return proto.CompactTextString(m) }
func (*FileUploadProtocol) ProtoMessage() {}
func (x *FileUploadProtocol) Reset() {
*x = FileUploadProtocol{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FileUploadProtocol) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileUploadProtocol) ProtoMessage() {}
func (x *FileUploadProtocol) ProtoReflect() protoreflect.Message {
mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FileUploadProtocol.ProtoReflect.Descriptor instead.
func (*FileUploadProtocol) Descriptor() ([]byte, []int) {
return fileDescriptor_6dff5533c2cc40ba, []int{0}
return file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *FileUploadProtocol) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileUploadProtocol.Unmarshal(m, b)
}
func (m *FileUploadProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileUploadProtocol.Marshal(b, m, deterministic)
}
func (m *FileUploadProtocol) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileUploadProtocol.Merge(m, src)
}
func (m *FileUploadProtocol) XXX_Size() int {
return xxx_messageInfo_FileUploadProtocol.Size(m)
}
func (m *FileUploadProtocol) XXX_DiscardUnknown() {
xxx_messageInfo_FileUploadProtocol.DiscardUnknown(m)
}
var xxx_messageInfo_FileUploadProtocol proto.InternalMessageInfo
func (m *FileUploadProtocol) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *FileUploadProtocol) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *FileUploadProtocol) GetProtocol() string {
if m != nil {
return m.Protocol
func (x *FileUploadProtocol) GetProtocol() string {
if x != nil {
return x.Protocol
}
return ""
}
func (m *FileUploadProtocol) GetUploadEndpoint() string {
if m != nil {
return m.UploadEndpoint
func (x *FileUploadProtocol) GetUploadEndpoint() string {
if x != nil {
return x.UploadEndpoint
}
return ""
}
func (m *FileUploadProtocol) GetAvailableChecksums() []*v1beta11.ResourceChecksumPriority {
if m != nil {
return m.AvailableChecksums
func (x *FileUploadProtocol) GetAvailableChecksums() []*v1beta11.ResourceChecksumPriority {
if x != nil {
return x.AvailableChecksums
}
return nil
}
func (m *FileUploadProtocol) GetToken() string {
if m != nil {
return m.Token
func (x *FileUploadProtocol) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
@@ -113,6 +140,10 @@ func (m *FileUploadProtocol) GetToken() string {
// A file download protocol object stores information about
// downloading resources using a specific protocol.
type FileDownloadProtocol struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
@@ -127,97 +158,308 @@ type FileDownloadProtocol struct {
// OPTIONAL.
// A token that MUST be validated by the data gateway for the download.
// Only makes sense for downloads passing through the data gateway.
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
}
func (m *FileDownloadProtocol) Reset() { *m = FileDownloadProtocol{} }
func (m *FileDownloadProtocol) String() string { return proto.CompactTextString(m) }
func (*FileDownloadProtocol) ProtoMessage() {}
func (x *FileDownloadProtocol) Reset() {
*x = FileDownloadProtocol{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FileDownloadProtocol) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileDownloadProtocol) ProtoMessage() {}
func (x *FileDownloadProtocol) ProtoReflect() protoreflect.Message {
mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FileDownloadProtocol.ProtoReflect.Descriptor instead.
func (*FileDownloadProtocol) Descriptor() ([]byte, []int) {
return fileDescriptor_6dff5533c2cc40ba, []int{1}
return file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP(), []int{1}
}
func (m *FileDownloadProtocol) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileDownloadProtocol.Unmarshal(m, b)
}
func (m *FileDownloadProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileDownloadProtocol.Marshal(b, m, deterministic)
}
func (m *FileDownloadProtocol) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileDownloadProtocol.Merge(m, src)
}
func (m *FileDownloadProtocol) XXX_Size() int {
return xxx_messageInfo_FileDownloadProtocol.Size(m)
}
func (m *FileDownloadProtocol) XXX_DiscardUnknown() {
xxx_messageInfo_FileDownloadProtocol.DiscardUnknown(m)
}
var xxx_messageInfo_FileDownloadProtocol proto.InternalMessageInfo
func (m *FileDownloadProtocol) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *FileDownloadProtocol) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *FileDownloadProtocol) GetProtocol() string {
if m != nil {
return m.Protocol
func (x *FileDownloadProtocol) GetProtocol() string {
if x != nil {
return x.Protocol
}
return ""
}
func (m *FileDownloadProtocol) GetDownloadEndpoint() string {
if m != nil {
return m.DownloadEndpoint
func (x *FileDownloadProtocol) GetDownloadEndpoint() string {
if x != nil {
return x.DownloadEndpoint
}
return ""
}
func (m *FileDownloadProtocol) GetToken() string {
if m != nil {
return m.Token
func (x *FileDownloadProtocol) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func init() {
proto.RegisterType((*FileUploadProtocol)(nil), "cs3.gateway.v1beta1.FileUploadProtocol")
proto.RegisterType((*FileDownloadProtocol)(nil), "cs3.gateway.v1beta1.FileDownloadProtocol")
// A shared resource includes the sharing information
// and the storage-related information about a resource.
type SharedResourceInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information.
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
// REQUIRED.
// The underlying share as returned by the collaboration service.
Share *v1beta12.ReceivedShare `protobuf:"bytes,2,opt,name=share,proto3" json:"share,omitempty"`
// REQUIRED.
// The corresponding resource information as returned by the storage provider.
ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,3,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"`
}
func init() {
proto.RegisterFile("cs3/gateway/v1beta1/resources.proto", fileDescriptor_6dff5533c2cc40ba)
func (x *SharedResourceInfo) Reset() {
*x = SharedResourceInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
var fileDescriptor_6dff5533c2cc40ba = []byte{
// 365 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0xdf, 0x4a, 0xeb, 0x40,
0x10, 0xc6, 0x49, 0xfa, 0x87, 0x73, 0xb6, 0xd0, 0x73, 0xdc, 0x16, 0x8c, 0x05, 0xa1, 0xd4, 0x0b,
0x0b, 0xca, 0x86, 0x34, 0xe0, 0x03, 0xb4, 0x6a, 0x2f, 0x2d, 0x01, 0x45, 0xa4, 0x50, 0xb6, 0xc9,
0x52, 0x43, 0xd3, 0xec, 0xba, 0xbb, 0x69, 0xe9, 0x33, 0xf8, 0x16, 0x5e, 0x89, 0x8f, 0xe2, 0x53,
0x49, 0x36, 0x93, 0x20, 0xa2, 0x97, 0x5e, 0xce, 0x37, 0xbf, 0x99, 0xfd, 0xe6, 0x63, 0xd1, 0x49,
0xa8, 0x7c, 0x77, 0x45, 0x35, 0xdb, 0xd1, 0xbd, 0xbb, 0xf5, 0x96, 0x4c, 0x53, 0xcf, 0x95, 0x4c,
0xf1, 0x4c, 0x86, 0x4c, 0x11, 0x21, 0xb9, 0xe6, 0xb8, 0x13, 0x2a, 0x9f, 0x00, 0x44, 0x00, 0xea,
0x9d, 0xe7, 0x93, 0x4a, 0x73, 0x49, 0x57, 0xcc, 0x15, 0x92, 0x6f, 0xe3, 0x88, 0xc9, 0x9f, 0x56,
0xf4, 0x8e, 0x73, 0x5a, 0xef, 0x05, 0x53, 0x15, 0x62, 0xaa, 0xa2, 0x3d, 0x78, 0xb6, 0x11, 0xbe,
0x8e, 0x13, 0x76, 0x2b, 0x12, 0x4e, 0xa3, 0x59, 0xae, 0x85, 0x3c, 0xc1, 0x1e, 0x6a, 0x72, 0x41,
0x9f, 0x32, 0xe6, 0x58, 0x7d, 0x6b, 0xd8, 0x1a, 0x1d, 0x91, 0xdc, 0x49, 0x31, 0x08, 0x6b, 0xc8,
0x8d, 0x01, 0x02, 0x00, 0x71, 0x0f, 0xfd, 0x11, 0x30, 0xee, 0xd8, 0x7d, 0x6b, 0xf8, 0x37, 0xa8,
0x6a, 0x7c, 0x8a, 0xfe, 0x65, 0xe6, 0x81, 0x05, 0x4b, 0x23, 0xc1, 0xe3, 0x54, 0x3b, 0x35, 0x83,
0xb4, 0x0b, 0xf9, 0x0a, 0x54, 0xbc, 0x42, 0x1d, 0xba, 0xa5, 0x71, 0x42, 0x97, 0x09, 0x5b, 0x84,
0x8f, 0x2c, 0x5c, 0xab, 0x6c, 0xa3, 0x9c, 0x7a, 0xbf, 0x36, 0x6c, 0x8d, 0x2e, 0x8c, 0x09, 0xb8,
0x9c, 0x94, 0x97, 0x57, 0x7e, 0x02, 0xb8, 0x7c, 0x02, 0x63, 0x33, 0x19, 0x73, 0x19, 0xeb, 0x7d,
0x80, 0xab, 0x95, 0x65, 0x4b, 0xe1, 0x2e, 0x6a, 0x68, 0xbe, 0x66, 0xa9, 0xd3, 0x30, 0x3e, 0x8a,
0x62, 0xf0, 0x6a, 0xa1, 0x6e, 0x9e, 0xc6, 0x25, 0xdf, 0xa5, 0xbf, 0x99, 0xc7, 0x19, 0x3a, 0x88,
0xe0, 0x89, 0xaf, 0x89, 0xfc, 0x2f, 0x1b, 0x55, 0x26, 0x95, 0xd5, 0xfa, 0x27, 0xab, 0xe3, 0x0d,
0x3a, 0x0c, 0xf9, 0x86, 0x7c, 0xf3, 0x41, 0xc6, 0xed, 0x32, 0x09, 0x65, 0xfc, 0xcf, 0xac, 0x87,
0x36, 0x20, 0x40, 0xbc, 0xd8, 0xb5, 0xc9, 0xf4, 0xfe, 0xcd, 0xee, 0x4c, 0x94, 0x4f, 0xa6, 0x30,
0x7d, 0xe7, 0x8d, 0xf3, 0xde, 0xbb, 0x51, 0xe7, 0xa0, 0xce, 0x41, 0x5d, 0x36, 0x8d, 0x77, 0xff,
0x23, 0x00, 0x00, 0xff, 0xff, 0x47, 0x4a, 0x5b, 0x5b, 0xb7, 0x02, 0x00, 0x00,
func (x *SharedResourceInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SharedResourceInfo) ProtoMessage() {}
func (x *SharedResourceInfo) ProtoReflect() protoreflect.Message {
mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SharedResourceInfo.ProtoReflect.Descriptor instead.
func (*SharedResourceInfo) Descriptor() ([]byte, []int) {
return file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP(), []int{2}
}
func (x *SharedResourceInfo) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (x *SharedResourceInfo) GetShare() *v1beta12.ReceivedShare {
if x != nil {
return x.Share
}
return nil
}
func (x *SharedResourceInfo) GetResourceInfo() *v1beta11.ResourceInfo {
if x != nil {
return x.ResourceInfo
}
return nil
}
var File_cs3_gateway_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_gateway_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x23, 0x63, 0x73, 0x33, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77,
0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f,
0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68,
0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74,
0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x02, 0x0a, 0x12, 0x46,
0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
0x6c, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
0x12, 0x27, 0x0a, 0x0f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f,
0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x70, 0x6c, 0x6f, 0x61,
0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x67, 0x0a, 0x13, 0x61, 0x76, 0x61,
0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73,
0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f,
0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68,
0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x12,
0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75,
0x6d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa8, 0x01, 0x0a, 0x14, 0x46, 0x69, 0x6c,
0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
0x6c, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
0x12, 0x2b, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64,
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x6f, 0x77,
0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a,
0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x22, 0xe0, 0x01, 0x0a, 0x12, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f,
0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x46, 0x0a,
0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61,
0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05,
0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0xd8, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70,
0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x73,
0x33, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0xca, 0x02, 0x13, 0x43, 0x73, 0x33, 0x5c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c,
0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1f, 0x43, 0x73, 0x33, 0x5c, 0x47, 0x61,
0x74, 0x65, 0x77, 0x61, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50,
0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x43, 0x73, 0x33, 0x3a,
0x3a, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_cs3_gateway_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_gateway_v1beta1_resources_proto_rawDescData = file_cs3_gateway_v1beta1_resources_proto_rawDesc
)
func file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_gateway_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_gateway_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_gateway_v1beta1_resources_proto_rawDescData)
})
return file_cs3_gateway_v1beta1_resources_proto_rawDescData
}
var file_cs3_gateway_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_cs3_gateway_v1beta1_resources_proto_goTypes = []interface{}{
(*FileUploadProtocol)(nil), // 0: cs3.gateway.v1beta1.FileUploadProtocol
(*FileDownloadProtocol)(nil), // 1: cs3.gateway.v1beta1.FileDownloadProtocol
(*SharedResourceInfo)(nil), // 2: cs3.gateway.v1beta1.SharedResourceInfo
(*v1beta1.Opaque)(nil), // 3: cs3.types.v1beta1.Opaque
(*v1beta11.ResourceChecksumPriority)(nil), // 4: cs3.storage.provider.v1beta1.ResourceChecksumPriority
(*v1beta12.ReceivedShare)(nil), // 5: cs3.sharing.collaboration.v1beta1.ReceivedShare
(*v1beta11.ResourceInfo)(nil), // 6: cs3.storage.provider.v1beta1.ResourceInfo
}
var file_cs3_gateway_v1beta1_resources_proto_depIdxs = []int32{
3, // 0: cs3.gateway.v1beta1.FileUploadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque
4, // 1: cs3.gateway.v1beta1.FileUploadProtocol.available_checksums:type_name -> cs3.storage.provider.v1beta1.ResourceChecksumPriority
3, // 2: cs3.gateway.v1beta1.FileDownloadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque
3, // 3: cs3.gateway.v1beta1.SharedResourceInfo.opaque:type_name -> cs3.types.v1beta1.Opaque
5, // 4: cs3.gateway.v1beta1.SharedResourceInfo.share:type_name -> cs3.sharing.collaboration.v1beta1.ReceivedShare
6, // 5: cs3.gateway.v1beta1.SharedResourceInfo.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_cs3_gateway_v1beta1_resources_proto_init() }
func file_cs3_gateway_v1beta1_resources_proto_init() {
if File_cs3_gateway_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_gateway_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FileUploadProtocol); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_gateway_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FileDownloadProtocol); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_gateway_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SharedResourceInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_gateway_v1beta1_resources_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_gateway_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_gateway_v1beta1_resources_proto_depIdxs,
MessageInfos: file_cs3_gateway_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_gateway_v1beta1_resources_proto = out.File
file_cs3_gateway_v1beta1_resources_proto_rawDesc = nil
file_cs3_gateway_v1beta1_resources_proto_goTypes = nil
file_cs3_gateway_v1beta1_resources_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,283 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/identity/group/v1beta1/group_api.proto
package groupv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
GroupAPI_GetGroup_FullMethodName = "/cs3.identity.group.v1beta1.GroupAPI/GetGroup"
GroupAPI_GetGroupByClaim_FullMethodName = "/cs3.identity.group.v1beta1.GroupAPI/GetGroupByClaim"
GroupAPI_GetMembers_FullMethodName = "/cs3.identity.group.v1beta1.GroupAPI/GetMembers"
GroupAPI_HasMember_FullMethodName = "/cs3.identity.group.v1beta1.GroupAPI/HasMember"
GroupAPI_FindGroups_FullMethodName = "/cs3.identity.group.v1beta1.GroupAPI/FindGroups"
)
// GroupAPIClient is the client API for GroupAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type GroupAPIClient interface {
// Gets the information about a group by the group id.
GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*GetGroupResponse, error)
// Gets the information about a group based on a specified claim.
GetGroupByClaim(ctx context.Context, in *GetGroupByClaimRequest, opts ...grpc.CallOption) (*GetGroupByClaimResponse, error)
// Gets the members of a group.
GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*GetMembersResponse, error)
// Tells if the group has certain member.
HasMember(ctx context.Context, in *HasMemberRequest, opts ...grpc.CallOption) (*HasMemberResponse, error)
// Finds groups whose names match the specified filter.
FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...grpc.CallOption) (*FindGroupsResponse, error)
}
type groupAPIClient struct {
cc grpc.ClientConnInterface
}
func NewGroupAPIClient(cc grpc.ClientConnInterface) GroupAPIClient {
return &groupAPIClient{cc}
}
func (c *groupAPIClient) GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*GetGroupResponse, error) {
out := new(GetGroupResponse)
err := c.cc.Invoke(ctx, GroupAPI_GetGroup_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *groupAPIClient) GetGroupByClaim(ctx context.Context, in *GetGroupByClaimRequest, opts ...grpc.CallOption) (*GetGroupByClaimResponse, error) {
out := new(GetGroupByClaimResponse)
err := c.cc.Invoke(ctx, GroupAPI_GetGroupByClaim_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *groupAPIClient) GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*GetMembersResponse, error) {
out := new(GetMembersResponse)
err := c.cc.Invoke(ctx, GroupAPI_GetMembers_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *groupAPIClient) HasMember(ctx context.Context, in *HasMemberRequest, opts ...grpc.CallOption) (*HasMemberResponse, error) {
out := new(HasMemberResponse)
err := c.cc.Invoke(ctx, GroupAPI_HasMember_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *groupAPIClient) FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...grpc.CallOption) (*FindGroupsResponse, error) {
out := new(FindGroupsResponse)
err := c.cc.Invoke(ctx, GroupAPI_FindGroups_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// GroupAPIServer is the server API for GroupAPI service.
// All implementations should embed UnimplementedGroupAPIServer
// for forward compatibility
type GroupAPIServer interface {
// Gets the information about a group by the group id.
GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
// Gets the information about a group based on a specified claim.
GetGroupByClaim(context.Context, *GetGroupByClaimRequest) (*GetGroupByClaimResponse, error)
// Gets the members of a group.
GetMembers(context.Context, *GetMembersRequest) (*GetMembersResponse, error)
// Tells if the group has certain member.
HasMember(context.Context, *HasMemberRequest) (*HasMemberResponse, error)
// Finds groups whose names match the specified filter.
FindGroups(context.Context, *FindGroupsRequest) (*FindGroupsResponse, error)
}
// UnimplementedGroupAPIServer should be embedded to have forward compatible implementations.
type UnimplementedGroupAPIServer struct {
}
func (UnimplementedGroupAPIServer) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGroup not implemented")
}
func (UnimplementedGroupAPIServer) GetGroupByClaim(context.Context, *GetGroupByClaimRequest) (*GetGroupByClaimResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGroupByClaim not implemented")
}
func (UnimplementedGroupAPIServer) GetMembers(context.Context, *GetMembersRequest) (*GetMembersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMembers not implemented")
}
func (UnimplementedGroupAPIServer) HasMember(context.Context, *HasMemberRequest) (*HasMemberResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method HasMember not implemented")
}
func (UnimplementedGroupAPIServer) FindGroups(context.Context, *FindGroupsRequest) (*FindGroupsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindGroups not implemented")
}
// UnsafeGroupAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to GroupAPIServer will
// result in compilation errors.
type UnsafeGroupAPIServer interface {
mustEmbedUnimplementedGroupAPIServer()
}
func RegisterGroupAPIServer(s grpc.ServiceRegistrar, srv GroupAPIServer) {
s.RegisterService(&GroupAPI_ServiceDesc, srv)
}
func _GroupAPI_GetGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGroupRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GroupAPIServer).GetGroup(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GroupAPI_GetGroup_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GroupAPIServer).GetGroup(ctx, req.(*GetGroupRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GroupAPI_GetGroupByClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGroupByClaimRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GroupAPIServer).GetGroupByClaim(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GroupAPI_GetGroupByClaim_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GroupAPIServer).GetGroupByClaim(ctx, req.(*GetGroupByClaimRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GroupAPI_GetMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMembersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GroupAPIServer).GetMembers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GroupAPI_GetMembers_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GroupAPIServer).GetMembers(ctx, req.(*GetMembersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GroupAPI_HasMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HasMemberRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GroupAPIServer).HasMember(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GroupAPI_HasMember_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GroupAPIServer).HasMember(ctx, req.(*HasMemberRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GroupAPI_FindGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindGroupsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GroupAPIServer).FindGroups(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GroupAPI_FindGroups_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GroupAPIServer).FindGroups(ctx, req.(*FindGroupsRequest))
}
return interceptor(ctx, in, info, handler)
}
// GroupAPI_ServiceDesc is the grpc.ServiceDesc for GroupAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var GroupAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.identity.group.v1beta1.GroupAPI",
HandlerType: (*GroupAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetGroup",
Handler: _GroupAPI_GetGroup_Handler,
},
{
MethodName: "GetGroupByClaim",
Handler: _GroupAPI_GetGroupByClaim_Handler,
},
{
MethodName: "GetMembers",
Handler: _GroupAPI_GetMembers_Handler,
},
{
MethodName: "HasMember",
Handler: _GroupAPI_HasMember_Handler,
},
{
MethodName: "FindGroups",
Handler: _GroupAPI_FindGroups_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/identity/group/v1beta1/group_api.proto",
}
+267 -134
View File
@@ -1,210 +1,343 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/identity/group/v1beta1/resources.proto
package groupv1beta1
import (
fmt "fmt"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// A GroupId represents a group.
type GroupId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The identity provider for the group.
Idp string `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"`
// REQUIRED.
// the unique identifier for the group in the scope of
// the identity provider.
OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"`
}
func (m *GroupId) Reset() { *m = GroupId{} }
func (m *GroupId) String() string { return proto.CompactTextString(m) }
func (*GroupId) ProtoMessage() {}
func (x *GroupId) Reset() {
*x = GroupId{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_identity_group_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GroupId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GroupId) ProtoMessage() {}
func (x *GroupId) ProtoReflect() protoreflect.Message {
mi := &file_cs3_identity_group_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GroupId.ProtoReflect.Descriptor instead.
func (*GroupId) Descriptor() ([]byte, []int) {
return fileDescriptor_855c824f484248c0, []int{0}
return file_cs3_identity_group_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *GroupId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GroupId.Unmarshal(m, b)
}
func (m *GroupId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GroupId.Marshal(b, m, deterministic)
}
func (m *GroupId) XXX_Merge(src proto.Message) {
xxx_messageInfo_GroupId.Merge(m, src)
}
func (m *GroupId) XXX_Size() int {
return xxx_messageInfo_GroupId.Size(m)
}
func (m *GroupId) XXX_DiscardUnknown() {
xxx_messageInfo_GroupId.DiscardUnknown(m)
}
var xxx_messageInfo_GroupId proto.InternalMessageInfo
func (m *GroupId) GetIdp() string {
if m != nil {
return m.Idp
func (x *GroupId) GetIdp() string {
if x != nil {
return x.Idp
}
return ""
}
func (m *GroupId) GetOpaqueId() string {
if m != nil {
return m.OpaqueId
func (x *GroupId) GetOpaqueId() string {
if x != nil {
return x.OpaqueId
}
return ""
}
// Represents a group of the system.
type Group struct {
Id *GroupId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
GidNumber int64 `protobuf:"varint,3,opt,name=gid_number,json=gidNumber,proto3" json:"gid_number,omitempty"`
Mail string `protobuf:"bytes,4,opt,name=mail,proto3" json:"mail,omitempty"`
MailVerified bool `protobuf:"varint,5,opt,name=mail_verified,json=mailVerified,proto3" json:"mail_verified,omitempty"`
DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Members []*v1beta1.UserId `protobuf:"bytes,7,rep,name=members,proto3" json:"members,omitempty"`
Opaque *v1beta11.Opaque `protobuf:"bytes,8,opt,name=opaque,proto3" json:"opaque,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id *GroupId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
GidNumber int64 `protobuf:"varint,3,opt,name=gid_number,json=gidNumber,proto3" json:"gid_number,omitempty"`
Mail string `protobuf:"bytes,4,opt,name=mail,proto3" json:"mail,omitempty"`
MailVerified bool `protobuf:"varint,5,opt,name=mail_verified,json=mailVerified,proto3" json:"mail_verified,omitempty"`
DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Members []*v1beta1.UserId `protobuf:"bytes,7,rep,name=members,proto3" json:"members,omitempty"`
Opaque *v1beta11.Opaque `protobuf:"bytes,8,opt,name=opaque,proto3" json:"opaque,omitempty"`
}
func (m *Group) Reset() { *m = Group{} }
func (m *Group) String() string { return proto.CompactTextString(m) }
func (*Group) ProtoMessage() {}
func (x *Group) Reset() {
*x = Group{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_identity_group_v1beta1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Group) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Group) ProtoMessage() {}
func (x *Group) ProtoReflect() protoreflect.Message {
mi := &file_cs3_identity_group_v1beta1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Group.ProtoReflect.Descriptor instead.
func (*Group) Descriptor() ([]byte, []int) {
return fileDescriptor_855c824f484248c0, []int{1}
return file_cs3_identity_group_v1beta1_resources_proto_rawDescGZIP(), []int{1}
}
func (m *Group) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Group.Unmarshal(m, b)
}
func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Group.Marshal(b, m, deterministic)
}
func (m *Group) XXX_Merge(src proto.Message) {
xxx_messageInfo_Group.Merge(m, src)
}
func (m *Group) XXX_Size() int {
return xxx_messageInfo_Group.Size(m)
}
func (m *Group) XXX_DiscardUnknown() {
xxx_messageInfo_Group.DiscardUnknown(m)
}
var xxx_messageInfo_Group proto.InternalMessageInfo
func (m *Group) GetId() *GroupId {
if m != nil {
return m.Id
func (x *Group) GetId() *GroupId {
if x != nil {
return x.Id
}
return nil
}
func (m *Group) GetGroupName() string {
if m != nil {
return m.GroupName
func (x *Group) GetGroupName() string {
if x != nil {
return x.GroupName
}
return ""
}
func (m *Group) GetGidNumber() int64 {
if m != nil {
return m.GidNumber
func (x *Group) GetGidNumber() int64 {
if x != nil {
return x.GidNumber
}
return 0
}
func (m *Group) GetMail() string {
if m != nil {
return m.Mail
func (x *Group) GetMail() string {
if x != nil {
return x.Mail
}
return ""
}
func (m *Group) GetMailVerified() bool {
if m != nil {
return m.MailVerified
func (x *Group) GetMailVerified() bool {
if x != nil {
return x.MailVerified
}
return false
}
func (m *Group) GetDisplayName() string {
if m != nil {
return m.DisplayName
func (x *Group) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (m *Group) GetMembers() []*v1beta1.UserId {
if m != nil {
return m.Members
func (x *Group) GetMembers() []*v1beta1.UserId {
if x != nil {
return x.Members
}
return nil
}
func (m *Group) GetOpaque() *v1beta11.Opaque {
if m != nil {
return m.Opaque
func (x *Group) GetOpaque() *v1beta11.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func init() {
proto.RegisterType((*GroupId)(nil), "cs3.identity.group.v1beta1.GroupId")
proto.RegisterType((*Group)(nil), "cs3.identity.group.v1beta1.Group")
var File_cs3_identity_group_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_identity_group_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x2a, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x73,
0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x38, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x10, 0x0a,
0x03, 0x69, 0x64, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x70, 0x12,
0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0xc6, 0x02, 0x0a,
0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x33, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
0x79, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69,
0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
0x67, 0x69, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x69,
0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x0a,
0x0d, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x05,
0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69,
0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65,
0x72, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f,
0x70, 0x61, 0x71, 0x75, 0x65, 0x42, 0x81, 0x02, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73,
0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f,
0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0xa2, 0x02, 0x03, 0x43, 0x49, 0x47, 0xaa, 0x02, 0x1a, 0x43, 0x73, 0x33, 0x2e, 0x49, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0xca, 0x02, 0x1a, 0x43, 0x73, 0x33, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x74, 0x79, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0xe2, 0x02, 0x26, 0x43, 0x73, 0x33, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50,
0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x43, 0x73, 0x33, 0x3a,
0x3a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70,
0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
func init() {
proto.RegisterFile("cs3/identity/group/v1beta1/resources.proto", fileDescriptor_855c824f484248c0)
var (
file_cs3_identity_group_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_identity_group_v1beta1_resources_proto_rawDescData = file_cs3_identity_group_v1beta1_resources_proto_rawDesc
)
func file_cs3_identity_group_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_identity_group_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_identity_group_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_identity_group_v1beta1_resources_proto_rawDescData)
})
return file_cs3_identity_group_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_855c824f484248c0 = []byte{
// 390 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0x3d, 0xef, 0x9a, 0x40,
0x18, 0x0f, 0xe0, 0x1b, 0xa7, 0x6d, 0x9a, 0x9b, 0x28, 0x8d, 0x0d, 0xea, 0x42, 0x3b, 0x1c, 0x41,
0x96, 0x26, 0xdd, 0x74, 0x30, 0x2c, 0xd6, 0x90, 0xd4, 0xa1, 0x31, 0x21, 0xc8, 0x5d, 0xcd, 0x25,
0x22, 0xf4, 0x0e, 0x4c, 0xdc, 0xfa, 0x59, 0x3a, 0xf6, 0x83, 0x74, 0xe8, 0xa7, 0xfa, 0xe7, 0x1e,
0x0e, 0x13, 0x07, 0xff, 0x13, 0xc7, 0xef, 0xed, 0xe1, 0x7e, 0x0f, 0xe8, 0x73, 0x2e, 0xa3, 0x80,
0x53, 0x76, 0xa9, 0x79, 0x7d, 0x0b, 0x4e, 0xa2, 0x6c, 0xaa, 0xe0, 0x1a, 0x1e, 0x59, 0x9d, 0x85,
0x81, 0x60, 0xb2, 0x6c, 0x44, 0xce, 0x24, 0xa9, 0x44, 0x59, 0x97, 0xd8, 0xcd, 0x65, 0x44, 0x3a,
0x2d, 0x01, 0x2d, 0xd1, 0x5a, 0xf7, 0xd3, 0x43, 0x4e, 0x23, 0x99, 0x78, 0x16, 0xe3, 0x4e, 0x95,
0xb4, 0xbe, 0x55, 0x4c, 0xde, 0x25, 0xf0, 0xd6, 0xd2, 0xf3, 0x2f, 0x68, 0xb8, 0x51, 0xd1, 0x31,
0xc5, 0xef, 0x90, 0xc5, 0x69, 0xe5, 0x18, 0x9e, 0xe1, 0xdb, 0x89, 0x3a, 0xe2, 0x0f, 0xc8, 0x2e,
0xab, 0xec, 0x57, 0xc3, 0x52, 0x4e, 0x1d, 0x13, 0xf0, 0x51, 0x0b, 0xc4, 0x74, 0xfe, 0xcf, 0x44,
0x7d, 0xb0, 0xe2, 0x08, 0x99, 0x9c, 0x82, 0x6f, 0xbc, 0x5c, 0x90, 0xe7, 0x9f, 0x4d, 0xf4, 0xa4,
0xc4, 0xe4, 0x14, 0x4f, 0x11, 0x02, 0x32, 0xbd, 0x64, 0x05, 0xd3, 0xe1, 0x36, 0x20, 0xdb, 0xac,
0x60, 0x40, 0x73, 0x9a, 0x5e, 0x9a, 0xe2, 0xc8, 0x84, 0x63, 0x79, 0x86, 0x6f, 0x25, 0xf6, 0x89,
0xd3, 0x2d, 0x00, 0x18, 0xa3, 0x5e, 0x91, 0xf1, 0xb3, 0xd3, 0x03, 0x1f, 0x9c, 0xf1, 0x02, 0xbd,
0x51, 0xcf, 0xf4, 0xca, 0x04, 0xff, 0xc9, 0x19, 0x75, 0xfa, 0x9e, 0xe1, 0x8f, 0x92, 0x89, 0x02,
0xf7, 0x1a, 0xc3, 0x33, 0x34, 0xa1, 0x5c, 0x56, 0xe7, 0xec, 0xd6, 0x0e, 0x1e, 0x40, 0xc0, 0x58,
0x63, 0x30, 0xfa, 0x2b, 0x1a, 0x16, 0x4c, 0x4d, 0x91, 0xce, 0xd0, 0xb3, 0xfc, 0xf1, 0x72, 0xf6,
0x78, 0x27, 0x55, 0xf7, 0xfd, 0x4a, 0xdf, 0x25, 0x13, 0x31, 0x4d, 0x3a, 0x07, 0x0e, 0xd1, 0xa0,
0x6d, 0xc8, 0x19, 0x41, 0x1f, 0xef, 0xc1, 0xdb, 0x36, 0xde, 0x79, 0xbe, 0x81, 0x20, 0xd1, 0xc2,
0xd5, 0x6f, 0x03, 0x7d, 0xcc, 0xcb, 0xe2, 0x95, 0xe2, 0x56, 0x6f, 0x93, 0x6e, 0xab, 0x3b, 0xb5,
0xb5, 0x9d, 0xf1, 0x63, 0x02, 0x02, 0xcd, 0xff, 0x31, 0xad, 0x75, 0xbc, 0xf9, 0x6b, 0xba, 0x6b,
0x19, 0x91, 0xb8, 0x8b, 0x80, 0xb6, 0xc9, 0x3e, 0x5c, 0x29, 0xc9, 0x7f, 0x20, 0x0f, 0x1d, 0x79,
0x00, 0xf2, 0xa0, 0xc9, 0xe3, 0x00, 0x7e, 0x86, 0xe8, 0x25, 0x00, 0x00, 0xff, 0xff, 0x32, 0x7a,
0x0d, 0x5a, 0xa0, 0x02, 0x00, 0x00,
var file_cs3_identity_group_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_cs3_identity_group_v1beta1_resources_proto_goTypes = []interface{}{
(*GroupId)(nil), // 0: cs3.identity.group.v1beta1.GroupId
(*Group)(nil), // 1: cs3.identity.group.v1beta1.Group
(*v1beta1.UserId)(nil), // 2: cs3.identity.user.v1beta1.UserId
(*v1beta11.Opaque)(nil), // 3: cs3.types.v1beta1.Opaque
}
var file_cs3_identity_group_v1beta1_resources_proto_depIdxs = []int32{
0, // 0: cs3.identity.group.v1beta1.Group.id:type_name -> cs3.identity.group.v1beta1.GroupId
2, // 1: cs3.identity.group.v1beta1.Group.members:type_name -> cs3.identity.user.v1beta1.UserId
3, // 2: cs3.identity.group.v1beta1.Group.opaque:type_name -> cs3.types.v1beta1.Opaque
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_cs3_identity_group_v1beta1_resources_proto_init() }
func file_cs3_identity_group_v1beta1_resources_proto_init() {
if File_cs3_identity_group_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_identity_group_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GroupId); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_identity_group_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Group); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_identity_group_v1beta1_resources_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_identity_group_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_identity_group_v1beta1_resources_proto_depIdxs,
MessageInfos: file_cs3_identity_group_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_identity_group_v1beta1_resources_proto = out.File
file_cs3_identity_group_v1beta1_resources_proto_rawDesc = nil
file_cs3_identity_group_v1beta1_resources_proto_goTypes = nil
file_cs3_identity_group_v1beta1_resources_proto_depIdxs = nil
}
+334 -174
View File
@@ -1,25 +1,43 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/identity/user/v1beta1/resources.proto
package userv1beta1
import (
fmt "fmt"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The type of user.
type UserType int32
@@ -45,40 +63,65 @@ const (
UserType_USER_TYPE_SPACE_OWNER UserType = 8
)
var UserType_name = map[int32]string{
0: "USER_TYPE_INVALID",
1: "USER_TYPE_PRIMARY",
2: "USER_TYPE_SECONDARY",
3: "USER_TYPE_SERVICE",
4: "USER_TYPE_APPLICATION",
5: "USER_TYPE_GUEST",
6: "USER_TYPE_FEDERATED",
7: "USER_TYPE_LIGHTWEIGHT",
8: "USER_TYPE_SPACE_OWNER",
}
// Enum value maps for UserType.
var (
UserType_name = map[int32]string{
0: "USER_TYPE_INVALID",
1: "USER_TYPE_PRIMARY",
2: "USER_TYPE_SECONDARY",
3: "USER_TYPE_SERVICE",
4: "USER_TYPE_APPLICATION",
5: "USER_TYPE_GUEST",
6: "USER_TYPE_FEDERATED",
7: "USER_TYPE_LIGHTWEIGHT",
8: "USER_TYPE_SPACE_OWNER",
}
UserType_value = map[string]int32{
"USER_TYPE_INVALID": 0,
"USER_TYPE_PRIMARY": 1,
"USER_TYPE_SECONDARY": 2,
"USER_TYPE_SERVICE": 3,
"USER_TYPE_APPLICATION": 4,
"USER_TYPE_GUEST": 5,
"USER_TYPE_FEDERATED": 6,
"USER_TYPE_LIGHTWEIGHT": 7,
"USER_TYPE_SPACE_OWNER": 8,
}
)
var UserType_value = map[string]int32{
"USER_TYPE_INVALID": 0,
"USER_TYPE_PRIMARY": 1,
"USER_TYPE_SECONDARY": 2,
"USER_TYPE_SERVICE": 3,
"USER_TYPE_APPLICATION": 4,
"USER_TYPE_GUEST": 5,
"USER_TYPE_FEDERATED": 6,
"USER_TYPE_LIGHTWEIGHT": 7,
"USER_TYPE_SPACE_OWNER": 8,
func (x UserType) Enum() *UserType {
p := new(UserType)
*p = x
return p
}
func (x UserType) String() string {
return proto.EnumName(UserType_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UserType) Descriptor() protoreflect.EnumDescriptor {
return file_cs3_identity_user_v1beta1_resources_proto_enumTypes[0].Descriptor()
}
func (UserType) Type() protoreflect.EnumType {
return &file_cs3_identity_user_v1beta1_resources_proto_enumTypes[0]
}
func (x UserType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UserType.Descriptor instead.
func (UserType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f6f8fec048fe85c8, []int{0}
return file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
// A UserId represents a user.
type UserId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The identity provider for the user.
Idp string `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"`
@@ -88,206 +131,323 @@ type UserId struct {
OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"`
// REQUIRED.
// The type of user.
Type UserType `protobuf:"varint,3,opt,name=type,proto3,enum=cs3.identity.user.v1beta1.UserType" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Type UserType `protobuf:"varint,3,opt,name=type,proto3,enum=cs3.identity.user.v1beta1.UserType" json:"type,omitempty"`
}
func (m *UserId) Reset() { *m = UserId{} }
func (m *UserId) String() string { return proto.CompactTextString(m) }
func (*UserId) ProtoMessage() {}
func (x *UserId) Reset() {
*x = UserId{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_identity_user_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserId) ProtoMessage() {}
func (x *UserId) ProtoReflect() protoreflect.Message {
mi := &file_cs3_identity_user_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UserId.ProtoReflect.Descriptor instead.
func (*UserId) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f8fec048fe85c8, []int{0}
return file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *UserId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserId.Unmarshal(m, b)
}
func (m *UserId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserId.Marshal(b, m, deterministic)
}
func (m *UserId) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserId.Merge(m, src)
}
func (m *UserId) XXX_Size() int {
return xxx_messageInfo_UserId.Size(m)
}
func (m *UserId) XXX_DiscardUnknown() {
xxx_messageInfo_UserId.DiscardUnknown(m)
}
var xxx_messageInfo_UserId proto.InternalMessageInfo
func (m *UserId) GetIdp() string {
if m != nil {
return m.Idp
func (x *UserId) GetIdp() string {
if x != nil {
return x.Idp
}
return ""
}
func (m *UserId) GetOpaqueId() string {
if m != nil {
return m.OpaqueId
func (x *UserId) GetOpaqueId() string {
if x != nil {
return x.OpaqueId
}
return ""
}
func (m *UserId) GetType() UserType {
if m != nil {
return m.Type
func (x *UserId) GetType() UserType {
if x != nil {
return x.Type
}
return UserType_USER_TYPE_INVALID
}
// Represents a user of the system.
type User struct {
Id *UserId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Mail string `protobuf:"bytes,3,opt,name=mail,proto3" json:"mail,omitempty"`
MailVerified bool `protobuf:"varint,4,opt,name=mail_verified,json=mailVerified,proto3" json:"mail_verified,omitempty"`
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Groups []string `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"`
Opaque *v1beta1.Opaque `protobuf:"bytes,7,opt,name=opaque,proto3" json:"opaque,omitempty"`
UidNumber int64 `protobuf:"varint,8,opt,name=uid_number,json=uidNumber,proto3" json:"uid_number,omitempty"`
GidNumber int64 `protobuf:"varint,9,opt,name=gid_number,json=gidNumber,proto3" json:"gid_number,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id *UserId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Mail string `protobuf:"bytes,3,opt,name=mail,proto3" json:"mail,omitempty"`
MailVerified bool `protobuf:"varint,4,opt,name=mail_verified,json=mailVerified,proto3" json:"mail_verified,omitempty"`
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Groups []string `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"`
Opaque *v1beta1.Opaque `protobuf:"bytes,7,opt,name=opaque,proto3" json:"opaque,omitempty"`
UidNumber int64 `protobuf:"varint,8,opt,name=uid_number,json=uidNumber,proto3" json:"uid_number,omitempty"`
GidNumber int64 `protobuf:"varint,9,opt,name=gid_number,json=gidNumber,proto3" json:"gid_number,omitempty"`
}
func (m *User) Reset() { *m = User{} }
func (m *User) String() string { return proto.CompactTextString(m) }
func (*User) ProtoMessage() {}
func (x *User) Reset() {
*x = User{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_identity_user_v1beta1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *User) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*User) ProtoMessage() {}
func (x *User) ProtoReflect() protoreflect.Message {
mi := &file_cs3_identity_user_v1beta1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use User.ProtoReflect.Descriptor instead.
func (*User) Descriptor() ([]byte, []int) {
return fileDescriptor_f6f8fec048fe85c8, []int{1}
return file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP(), []int{1}
}
func (m *User) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_User.Unmarshal(m, b)
}
func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_User.Marshal(b, m, deterministic)
}
func (m *User) XXX_Merge(src proto.Message) {
xxx_messageInfo_User.Merge(m, src)
}
func (m *User) XXX_Size() int {
return xxx_messageInfo_User.Size(m)
}
func (m *User) XXX_DiscardUnknown() {
xxx_messageInfo_User.DiscardUnknown(m)
}
var xxx_messageInfo_User proto.InternalMessageInfo
func (m *User) GetId() *UserId {
if m != nil {
return m.Id
func (x *User) GetId() *UserId {
if x != nil {
return x.Id
}
return nil
}
func (m *User) GetUsername() string {
if m != nil {
return m.Username
func (x *User) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (m *User) GetMail() string {
if m != nil {
return m.Mail
func (x *User) GetMail() string {
if x != nil {
return x.Mail
}
return ""
}
func (m *User) GetMailVerified() bool {
if m != nil {
return m.MailVerified
func (x *User) GetMailVerified() bool {
if x != nil {
return x.MailVerified
}
return false
}
func (m *User) GetDisplayName() string {
if m != nil {
return m.DisplayName
func (x *User) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (m *User) GetGroups() []string {
if m != nil {
return m.Groups
func (x *User) GetGroups() []string {
if x != nil {
return x.Groups
}
return nil
}
func (m *User) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *User) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *User) GetUidNumber() int64 {
if m != nil {
return m.UidNumber
func (x *User) GetUidNumber() int64 {
if x != nil {
return x.UidNumber
}
return 0
}
func (m *User) GetGidNumber() int64 {
if m != nil {
return m.GidNumber
func (x *User) GetGidNumber() int64 {
if x != nil {
return x.GidNumber
}
return 0
}
func init() {
proto.RegisterEnum("cs3.identity.user.v1beta1.UserType", UserType_name, UserType_value)
proto.RegisterType((*UserId)(nil), "cs3.identity.user.v1beta1.UserId")
proto.RegisterType((*User)(nil), "cs3.identity.user.v1beta1.User")
var File_cs3_identity_user_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_identity_user_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75,
0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x73, 0x33,
0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65,
0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
0x10, 0x0a, 0x03, 0x69, 0x64, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64,
0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x12, 0x37,
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70,
0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xba, 0x02, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72,
0x12, 0x31, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52,
0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x12, 0x0a, 0x04, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d,
0x61, 0x69, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69,
0x66, 0x69, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x61, 0x69, 0x6c,
0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70,
0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x67, 0x72, 0x6f,
0x75, 0x70, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x07, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06,
0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x69, 0x64, 0x5f, 0x6e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x69, 0x64, 0x4e,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x64, 0x5f, 0x6e, 0x75, 0x6d,
0x62, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x67, 0x69, 0x64, 0x4e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x2a, 0xe7, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70,
0x65, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49,
0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x49, 0x4d, 0x41, 0x52, 0x59, 0x10, 0x01, 0x12,
0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x43,
0x4f, 0x4e, 0x44, 0x41, 0x52, 0x59, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x10, 0x03, 0x12,
0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x50, 0x50,
0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x53,
0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x55, 0x45, 0x53, 0x54, 0x10, 0x05, 0x12,
0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x44,
0x45, 0x52, 0x41, 0x54, 0x45, 0x44, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x47, 0x48, 0x54, 0x57, 0x45, 0x49, 0x47, 0x48,
0x54, 0x10, 0x07, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45,
0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x08, 0x42, 0xfa,
0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63,
0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73,
0x2f, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73,
0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x49, 0x55, 0xaa, 0x02, 0x19, 0x43,
0x73, 0x33, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72,
0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x49,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x43, 0x73, 0x33, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x74, 0x79, 0x5c, 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x43,
0x73, 0x33, 0x3a, 0x3a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x3a, 0x55, 0x73,
0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/identity/user/v1beta1/resources.proto", fileDescriptor_f6f8fec048fe85c8)
var (
file_cs3_identity_user_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_identity_user_v1beta1_resources_proto_rawDescData = file_cs3_identity_user_v1beta1_resources_proto_rawDesc
)
func file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_identity_user_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_identity_user_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_identity_user_v1beta1_resources_proto_rawDescData)
})
return file_cs3_identity_user_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_f6f8fec048fe85c8 = []byte{
// 529 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xc1, 0x6e, 0xda, 0x30,
0x18, 0xc7, 0x97, 0x84, 0xa6, 0x89, 0xe9, 0xba, 0xcc, 0x55, 0xb7, 0xd0, 0x09, 0x89, 0xb6, 0x17,
0xb6, 0x43, 0x10, 0xe5, 0xb0, 0x73, 0x08, 0x5e, 0x67, 0x89, 0x85, 0xc8, 0x04, 0xaa, 0x4e, 0x48,
0x11, 0x60, 0x0f, 0x59, 0x2a, 0x24, 0x4b, 0x48, 0x25, 0xa4, 0x3d, 0xcd, 0x8e, 0x7b, 0x84, 0x3d,
0xc2, 0x5e, 0x64, 0xaf, 0x31, 0xd9, 0x24, 0x43, 0x39, 0x54, 0xbd, 0x80, 0xfd, 0xff, 0xfd, 0xbf,
0x7f, 0x3e, 0x7f, 0xb2, 0xc1, 0xfb, 0x65, 0xd6, 0xeb, 0x70, 0xca, 0x36, 0x5b, 0xbe, 0xdd, 0x75,
0xf2, 0x8c, 0xa5, 0x9d, 0xc7, 0xee, 0x82, 0x6d, 0xe7, 0xdd, 0x4e, 0xca, 0xb2, 0x38, 0x4f, 0x97,
0x2c, 0x73, 0x92, 0x34, 0xde, 0xc6, 0xb0, 0xb1, 0xcc, 0x7a, 0x4e, 0x69, 0x75, 0x84, 0xd5, 0x29,
0xac, 0x17, 0x4d, 0x91, 0xb2, 0xdd, 0x25, 0x2c, 0xfb, 0x5f, 0x2d, 0x77, 0xfb, 0xca, 0xab, 0x04,
0xe8, 0x93, 0x8c, 0xa5, 0x98, 0x42, 0x0b, 0x68, 0x9c, 0x26, 0xb6, 0xd2, 0x52, 0xda, 0x26, 0x11,
0x4b, 0xf8, 0x0e, 0x98, 0x71, 0x32, 0xff, 0x9e, 0xb3, 0x88, 0x53, 0x5b, 0x95, 0xba, 0xb1, 0x17,
0x30, 0x85, 0x1f, 0x41, 0x4d, 0xe4, 0xd8, 0x5a, 0x4b, 0x69, 0x9f, 0xde, 0x5c, 0x3b, 0x4f, 0x76,
0xe0, 0x88, 0xfc, 0x70, 0x97, 0x30, 0x22, 0x0b, 0xae, 0x7e, 0xab, 0xa0, 0x26, 0x24, 0xd8, 0x05,
0x2a, 0xa7, 0xf2, 0x7b, 0xf5, 0x9b, 0xcb, 0x67, 0xea, 0x31, 0x25, 0x2a, 0xa7, 0xf0, 0x02, 0x18,
0x02, 0x6d, 0xe6, 0x6b, 0x56, 0x36, 0x54, 0xee, 0x21, 0x04, 0xb5, 0xf5, 0x9c, 0x3f, 0xc8, 0x86,
0x4c, 0x22, 0xd7, 0xf0, 0x1a, 0xbc, 0x14, 0xff, 0xd1, 0x23, 0x4b, 0xf9, 0x37, 0xce, 0xa8, 0x5d,
0x6b, 0x29, 0x6d, 0x83, 0x9c, 0x08, 0x71, 0x5a, 0x68, 0xf0, 0x12, 0x9c, 0x50, 0x9e, 0x25, 0x0f,
0xf3, 0x5d, 0x24, 0x83, 0x8f, 0x64, 0x40, 0xbd, 0xd0, 0x7c, 0x91, 0xfd, 0x06, 0xe8, 0xab, 0x34,
0xce, 0x93, 0xcc, 0xd6, 0x5b, 0x5a, 0xdb, 0x24, 0xc5, 0x0e, 0x76, 0x81, 0xbe, 0x1f, 0x88, 0x7d,
0x2c, 0x8f, 0xd1, 0x90, 0xc7, 0xd8, 0xcf, 0xb7, 0x6c, 0x7f, 0x24, 0x0d, 0xa4, 0x30, 0xc2, 0x26,
0x00, 0x39, 0xa7, 0xd1, 0x26, 0x5f, 0x2f, 0x58, 0x6a, 0x1b, 0x2d, 0xa5, 0xad, 0x11, 0x33, 0xe7,
0xd4, 0x97, 0x82, 0xc0, 0xab, 0x03, 0x36, 0xf7, 0x78, 0x55, 0xe2, 0x0f, 0x7f, 0x15, 0x60, 0x94,
0xf3, 0x84, 0xe7, 0xe0, 0xf5, 0x64, 0x8c, 0x48, 0x14, 0xde, 0x07, 0x28, 0xc2, 0xfe, 0xd4, 0x1d,
0xe2, 0x81, 0xf5, 0xa2, 0x2a, 0x07, 0x04, 0x7f, 0x71, 0xc9, 0xbd, 0xa5, 0xc0, 0xb7, 0xe0, 0xec,
0x20, 0x8f, 0x91, 0x37, 0xf2, 0x07, 0x02, 0xa8, 0x55, 0xff, 0x18, 0x91, 0x29, 0xf6, 0x90, 0xa5,
0xc1, 0x06, 0x38, 0x3f, 0xc8, 0x6e, 0x10, 0x0c, 0xb1, 0xe7, 0x86, 0x78, 0xe4, 0x5b, 0x35, 0x78,
0x06, 0x5e, 0x1d, 0xd0, 0xed, 0x04, 0x8d, 0x43, 0xeb, 0xa8, 0x9a, 0xff, 0x09, 0x0d, 0x10, 0x71,
0x43, 0x34, 0xb0, 0xf4, 0x6a, 0xd0, 0x10, 0xdf, 0x7e, 0x0e, 0xef, 0x90, 0xf8, 0xb5, 0x8e, 0xab,
0x68, 0x1c, 0xb8, 0x1e, 0x8a, 0x46, 0x77, 0x3e, 0x22, 0x96, 0xd1, 0xff, 0x01, 0x9a, 0xcb, 0x78,
0xfd, 0xf4, 0xb5, 0xe8, 0x9f, 0x92, 0xf2, 0x11, 0x04, 0xe2, 0x26, 0x07, 0xca, 0xd7, 0xba, 0xe0,
0x05, 0xfe, 0xa9, 0x6a, 0x1e, 0x9e, 0xfc, 0x52, 0x1b, 0x5e, 0xd6, 0x73, 0x70, 0x19, 0x20, 0x46,
0xe7, 0x4c, 0xbb, 0x7d, 0xe1, 0xf8, 0x23, 0xd9, 0xac, 0x64, 0x33, 0xc1, 0x66, 0x05, 0x5b, 0xe8,
0xf2, 0x75, 0xf4, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x1a, 0xe3, 0x57, 0x84, 0x03, 0x00,
0x00,
var file_cs3_identity_user_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_cs3_identity_user_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_cs3_identity_user_v1beta1_resources_proto_goTypes = []interface{}{
(UserType)(0), // 0: cs3.identity.user.v1beta1.UserType
(*UserId)(nil), // 1: cs3.identity.user.v1beta1.UserId
(*User)(nil), // 2: cs3.identity.user.v1beta1.User
(*v1beta1.Opaque)(nil), // 3: cs3.types.v1beta1.Opaque
}
var file_cs3_identity_user_v1beta1_resources_proto_depIdxs = []int32{
0, // 0: cs3.identity.user.v1beta1.UserId.type:type_name -> cs3.identity.user.v1beta1.UserType
1, // 1: cs3.identity.user.v1beta1.User.id:type_name -> cs3.identity.user.v1beta1.UserId
3, // 2: cs3.identity.user.v1beta1.User.opaque:type_name -> cs3.types.v1beta1.Opaque
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_cs3_identity_user_v1beta1_resources_proto_init() }
func file_cs3_identity_user_v1beta1_resources_proto_init() {
if File_cs3_identity_user_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_identity_user_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserId); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_identity_user_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*User); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_identity_user_v1beta1_resources_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_identity_user_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_identity_user_v1beta1_resources_proto_depIdxs,
EnumInfos: file_cs3_identity_user_v1beta1_resources_proto_enumTypes,
MessageInfos: file_cs3_identity_user_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_identity_user_v1beta1_resources_proto = out.File
file_cs3_identity_user_v1beta1_resources_proto_rawDesc = nil
file_cs3_identity_user_v1beta1_resources_proto_goTypes = nil
file_cs3_identity_user_v1beta1_resources_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,246 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/identity/user/v1beta1/user_api.proto
package userv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
UserAPI_GetUser_FullMethodName = "/cs3.identity.user.v1beta1.UserAPI/GetUser"
UserAPI_GetUserByClaim_FullMethodName = "/cs3.identity.user.v1beta1.UserAPI/GetUserByClaim"
UserAPI_GetUserGroups_FullMethodName = "/cs3.identity.user.v1beta1.UserAPI/GetUserGroups"
UserAPI_FindUsers_FullMethodName = "/cs3.identity.user.v1beta1.UserAPI/FindUsers"
)
// UserAPIClient is the client API for UserAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type UserAPIClient interface {
// Gets the information about a user by the user id.
GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
// Gets the information about a user based on a specified claim.
GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...grpc.CallOption) (*GetUserByClaimResponse, error)
// Gets the groups of a user.
GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error)
// Finds users by any attribute of the user.
// TODO(labkode): to define the filters that make more sense.
FindUsers(ctx context.Context, in *FindUsersRequest, opts ...grpc.CallOption) (*FindUsersResponse, error)
}
type userAPIClient struct {
cc grpc.ClientConnInterface
}
func NewUserAPIClient(cc grpc.ClientConnInterface) UserAPIClient {
return &userAPIClient{cc}
}
func (c *userAPIClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) {
out := new(GetUserResponse)
err := c.cc.Invoke(ctx, UserAPI_GetUser_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userAPIClient) GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...grpc.CallOption) (*GetUserByClaimResponse, error) {
out := new(GetUserByClaimResponse)
err := c.cc.Invoke(ctx, UserAPI_GetUserByClaim_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userAPIClient) GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error) {
out := new(GetUserGroupsResponse)
err := c.cc.Invoke(ctx, UserAPI_GetUserGroups_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userAPIClient) FindUsers(ctx context.Context, in *FindUsersRequest, opts ...grpc.CallOption) (*FindUsersResponse, error) {
out := new(FindUsersResponse)
err := c.cc.Invoke(ctx, UserAPI_FindUsers_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// UserAPIServer is the server API for UserAPI service.
// All implementations should embed UnimplementedUserAPIServer
// for forward compatibility
type UserAPIServer interface {
// Gets the information about a user by the user id.
GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
// Gets the information about a user based on a specified claim.
GetUserByClaim(context.Context, *GetUserByClaimRequest) (*GetUserByClaimResponse, error)
// Gets the groups of a user.
GetUserGroups(context.Context, *GetUserGroupsRequest) (*GetUserGroupsResponse, error)
// Finds users by any attribute of the user.
// TODO(labkode): to define the filters that make more sense.
FindUsers(context.Context, *FindUsersRequest) (*FindUsersResponse, error)
}
// UnimplementedUserAPIServer should be embedded to have forward compatible implementations.
type UnimplementedUserAPIServer struct {
}
func (UnimplementedUserAPIServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
}
func (UnimplementedUserAPIServer) GetUserByClaim(context.Context, *GetUserByClaimRequest) (*GetUserByClaimResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserByClaim not implemented")
}
func (UnimplementedUserAPIServer) GetUserGroups(context.Context, *GetUserGroupsRequest) (*GetUserGroupsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserGroups not implemented")
}
func (UnimplementedUserAPIServer) FindUsers(context.Context, *FindUsersRequest) (*FindUsersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindUsers not implemented")
}
// UnsafeUserAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to UserAPIServer will
// result in compilation errors.
type UnsafeUserAPIServer interface {
mustEmbedUnimplementedUserAPIServer()
}
func RegisterUserAPIServer(s grpc.ServiceRegistrar, srv UserAPIServer) {
s.RegisterService(&UserAPI_ServiceDesc, srv)
}
func _UserAPI_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserAPIServer).GetUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: UserAPI_GetUser_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserAPIServer).GetUser(ctx, req.(*GetUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserAPI_GetUserByClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserByClaimRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserAPIServer).GetUserByClaim(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: UserAPI_GetUserByClaim_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserAPIServer).GetUserByClaim(ctx, req.(*GetUserByClaimRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserAPI_GetUserGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserGroupsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserAPIServer).GetUserGroups(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: UserAPI_GetUserGroups_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserAPIServer).GetUserGroups(ctx, req.(*GetUserGroupsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserAPI_FindUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindUsersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserAPIServer).FindUsers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: UserAPI_FindUsers_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserAPIServer).FindUsers(ctx, req.(*FindUsersRequest))
}
return interceptor(ctx, in, info, handler)
}
// UserAPI_ServiceDesc is the grpc.ServiceDesc for UserAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var UserAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.identity.user.v1beta1.UserAPI",
HandlerType: (*UserAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetUser",
Handler: _UserAPI_GetUser_Handler,
},
{
MethodName: "GetUserByClaim",
Handler: _UserAPI_GetUserByClaim_Handler,
},
{
MethodName: "GetUserGroups",
Handler: _UserAPI_GetUserGroups_Handler,
},
{
MethodName: "FindUsers",
Handler: _UserAPI_FindUsers_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/identity/user/v1beta1/user_api.proto",
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,211 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/ocm/core/v1beta1/ocm_core_api.proto
package corev1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
OcmCoreAPI_CreateOCMCoreShare_FullMethodName = "/cs3.ocm.core.v1beta1.OcmCoreAPI/CreateOCMCoreShare"
OcmCoreAPI_UpdateOCMCoreShare_FullMethodName = "/cs3.ocm.core.v1beta1.OcmCoreAPI/UpdateOCMCoreShare"
OcmCoreAPI_DeleteOCMCoreShare_FullMethodName = "/cs3.ocm.core.v1beta1.OcmCoreAPI/DeleteOCMCoreShare"
)
// OcmCoreAPIClient is the client API for OcmCoreAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type OcmCoreAPIClient interface {
// Creates a new OCM share, in response to a call from remote to:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1shares/post
CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*CreateOCMCoreShareResponse, error)
// Updates an OCM share, in response to a notification from the remote system to:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
UpdateOCMCoreShare(ctx context.Context, in *UpdateOCMCoreShareRequest, opts ...grpc.CallOption) (*UpdateOCMCoreShareResponse, error)
// Deletes an OCM share, in response to a notification from the remote system to:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
DeleteOCMCoreShare(ctx context.Context, in *DeleteOCMCoreShareRequest, opts ...grpc.CallOption) (*DeleteOCMCoreShareResponse, error)
}
type ocmCoreAPIClient struct {
cc grpc.ClientConnInterface
}
func NewOcmCoreAPIClient(cc grpc.ClientConnInterface) OcmCoreAPIClient {
return &ocmCoreAPIClient{cc}
}
func (c *ocmCoreAPIClient) CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*CreateOCMCoreShareResponse, error) {
out := new(CreateOCMCoreShareResponse)
err := c.cc.Invoke(ctx, OcmCoreAPI_CreateOCMCoreShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmCoreAPIClient) UpdateOCMCoreShare(ctx context.Context, in *UpdateOCMCoreShareRequest, opts ...grpc.CallOption) (*UpdateOCMCoreShareResponse, error) {
out := new(UpdateOCMCoreShareResponse)
err := c.cc.Invoke(ctx, OcmCoreAPI_UpdateOCMCoreShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmCoreAPIClient) DeleteOCMCoreShare(ctx context.Context, in *DeleteOCMCoreShareRequest, opts ...grpc.CallOption) (*DeleteOCMCoreShareResponse, error) {
out := new(DeleteOCMCoreShareResponse)
err := c.cc.Invoke(ctx, OcmCoreAPI_DeleteOCMCoreShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// OcmCoreAPIServer is the server API for OcmCoreAPI service.
// All implementations should embed UnimplementedOcmCoreAPIServer
// for forward compatibility
type OcmCoreAPIServer interface {
// Creates a new OCM share, in response to a call from remote to:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1shares/post
CreateOCMCoreShare(context.Context, *CreateOCMCoreShareRequest) (*CreateOCMCoreShareResponse, error)
// Updates an OCM share, in response to a notification from the remote system to:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
UpdateOCMCoreShare(context.Context, *UpdateOCMCoreShareRequest) (*UpdateOCMCoreShareResponse, error)
// Deletes an OCM share, in response to a notification from the remote system to:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
DeleteOCMCoreShare(context.Context, *DeleteOCMCoreShareRequest) (*DeleteOCMCoreShareResponse, error)
}
// UnimplementedOcmCoreAPIServer should be embedded to have forward compatible implementations.
type UnimplementedOcmCoreAPIServer struct {
}
func (UnimplementedOcmCoreAPIServer) CreateOCMCoreShare(context.Context, *CreateOCMCoreShareRequest) (*CreateOCMCoreShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateOCMCoreShare not implemented")
}
func (UnimplementedOcmCoreAPIServer) UpdateOCMCoreShare(context.Context, *UpdateOCMCoreShareRequest) (*UpdateOCMCoreShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateOCMCoreShare not implemented")
}
func (UnimplementedOcmCoreAPIServer) DeleteOCMCoreShare(context.Context, *DeleteOCMCoreShareRequest) (*DeleteOCMCoreShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteOCMCoreShare not implemented")
}
// UnsafeOcmCoreAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to OcmCoreAPIServer will
// result in compilation errors.
type UnsafeOcmCoreAPIServer interface {
mustEmbedUnimplementedOcmCoreAPIServer()
}
func RegisterOcmCoreAPIServer(s grpc.ServiceRegistrar, srv OcmCoreAPIServer) {
s.RegisterService(&OcmCoreAPI_ServiceDesc, srv)
}
func _OcmCoreAPI_CreateOCMCoreShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateOCMCoreShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmCoreAPIServer).CreateOCMCoreShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmCoreAPI_CreateOCMCoreShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmCoreAPIServer).CreateOCMCoreShare(ctx, req.(*CreateOCMCoreShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmCoreAPI_UpdateOCMCoreShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateOCMCoreShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmCoreAPIServer).UpdateOCMCoreShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmCoreAPI_UpdateOCMCoreShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmCoreAPIServer).UpdateOCMCoreShare(ctx, req.(*UpdateOCMCoreShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmCoreAPI_DeleteOCMCoreShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteOCMCoreShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmCoreAPIServer).DeleteOCMCoreShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmCoreAPI_DeleteOCMCoreShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmCoreAPIServer).DeleteOCMCoreShare(ctx, req.(*DeleteOCMCoreShareRequest))
}
return interceptor(ctx, in, info, handler)
}
// OcmCoreAPI_ServiceDesc is the grpc.ServiceDesc for OcmCoreAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var OcmCoreAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.ocm.core.v1beta1.OcmCoreAPI",
HandlerType: (*OcmCoreAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateOCMCoreShare",
Handler: _OcmCoreAPI_CreateOCMCoreShare_Handler,
},
{
MethodName: "UpdateOCMCoreShare",
Handler: _OcmCoreAPI_UpdateOCMCoreShare_Handler,
},
{
MethodName: "DeleteOCMCoreShare",
Handler: _OcmCoreAPI_DeleteOCMCoreShare_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/ocm/core/v1beta1/ocm_core_api.proto",
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,383 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/ocm/invite/v1beta1/invite_api.proto
package invitev1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
InviteAPI_GenerateInviteToken_FullMethodName = "/cs3.ocm.invite.v1beta1.InviteAPI/GenerateInviteToken"
InviteAPI_ListInviteTokens_FullMethodName = "/cs3.ocm.invite.v1beta1.InviteAPI/ListInviteTokens"
InviteAPI_ForwardInvite_FullMethodName = "/cs3.ocm.invite.v1beta1.InviteAPI/ForwardInvite"
InviteAPI_AcceptInvite_FullMethodName = "/cs3.ocm.invite.v1beta1.InviteAPI/AcceptInvite"
InviteAPI_GetAcceptedUser_FullMethodName = "/cs3.ocm.invite.v1beta1.InviteAPI/GetAcceptedUser"
InviteAPI_FindAcceptedUsers_FullMethodName = "/cs3.ocm.invite.v1beta1.InviteAPI/FindAcceptedUsers"
InviteAPI_DeleteAcceptedUser_FullMethodName = "/cs3.ocm.invite.v1beta1.InviteAPI/DeleteAcceptedUser"
)
// InviteAPIClient is the client API for InviteAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type InviteAPIClient interface {
// Generates a new token for the user with a validity of 24 hours.
GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...grpc.CallOption) (*GenerateInviteTokenResponse, error)
// Lists the valid tokens generated by the user.
ListInviteTokens(ctx context.Context, in *ListInviteTokensRequest, opts ...grpc.CallOption) (*ListInviteTokensResponse, error)
// Forwards a received invite to the remote sync'n'share system provider. The remote
// system SHALL get an `invite-accepted` call as follows:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1invite-accepted/post
// MUST return CODE_NOT_FOUND if the token does not exist.
// MUST return CODE_INVALID_ARGUMENT if the token expired.
// MUST return CODE_ALREADY_EXISTS if the user already accepted an invite.
// MUST return CODE_PERMISSION_DENIED if the remote service is not trusted to accept invitations.
ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...grpc.CallOption) (*ForwardInviteResponse, error)
// Completes an invitation acceptance.
// MUST return CODE_NOT_FOUND if the token does not exist.
// MUST return CODE_INVALID_ARGUMENT if the token expired.
// MUST return CODE_ALREADY_EXISTS if the user already accepted an invite.
AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...grpc.CallOption) (*AcceptInviteResponse, error)
// Retrieves details about a remote user who has accepted an invite to share.
// MUST return CODE_NOT_FOUND if the user does not exist.
GetAcceptedUser(ctx context.Context, in *GetAcceptedUserRequest, opts ...grpc.CallOption) (*GetAcceptedUserResponse, error)
// Finds users who accepted invite tokens by their attributes.
FindAcceptedUsers(ctx context.Context, in *FindAcceptedUsersRequest, opts ...grpc.CallOption) (*FindAcceptedUsersResponse, error)
// Delete a previously accepted remote user, that is unfriend that user.
// MUST return CODE_NOT_FOUND if the user does not exist.
DeleteAcceptedUser(ctx context.Context, in *DeleteAcceptedUserRequest, opts ...grpc.CallOption) (*DeleteAcceptedUserResponse, error)
}
type inviteAPIClient struct {
cc grpc.ClientConnInterface
}
func NewInviteAPIClient(cc grpc.ClientConnInterface) InviteAPIClient {
return &inviteAPIClient{cc}
}
func (c *inviteAPIClient) GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...grpc.CallOption) (*GenerateInviteTokenResponse, error) {
out := new(GenerateInviteTokenResponse)
err := c.cc.Invoke(ctx, InviteAPI_GenerateInviteToken_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *inviteAPIClient) ListInviteTokens(ctx context.Context, in *ListInviteTokensRequest, opts ...grpc.CallOption) (*ListInviteTokensResponse, error) {
out := new(ListInviteTokensResponse)
err := c.cc.Invoke(ctx, InviteAPI_ListInviteTokens_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *inviteAPIClient) ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...grpc.CallOption) (*ForwardInviteResponse, error) {
out := new(ForwardInviteResponse)
err := c.cc.Invoke(ctx, InviteAPI_ForwardInvite_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *inviteAPIClient) AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...grpc.CallOption) (*AcceptInviteResponse, error) {
out := new(AcceptInviteResponse)
err := c.cc.Invoke(ctx, InviteAPI_AcceptInvite_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *inviteAPIClient) GetAcceptedUser(ctx context.Context, in *GetAcceptedUserRequest, opts ...grpc.CallOption) (*GetAcceptedUserResponse, error) {
out := new(GetAcceptedUserResponse)
err := c.cc.Invoke(ctx, InviteAPI_GetAcceptedUser_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *inviteAPIClient) FindAcceptedUsers(ctx context.Context, in *FindAcceptedUsersRequest, opts ...grpc.CallOption) (*FindAcceptedUsersResponse, error) {
out := new(FindAcceptedUsersResponse)
err := c.cc.Invoke(ctx, InviteAPI_FindAcceptedUsers_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *inviteAPIClient) DeleteAcceptedUser(ctx context.Context, in *DeleteAcceptedUserRequest, opts ...grpc.CallOption) (*DeleteAcceptedUserResponse, error) {
out := new(DeleteAcceptedUserResponse)
err := c.cc.Invoke(ctx, InviteAPI_DeleteAcceptedUser_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// InviteAPIServer is the server API for InviteAPI service.
// All implementations should embed UnimplementedInviteAPIServer
// for forward compatibility
type InviteAPIServer interface {
// Generates a new token for the user with a validity of 24 hours.
GenerateInviteToken(context.Context, *GenerateInviteTokenRequest) (*GenerateInviteTokenResponse, error)
// Lists the valid tokens generated by the user.
ListInviteTokens(context.Context, *ListInviteTokensRequest) (*ListInviteTokensResponse, error)
// Forwards a received invite to the remote sync'n'share system provider. The remote
// system SHALL get an `invite-accepted` call as follows:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1invite-accepted/post
// MUST return CODE_NOT_FOUND if the token does not exist.
// MUST return CODE_INVALID_ARGUMENT if the token expired.
// MUST return CODE_ALREADY_EXISTS if the user already accepted an invite.
// MUST return CODE_PERMISSION_DENIED if the remote service is not trusted to accept invitations.
ForwardInvite(context.Context, *ForwardInviteRequest) (*ForwardInviteResponse, error)
// Completes an invitation acceptance.
// MUST return CODE_NOT_FOUND if the token does not exist.
// MUST return CODE_INVALID_ARGUMENT if the token expired.
// MUST return CODE_ALREADY_EXISTS if the user already accepted an invite.
AcceptInvite(context.Context, *AcceptInviteRequest) (*AcceptInviteResponse, error)
// Retrieves details about a remote user who has accepted an invite to share.
// MUST return CODE_NOT_FOUND if the user does not exist.
GetAcceptedUser(context.Context, *GetAcceptedUserRequest) (*GetAcceptedUserResponse, error)
// Finds users who accepted invite tokens by their attributes.
FindAcceptedUsers(context.Context, *FindAcceptedUsersRequest) (*FindAcceptedUsersResponse, error)
// Delete a previously accepted remote user, that is unfriend that user.
// MUST return CODE_NOT_FOUND if the user does not exist.
DeleteAcceptedUser(context.Context, *DeleteAcceptedUserRequest) (*DeleteAcceptedUserResponse, error)
}
// UnimplementedInviteAPIServer should be embedded to have forward compatible implementations.
type UnimplementedInviteAPIServer struct {
}
func (UnimplementedInviteAPIServer) GenerateInviteToken(context.Context, *GenerateInviteTokenRequest) (*GenerateInviteTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GenerateInviteToken not implemented")
}
func (UnimplementedInviteAPIServer) ListInviteTokens(context.Context, *ListInviteTokensRequest) (*ListInviteTokensResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListInviteTokens not implemented")
}
func (UnimplementedInviteAPIServer) ForwardInvite(context.Context, *ForwardInviteRequest) (*ForwardInviteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ForwardInvite not implemented")
}
func (UnimplementedInviteAPIServer) AcceptInvite(context.Context, *AcceptInviteRequest) (*AcceptInviteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AcceptInvite not implemented")
}
func (UnimplementedInviteAPIServer) GetAcceptedUser(context.Context, *GetAcceptedUserRequest) (*GetAcceptedUserResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAcceptedUser not implemented")
}
func (UnimplementedInviteAPIServer) FindAcceptedUsers(context.Context, *FindAcceptedUsersRequest) (*FindAcceptedUsersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAcceptedUsers not implemented")
}
func (UnimplementedInviteAPIServer) DeleteAcceptedUser(context.Context, *DeleteAcceptedUserRequest) (*DeleteAcceptedUserResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAcceptedUser not implemented")
}
// UnsafeInviteAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to InviteAPIServer will
// result in compilation errors.
type UnsafeInviteAPIServer interface {
mustEmbedUnimplementedInviteAPIServer()
}
func RegisterInviteAPIServer(s grpc.ServiceRegistrar, srv InviteAPIServer) {
s.RegisterService(&InviteAPI_ServiceDesc, srv)
}
func _InviteAPI_GenerateInviteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GenerateInviteTokenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InviteAPIServer).GenerateInviteToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: InviteAPI_GenerateInviteToken_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InviteAPIServer).GenerateInviteToken(ctx, req.(*GenerateInviteTokenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InviteAPI_ListInviteTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListInviteTokensRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InviteAPIServer).ListInviteTokens(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: InviteAPI_ListInviteTokens_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InviteAPIServer).ListInviteTokens(ctx, req.(*ListInviteTokensRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InviteAPI_ForwardInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ForwardInviteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InviteAPIServer).ForwardInvite(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: InviteAPI_ForwardInvite_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InviteAPIServer).ForwardInvite(ctx, req.(*ForwardInviteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InviteAPI_AcceptInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AcceptInviteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InviteAPIServer).AcceptInvite(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: InviteAPI_AcceptInvite_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InviteAPIServer).AcceptInvite(ctx, req.(*AcceptInviteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InviteAPI_GetAcceptedUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAcceptedUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InviteAPIServer).GetAcceptedUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: InviteAPI_GetAcceptedUser_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InviteAPIServer).GetAcceptedUser(ctx, req.(*GetAcceptedUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InviteAPI_FindAcceptedUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAcceptedUsersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InviteAPIServer).FindAcceptedUsers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: InviteAPI_FindAcceptedUsers_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InviteAPIServer).FindAcceptedUsers(ctx, req.(*FindAcceptedUsersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InviteAPI_DeleteAcceptedUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteAcceptedUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InviteAPIServer).DeleteAcceptedUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: InviteAPI_DeleteAcceptedUser_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InviteAPIServer).DeleteAcceptedUser(ctx, req.(*DeleteAcceptedUserRequest))
}
return interceptor(ctx, in, info, handler)
}
// InviteAPI_ServiceDesc is the grpc.ServiceDesc for InviteAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var InviteAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.ocm.invite.v1beta1.InviteAPI",
HandlerType: (*InviteAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GenerateInviteToken",
Handler: _InviteAPI_GenerateInviteToken_Handler,
},
{
MethodName: "ListInviteTokens",
Handler: _InviteAPI_ListInviteTokens_Handler,
},
{
MethodName: "ForwardInvite",
Handler: _InviteAPI_ForwardInvite_Handler,
},
{
MethodName: "AcceptInvite",
Handler: _InviteAPI_AcceptInvite_Handler,
},
{
MethodName: "GetAcceptedUser",
Handler: _InviteAPI_GetAcceptedUser_Handler,
},
{
MethodName: "FindAcceptedUsers",
Handler: _InviteAPI_FindAcceptedUsers_Handler,
},
{
MethodName: "DeleteAcceptedUser",
Handler: _InviteAPI_DeleteAcceptedUser_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/ocm/invite/v1beta1/invite_api.proto",
}
+180 -76
View File
@@ -1,30 +1,52 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/ocm/invite/v1beta1/resources.proto
package invitev1beta1
import (
fmt "fmt"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// InviteToken is used to invite users and groups from other sync'n'share
// systems to collaborate on resources.
type InviteToken struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// Unique ID associated with an InviteToken.
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
@@ -36,92 +58,174 @@ type InviteToken struct {
Expiration *v1beta11.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
// OPTIONAL.
// User-defined description to be forwarded to the invitees.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
}
func (m *InviteToken) Reset() { *m = InviteToken{} }
func (m *InviteToken) String() string { return proto.CompactTextString(m) }
func (*InviteToken) ProtoMessage() {}
func (x *InviteToken) Reset() {
*x = InviteToken{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InviteToken) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InviteToken) ProtoMessage() {}
func (x *InviteToken) ProtoReflect() protoreflect.Message {
mi := &file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InviteToken.ProtoReflect.Descriptor instead.
func (*InviteToken) Descriptor() ([]byte, []int) {
return fileDescriptor_9bdba69a40d5b11f, []int{0}
return file_cs3_ocm_invite_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *InviteToken) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InviteToken.Unmarshal(m, b)
}
func (m *InviteToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InviteToken.Marshal(b, m, deterministic)
}
func (m *InviteToken) XXX_Merge(src proto.Message) {
xxx_messageInfo_InviteToken.Merge(m, src)
}
func (m *InviteToken) XXX_Size() int {
return xxx_messageInfo_InviteToken.Size(m)
}
func (m *InviteToken) XXX_DiscardUnknown() {
xxx_messageInfo_InviteToken.DiscardUnknown(m)
}
var xxx_messageInfo_InviteToken proto.InternalMessageInfo
func (m *InviteToken) GetToken() string {
if m != nil {
return m.Token
func (x *InviteToken) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (m *InviteToken) GetUserId() *v1beta1.UserId {
if m != nil {
return m.UserId
func (x *InviteToken) GetUserId() *v1beta1.UserId {
if x != nil {
return x.UserId
}
return nil
}
func (m *InviteToken) GetExpiration() *v1beta11.Timestamp {
if m != nil {
return m.Expiration
func (x *InviteToken) GetExpiration() *v1beta11.Timestamp {
if x != nil {
return x.Expiration
}
return nil
}
func (m *InviteToken) GetDescription() string {
if m != nil {
return m.Description
func (x *InviteToken) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func init() {
proto.RegisterType((*InviteToken)(nil), "cs3.ocm.invite.v1beta1.InviteToken")
var File_cs3_ocm_invite_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x26, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65,
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63,
0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75,
0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74,
0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x01, 0x0a, 0x0b, 0x49,
0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x12, 0x3a, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73,
0x65, 0x72, 0x49, 0x64, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0a,
0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a,
0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xea, 0x01, 0x0a,
0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76,
0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67,
0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f,
0x6f, 0x63, 0x6d, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x3b, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0xa2, 0x02, 0x03, 0x43, 0x4f, 0x49, 0xaa, 0x02, 0x16, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d,
0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca,
0x02, 0x16, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65,
0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x43, 0x73, 0x33, 0x5c, 0x4f,
0x63, 0x6d, 0x5c, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19,
0x43, 0x73, 0x33, 0x3a, 0x3a, 0x4f, 0x63, 0x6d, 0x3a, 0x3a, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65,
0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
func init() {
proto.RegisterFile("cs3/ocm/invite/v1beta1/resources.proto", fileDescriptor_9bdba69a40d5b11f)
var (
file_cs3_ocm_invite_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData = file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc
)
func file_cs3_ocm_invite_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_ocm_invite_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData)
})
return file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_9bdba69a40d5b11f = []byte{
// 299 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xb1, 0x4b, 0xc4, 0x30,
0x14, 0xc6, 0xe9, 0x9d, 0x9e, 0x98, 0x43, 0x87, 0x22, 0x47, 0x29, 0x0a, 0xd5, 0x41, 0xce, 0xe5,
0x95, 0xda, 0x4d, 0x9c, 0x7a, 0x53, 0xa7, 0x1e, 0xe5, 0x74, 0x90, 0x82, 0xf4, 0xd2, 0x37, 0x04,
0x49, 0x53, 0x92, 0xf4, 0xf0, 0xfe, 0x1d, 0x47, 0xff, 0x09, 0x77, 0xff, 0x2a, 0x49, 0xd2, 0xca,
0x0d, 0x3a, 0xb5, 0x2f, 0xdf, 0xef, 0x7b, 0xf9, 0xf2, 0x91, 0x5b, 0xaa, 0xd2, 0x58, 0x50, 0x1e,
0xb3, 0x76, 0xc7, 0x34, 0xc6, 0xbb, 0x64, 0x8b, 0xba, 0x4e, 0x62, 0x89, 0x4a, 0xf4, 0x92, 0xa2,
0x82, 0x4e, 0x0a, 0x2d, 0xfc, 0x05, 0x55, 0x29, 0x08, 0xca, 0xc1, 0x71, 0x30, 0x70, 0xe1, 0x9d,
0xf1, 0xb3, 0x06, 0x5b, 0xcd, 0xf4, 0x3e, 0xee, 0x15, 0xca, 0xff, 0x56, 0x84, 0x57, 0x06, 0xd5,
0xfb, 0x0e, 0xd5, 0x2f, 0x62, 0x27, 0x27, 0xdf, 0x7c, 0x79, 0x64, 0x9e, 0xdb, 0xe5, 0x1b, 0xf1,
0x86, 0xad, 0x7f, 0x41, 0x8e, 0xb5, 0xf9, 0x09, 0xbc, 0xc8, 0x5b, 0x9e, 0x96, 0x6e, 0xf0, 0x1f,
0xc8, 0x89, 0xb9, 0xe4, 0x95, 0x35, 0xc1, 0x24, 0xf2, 0x96, 0xf3, 0xfb, 0x6b, 0x30, 0xc9, 0xc6,
0x04, 0x60, 0xc4, 0x31, 0x1c, 0x3c, 0x29, 0x94, 0x79, 0x53, 0xce, 0x7a, 0xfb, 0xf5, 0x1f, 0x09,
0xc1, 0xf7, 0x8e, 0xc9, 0x5a, 0x33, 0xd1, 0x06, 0x53, 0x6b, 0xbf, 0xb4, 0x76, 0x97, 0x63, 0xb4,
0x6d, 0x18, 0x47, 0xa5, 0x6b, 0xde, 0x95, 0x07, 0xbc, 0x1f, 0x91, 0x79, 0x83, 0x8a, 0x4a, 0xd6,
0x59, 0xfb, 0x91, 0x4d, 0x75, 0x78, 0x94, 0xf5, 0x24, 0xa4, 0x82, 0xc3, 0xdf, 0x4d, 0x65, 0xe7,
0xe5, 0xd8, 0xc7, 0xda, 0xbc, 0x77, 0xed, 0xbd, 0x9c, 0x39, 0x62, 0x00, 0x3e, 0x26, 0xd3, 0x55,
0x91, 0x7f, 0x4e, 0x16, 0x2b, 0x95, 0x42, 0x41, 0x39, 0xb8, 0x32, 0xe0, 0x39, 0xc9, 0x8c, 0xfc,
0x6d, 0x85, 0xaa, 0xa0, 0xbc, 0x72, 0x42, 0x35, 0x08, 0xdb, 0x99, 0xed, 0x2f, 0xfd, 0x09, 0x00,
0x00, 0xff, 0xff, 0x38, 0xee, 0x9a, 0xa2, 0xcb, 0x01, 0x00, 0x00,
var file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cs3_ocm_invite_v1beta1_resources_proto_goTypes = []interface{}{
(*InviteToken)(nil), // 0: cs3.ocm.invite.v1beta1.InviteToken
(*v1beta1.UserId)(nil), // 1: cs3.identity.user.v1beta1.UserId
(*v1beta11.Timestamp)(nil), // 2: cs3.types.v1beta1.Timestamp
}
var file_cs3_ocm_invite_v1beta1_resources_proto_depIdxs = []int32{
1, // 0: cs3.ocm.invite.v1beta1.InviteToken.user_id:type_name -> cs3.identity.user.v1beta1.UserId
2, // 1: cs3.ocm.invite.v1beta1.InviteToken.expiration:type_name -> cs3.types.v1beta1.Timestamp
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_cs3_ocm_invite_v1beta1_resources_proto_init() }
func file_cs3_ocm_invite_v1beta1_resources_proto_init() {
if File_cs3_ocm_invite_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InviteToken); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_ocm_invite_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_ocm_invite_v1beta1_resources_proto_depIdxs,
MessageInfos: file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_ocm_invite_v1beta1_resources_proto = out.File
file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc = nil
file_cs3_ocm_invite_v1beta1_resources_proto_goTypes = nil
file_cs3_ocm_invite_v1beta1_resources_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,209 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/ocm/provider/v1beta1/provider_api.proto
package providerv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
ProviderAPI_IsProviderAllowed_FullMethodName = "/cs3.ocm.provider.v1beta1.ProviderAPI/IsProviderAllowed"
ProviderAPI_GetInfoByDomain_FullMethodName = "/cs3.ocm.provider.v1beta1.ProviderAPI/GetInfoByDomain"
ProviderAPI_ListAllProviders_FullMethodName = "/cs3.ocm.provider.v1beta1.ProviderAPI/ListAllProviders"
)
// ProviderAPIClient is the client API for ProviderAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ProviderAPIClient interface {
// Check if a given system provider is registered in the mesh or not.
// MUST return CODE_UNAUTHENTICATED if the system is not registered
IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...grpc.CallOption) (*IsProviderAllowedResponse, error)
// Get the information of the provider identified by a specific domain.
// MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist.
GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...grpc.CallOption) (*GetInfoByDomainResponse, error)
// Get the information of all the providers registered in the mesh.
ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...grpc.CallOption) (*ListAllProvidersResponse, error)
}
type providerAPIClient struct {
cc grpc.ClientConnInterface
}
func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient {
return &providerAPIClient{cc}
}
func (c *providerAPIClient) IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...grpc.CallOption) (*IsProviderAllowedResponse, error) {
out := new(IsProviderAllowedResponse)
err := c.cc.Invoke(ctx, ProviderAPI_IsProviderAllowed_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *providerAPIClient) GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...grpc.CallOption) (*GetInfoByDomainResponse, error) {
out := new(GetInfoByDomainResponse)
err := c.cc.Invoke(ctx, ProviderAPI_GetInfoByDomain_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *providerAPIClient) ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...grpc.CallOption) (*ListAllProvidersResponse, error) {
out := new(ListAllProvidersResponse)
err := c.cc.Invoke(ctx, ProviderAPI_ListAllProviders_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ProviderAPIServer is the server API for ProviderAPI service.
// All implementations should embed UnimplementedProviderAPIServer
// for forward compatibility
type ProviderAPIServer interface {
// Check if a given system provider is registered in the mesh or not.
// MUST return CODE_UNAUTHENTICATED if the system is not registered
IsProviderAllowed(context.Context, *IsProviderAllowedRequest) (*IsProviderAllowedResponse, error)
// Get the information of the provider identified by a specific domain.
// MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist.
GetInfoByDomain(context.Context, *GetInfoByDomainRequest) (*GetInfoByDomainResponse, error)
// Get the information of all the providers registered in the mesh.
ListAllProviders(context.Context, *ListAllProvidersRequest) (*ListAllProvidersResponse, error)
}
// UnimplementedProviderAPIServer should be embedded to have forward compatible implementations.
type UnimplementedProviderAPIServer struct {
}
func (UnimplementedProviderAPIServer) IsProviderAllowed(context.Context, *IsProviderAllowedRequest) (*IsProviderAllowedResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IsProviderAllowed not implemented")
}
func (UnimplementedProviderAPIServer) GetInfoByDomain(context.Context, *GetInfoByDomainRequest) (*GetInfoByDomainResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetInfoByDomain not implemented")
}
func (UnimplementedProviderAPIServer) ListAllProviders(context.Context, *ListAllProvidersRequest) (*ListAllProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAllProviders not implemented")
}
// UnsafeProviderAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ProviderAPIServer will
// result in compilation errors.
type UnsafeProviderAPIServer interface {
mustEmbedUnimplementedProviderAPIServer()
}
func RegisterProviderAPIServer(s grpc.ServiceRegistrar, srv ProviderAPIServer) {
s.RegisterService(&ProviderAPI_ServiceDesc, srv)
}
func _ProviderAPI_IsProviderAllowed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IsProviderAllowedRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProviderAPIServer).IsProviderAllowed(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ProviderAPI_IsProviderAllowed_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProviderAPIServer).IsProviderAllowed(ctx, req.(*IsProviderAllowedRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ProviderAPI_GetInfoByDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetInfoByDomainRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProviderAPIServer).GetInfoByDomain(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ProviderAPI_GetInfoByDomain_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProviderAPIServer).GetInfoByDomain(ctx, req.(*GetInfoByDomainRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ProviderAPI_ListAllProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAllProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProviderAPIServer).ListAllProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ProviderAPI_ListAllProviders_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProviderAPIServer).ListAllProviders(ctx, req.(*ListAllProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
// ProviderAPI_ServiceDesc is the grpc.ServiceDesc for ProviderAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ProviderAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.ocm.provider.v1beta1.ProviderAPI",
HandlerType: (*ProviderAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "IsProviderAllowed",
Handler: _ProviderAPI_IsProviderAllowed_Handler,
},
{
MethodName: "GetInfoByDomain",
Handler: _ProviderAPI_GetInfoByDomain_Handler,
},
{
MethodName: "ListAllProviders",
Handler: _ProviderAPI_ListAllProviders_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/ocm/provider/v1beta1/provider_api.proto",
}
+422 -224
View File
@@ -1,79 +1,109 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/ocm/provider/v1beta1/resources.proto
package providerv1beta1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Identifier for various types of services offered by sync'n'share system providers.
// Identifier for various types of services offered by sync'n'share system providers.
type ServiceType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED
// The name of the service type.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// REQUIRED
// The description of the service type.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
}
func (m *ServiceType) Reset() { *m = ServiceType{} }
func (m *ServiceType) String() string { return proto.CompactTextString(m) }
func (*ServiceType) ProtoMessage() {}
func (x *ServiceType) Reset() {
*x = ServiceType{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServiceType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServiceType) ProtoMessage() {}
func (x *ServiceType) ProtoReflect() protoreflect.Message {
mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ServiceType.ProtoReflect.Descriptor instead.
func (*ServiceType) Descriptor() ([]byte, []int) {
return fileDescriptor_646d597abb45fefd, []int{0}
return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *ServiceType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceType.Unmarshal(m, b)
}
func (m *ServiceType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceType.Marshal(b, m, deterministic)
}
func (m *ServiceType) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceType.Merge(m, src)
}
func (m *ServiceType) XXX_Size() int {
return xxx_messageInfo_ServiceType.Size(m)
}
func (m *ServiceType) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceType.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceType proto.InternalMessageInfo
func (m *ServiceType) GetName() string {
if m != nil {
return m.Name
func (x *ServiceType) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *ServiceType) GetDescription() string {
if m != nil {
return m.Description
func (x *ServiceType) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
// The endpoints exposed by particular services.
type ServiceEndpoint struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The type of service.
Type *ServiceType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
@@ -88,74 +118,82 @@ type ServiceEndpoint struct {
IsMonitored bool `protobuf:"varint,4,opt,name=is_monitored,json=isMonitored,proto3" json:"is_monitored,omitempty"`
// OPTIONAL.
// Additional properties about the service.
Properties map[string]string `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,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:"-"`
Properties map[string]string `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (m *ServiceEndpoint) Reset() { *m = ServiceEndpoint{} }
func (m *ServiceEndpoint) String() string { return proto.CompactTextString(m) }
func (*ServiceEndpoint) ProtoMessage() {}
func (x *ServiceEndpoint) Reset() {
*x = ServiceEndpoint{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServiceEndpoint) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServiceEndpoint) ProtoMessage() {}
func (x *ServiceEndpoint) ProtoReflect() protoreflect.Message {
mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ServiceEndpoint.ProtoReflect.Descriptor instead.
func (*ServiceEndpoint) Descriptor() ([]byte, []int) {
return fileDescriptor_646d597abb45fefd, []int{1}
return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{1}
}
func (m *ServiceEndpoint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceEndpoint.Unmarshal(m, b)
}
func (m *ServiceEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceEndpoint.Marshal(b, m, deterministic)
}
func (m *ServiceEndpoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceEndpoint.Merge(m, src)
}
func (m *ServiceEndpoint) XXX_Size() int {
return xxx_messageInfo_ServiceEndpoint.Size(m)
}
func (m *ServiceEndpoint) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceEndpoint.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceEndpoint proto.InternalMessageInfo
func (m *ServiceEndpoint) GetType() *ServiceType {
if m != nil {
return m.Type
func (x *ServiceEndpoint) GetType() *ServiceType {
if x != nil {
return x.Type
}
return nil
}
func (m *ServiceEndpoint) GetName() string {
if m != nil {
return m.Name
func (x *ServiceEndpoint) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *ServiceEndpoint) GetPath() string {
if m != nil {
return m.Path
func (x *ServiceEndpoint) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (m *ServiceEndpoint) GetIsMonitored() bool {
if m != nil {
return m.IsMonitored
func (x *ServiceEndpoint) GetIsMonitored() bool {
if x != nil {
return x.IsMonitored
}
return false
}
func (m *ServiceEndpoint) GetProperties() map[string]string {
if m != nil {
return m.Properties
func (x *ServiceEndpoint) GetProperties() map[string]string {
if x != nil {
return x.Properties
}
return nil
}
// The services offered by sync'n'share system providers.
type Service struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The URL at which the service is hosted.
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
@@ -167,67 +205,75 @@ type Service struct {
ApiVersion string `protobuf:"bytes,3,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// OPTIONAL.
// Additional endpoints at which the service is exposed.
AdditionalEndpoints []*ServiceEndpoint `protobuf:"bytes,4,rep,name=additional_endpoints,json=additionalEndpoints,proto3" json:"additional_endpoints,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
AdditionalEndpoints []*ServiceEndpoint `protobuf:"bytes,4,rep,name=additional_endpoints,json=additionalEndpoints,proto3" json:"additional_endpoints,omitempty"`
}
func (m *Service) Reset() { *m = Service{} }
func (m *Service) String() string { return proto.CompactTextString(m) }
func (*Service) ProtoMessage() {}
func (x *Service) Reset() {
*x = Service{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Service) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Service) ProtoMessage() {}
func (x *Service) ProtoReflect() protoreflect.Message {
mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Service.ProtoReflect.Descriptor instead.
func (*Service) Descriptor() ([]byte, []int) {
return fileDescriptor_646d597abb45fefd, []int{2}
return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{2}
}
func (m *Service) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Service.Unmarshal(m, b)
}
func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Service.Marshal(b, m, deterministic)
}
func (m *Service) XXX_Merge(src proto.Message) {
xxx_messageInfo_Service.Merge(m, src)
}
func (m *Service) XXX_Size() int {
return xxx_messageInfo_Service.Size(m)
}
func (m *Service) XXX_DiscardUnknown() {
xxx_messageInfo_Service.DiscardUnknown(m)
}
var xxx_messageInfo_Service proto.InternalMessageInfo
func (m *Service) GetHost() string {
if m != nil {
return m.Host
func (x *Service) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (m *Service) GetEndpoint() *ServiceEndpoint {
if m != nil {
return m.Endpoint
func (x *Service) GetEndpoint() *ServiceEndpoint {
if x != nil {
return x.Endpoint
}
return nil
}
func (m *Service) GetApiVersion() string {
if m != nil {
return m.ApiVersion
func (x *Service) GetApiVersion() string {
if x != nil {
return x.ApiVersion
}
return ""
}
func (m *Service) GetAdditionalEndpoints() []*ServiceEndpoint {
if m != nil {
return m.AdditionalEndpoints
func (x *Service) GetAdditionalEndpoints() []*ServiceEndpoint {
if x != nil {
return x.AdditionalEndpoints
}
return nil
}
// Details of the sync'n'share system provider.
type ProviderInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The name of the provider.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
@@ -254,148 +300,300 @@ type ProviderInfo struct {
Services []*Service `protobuf:"bytes,8,rep,name=services,proto3" json:"services,omitempty"`
// OPTIONAL.
// Additional properties about the service.
Properties map[string]string `protobuf:"bytes,9,rep,name=properties,proto3" json:"properties,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:"-"`
Properties map[string]string `protobuf:"bytes,9,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (m *ProviderInfo) Reset() { *m = ProviderInfo{} }
func (m *ProviderInfo) String() string { return proto.CompactTextString(m) }
func (*ProviderInfo) ProtoMessage() {}
func (x *ProviderInfo) Reset() {
*x = ProviderInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProviderInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProviderInfo) ProtoMessage() {}
func (x *ProviderInfo) ProtoReflect() protoreflect.Message {
mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProviderInfo.ProtoReflect.Descriptor instead.
func (*ProviderInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_646d597abb45fefd, []int{3}
return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{3}
}
func (m *ProviderInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProviderInfo.Unmarshal(m, b)
}
func (m *ProviderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProviderInfo.Marshal(b, m, deterministic)
}
func (m *ProviderInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProviderInfo.Merge(m, src)
}
func (m *ProviderInfo) XXX_Size() int {
return xxx_messageInfo_ProviderInfo.Size(m)
}
func (m *ProviderInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ProviderInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ProviderInfo proto.InternalMessageInfo
func (m *ProviderInfo) GetName() string {
if m != nil {
return m.Name
func (x *ProviderInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *ProviderInfo) GetFullName() string {
if m != nil {
return m.FullName
func (x *ProviderInfo) GetFullName() string {
if x != nil {
return x.FullName
}
return ""
}
func (m *ProviderInfo) GetDescription() string {
if m != nil {
return m.Description
func (x *ProviderInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *ProviderInfo) GetOrganization() string {
if m != nil {
return m.Organization
func (x *ProviderInfo) GetOrganization() string {
if x != nil {
return x.Organization
}
return ""
}
func (m *ProviderInfo) GetDomain() string {
if m != nil {
return m.Domain
func (x *ProviderInfo) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (m *ProviderInfo) GetHomepage() string {
if m != nil {
return m.Homepage
func (x *ProviderInfo) GetHomepage() string {
if x != nil {
return x.Homepage
}
return ""
}
func (m *ProviderInfo) GetEmail() string {
if m != nil {
return m.Email
func (x *ProviderInfo) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (m *ProviderInfo) GetServices() []*Service {
if m != nil {
return m.Services
func (x *ProviderInfo) GetServices() []*Service {
if x != nil {
return x.Services
}
return nil
}
func (m *ProviderInfo) GetProperties() map[string]string {
if m != nil {
return m.Properties
func (x *ProviderInfo) GetProperties() map[string]string {
if x != nil {
return x.Properties
}
return nil
}
func init() {
proto.RegisterType((*ServiceType)(nil), "cs3.ocm.provider.v1beta1.ServiceType")
proto.RegisterType((*ServiceEndpoint)(nil), "cs3.ocm.provider.v1beta1.ServiceEndpoint")
proto.RegisterMapType((map[string]string)(nil), "cs3.ocm.provider.v1beta1.ServiceEndpoint.PropertiesEntry")
proto.RegisterType((*Service)(nil), "cs3.ocm.provider.v1beta1.Service")
proto.RegisterType((*ProviderInfo)(nil), "cs3.ocm.provider.v1beta1.ProviderInfo")
proto.RegisterMapType((map[string]string)(nil), "cs3.ocm.provider.v1beta1.ProviderInfo.PropertiesEntry")
var File_cs3_ocm_provider_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e,
0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x22, 0x43, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54,
0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb1, 0x02, 0x0a, 0x0f, 0x53, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x39, 0x0a,
0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73,
0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79,
0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04,
0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68,
0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64,
0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f,
0x72, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65,
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63,
0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69,
0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x3d,
0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe3, 0x01,
0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73,
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x45, 0x0a,
0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70,
0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x5c, 0x0a, 0x14, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f,
0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72,
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x13,
0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69,
0x6e, 0x74, 0x73, 0x22, 0xa5, 0x03, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c,
0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e,
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f,
0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x6d, 0x65, 0x70, 0x61, 0x67, 0x65, 0x18,
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x6d, 0x65, 0x70, 0x61, 0x67, 0x65, 0x12,
0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3d, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63,
0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x73, 0x12, 0x56, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69,
0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f,
0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x3d, 0x0a, 0x0f,
0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0xf8, 0x01, 0x0a, 0x1c,
0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72,
0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33,
0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x50, 0xaa, 0x02, 0x18, 0x43, 0x73,
0x33, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d,
0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0xe2, 0x02, 0x24, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x43, 0x73, 0x33, 0x3a, 0x3a,
0x4f, 0x63, 0x6d, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x3a, 0x3a, 0x56,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/ocm/provider/v1beta1/resources.proto", fileDescriptor_646d597abb45fefd)
var (
file_cs3_ocm_provider_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData = file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc
)
func file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_ocm_provider_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData)
})
return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_646d597abb45fefd = []byte{
// 547 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcd, 0x8a, 0x13, 0x41,
0x10, 0x66, 0x7e, 0x92, 0x9d, 0xd4, 0x04, 0x23, 0xed, 0x22, 0xcd, 0x2a, 0x98, 0x0d, 0x08, 0xf1,
0x32, 0x21, 0x09, 0x88, 0x2b, 0xec, 0x25, 0x21, 0x07, 0x0f, 0x9a, 0x30, 0x4a, 0x40, 0x09, 0x84,
0xde, 0x99, 0xde, 0x4d, 0x63, 0x66, 0xba, 0xe9, 0x9e, 0x04, 0x22, 0xf8, 0x32, 0x82, 0x17, 0x6f,
0xbe, 0x86, 0xaf, 0xe1, 0x8b, 0xc8, 0xf4, 0x4c, 0xc7, 0x59, 0xdd, 0xb0, 0x7a, 0xd8, 0x5b, 0xd7,
0xcf, 0x57, 0xf5, 0xd5, 0x57, 0x45, 0x43, 0x37, 0x52, 0xc3, 0x1e, 0x8f, 0x92, 0x9e, 0x90, 0x7c,
0xcb, 0x62, 0x2a, 0x7b, 0xdb, 0xfe, 0x05, 0xcd, 0x48, 0xbf, 0x27, 0xa9, 0xe2, 0x1b, 0x19, 0x51,
0x15, 0x08, 0xc9, 0x33, 0x8e, 0x70, 0xa4, 0x86, 0x01, 0x8f, 0x92, 0xc0, 0x64, 0x06, 0x65, 0x66,
0x67, 0x0c, 0xfe, 0x5b, 0x2a, 0xb7, 0x2c, 0xa2, 0xef, 0x76, 0x82, 0x22, 0x04, 0x6e, 0x4a, 0x12,
0x8a, 0xad, 0xb6, 0xd5, 0x6d, 0x84, 0xfa, 0x8d, 0xda, 0xe0, 0xc7, 0x54, 0x45, 0x92, 0x89, 0x8c,
0xf1, 0x14, 0xdb, 0x3a, 0x54, 0x75, 0x75, 0xbe, 0xdb, 0xd0, 0x2a, 0xab, 0x4c, 0xd2, 0x58, 0x70,
0x96, 0x66, 0xe8, 0x0c, 0xdc, 0x6c, 0x27, 0x8a, 0x4a, 0xfe, 0xe0, 0x69, 0x70, 0x88, 0x41, 0x50,
0x69, 0x1f, 0x6a, 0xc8, 0x9e, 0x84, 0x5d, 0x21, 0x81, 0xc0, 0x15, 0x24, 0x5b, 0x61, 0xa7, 0xf0,
0xe5, 0x6f, 0x74, 0x0a, 0x4d, 0xa6, 0x96, 0x09, 0x4f, 0x59, 0xc6, 0x25, 0x8d, 0xb1, 0xdb, 0xb6,
0xba, 0x5e, 0xe8, 0x33, 0xf5, 0xda, 0xb8, 0xd0, 0x7b, 0x00, 0x21, 0xb9, 0xa0, 0x32, 0x63, 0x54,
0xe1, 0x5a, 0xdb, 0xe9, 0xfa, 0x83, 0xb3, 0x5b, 0xb9, 0x98, 0x21, 0x82, 0xd9, 0x1e, 0x3b, 0x49,
0x33, 0xb9, 0x0b, 0x2b, 0xc5, 0x4e, 0xce, 0xa1, 0xf5, 0x47, 0x18, 0xdd, 0x07, 0xe7, 0x23, 0xdd,
0x95, 0xe2, 0xe5, 0x4f, 0x74, 0x0c, 0xb5, 0x2d, 0x59, 0x6f, 0xcc, 0x2c, 0x85, 0xf1, 0xd2, 0x7e,
0x61, 0x75, 0x7e, 0x5a, 0x70, 0x54, 0xb6, 0xcb, 0x87, 0x5b, 0x71, 0x95, 0x19, 0xd5, 0xf3, 0x37,
0x9a, 0x80, 0x47, 0x4b, 0x1a, 0x1a, 0xec, 0x0f, 0x9e, 0xfd, 0x33, 0xef, 0x70, 0x0f, 0x45, 0x4f,
0xc0, 0x27, 0x82, 0x2d, 0xb7, 0x54, 0xaa, 0x7c, 0x79, 0x85, 0x7c, 0x40, 0x04, 0x9b, 0x17, 0x1e,
0xb4, 0x80, 0x63, 0x12, 0xc7, 0x2c, 0xdf, 0x23, 0x59, 0x2f, 0x0d, 0x4e, 0x61, 0x57, 0x6b, 0xf5,
0x1f, 0x3d, 0x1f, 0xfc, 0x2e, 0x63, 0x7c, 0xaa, 0xf3, 0xd5, 0x81, 0xe6, 0xac, 0x44, 0xbe, 0x4a,
0x2f, 0xf9, 0x8d, 0x07, 0xf6, 0x08, 0x1a, 0x97, 0x9b, 0xf5, 0x7a, 0x59, 0x59, 0xba, 0x97, 0x3b,
0xde, 0xdc, 0x70, 0x7d, 0xce, 0x5f, 0xd7, 0x87, 0x3a, 0xd0, 0xe4, 0xf2, 0x8a, 0xa4, 0xec, 0x13,
0xd1, 0x29, 0xae, 0x4e, 0xb9, 0xe6, 0x43, 0x0f, 0xa1, 0x1e, 0xf3, 0x84, 0xb0, 0x14, 0xd7, 0x74,
0xb4, 0xb4, 0xd0, 0x09, 0x78, 0x2b, 0x9e, 0x50, 0x41, 0xae, 0x28, 0xae, 0x17, 0x9d, 0x8d, 0x9d,
0xef, 0x8e, 0x26, 0x84, 0xad, 0xf1, 0x51, 0xb1, 0x3b, 0x6d, 0xa0, 0x73, 0xf0, 0x54, 0x31, 0xb9,
0xc2, 0x9e, 0xd6, 0xe8, 0xf4, 0x56, 0x8d, 0xc2, 0x3d, 0x04, 0xcd, 0xaf, 0x1d, 0x64, 0x43, 0x17,
0x78, 0x7e, 0xb8, 0x40, 0x55, 0xbb, 0x3b, 0xbc, 0xc6, 0xd1, 0x67, 0x78, 0x1c, 0xf1, 0xe4, 0x20,
0x8f, 0xd1, 0xbd, 0xd0, 0xfc, 0x28, 0xb3, 0xfc, 0x43, 0x99, 0x59, 0x1f, 0x5a, 0x26, 0xa7, 0x4c,
0xf9, 0x62, 0x3b, 0xe3, 0xe9, 0xec, 0x9b, 0x8d, 0xc7, 0x6a, 0x18, 0x4c, 0xa3, 0x64, 0x4f, 0x3d,
0x98, 0xf7, 0x47, 0x79, 0xc2, 0x0f, 0x1d, 0x5a, 0x4c, 0xa3, 0x64, 0x61, 0x42, 0x8b, 0x32, 0x74,
0x51, 0xd7, 0xdf, 0xd4, 0xf0, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x03, 0xba, 0x3a, 0xf8, 0xd2,
0x04, 0x00, 0x00,
var file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_cs3_ocm_provider_v1beta1_resources_proto_goTypes = []interface{}{
(*ServiceType)(nil), // 0: cs3.ocm.provider.v1beta1.ServiceType
(*ServiceEndpoint)(nil), // 1: cs3.ocm.provider.v1beta1.ServiceEndpoint
(*Service)(nil), // 2: cs3.ocm.provider.v1beta1.Service
(*ProviderInfo)(nil), // 3: cs3.ocm.provider.v1beta1.ProviderInfo
nil, // 4: cs3.ocm.provider.v1beta1.ServiceEndpoint.PropertiesEntry
nil, // 5: cs3.ocm.provider.v1beta1.ProviderInfo.PropertiesEntry
}
var file_cs3_ocm_provider_v1beta1_resources_proto_depIdxs = []int32{
0, // 0: cs3.ocm.provider.v1beta1.ServiceEndpoint.type:type_name -> cs3.ocm.provider.v1beta1.ServiceType
4, // 1: cs3.ocm.provider.v1beta1.ServiceEndpoint.properties:type_name -> cs3.ocm.provider.v1beta1.ServiceEndpoint.PropertiesEntry
1, // 2: cs3.ocm.provider.v1beta1.Service.endpoint:type_name -> cs3.ocm.provider.v1beta1.ServiceEndpoint
1, // 3: cs3.ocm.provider.v1beta1.Service.additional_endpoints:type_name -> cs3.ocm.provider.v1beta1.ServiceEndpoint
2, // 4: cs3.ocm.provider.v1beta1.ProviderInfo.services:type_name -> cs3.ocm.provider.v1beta1.Service
5, // 5: cs3.ocm.provider.v1beta1.ProviderInfo.properties:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo.PropertiesEntry
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_cs3_ocm_provider_v1beta1_resources_proto_init() }
func file_cs3_ocm_provider_v1beta1_resources_proto_init() {
if File_cs3_ocm_provider_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ServiceType); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ServiceEndpoint); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Service); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ProviderInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_ocm_provider_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_ocm_provider_v1beta1_resources_proto_depIdxs,
MessageInfos: file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_ocm_provider_v1beta1_resources_proto = out.File
file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc = nil
file_cs3_ocm_provider_v1beta1_resources_proto_goTypes = nil
file_cs3_ocm_provider_v1beta1_resources_proto_depIdxs = nil
}
@@ -1,34 +1,52 @@
// Copyright 2018-2021 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/permissions/v1beta1/permissions_api.proto
package permissionsv1beta1
import (
context "context"
fmt "fmt"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// CheckPermissionsRequest is used to check if a user has a certain permission.
type CheckPermissionRequest struct {
//REQUIRED.
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The permission to check.
Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
// REQUIRED.
@@ -36,213 +54,252 @@ type CheckPermissionRequest struct {
SubjectRef *SubjectReference `protobuf:"bytes,2,opt,name=subject_ref,json=subjectRef,proto3" json:"subject_ref,omitempty"`
// OPTIONAL.
// The target resource of the permission.
Ref *v1beta1.Reference `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Ref *v1beta1.Reference `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
}
func (m *CheckPermissionRequest) Reset() { *m = CheckPermissionRequest{} }
func (m *CheckPermissionRequest) String() string { return proto.CompactTextString(m) }
func (*CheckPermissionRequest) ProtoMessage() {}
func (x *CheckPermissionRequest) Reset() {
*x = CheckPermissionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_permissions_v1beta1_permissions_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CheckPermissionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckPermissionRequest) ProtoMessage() {}
func (x *CheckPermissionRequest) ProtoReflect() protoreflect.Message {
mi := &file_cs3_permissions_v1beta1_permissions_api_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheckPermissionRequest.ProtoReflect.Descriptor instead.
func (*CheckPermissionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_54602e0476ec6c5b, []int{0}
return file_cs3_permissions_v1beta1_permissions_api_proto_rawDescGZIP(), []int{0}
}
func (m *CheckPermissionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckPermissionRequest.Unmarshal(m, b)
}
func (m *CheckPermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckPermissionRequest.Marshal(b, m, deterministic)
}
func (m *CheckPermissionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckPermissionRequest.Merge(m, src)
}
func (m *CheckPermissionRequest) XXX_Size() int {
return xxx_messageInfo_CheckPermissionRequest.Size(m)
}
func (m *CheckPermissionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CheckPermissionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CheckPermissionRequest proto.InternalMessageInfo
func (m *CheckPermissionRequest) GetPermission() string {
if m != nil {
return m.Permission
func (x *CheckPermissionRequest) GetPermission() string {
if x != nil {
return x.Permission
}
return ""
}
func (m *CheckPermissionRequest) GetSubjectRef() *SubjectReference {
if m != nil {
return m.SubjectRef
func (x *CheckPermissionRequest) GetSubjectRef() *SubjectReference {
if x != nil {
return x.SubjectRef
}
return nil
}
func (m *CheckPermissionRequest) GetRef() *v1beta1.Reference {
if m != nil {
return m.Ref
func (x *CheckPermissionRequest) GetRef() *v1beta1.Reference {
if x != nil {
return x.Ref
}
return nil
}
// CheckPermissionsResponse ...
type CheckPermissionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The response status.
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
}
func (m *CheckPermissionResponse) Reset() { *m = CheckPermissionResponse{} }
func (m *CheckPermissionResponse) String() string { return proto.CompactTextString(m) }
func (*CheckPermissionResponse) ProtoMessage() {}
func (x *CheckPermissionResponse) Reset() {
*x = CheckPermissionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_permissions_v1beta1_permissions_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CheckPermissionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckPermissionResponse) ProtoMessage() {}
func (x *CheckPermissionResponse) ProtoReflect() protoreflect.Message {
mi := &file_cs3_permissions_v1beta1_permissions_api_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheckPermissionResponse.ProtoReflect.Descriptor instead.
func (*CheckPermissionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_54602e0476ec6c5b, []int{1}
return file_cs3_permissions_v1beta1_permissions_api_proto_rawDescGZIP(), []int{1}
}
func (m *CheckPermissionResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckPermissionResponse.Unmarshal(m, b)
}
func (m *CheckPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckPermissionResponse.Marshal(b, m, deterministic)
}
func (m *CheckPermissionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckPermissionResponse.Merge(m, src)
}
func (m *CheckPermissionResponse) XXX_Size() int {
return xxx_messageInfo_CheckPermissionResponse.Size(m)
}
func (m *CheckPermissionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CheckPermissionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CheckPermissionResponse proto.InternalMessageInfo
func (m *CheckPermissionResponse) GetStatus() *v1beta11.Status {
if m != nil {
return m.Status
func (x *CheckPermissionResponse) GetStatus() *v1beta11.Status {
if x != nil {
return x.Status
}
return nil
}
func init() {
proto.RegisterType((*CheckPermissionRequest)(nil), "cs3.permissions.v1beta1.CheckPermissionRequest")
proto.RegisterType((*CheckPermissionResponse)(nil), "cs3.permissions.v1beta1.CheckPermissionResponse")
var File_cs3_permissions_v1beta1_permissions_api_proto protoreflect.FileDescriptor
var file_cs3_permissions_v1beta1_permissions_api_proto_rawDesc = []byte{
0x0a, 0x2d, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x17, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x01,
0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x6a,
0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e,
0x63, 0x73, 0x33, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52,
0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63,
0x74, 0x52, 0x65, 0x66, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22,
0x4a, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x86, 0x01, 0x0a, 0x0e,
0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x41, 0x50, 0x49, 0x12, 0x74,
0x0a, 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63,
0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x68, 0x65,
0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x42, 0xf9, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x42, 0x13, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x73, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67,
0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x3b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x50, 0x58, 0xaa, 0x02, 0x17, 0x43, 0x73, 0x33,
0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x17, 0x43, 0x73, 0x33, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02,
0x23, 0x43, 0x73, 0x33, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,
0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x43, 0x73, 0x33, 0x3a, 0x3a, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/permissions/v1beta1/permissions_api.proto", fileDescriptor_54602e0476ec6c5b)
var (
file_cs3_permissions_v1beta1_permissions_api_proto_rawDescOnce sync.Once
file_cs3_permissions_v1beta1_permissions_api_proto_rawDescData = file_cs3_permissions_v1beta1_permissions_api_proto_rawDesc
)
func file_cs3_permissions_v1beta1_permissions_api_proto_rawDescGZIP() []byte {
file_cs3_permissions_v1beta1_permissions_api_proto_rawDescOnce.Do(func() {
file_cs3_permissions_v1beta1_permissions_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_permissions_v1beta1_permissions_api_proto_rawDescData)
})
return file_cs3_permissions_v1beta1_permissions_api_proto_rawDescData
}
var fileDescriptor_54602e0476ec6c5b = []byte{
// 348 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x4a, 0xeb, 0x40,
0x14, 0x86, 0x99, 0x16, 0x0a, 0x77, 0x0a, 0xf7, 0xc2, 0x5c, 0x30, 0xa5, 0x8a, 0x94, 0x6e, 0x5a,
0x41, 0x27, 0xb6, 0x59, 0xb9, 0xb4, 0x5d, 0xd9, 0x55, 0x88, 0x20, 0x22, 0x85, 0x92, 0x8e, 0xa7,
0x1a, 0xa5, 0x9d, 0x71, 0xce, 0xa4, 0x0f, 0xe0, 0xc2, 0x07, 0x71, 0xe9, 0x4b, 0xb8, 0xf7, 0xa9,
0x24, 0x93, 0x34, 0x19, 0xd4, 0x80, 0xdb, 0xf3, 0xff, 0xe7, 0xcb, 0xff, 0x9f, 0x0c, 0x3d, 0x11,
0x18, 0xf8, 0x0a, 0xf4, 0x3a, 0x41, 0x4c, 0xe4, 0x06, 0xfd, 0xed, 0x68, 0x09, 0x26, 0x1e, 0xb9,
0xb3, 0x45, 0xac, 0x12, 0xae, 0xb4, 0x34, 0x92, 0x79, 0x02, 0x03, 0xee, 0x48, 0xbc, 0xb0, 0x77,
0x07, 0x75, 0x1c, 0x0d, 0x28, 0x53, 0x2d, 0x00, 0x73, 0x42, 0xf7, 0x20, 0x33, 0x6a, 0x25, 0x4a,
0x03, 0x9a, 0xd8, 0xa4, 0x3b, 0xf5, 0x38, 0x53, 0xd1, 0x48, 0x1d, 0xdf, 0x81, 0xaf, 0xb4, 0xdc,
0x26, 0xb7, 0xa0, 0xeb, 0x58, 0xfd, 0x77, 0x42, 0xf7, 0xa6, 0xf7, 0x20, 0x1e, 0xc3, 0xf2, 0xc3,
0x11, 0x3c, 0xa5, 0x80, 0x86, 0x1d, 0x52, 0x5a, 0xa5, 0xe9, 0x90, 0x1e, 0x19, 0xfe, 0x89, 0x9c,
0x09, 0x9b, 0xd1, 0x36, 0xa6, 0xcb, 0x07, 0x10, 0x66, 0xa1, 0x61, 0xd5, 0x69, 0xf4, 0xc8, 0xb0,
0x3d, 0x3e, 0xe2, 0x35, 0xf5, 0xf8, 0x65, 0xee, 0x8d, 0x60, 0x05, 0x1a, 0x36, 0x02, 0x22, 0x8a,
0xe5, 0x84, 0x9d, 0xd1, 0x66, 0xc6, 0x68, 0x5a, 0xc6, 0xc0, 0x32, 0x8a, 0x0a, 0x7c, 0x57, 0xa1,
0x04, 0x55, 0x84, 0x6c, 0xa7, 0x3f, 0xa3, 0xde, 0xb7, 0x02, 0xa8, 0xe4, 0x06, 0x81, 0xf9, 0xb4,
0x95, 0x9f, 0xc6, 0xa6, 0x6f, 0x8f, 0x3d, 0x0b, 0xd6, 0x4a, 0x54, 0xa1, 0xac, 0x1c, 0x15, 0xb6,
0xf1, 0x0b, 0xa1, 0x7f, 0x2b, 0x0e, 0x9e, 0x87, 0x17, 0xcc, 0xd0, 0x7f, 0x5f, 0xf0, 0xcc, 0xaf,
0xed, 0xf8, 0xf3, 0x25, 0xbb, 0xa7, 0xbf, 0x5f, 0xc8, 0x93, 0x4f, 0x9e, 0x09, 0xdd, 0x17, 0x72,
0x5d, 0xb7, 0x37, 0xf9, 0xef, 0xa6, 0x54, 0x49, 0x98, 0xfd, 0xcb, 0x90, 0xdc, 0x30, 0xc7, 0x5b,
0x58, 0x5f, 0x1b, 0xcd, 0x69, 0x78, 0xfd, 0xd6, 0xf0, 0xa6, 0x18, 0x70, 0x67, 0x8b, 0x5f, 0x8d,
0x26, 0x99, 0xfe, 0x61, 0x95, 0xb9, 0xa3, 0xcc, 0x0b, 0x65, 0xd9, 0xb2, 0x4f, 0x24, 0xf8, 0x0c,
0x00, 0x00, 0xff, 0xff, 0x62, 0x25, 0x26, 0x30, 0xe1, 0x02, 0x00, 0x00,
var file_cs3_permissions_v1beta1_permissions_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_cs3_permissions_v1beta1_permissions_api_proto_goTypes = []interface{}{
(*CheckPermissionRequest)(nil), // 0: cs3.permissions.v1beta1.CheckPermissionRequest
(*CheckPermissionResponse)(nil), // 1: cs3.permissions.v1beta1.CheckPermissionResponse
(*SubjectReference)(nil), // 2: cs3.permissions.v1beta1.SubjectReference
(*v1beta1.Reference)(nil), // 3: cs3.storage.provider.v1beta1.Reference
(*v1beta11.Status)(nil), // 4: cs3.rpc.v1beta1.Status
}
var file_cs3_permissions_v1beta1_permissions_api_proto_depIdxs = []int32{
2, // 0: cs3.permissions.v1beta1.CheckPermissionRequest.subject_ref:type_name -> cs3.permissions.v1beta1.SubjectReference
3, // 1: cs3.permissions.v1beta1.CheckPermissionRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference
4, // 2: cs3.permissions.v1beta1.CheckPermissionResponse.status:type_name -> cs3.rpc.v1beta1.Status
0, // 3: cs3.permissions.v1beta1.PermissionsAPI.CheckPermission:input_type -> cs3.permissions.v1beta1.CheckPermissionRequest
1, // 4: cs3.permissions.v1beta1.PermissionsAPI.CheckPermission:output_type -> cs3.permissions.v1beta1.CheckPermissionResponse
4, // [4:5] is the sub-list for method output_type
3, // [3:4] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// PermissionsAPIClient is the client API for PermissionsAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PermissionsAPIClient interface {
// CheckPermission defines a method to check permission/role.
CheckPermission(ctx context.Context, in *CheckPermissionRequest, opts ...grpc.CallOption) (*CheckPermissionResponse, error)
}
type permissionsAPIClient struct {
cc *grpc.ClientConn
}
func NewPermissionsAPIClient(cc *grpc.ClientConn) PermissionsAPIClient {
return &permissionsAPIClient{cc}
}
func (c *permissionsAPIClient) CheckPermission(ctx context.Context, in *CheckPermissionRequest, opts ...grpc.CallOption) (*CheckPermissionResponse, error) {
out := new(CheckPermissionResponse)
err := c.cc.Invoke(ctx, "/cs3.permissions.v1beta1.PermissionsAPI/CheckPermission", in, out, opts...)
if err != nil {
return nil, err
func init() { file_cs3_permissions_v1beta1_permissions_api_proto_init() }
func file_cs3_permissions_v1beta1_permissions_api_proto_init() {
if File_cs3_permissions_v1beta1_permissions_api_proto != nil {
return
}
return out, nil
}
// PermissionsAPIServer is the server API for PermissionsAPI service.
type PermissionsAPIServer interface {
// CheckPermission defines a method to check permission/role.
CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error)
}
// UnimplementedPermissionsAPIServer can be embedded to have forward compatible implementations.
type UnimplementedPermissionsAPIServer struct {
}
func (*UnimplementedPermissionsAPIServer) CheckPermission(ctx context.Context, req *CheckPermissionRequest) (*CheckPermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckPermission not implemented")
}
func RegisterPermissionsAPIServer(s *grpc.Server, srv PermissionsAPIServer) {
s.RegisterService(&_PermissionsAPI_serviceDesc, srv)
}
func _PermissionsAPI_CheckPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CheckPermissionRequest)
if err := dec(in); err != nil {
return nil, err
file_cs3_permissions_v1beta1_resources_proto_init()
if !protoimpl.UnsafeEnabled {
file_cs3_permissions_v1beta1_permissions_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CheckPermissionRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_permissions_v1beta1_permissions_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CheckPermissionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
if interceptor == nil {
return srv.(PermissionsAPIServer).CheckPermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cs3.permissions.v1beta1.PermissionsAPI/CheckPermission",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PermissionsAPIServer).CheckPermission(ctx, req.(*CheckPermissionRequest))
}
return interceptor(ctx, in, info, handler)
}
var _PermissionsAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "cs3.permissions.v1beta1.PermissionsAPI",
HandlerType: (*PermissionsAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CheckPermission",
Handler: _PermissionsAPI_CheckPermission_Handler,
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_permissions_v1beta1_permissions_api_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/permissions/v1beta1/permissions_api.proto",
GoTypes: file_cs3_permissions_v1beta1_permissions_api_proto_goTypes,
DependencyIndexes: file_cs3_permissions_v1beta1_permissions_api_proto_depIdxs,
MessageInfos: file_cs3_permissions_v1beta1_permissions_api_proto_msgTypes,
}.Build()
File_cs3_permissions_v1beta1_permissions_api_proto = out.File
file_cs3_permissions_v1beta1_permissions_api_proto_rawDesc = nil
file_cs3_permissions_v1beta1_permissions_api_proto_goTypes = nil
file_cs3_permissions_v1beta1_permissions_api_proto_depIdxs = nil
}
@@ -0,0 +1,127 @@
// Copyright 2018-2021 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/permissions/v1beta1/permissions_api.proto
package permissionsv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
PermissionsAPI_CheckPermission_FullMethodName = "/cs3.permissions.v1beta1.PermissionsAPI/CheckPermission"
)
// PermissionsAPIClient is the client API for PermissionsAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type PermissionsAPIClient interface {
// CheckPermission defines a method to check permission/role.
CheckPermission(ctx context.Context, in *CheckPermissionRequest, opts ...grpc.CallOption) (*CheckPermissionResponse, error)
}
type permissionsAPIClient struct {
cc grpc.ClientConnInterface
}
func NewPermissionsAPIClient(cc grpc.ClientConnInterface) PermissionsAPIClient {
return &permissionsAPIClient{cc}
}
func (c *permissionsAPIClient) CheckPermission(ctx context.Context, in *CheckPermissionRequest, opts ...grpc.CallOption) (*CheckPermissionResponse, error) {
out := new(CheckPermissionResponse)
err := c.cc.Invoke(ctx, PermissionsAPI_CheckPermission_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// PermissionsAPIServer is the server API for PermissionsAPI service.
// All implementations should embed UnimplementedPermissionsAPIServer
// for forward compatibility
type PermissionsAPIServer interface {
// CheckPermission defines a method to check permission/role.
CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error)
}
// UnimplementedPermissionsAPIServer should be embedded to have forward compatible implementations.
type UnimplementedPermissionsAPIServer struct {
}
func (UnimplementedPermissionsAPIServer) CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckPermission not implemented")
}
// UnsafePermissionsAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to PermissionsAPIServer will
// result in compilation errors.
type UnsafePermissionsAPIServer interface {
mustEmbedUnimplementedPermissionsAPIServer()
}
func RegisterPermissionsAPIServer(s grpc.ServiceRegistrar, srv PermissionsAPIServer) {
s.RegisterService(&PermissionsAPI_ServiceDesc, srv)
}
func _PermissionsAPI_CheckPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CheckPermissionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PermissionsAPIServer).CheckPermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: PermissionsAPI_CheckPermission_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PermissionsAPIServer).CheckPermission(ctx, req.(*CheckPermissionRequest))
}
return interceptor(ctx, in, info, handler)
}
// PermissionsAPI_ServiceDesc is the grpc.ServiceDesc for PermissionsAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var PermissionsAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.permissions.v1beta1.PermissionsAPI",
HandlerType: (*PermissionsAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CheckPermission",
Handler: _PermissionsAPI_CheckPermission_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/permissions/v1beta1/permissions_api.proto",
}
+186 -84
View File
@@ -1,62 +1,110 @@
// Copyright 2018-2021 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/permissions/v1beta1/resources.proto
package permissionsv1beta1
import (
fmt "fmt"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/identity/group/v1beta1"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// SubjectReference references either a user or a group by id.
type SubjectReference struct {
// Types that are valid to be assigned to Spec:
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Spec:
//
// *SubjectReference_UserId
// *SubjectReference_GroupId
Spec isSubjectReference_Spec `protobuf_oneof:"spec"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Spec isSubjectReference_Spec `protobuf_oneof:"spec"`
}
func (m *SubjectReference) Reset() { *m = SubjectReference{} }
func (m *SubjectReference) String() string { return proto.CompactTextString(m) }
func (*SubjectReference) ProtoMessage() {}
func (x *SubjectReference) Reset() {
*x = SubjectReference{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_permissions_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubjectReference) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubjectReference) ProtoMessage() {}
func (x *SubjectReference) ProtoReflect() protoreflect.Message {
mi := &file_cs3_permissions_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubjectReference.ProtoReflect.Descriptor instead.
func (*SubjectReference) Descriptor() ([]byte, []int) {
return fileDescriptor_3530957b3a793cab, []int{0}
return file_cs3_permissions_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *SubjectReference) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SubjectReference.Unmarshal(m, b)
}
func (m *SubjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SubjectReference.Marshal(b, m, deterministic)
}
func (m *SubjectReference) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubjectReference.Merge(m, src)
}
func (m *SubjectReference) XXX_Size() int {
return xxx_messageInfo_SubjectReference.Size(m)
}
func (m *SubjectReference) XXX_DiscardUnknown() {
xxx_messageInfo_SubjectReference.DiscardUnknown(m)
func (m *SubjectReference) GetSpec() isSubjectReference_Spec {
if m != nil {
return m.Spec
}
return nil
}
var xxx_messageInfo_SubjectReference proto.InternalMessageInfo
func (x *SubjectReference) GetUserId() *v1beta1.UserId {
if x, ok := x.GetSpec().(*SubjectReference_UserId); ok {
return x.UserId
}
return nil
}
func (x *SubjectReference) GetGroupId() *v1beta11.GroupId {
if x, ok := x.GetSpec().(*SubjectReference_GroupId); ok {
return x.GroupId
}
return nil
}
type isSubjectReference_Spec interface {
isSubjectReference_Spec()
@@ -74,60 +122,114 @@ func (*SubjectReference_UserId) isSubjectReference_Spec() {}
func (*SubjectReference_GroupId) isSubjectReference_Spec() {}
func (m *SubjectReference) GetSpec() isSubjectReference_Spec {
if m != nil {
return m.Spec
}
return nil
var File_cs3_permissions_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_permissions_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x73, 0x33, 0x2e, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x1a, 0x2a, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29,
0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65,
0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x01, 0x0a, 0x10, 0x53, 0x75,
0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3c,
0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75,
0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72,
0x49, 0x64, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x08,
0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23,
0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x67, 0x72,
0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75,
0x70, 0x49, 0x64, 0x48, 0x00, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x42, 0x06,
0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x42, 0xf4, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63,
0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0xa2, 0x02, 0x03, 0x43, 0x50, 0x58, 0xaa, 0x02, 0x17, 0x43, 0x73, 0x33, 0x2e, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0xca, 0x02, 0x17, 0x43, 0x73, 0x33, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x23, 0x43, 0x73,
0x33, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
0x61, 0xea, 0x02, 0x19, 0x43, 0x73, 0x33, 0x3a, 0x3a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func (m *SubjectReference) GetUserId() *v1beta1.UserId {
if x, ok := m.GetSpec().(*SubjectReference_UserId); ok {
return x.UserId
}
return nil
var (
file_cs3_permissions_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_permissions_v1beta1_resources_proto_rawDescData = file_cs3_permissions_v1beta1_resources_proto_rawDesc
)
func file_cs3_permissions_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_permissions_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_permissions_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_permissions_v1beta1_resources_proto_rawDescData)
})
return file_cs3_permissions_v1beta1_resources_proto_rawDescData
}
func (m *SubjectReference) GetGroupId() *v1beta11.GroupId {
if x, ok := m.GetSpec().(*SubjectReference_GroupId); ok {
return x.GroupId
}
return nil
var file_cs3_permissions_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cs3_permissions_v1beta1_resources_proto_goTypes = []interface{}{
(*SubjectReference)(nil), // 0: cs3.permissions.v1beta1.SubjectReference
(*v1beta1.UserId)(nil), // 1: cs3.identity.user.v1beta1.UserId
(*v1beta11.GroupId)(nil), // 2: cs3.identity.group.v1beta1.GroupId
}
var file_cs3_permissions_v1beta1_resources_proto_depIdxs = []int32{
1, // 0: cs3.permissions.v1beta1.SubjectReference.user_id:type_name -> cs3.identity.user.v1beta1.UserId
2, // 1: cs3.permissions.v1beta1.SubjectReference.group_id:type_name -> cs3.identity.group.v1beta1.GroupId
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*SubjectReference) XXX_OneofWrappers() []interface{} {
return []interface{}{
func init() { file_cs3_permissions_v1beta1_resources_proto_init() }
func file_cs3_permissions_v1beta1_resources_proto_init() {
if File_cs3_permissions_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_permissions_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubjectReference); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_cs3_permissions_v1beta1_resources_proto_msgTypes[0].OneofWrappers = []interface{}{
(*SubjectReference_UserId)(nil),
(*SubjectReference_GroupId)(nil),
}
}
func init() {
proto.RegisterType((*SubjectReference)(nil), "cs3.permissions.v1beta1.SubjectReference")
}
func init() {
proto.RegisterFile("cs3/permissions/v1beta1/resources.proto", fileDescriptor_3530957b3a793cab)
}
var fileDescriptor_3530957b3a793cab = []byte{
// 267 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0x2e, 0x36, 0xd6,
0x2f, 0x48, 0x2d, 0xca, 0xcd, 0x2c, 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0x4c, 0x4a,
0x2d, 0x49, 0x34, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0x2d, 0xd6, 0x2b, 0x28,
0xca, 0x2f, 0xc9, 0x17, 0x12, 0x4f, 0x2e, 0x36, 0xd6, 0x43, 0x52, 0xa8, 0x07, 0x55, 0x28, 0xa5,
0x05, 0x32, 0x21, 0x33, 0x25, 0x35, 0xaf, 0x24, 0xb3, 0xa4, 0x52, 0x3f, 0xbd, 0x28, 0xbf, 0xb4,
0x00, 0x97, 0x21, 0x52, 0x9a, 0x28, 0x6a, 0x4b, 0x8b, 0x53, 0x8b, 0x70, 0x29, 0x55, 0x9a, 0xc5,
0xc8, 0x25, 0x10, 0x5c, 0x9a, 0x94, 0x95, 0x9a, 0x5c, 0x12, 0x94, 0x9a, 0x96, 0x5a, 0x94, 0x9a,
0x97, 0x9c, 0x2a, 0x64, 0xc3, 0xc5, 0x0e, 0xd2, 0x14, 0x9f, 0x99, 0x22, 0xc1, 0xa8, 0xc0, 0xa8,
0xc1, 0x6d, 0xa4, 0xa8, 0x07, 0x72, 0x16, 0xcc, 0x44, 0x3d, 0x90, 0x24, 0xcc, 0x61, 0x7a, 0xa1,
0xc5, 0xa9, 0x45, 0x9e, 0x29, 0x1e, 0x0c, 0x41, 0x6c, 0xa5, 0x60, 0x96, 0x90, 0x03, 0x17, 0x07,
0xd8, 0x79, 0x20, 0xed, 0x4c, 0x60, 0xed, 0xca, 0xa8, 0xda, 0xc1, 0xb2, 0x70, 0xfd, 0xee, 0x20,
0x1e, 0xd8, 0x00, 0xf6, 0x74, 0x08, 0xd3, 0x89, 0x8d, 0x8b, 0xa5, 0xb8, 0x20, 0x35, 0xd9, 0xa9,
0x96, 0x4b, 0x3a, 0x39, 0x3f, 0x57, 0x0f, 0x47, 0x90, 0x38, 0xf1, 0x05, 0xc1, 0x3c, 0x13, 0x00,
0xf2, 0x4b, 0x00, 0x63, 0x94, 0x10, 0x92, 0x32, 0xa8, 0xaa, 0x45, 0x4c, 0xcc, 0xce, 0x01, 0x11,
0xab, 0x98, 0xc4, 0x9d, 0x8b, 0x8d, 0xf5, 0x02, 0x90, 0x4c, 0x09, 0x33, 0x74, 0x02, 0xc9, 0x9f,
0x02, 0xcb, 0xc4, 0x20, 0xc9, 0xc4, 0x40, 0x65, 0x92, 0xd8, 0xc0, 0x41, 0x64, 0x0c, 0x08, 0x00,
0x00, 0xff, 0xff, 0xe2, 0x1c, 0xb5, 0x05, 0xbd, 0x01, 0x00, 0x00,
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_permissions_v1beta1_resources_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_permissions_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_permissions_v1beta1_resources_proto_depIdxs,
MessageInfos: file_cs3_permissions_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_permissions_v1beta1_resources_proto = out.File
file_cs3_permissions_v1beta1_resources_proto_rawDesc = nil
file_cs3_permissions_v1beta1_resources_proto_goTypes = nil
file_cs3_permissions_v1beta1_resources_proto_depIdxs = nil
}
@@ -1,365 +1,430 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/preferences/v1beta1/preferences_api.proto
package preferencesv1beta1
import (
context "context"
fmt "fmt"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type SetKeyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
Key *PreferenceKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// REQUIRED.
// The value associated with the key.
Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
}
func (m *SetKeyRequest) Reset() { *m = SetKeyRequest{} }
func (m *SetKeyRequest) String() string { return proto.CompactTextString(m) }
func (*SetKeyRequest) ProtoMessage() {}
func (x *SetKeyRequest) Reset() {
*x = SetKeyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetKeyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetKeyRequest) ProtoMessage() {}
func (x *SetKeyRequest) ProtoReflect() protoreflect.Message {
mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetKeyRequest.ProtoReflect.Descriptor instead.
func (*SetKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d9feea93568a6977, []int{0}
return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{0}
}
func (m *SetKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetKeyRequest.Unmarshal(m, b)
}
func (m *SetKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetKeyRequest.Marshal(b, m, deterministic)
}
func (m *SetKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetKeyRequest.Merge(m, src)
}
func (m *SetKeyRequest) XXX_Size() int {
return xxx_messageInfo_SetKeyRequest.Size(m)
}
func (m *SetKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetKeyRequest proto.InternalMessageInfo
func (m *SetKeyRequest) GetKey() *PreferenceKey {
if m != nil {
return m.Key
func (x *SetKeyRequest) GetKey() *PreferenceKey {
if x != nil {
return x.Key
}
return nil
}
func (m *SetKeyRequest) GetVal() string {
if m != nil {
return m.Val
func (x *SetKeyRequest) GetVal() string {
if x != nil {
return x.Val
}
return ""
}
type SetKeyResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The response status.
Status *v1beta1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Status *v1beta1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
}
func (m *SetKeyResponse) Reset() { *m = SetKeyResponse{} }
func (m *SetKeyResponse) String() string { return proto.CompactTextString(m) }
func (*SetKeyResponse) ProtoMessage() {}
func (x *SetKeyResponse) Reset() {
*x = SetKeyResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetKeyResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetKeyResponse) ProtoMessage() {}
func (x *SetKeyResponse) ProtoReflect() protoreflect.Message {
mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetKeyResponse.ProtoReflect.Descriptor instead.
func (*SetKeyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d9feea93568a6977, []int{1}
return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{1}
}
func (m *SetKeyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetKeyResponse.Unmarshal(m, b)
}
func (m *SetKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetKeyResponse.Marshal(b, m, deterministic)
}
func (m *SetKeyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetKeyResponse.Merge(m, src)
}
func (m *SetKeyResponse) XXX_Size() int {
return xxx_messageInfo_SetKeyResponse.Size(m)
}
func (m *SetKeyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SetKeyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SetKeyResponse proto.InternalMessageInfo
func (m *SetKeyResponse) GetStatus() *v1beta1.Status {
if m != nil {
return m.Status
func (x *SetKeyResponse) GetStatus() *v1beta1.Status {
if x != nil {
return x.Status
}
return nil
}
type GetKeyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
Key *PreferenceKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Key *PreferenceKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
func (m *GetKeyRequest) Reset() { *m = GetKeyRequest{} }
func (m *GetKeyRequest) String() string { return proto.CompactTextString(m) }
func (*GetKeyRequest) ProtoMessage() {}
func (x *GetKeyRequest) Reset() {
*x = GetKeyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetKeyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetKeyRequest) ProtoMessage() {}
func (x *GetKeyRequest) ProtoReflect() protoreflect.Message {
mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetKeyRequest.ProtoReflect.Descriptor instead.
func (*GetKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d9feea93568a6977, []int{2}
return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{2}
}
func (m *GetKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetKeyRequest.Unmarshal(m, b)
}
func (m *GetKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetKeyRequest.Marshal(b, m, deterministic)
}
func (m *GetKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetKeyRequest.Merge(m, src)
}
func (m *GetKeyRequest) XXX_Size() int {
return xxx_messageInfo_GetKeyRequest.Size(m)
}
func (m *GetKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetKeyRequest proto.InternalMessageInfo
func (m *GetKeyRequest) GetKey() *PreferenceKey {
if m != nil {
return m.Key
func (x *GetKeyRequest) GetKey() *PreferenceKey {
if x != nil {
return x.Key
}
return nil
}
type GetKeyResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The response status.
Status *v1beta1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// REQUIRED.
// The value associated with the key.
Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
}
func (m *GetKeyResponse) Reset() { *m = GetKeyResponse{} }
func (m *GetKeyResponse) String() string { return proto.CompactTextString(m) }
func (*GetKeyResponse) ProtoMessage() {}
func (x *GetKeyResponse) Reset() {
*x = GetKeyResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetKeyResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetKeyResponse) ProtoMessage() {}
func (x *GetKeyResponse) ProtoReflect() protoreflect.Message {
mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetKeyResponse.ProtoReflect.Descriptor instead.
func (*GetKeyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d9feea93568a6977, []int{3}
return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{3}
}
func (m *GetKeyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetKeyResponse.Unmarshal(m, b)
}
func (m *GetKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetKeyResponse.Marshal(b, m, deterministic)
}
func (m *GetKeyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetKeyResponse.Merge(m, src)
}
func (m *GetKeyResponse) XXX_Size() int {
return xxx_messageInfo_GetKeyResponse.Size(m)
}
func (m *GetKeyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetKeyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetKeyResponse proto.InternalMessageInfo
func (m *GetKeyResponse) GetStatus() *v1beta1.Status {
if m != nil {
return m.Status
func (x *GetKeyResponse) GetStatus() *v1beta1.Status {
if x != nil {
return x.Status
}
return nil
}
func (m *GetKeyResponse) GetVal() string {
if m != nil {
return m.Val
func (x *GetKeyResponse) GetVal() string {
if x != nil {
return x.Val
}
return ""
}
func init() {
proto.RegisterType((*SetKeyRequest)(nil), "cs3.preferences.v1beta1.SetKeyRequest")
proto.RegisterType((*SetKeyResponse)(nil), "cs3.preferences.v1beta1.SetKeyResponse")
proto.RegisterType((*GetKeyRequest)(nil), "cs3.preferences.v1beta1.GetKeyRequest")
proto.RegisterType((*GetKeyResponse)(nil), "cs3.preferences.v1beta1.GetKeyResponse")
var File_cs3_preferences_v1beta1_preferences_api_proto protoreflect.FileDescriptor
var file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc = []byte{
0x0a, 0x2d, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72,
0x65, 0x6e, 0x63, 0x65, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x17, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x72,
0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0x5b, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x38, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e,
0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e,
0x63, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61,
0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x22, 0x41, 0x0a, 0x0e,
0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f,
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17,
0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22,
0x49, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x38, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e,
0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e,
0x63, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x53, 0x0a, 0x0e, 0x47, 0x65,
0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06,
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a,
0x03, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x32,
0xc6, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41,
0x50, 0x49, 0x12, 0x59, 0x0a, 0x06, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65,
0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53,
0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a,
0x06, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72,
0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xf9, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d,
0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x13, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72,
0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f,
0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73,
0x33, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x50, 0x58, 0xaa, 0x02,
0x17, 0x43, 0x73, 0x33, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73,
0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x17, 0x43, 0x73, 0x33, 0x5c, 0x50,
0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0xe2, 0x02, 0x23, 0x43, 0x73, 0x33, 0x5c, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
0x6e, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x43, 0x73, 0x33, 0x3a, 0x3a,
0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/preferences/v1beta1/preferences_api.proto", fileDescriptor_d9feea93568a6977)
var (
file_cs3_preferences_v1beta1_preferences_api_proto_rawDescOnce sync.Once
file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData = file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc
)
func file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP() []byte {
file_cs3_preferences_v1beta1_preferences_api_proto_rawDescOnce.Do(func() {
file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData)
})
return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData
}
var fileDescriptor_d9feea93568a6977 = []byte{
// 320 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4d, 0x2e, 0x36, 0xd6,
0x2f, 0x28, 0x4a, 0x4d, 0x4b, 0x2d, 0x4a, 0xcd, 0x4b, 0x4e, 0x2d, 0xd6, 0x2f, 0x33, 0x4c, 0x4a,
0x2d, 0x49, 0x34, 0x44, 0x16, 0x8b, 0x4f, 0x2c, 0xc8, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17,
0x12, 0x4f, 0x2e, 0x36, 0xd6, 0x43, 0x92, 0xd2, 0x83, 0x2a, 0x97, 0x52, 0xc7, 0x65, 0x4e, 0x51,
0x6a, 0x71, 0x7e, 0x69, 0x11, 0x48, 0x29, 0xd8, 0x04, 0x29, 0x19, 0x90, 0xc2, 0xa2, 0x82, 0x64,
0xb8, 0x82, 0xe2, 0x92, 0xc4, 0x92, 0x52, 0xa8, 0xac, 0x52, 0x34, 0x17, 0x6f, 0x70, 0x6a, 0x89,
0x77, 0x6a, 0x65, 0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71, 0x89, 0x90, 0x05, 0x17, 0x73, 0x76, 0x6a,
0xa5, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x9a, 0x1e, 0x0e, 0xeb, 0xf5, 0x02, 0xe0, 0x62,
0x20, 0xbd, 0x20, 0x2d, 0x42, 0x02, 0x5c, 0xcc, 0x65, 0x89, 0x39, 0x12, 0x4c, 0x0a, 0x8c, 0x1a,
0x9c, 0x41, 0x20, 0xa6, 0x92, 0x23, 0x17, 0x1f, 0xcc, 0xf0, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54,
0x21, 0x7d, 0x2e, 0x36, 0x88, 0xf5, 0x50, 0x0b, 0xc4, 0xc1, 0x16, 0x14, 0x15, 0x24, 0xc3, 0x0d,
0x0e, 0x06, 0x4b, 0x07, 0x41, 0x95, 0x29, 0x79, 0x72, 0xf1, 0xba, 0x53, 0xc7, 0x7d, 0x4a, 0xc1,
0x5c, 0x7c, 0xee, 0x94, 0xb9, 0x06, 0xd3, 0x8b, 0x46, 0xc7, 0x18, 0xb9, 0xf8, 0x10, 0x76, 0x15,
0x3b, 0x06, 0x78, 0x0a, 0x45, 0x72, 0xb1, 0x41, 0x7c, 0x2d, 0x84, 0xdb, 0x79, 0x28, 0x61, 0x2e,
0xa5, 0x4e, 0x50, 0x1d, 0xd4, 0xc1, 0x91, 0x5c, 0x6c, 0xee, 0x84, 0x8c, 0x76, 0x27, 0xd2, 0x68,
0xd4, 0xb0, 0x70, 0x6a, 0x62, 0xe4, 0x92, 0x4e, 0xce, 0xcf, 0xc5, 0xa5, 0xdc, 0x49, 0x18, 0xd9,
0x97, 0x05, 0x99, 0x01, 0xa0, 0xd4, 0x13, 0xc0, 0x18, 0x25, 0x84, 0xa4, 0x16, 0xaa, 0x74, 0x11,
0x13, 0xb3, 0x73, 0x40, 0xc4, 0x2a, 0x26, 0x71, 0xe7, 0x62, 0x63, 0xa4, 0x78, 0x28, 0xd6, 0x0b,
0x33, 0x74, 0x02, 0xc9, 0x9f, 0x02, 0xcb, 0xc4, 0x20, 0xc9, 0xc4, 0x40, 0x65, 0x92, 0xd8, 0xc0,
0x89, 0xd2, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xf2, 0xde, 0xf2, 0xba, 0x25, 0x03, 0x00, 0x00,
var file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_cs3_preferences_v1beta1_preferences_api_proto_goTypes = []interface{}{
(*SetKeyRequest)(nil), // 0: cs3.preferences.v1beta1.SetKeyRequest
(*SetKeyResponse)(nil), // 1: cs3.preferences.v1beta1.SetKeyResponse
(*GetKeyRequest)(nil), // 2: cs3.preferences.v1beta1.GetKeyRequest
(*GetKeyResponse)(nil), // 3: cs3.preferences.v1beta1.GetKeyResponse
(*PreferenceKey)(nil), // 4: cs3.preferences.v1beta1.PreferenceKey
(*v1beta1.Status)(nil), // 5: cs3.rpc.v1beta1.Status
}
var file_cs3_preferences_v1beta1_preferences_api_proto_depIdxs = []int32{
4, // 0: cs3.preferences.v1beta1.SetKeyRequest.key:type_name -> cs3.preferences.v1beta1.PreferenceKey
5, // 1: cs3.preferences.v1beta1.SetKeyResponse.status:type_name -> cs3.rpc.v1beta1.Status
4, // 2: cs3.preferences.v1beta1.GetKeyRequest.key:type_name -> cs3.preferences.v1beta1.PreferenceKey
5, // 3: cs3.preferences.v1beta1.GetKeyResponse.status:type_name -> cs3.rpc.v1beta1.Status
0, // 4: cs3.preferences.v1beta1.PreferencesAPI.SetKey:input_type -> cs3.preferences.v1beta1.SetKeyRequest
2, // 5: cs3.preferences.v1beta1.PreferencesAPI.GetKey:input_type -> cs3.preferences.v1beta1.GetKeyRequest
1, // 6: cs3.preferences.v1beta1.PreferencesAPI.SetKey:output_type -> cs3.preferences.v1beta1.SetKeyResponse
3, // 7: cs3.preferences.v1beta1.PreferencesAPI.GetKey:output_type -> cs3.preferences.v1beta1.GetKeyResponse
6, // [6:8] is the sub-list for method output_type
4, // [4:6] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// PreferencesAPIClient is the client API for PreferencesAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PreferencesAPIClient interface {
// Maps the key-value pair.
SetKey(ctx context.Context, in *SetKeyRequest, opts ...grpc.CallOption) (*SetKeyResponse, error)
// Returns the value associated with the
// requested key.
GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error)
}
type preferencesAPIClient struct {
cc *grpc.ClientConn
}
func NewPreferencesAPIClient(cc *grpc.ClientConn) PreferencesAPIClient {
return &preferencesAPIClient{cc}
}
func (c *preferencesAPIClient) SetKey(ctx context.Context, in *SetKeyRequest, opts ...grpc.CallOption) (*SetKeyResponse, error) {
out := new(SetKeyResponse)
err := c.cc.Invoke(ctx, "/cs3.preferences.v1beta1.PreferencesAPI/SetKey", in, out, opts...)
if err != nil {
return nil, err
func init() { file_cs3_preferences_v1beta1_preferences_api_proto_init() }
func file_cs3_preferences_v1beta1_preferences_api_proto_init() {
if File_cs3_preferences_v1beta1_preferences_api_proto != nil {
return
}
return out, nil
}
func (c *preferencesAPIClient) GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error) {
out := new(GetKeyResponse)
err := c.cc.Invoke(ctx, "/cs3.preferences.v1beta1.PreferencesAPI/GetKey", in, out, opts...)
if err != nil {
return nil, err
file_cs3_preferences_v1beta1_resources_proto_init()
if !protoimpl.UnsafeEnabled {
file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetKeyRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetKeyResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetKeyRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetKeyResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
return out, nil
}
// PreferencesAPIServer is the server API for PreferencesAPI service.
type PreferencesAPIServer interface {
// Maps the key-value pair.
SetKey(context.Context, *SetKeyRequest) (*SetKeyResponse, error)
// Returns the value associated with the
// requested key.
GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error)
}
// UnimplementedPreferencesAPIServer can be embedded to have forward compatible implementations.
type UnimplementedPreferencesAPIServer struct {
}
func (*UnimplementedPreferencesAPIServer) SetKey(ctx context.Context, req *SetKeyRequest) (*SetKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetKey not implemented")
}
func (*UnimplementedPreferencesAPIServer) GetKey(ctx context.Context, req *GetKeyRequest) (*GetKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetKey not implemented")
}
func RegisterPreferencesAPIServer(s *grpc.Server, srv PreferencesAPIServer) {
s.RegisterService(&_PreferencesAPI_serviceDesc, srv)
}
func _PreferencesAPI_SetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PreferencesAPIServer).SetKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cs3.preferences.v1beta1.PreferencesAPI/SetKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PreferencesAPIServer).SetKey(ctx, req.(*SetKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _PreferencesAPI_GetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PreferencesAPIServer).GetKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cs3.preferences.v1beta1.PreferencesAPI/GetKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PreferencesAPIServer).GetKey(ctx, req.(*GetKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
var _PreferencesAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "cs3.preferences.v1beta1.PreferencesAPI",
HandlerType: (*PreferencesAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SetKey",
Handler: _PreferencesAPI_SetKey_Handler,
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
{
MethodName: "GetKey",
Handler: _PreferencesAPI_GetKey_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/preferences/v1beta1/preferences_api.proto",
GoTypes: file_cs3_preferences_v1beta1_preferences_api_proto_goTypes,
DependencyIndexes: file_cs3_preferences_v1beta1_preferences_api_proto_depIdxs,
MessageInfos: file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes,
}.Build()
File_cs3_preferences_v1beta1_preferences_api_proto = out.File
file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc = nil
file_cs3_preferences_v1beta1_preferences_api_proto_goTypes = nil
file_cs3_preferences_v1beta1_preferences_api_proto_depIdxs = nil
}
@@ -0,0 +1,168 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/preferences/v1beta1/preferences_api.proto
package preferencesv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
PreferencesAPI_SetKey_FullMethodName = "/cs3.preferences.v1beta1.PreferencesAPI/SetKey"
PreferencesAPI_GetKey_FullMethodName = "/cs3.preferences.v1beta1.PreferencesAPI/GetKey"
)
// PreferencesAPIClient is the client API for PreferencesAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type PreferencesAPIClient interface {
// Maps the key-value pair.
SetKey(ctx context.Context, in *SetKeyRequest, opts ...grpc.CallOption) (*SetKeyResponse, error)
// Returns the value associated with the
// requested key.
GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error)
}
type preferencesAPIClient struct {
cc grpc.ClientConnInterface
}
func NewPreferencesAPIClient(cc grpc.ClientConnInterface) PreferencesAPIClient {
return &preferencesAPIClient{cc}
}
func (c *preferencesAPIClient) SetKey(ctx context.Context, in *SetKeyRequest, opts ...grpc.CallOption) (*SetKeyResponse, error) {
out := new(SetKeyResponse)
err := c.cc.Invoke(ctx, PreferencesAPI_SetKey_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *preferencesAPIClient) GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error) {
out := new(GetKeyResponse)
err := c.cc.Invoke(ctx, PreferencesAPI_GetKey_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// PreferencesAPIServer is the server API for PreferencesAPI service.
// All implementations should embed UnimplementedPreferencesAPIServer
// for forward compatibility
type PreferencesAPIServer interface {
// Maps the key-value pair.
SetKey(context.Context, *SetKeyRequest) (*SetKeyResponse, error)
// Returns the value associated with the
// requested key.
GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error)
}
// UnimplementedPreferencesAPIServer should be embedded to have forward compatible implementations.
type UnimplementedPreferencesAPIServer struct {
}
func (UnimplementedPreferencesAPIServer) SetKey(context.Context, *SetKeyRequest) (*SetKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetKey not implemented")
}
func (UnimplementedPreferencesAPIServer) GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetKey not implemented")
}
// UnsafePreferencesAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to PreferencesAPIServer will
// result in compilation errors.
type UnsafePreferencesAPIServer interface {
mustEmbedUnimplementedPreferencesAPIServer()
}
func RegisterPreferencesAPIServer(s grpc.ServiceRegistrar, srv PreferencesAPIServer) {
s.RegisterService(&PreferencesAPI_ServiceDesc, srv)
}
func _PreferencesAPI_SetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PreferencesAPIServer).SetKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: PreferencesAPI_SetKey_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PreferencesAPIServer).SetKey(ctx, req.(*SetKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _PreferencesAPI_GetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PreferencesAPIServer).GetKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: PreferencesAPI_GetKey_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PreferencesAPIServer).GetKey(ctx, req.(*GetKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
// PreferencesAPI_ServiceDesc is the grpc.ServiceDesc for PreferencesAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var PreferencesAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.preferences.v1beta1.PreferencesAPI",
HandlerType: (*PreferencesAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SetKey",
Handler: _PreferencesAPI_SetKey_Handler,
},
{
MethodName: "GetKey",
Handler: _PreferencesAPI_GetKey_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/preferences/v1beta1/preferences_api.proto",
}
+158 -63
View File
@@ -1,96 +1,191 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/preferences/v1beta1/resources.proto
package preferencesv1beta1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Represents a key object consisting of a namespace and a string key.
type PreferenceKey struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The namespace to which the key belongs.
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// REQUIRED.
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
}
func (m *PreferenceKey) Reset() { *m = PreferenceKey{} }
func (m *PreferenceKey) String() string { return proto.CompactTextString(m) }
func (*PreferenceKey) ProtoMessage() {}
func (x *PreferenceKey) Reset() {
*x = PreferenceKey{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_preferences_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PreferenceKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PreferenceKey) ProtoMessage() {}
func (x *PreferenceKey) ProtoReflect() protoreflect.Message {
mi := &file_cs3_preferences_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PreferenceKey.ProtoReflect.Descriptor instead.
func (*PreferenceKey) Descriptor() ([]byte, []int) {
return fileDescriptor_ea161434d95765fd, []int{0}
return file_cs3_preferences_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *PreferenceKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PreferenceKey.Unmarshal(m, b)
}
func (m *PreferenceKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PreferenceKey.Marshal(b, m, deterministic)
}
func (m *PreferenceKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_PreferenceKey.Merge(m, src)
}
func (m *PreferenceKey) XXX_Size() int {
return xxx_messageInfo_PreferenceKey.Size(m)
}
func (m *PreferenceKey) XXX_DiscardUnknown() {
xxx_messageInfo_PreferenceKey.DiscardUnknown(m)
}
var xxx_messageInfo_PreferenceKey proto.InternalMessageInfo
func (m *PreferenceKey) GetNamespace() string {
if m != nil {
return m.Namespace
func (x *PreferenceKey) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (m *PreferenceKey) GetKey() string {
if m != nil {
return m.Key
func (x *PreferenceKey) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func init() {
proto.RegisterType((*PreferenceKey)(nil), "cs3.preferences.v1beta1.PreferenceKey")
var File_cs3_preferences_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_preferences_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x73, 0x33, 0x2e, 0x70,
0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x22, 0x3f, 0x0a, 0x0d, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63,
0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x6b, 0x65, 0x79, 0x42, 0xf4, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e,
0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61,
0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e,
0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x70, 0x72, 0x65, 0x66,
0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02,
0x03, 0x43, 0x50, 0x58, 0xaa, 0x02, 0x17, 0x43, 0x73, 0x33, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x65,
0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02,
0x17, 0x43, 0x73, 0x33, 0x5c, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73,
0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x23, 0x43, 0x73, 0x33, 0x5c, 0x50,
0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
0x19, 0x43, 0x73, 0x33, 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/preferences/v1beta1/resources.proto", fileDescriptor_ea161434d95765fd)
var (
file_cs3_preferences_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_preferences_v1beta1_resources_proto_rawDescData = file_cs3_preferences_v1beta1_resources_proto_rawDesc
)
func file_cs3_preferences_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_preferences_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_preferences_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_preferences_v1beta1_resources_proto_rawDescData)
})
return file_cs3_preferences_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_ea161434d95765fd = []byte{
// 183 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0x2e, 0x36, 0xd6,
0x2f, 0x28, 0x4a, 0x4d, 0x4b, 0x2d, 0x4a, 0xcd, 0x4b, 0x4e, 0x2d, 0xd6, 0x2f, 0x33, 0x4c, 0x4a,
0x2d, 0x49, 0x34, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0x2d, 0xd6, 0x2b, 0x28,
0xca, 0x2f, 0xc9, 0x17, 0x12, 0x4f, 0x2e, 0x36, 0xd6, 0x43, 0x52, 0xa8, 0x07, 0x55, 0xa8, 0x64,
0xcf, 0xc5, 0x1b, 0x00, 0x17, 0xf6, 0x4e, 0xad, 0x14, 0x92, 0xe1, 0xe2, 0xcc, 0x4b, 0xcc, 0x4d,
0x2d, 0x2e, 0x48, 0x4c, 0x4e, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x42, 0x08, 0x08, 0x09,
0x70, 0x31, 0x67, 0xa7, 0x56, 0x4a, 0x30, 0x81, 0xc5, 0x41, 0x4c, 0xa7, 0x5a, 0x2e, 0xe9, 0xe4,
0xfc, 0x5c, 0x3d, 0x1c, 0xe6, 0x3b, 0xf1, 0x05, 0xc1, 0x5c, 0x12, 0x00, 0x72, 0x48, 0x00, 0x63,
0x94, 0x10, 0x92, 0x32, 0xa8, 0xaa, 0x45, 0x4c, 0xcc, 0xce, 0x01, 0x11, 0xab, 0x98, 0xc4, 0x9d,
0x8b, 0x8d, 0xf5, 0x02, 0x90, 0x4c, 0x09, 0x33, 0x74, 0x02, 0xc9, 0x9f, 0x02, 0xcb, 0xc4, 0x20,
0xc9, 0xc4, 0x40, 0x65, 0x92, 0xd8, 0xc0, 0xfe, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf1,
0x8a, 0x9a, 0x04, 0x0a, 0x01, 0x00, 0x00,
var file_cs3_preferences_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cs3_preferences_v1beta1_resources_proto_goTypes = []interface{}{
(*PreferenceKey)(nil), // 0: cs3.preferences.v1beta1.PreferenceKey
}
var file_cs3_preferences_v1beta1_resources_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_cs3_preferences_v1beta1_resources_proto_init() }
func file_cs3_preferences_v1beta1_resources_proto_init() {
if File_cs3_preferences_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_preferences_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PreferenceKey); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_preferences_v1beta1_resources_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_preferences_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_preferences_v1beta1_resources_proto_depIdxs,
MessageInfos: file_cs3_preferences_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_preferences_v1beta1_resources_proto = out.File
file_cs3_preferences_v1beta1_resources_proto_rawDesc = nil
file_cs3_preferences_v1beta1_resources_proto_goTypes = nil
file_cs3_preferences_v1beta1_resources_proto_depIdxs = nil
}
+204 -104
View File
@@ -1,24 +1,42 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/rpc/v1beta1/code.proto
package rpcv1beta1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// These are the canonical error codes used by CS3 APIs.
//
@@ -112,15 +130,16 @@ const (
//
// Service implementors can use the following guidelines to decide
// between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
// (a) Use `UNAVAILABLE` if the client can retry just the failing call.
// (b) Use `ABORTED` if the client should retry at a higher level
// (e.g., when a client-specified test-and-set fails, indicating the
// client should restart a read-modify-write sequence).
// (c) Use `FAILED_PRECONDITION` if the client should not retry until
// the system state has been explicitly fixed. E.g., if an "rmdir"
// fails because the directory is non-empty, `FAILED_PRECONDITION`
// should be returned since the client should not retry unless
// the files are deleted from the directory.
//
// (a) Use `UNAVAILABLE` if the client can retry just the failing call.
// (b) Use `ABORTED` if the client should retry at a higher level
// (e.g., when a client-specified test-and-set fails, indicating the
// client should restart a read-modify-write sequence).
// (c) Use `FAILED_PRECONDITION` if the client should not retry until
// the system state has been explicitly fixed. E.g., if an "rmdir"
// fails because the directory is non-empty, `FAILED_PRECONDITION`
// should be returned since the client should not retry unless
// the files are deleted from the directory.
//
// HTTP Mapping: 400 Bad Request
Code_CODE_FAILED_PRECONDITION Code = 11
@@ -177,7 +196,6 @@ const (
// Redirects the operation to another location.
// Used in a Status reponse with a reference to the target URI.
Code_CODE_REDIRECTION Code = 18
//
// The operation could not be performed because there is not enough
// storage available. This can be because of lack of real storage
// space or because of the exceeding of a quota associated to a
@@ -185,7 +203,6 @@ const (
//
// HTTP Mapping: 507 Insufficient Storage
Code_CODE_INSUFFICIENT_STORAGE Code = 19
//
// The ability to lock a resource is specific to some WebDAV servers.
// The HTTP 423 Locked error response code indicates that either
// the resources tentatively targeted by is locked, meaning it can't be accessed.
@@ -194,96 +211,179 @@ const (
Code_CODE_LOCKED Code = 20
)
var Code_name = map[int32]string{
0: "CODE_INVALID",
1: "CODE_OK",
2: "CODE_CANCELLED",
3: "CODE_UNKNOWN",
4: "CODE_INVALID_ARGUMENT",
5: "CODE_DEADLINE_EXCEEDED",
6: "CODE_NOT_FOUND",
7: "CODE_ALREADY_EXISTS",
8: "CODE_PERMISSION_DENIED",
9: "CODE_UNAUTHENTICATED",
10: "CODE_RESOURCE_EXHAUSTED",
11: "CODE_FAILED_PRECONDITION",
12: "CODE_ABORTED",
13: "CODE_OUT_OF_RANGE",
14: "CODE_UNIMPLEMENTED",
15: "CODE_INTERNAL",
16: "CODE_UNAVAILABLE",
17: "CODE_DATA_LOSS",
18: "CODE_REDIRECTION",
19: "CODE_INSUFFICIENT_STORAGE",
20: "CODE_LOCKED",
}
// Enum value maps for Code.
var (
Code_name = map[int32]string{
0: "CODE_INVALID",
1: "CODE_OK",
2: "CODE_CANCELLED",
3: "CODE_UNKNOWN",
4: "CODE_INVALID_ARGUMENT",
5: "CODE_DEADLINE_EXCEEDED",
6: "CODE_NOT_FOUND",
7: "CODE_ALREADY_EXISTS",
8: "CODE_PERMISSION_DENIED",
9: "CODE_UNAUTHENTICATED",
10: "CODE_RESOURCE_EXHAUSTED",
11: "CODE_FAILED_PRECONDITION",
12: "CODE_ABORTED",
13: "CODE_OUT_OF_RANGE",
14: "CODE_UNIMPLEMENTED",
15: "CODE_INTERNAL",
16: "CODE_UNAVAILABLE",
17: "CODE_DATA_LOSS",
18: "CODE_REDIRECTION",
19: "CODE_INSUFFICIENT_STORAGE",
20: "CODE_LOCKED",
}
Code_value = map[string]int32{
"CODE_INVALID": 0,
"CODE_OK": 1,
"CODE_CANCELLED": 2,
"CODE_UNKNOWN": 3,
"CODE_INVALID_ARGUMENT": 4,
"CODE_DEADLINE_EXCEEDED": 5,
"CODE_NOT_FOUND": 6,
"CODE_ALREADY_EXISTS": 7,
"CODE_PERMISSION_DENIED": 8,
"CODE_UNAUTHENTICATED": 9,
"CODE_RESOURCE_EXHAUSTED": 10,
"CODE_FAILED_PRECONDITION": 11,
"CODE_ABORTED": 12,
"CODE_OUT_OF_RANGE": 13,
"CODE_UNIMPLEMENTED": 14,
"CODE_INTERNAL": 15,
"CODE_UNAVAILABLE": 16,
"CODE_DATA_LOSS": 17,
"CODE_REDIRECTION": 18,
"CODE_INSUFFICIENT_STORAGE": 19,
"CODE_LOCKED": 20,
}
)
var Code_value = map[string]int32{
"CODE_INVALID": 0,
"CODE_OK": 1,
"CODE_CANCELLED": 2,
"CODE_UNKNOWN": 3,
"CODE_INVALID_ARGUMENT": 4,
"CODE_DEADLINE_EXCEEDED": 5,
"CODE_NOT_FOUND": 6,
"CODE_ALREADY_EXISTS": 7,
"CODE_PERMISSION_DENIED": 8,
"CODE_UNAUTHENTICATED": 9,
"CODE_RESOURCE_EXHAUSTED": 10,
"CODE_FAILED_PRECONDITION": 11,
"CODE_ABORTED": 12,
"CODE_OUT_OF_RANGE": 13,
"CODE_UNIMPLEMENTED": 14,
"CODE_INTERNAL": 15,
"CODE_UNAVAILABLE": 16,
"CODE_DATA_LOSS": 17,
"CODE_REDIRECTION": 18,
"CODE_INSUFFICIENT_STORAGE": 19,
"CODE_LOCKED": 20,
func (x Code) Enum() *Code {
p := new(Code)
*p = x
return p
}
func (x Code) String() string {
return proto.EnumName(Code_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Code) Descriptor() protoreflect.EnumDescriptor {
return file_cs3_rpc_v1beta1_code_proto_enumTypes[0].Descriptor()
}
func (Code) Type() protoreflect.EnumType {
return &file_cs3_rpc_v1beta1_code_proto_enumTypes[0]
}
func (x Code) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Code.Descriptor instead.
func (Code) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d7978aa548ead3ec, []int{0}
return file_cs3_rpc_v1beta1_code_proto_rawDescGZIP(), []int{0}
}
func init() {
proto.RegisterEnum("cs3.rpc.v1beta1.Code", Code_name, Code_value)
var File_cs3_rpc_v1beta1_code_proto protoreflect.FileDescriptor
var file_cs3_rpc_v1beta1_code_proto_rawDesc = []byte{
0x0a, 0x1a, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x73,
0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2a, 0xe4, 0x03,
0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x49,
0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x44, 0x45,
0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x43, 0x41,
0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44,
0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x43,
0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55,
0x4d, 0x45, 0x4e, 0x54, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x44,
0x45, 0x41, 0x44, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44,
0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46,
0x4f, 0x55, 0x4e, 0x44, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x41,
0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x07, 0x12,
0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49,
0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x43,
0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41,
0x54, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45,
0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x58, 0x48, 0x41, 0x55, 0x53, 0x54, 0x45, 0x44,
0x10, 0x0a, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45,
0x44, 0x5f, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0b,
0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44,
0x10, 0x0c, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x4f,
0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0d, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x44,
0x45, 0x5f, 0x55, 0x4e, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10,
0x0e, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e,
0x41, 0x4c, 0x10, 0x0f, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x41,
0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x10, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f,
0x44, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x11, 0x12, 0x14,
0x0a, 0x10, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49,
0x4f, 0x4e, 0x10, 0x12, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x53,
0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47,
0x45, 0x10, 0x13, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x4b,
0x45, 0x44, 0x10, 0x14, 0x42, 0xb7, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x43, 0x6f,
0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d,
0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x72, 0x70, 0x63, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x73, 0x33, 0x2e, 0x52,
0x70, 0x63, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x73, 0x33,
0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1b, 0x43,
0x73, 0x33, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x73, 0x33,
0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() { proto.RegisterFile("cs3/rpc/v1beta1/code.proto", fileDescriptor_d7978aa548ead3ec) }
var (
file_cs3_rpc_v1beta1_code_proto_rawDescOnce sync.Once
file_cs3_rpc_v1beta1_code_proto_rawDescData = file_cs3_rpc_v1beta1_code_proto_rawDesc
)
var fileDescriptor_d7978aa548ead3ec = []byte{
// 437 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x5d, 0x6e, 0x13, 0x31,
0x10, 0xc7, 0x69, 0x52, 0x5a, 0x3a, 0x69, 0x9b, 0x89, 0x93, 0x7e, 0x02, 0x17, 0xe0, 0x61, 0xa3,
0x28, 0x27, 0x70, 0xec, 0x49, 0x6a, 0xc5, 0xb1, 0x23, 0xdb, 0x1b, 0x02, 0xaa, 0x64, 0xd1, 0x6d,
0x1e, 0xd1, 0xae, 0x92, 0x8a, 0x03, 0xf1, 0xc8, 0x51, 0x38, 0x07, 0x07, 0x41, 0x6b, 0x96, 0x15,
0xe2, 0xd1, 0xff, 0xdf, 0xf8, 0x3f, 0x9f, 0x70, 0x5f, 0x1c, 0xa6, 0xe3, 0x7d, 0x55, 0x8c, 0xbf,
0x4d, 0x9e, 0x76, 0x2f, 0x5f, 0x26, 0xe3, 0xa2, 0x7c, 0xde, 0x65, 0xd5, 0xbe, 0x7c, 0x29, 0x59,
0xbf, 0x38, 0x4c, 0xb3, 0x7d, 0x55, 0x64, 0x0d, 0xfb, 0xf0, 0xab, 0x0b, 0xc7, 0xa2, 0x7c, 0xde,
0x31, 0x84, 0x73, 0x61, 0x25, 0x45, 0x65, 0x36, 0x5c, 0x2b, 0x89, 0xaf, 0x58, 0x0f, 0x4e, 0x93,
0x62, 0x97, 0x78, 0xc4, 0x18, 0x5c, 0xa6, 0x87, 0xe0, 0x46, 0x90, 0xd6, 0x24, 0xb1, 0xd3, 0x7e,
0xc9, 0xcd, 0xd2, 0xd8, 0x8f, 0x06, 0xbb, 0xec, 0x0e, 0xae, 0xfe, 0x35, 0x89, 0xdc, 0x2d, 0xf2,
0x15, 0x99, 0x80, 0xc7, 0xec, 0x1e, 0xae, 0x13, 0x92, 0xc4, 0xa5, 0x56, 0x86, 0x22, 0x6d, 0x05,
0x91, 0x24, 0x89, 0xaf, 0x5b, 0x73, 0x63, 0x43, 0x9c, 0xdb, 0xdc, 0x48, 0x3c, 0x61, 0x37, 0x30,
0x4c, 0x1a, 0xd7, 0x8e, 0xb8, 0xfc, 0x14, 0x69, 0xab, 0x7c, 0xf0, 0x78, 0xda, 0x1a, 0xad, 0xc9,
0xad, 0x94, 0xf7, 0xca, 0x9a, 0x28, 0xc9, 0x28, 0x92, 0xf8, 0x86, 0xdd, 0xc2, 0xa8, 0xa9, 0x88,
0xe7, 0xe1, 0x81, 0x4c, 0x50, 0x82, 0x07, 0x92, 0x78, 0xc6, 0xde, 0xc2, 0x4d, 0x22, 0x8e, 0xbc,
0xcd, 0x9d, 0xa8, 0xd3, 0x3f, 0xf0, 0xdc, 0xd7, 0x10, 0xd8, 0x3b, 0xb8, 0x4d, 0x70, 0xce, 0x95,
0x26, 0x19, 0xd7, 0x8e, 0x84, 0x35, 0x52, 0x05, 0x65, 0x0d, 0xf6, 0xda, 0x36, 0xf9, 0xcc, 0xba,
0x3a, 0xfe, 0x9c, 0x5d, 0xc1, 0xe0, 0xcf, 0x64, 0xf2, 0x10, 0xed, 0x3c, 0x3a, 0x6e, 0x16, 0x84,
0x17, 0xec, 0x1a, 0x58, 0x93, 0x5d, 0xad, 0xd6, 0x9a, 0xea, 0xc6, 0x49, 0xe2, 0x25, 0x1b, 0xc0,
0x45, 0x33, 0x95, 0x40, 0xce, 0x70, 0x8d, 0x7d, 0x36, 0x02, 0xfc, 0x5b, 0xe8, 0x86, 0x2b, 0xcd,
0x67, 0x9a, 0x10, 0xdb, 0x39, 0x48, 0x1e, 0x78, 0xd4, 0xd6, 0x7b, 0x1c, 0xb4, 0x91, 0x8e, 0xa4,
0x72, 0x24, 0x52, 0x4d, 0x8c, 0xbd, 0x87, 0xbb, 0xc6, 0xd2, 0xe7, 0xf3, 0xb9, 0x12, 0x8a, 0x4c,
0x88, 0x3e, 0x58, 0xc7, 0x17, 0x84, 0x43, 0xd6, 0x87, 0x5e, 0xc2, 0xda, 0x8a, 0x25, 0x49, 0x1c,
0xcd, 0xb6, 0x30, 0x2c, 0xca, 0xaf, 0xd9, 0x7f, 0xdb, 0x9f, 0x9d, 0xd5, 0xab, 0x5f, 0xd7, 0x97,
0xb1, 0x3e, 0xfa, 0x0c, 0xfb, 0xaa, 0x68, 0xc0, 0xf7, 0x4e, 0x57, 0xb8, 0xed, 0x8f, 0x4e, 0x5f,
0x1c, 0xa6, 0x99, 0xab, 0x8a, 0x6c, 0x33, 0x99, 0xd5, 0xfa, 0xcf, 0xa4, 0x3c, 0xba, 0xaa, 0x78,
0x6c, 0x94, 0xa7, 0x93, 0x74, 0x58, 0xd3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x1f, 0x7f,
0x3c, 0x76, 0x02, 0x00, 0x00,
func file_cs3_rpc_v1beta1_code_proto_rawDescGZIP() []byte {
file_cs3_rpc_v1beta1_code_proto_rawDescOnce.Do(func() {
file_cs3_rpc_v1beta1_code_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_rpc_v1beta1_code_proto_rawDescData)
})
return file_cs3_rpc_v1beta1_code_proto_rawDescData
}
var file_cs3_rpc_v1beta1_code_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_cs3_rpc_v1beta1_code_proto_goTypes = []interface{}{
(Code)(0), // 0: cs3.rpc.v1beta1.Code
}
var file_cs3_rpc_v1beta1_code_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_cs3_rpc_v1beta1_code_proto_init() }
func file_cs3_rpc_v1beta1_code_proto_init() {
if File_cs3_rpc_v1beta1_code_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_rpc_v1beta1_code_proto_rawDesc,
NumEnums: 1,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_rpc_v1beta1_code_proto_goTypes,
DependencyIndexes: file_cs3_rpc_v1beta1_code_proto_depIdxs,
EnumInfos: file_cs3_rpc_v1beta1_code_proto_enumTypes,
}.Build()
File_cs3_rpc_v1beta1_code_proto = out.File
file_cs3_rpc_v1beta1_code_proto_rawDesc = nil
file_cs3_rpc_v1beta1_code_proto_goTypes = nil
file_cs3_rpc_v1beta1_code_proto_depIdxs = nil
}
+191 -71
View File
@@ -1,30 +1,53 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/rpc/v1beta1/status.proto
package rpcv1beta1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The `Status` message contains two pieces of data: error code and error message.
// The error code should be an enum value of [cs3.rpc.code].
// The error message should be a developer-facing English
// message that helps developers *understand* and *resolve* the error.
type Status struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The status code, which should be an enum value of [cs3.rpc.code][cs3.rpc.code].
Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=cs3.rpc.v1beta1.Code" json:"code,omitempty"`
@@ -39,86 +62,183 @@ type Status struct {
// A target URI as per RFC3986 to redirect requests to another location.
// A Status message with CODE_REDIRECT MUST always set the target_uri.
// https://golang.org/pkg/net/url/#URL provides a quick view of the format.
TargetUri string `protobuf:"bytes,4,opt,name=target_uri,json=targetUri,proto3" json:"target_uri,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
TargetUri string `protobuf:"bytes,4,opt,name=target_uri,json=targetUri,proto3" json:"target_uri,omitempty"`
// OPTIONAL.
// InnerError represents an encoded error.
// This makes it possible to transport error types
// and match them on the client side by type.
// The InnerError pattern originates from graph.
InnerError *v1beta1.OpaqueEntry `protobuf:"bytes,5,opt,name=InnerError,proto3" json:"InnerError,omitempty"`
}
func (m *Status) Reset() { *m = Status{} }
func (m *Status) String() string { return proto.CompactTextString(m) }
func (*Status) ProtoMessage() {}
func (x *Status) Reset() {
*x = Status{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_rpc_v1beta1_status_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Status) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Status) ProtoMessage() {}
func (x *Status) ProtoReflect() protoreflect.Message {
mi := &file_cs3_rpc_v1beta1_status_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Status.ProtoReflect.Descriptor instead.
func (*Status) Descriptor() ([]byte, []int) {
return fileDescriptor_e02c75bc6b84198d, []int{0}
return file_cs3_rpc_v1beta1_status_proto_rawDescGZIP(), []int{0}
}
func (m *Status) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Status.Unmarshal(m, b)
}
func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Status.Marshal(b, m, deterministic)
}
func (m *Status) XXX_Merge(src proto.Message) {
xxx_messageInfo_Status.Merge(m, src)
}
func (m *Status) XXX_Size() int {
return xxx_messageInfo_Status.Size(m)
}
func (m *Status) XXX_DiscardUnknown() {
xxx_messageInfo_Status.DiscardUnknown(m)
}
var xxx_messageInfo_Status proto.InternalMessageInfo
func (m *Status) GetCode() Code {
if m != nil {
return m.Code
func (x *Status) GetCode() Code {
if x != nil {
return x.Code
}
return Code_CODE_INVALID
}
func (m *Status) GetMessage() string {
if m != nil {
return m.Message
func (x *Status) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (m *Status) GetTrace() string {
if m != nil {
return m.Trace
func (x *Status) GetTrace() string {
if x != nil {
return x.Trace
}
return ""
}
func (m *Status) GetTargetUri() string {
if m != nil {
return m.TargetUri
func (x *Status) GetTargetUri() string {
if x != nil {
return x.TargetUri
}
return ""
}
func init() {
proto.RegisterType((*Status)(nil), "cs3.rpc.v1beta1.Status")
func (x *Status) GetInnerError() *v1beta1.OpaqueEntry {
if x != nil {
return x.InnerError
}
return nil
}
func init() { proto.RegisterFile("cs3/rpc/v1beta1/status.proto", fileDescriptor_e02c75bc6b84198d) }
var File_cs3_rpc_v1beta1_status_proto protoreflect.FileDescriptor
var fileDescriptor_e02c75bc6b84198d = []byte{
// 230 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0x2e, 0x36, 0xd6,
0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0x2e, 0x49, 0x2c,
0x29, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x4f, 0x2e, 0x36, 0xd6, 0x2b, 0x2a,
0x48, 0xd6, 0x83, 0xca, 0x4a, 0x49, 0xa1, 0x2b, 0x4f, 0xce, 0x4f, 0x49, 0x85, 0x28, 0x56, 0x6a,
0x62, 0xe4, 0x62, 0x0b, 0x06, 0xeb, 0x16, 0xd2, 0xe4, 0x62, 0x01, 0x49, 0x48, 0x30, 0x2a, 0x30,
0x6a, 0xf0, 0x19, 0x89, 0xea, 0xa1, 0x19, 0xa3, 0xe7, 0x9c, 0x9f, 0x92, 0x1a, 0x04, 0x56, 0x22,
0x24, 0xc1, 0xc5, 0x9e, 0x9b, 0x5a, 0x5c, 0x9c, 0x98, 0x9e, 0x2a, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1,
0x19, 0x04, 0xe3, 0x0a, 0x89, 0x70, 0xb1, 0x96, 0x14, 0x25, 0x26, 0xa7, 0x4a, 0x30, 0x83, 0xc5,
0x21, 0x1c, 0x21, 0x59, 0x2e, 0xae, 0x92, 0xc4, 0xa2, 0xf4, 0xd4, 0x92, 0xf8, 0xd2, 0xa2, 0x4c,
0x09, 0x16, 0xb0, 0x14, 0x27, 0x44, 0x24, 0xb4, 0x28, 0xd3, 0x29, 0x8a, 0x4b, 0x38, 0x39, 0x3f,
0x17, 0xdd, 0x42, 0x27, 0x6e, 0x88, 0xc3, 0x02, 0x40, 0x0e, 0x0d, 0x60, 0x8c, 0xe2, 0x2a, 0x2a,
0x48, 0x86, 0x4a, 0x2d, 0x62, 0x62, 0x76, 0x0e, 0x8a, 0x58, 0xc5, 0xc4, 0xef, 0x5c, 0x6c, 0xac,
0x17, 0x54, 0x90, 0xac, 0x17, 0x66, 0xe8, 0x04, 0x12, 0x3f, 0x05, 0x16, 0x89, 0x09, 0x2a, 0x48,
0x8e, 0x81, 0x8a, 0x24, 0xb1, 0x81, 0xfd, 0x69, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x18, 0x1f,
0xa0, 0x1d, 0x34, 0x01, 0x00, 0x00,
var file_cs3_rpc_v1beta1_status_proto_rawDesc = []byte{
0x0a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f,
0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a,
0x1a, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74,
0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x01, 0x0a, 0x06, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x29, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x72,
0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65,
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, 0x12,
0x3e, 0x0a, 0x0a, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x52, 0x0a, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42,
0xb9, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33,
0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x3b, 0x72, 0x70, 0x63, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2,
0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x73, 0x33, 0x2e, 0x52, 0x70, 0x63, 0x2e,
0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x73, 0x33, 0x5c, 0x52, 0x70,
0x63, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1b, 0x43, 0x73, 0x33, 0x5c,
0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d,
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x43, 0x73, 0x33, 0x3a, 0x3a, 0x52,
0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
file_cs3_rpc_v1beta1_status_proto_rawDescOnce sync.Once
file_cs3_rpc_v1beta1_status_proto_rawDescData = file_cs3_rpc_v1beta1_status_proto_rawDesc
)
func file_cs3_rpc_v1beta1_status_proto_rawDescGZIP() []byte {
file_cs3_rpc_v1beta1_status_proto_rawDescOnce.Do(func() {
file_cs3_rpc_v1beta1_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_rpc_v1beta1_status_proto_rawDescData)
})
return file_cs3_rpc_v1beta1_status_proto_rawDescData
}
var file_cs3_rpc_v1beta1_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_cs3_rpc_v1beta1_status_proto_goTypes = []interface{}{
(*Status)(nil), // 0: cs3.rpc.v1beta1.Status
(Code)(0), // 1: cs3.rpc.v1beta1.Code
(*v1beta1.OpaqueEntry)(nil), // 2: cs3.types.v1beta1.OpaqueEntry
}
var file_cs3_rpc_v1beta1_status_proto_depIdxs = []int32{
1, // 0: cs3.rpc.v1beta1.Status.code:type_name -> cs3.rpc.v1beta1.Code
2, // 1: cs3.rpc.v1beta1.Status.InnerError:type_name -> cs3.types.v1beta1.OpaqueEntry
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_cs3_rpc_v1beta1_status_proto_init() }
func file_cs3_rpc_v1beta1_status_proto_init() {
if File_cs3_rpc_v1beta1_status_proto != nil {
return
}
file_cs3_rpc_v1beta1_code_proto_init()
if !protoimpl.UnsafeEnabled {
file_cs3_rpc_v1beta1_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Status); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_rpc_v1beta1_status_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_rpc_v1beta1_status_proto_goTypes,
DependencyIndexes: file_cs3_rpc_v1beta1_status_proto_depIdxs,
MessageInfos: file_cs3_rpc_v1beta1_status_proto_msgTypes,
}.Build()
File_cs3_rpc_v1beta1_status_proto = out.File
file_cs3_rpc_v1beta1_status_proto_rawDesc = nil
file_cs3_rpc_v1beta1_status_proto_goTypes = nil
file_cs3_rpc_v1beta1_status_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,424 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/sharing/collaboration/v1beta1/collaboration_api.proto
package collaborationv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
CollaborationAPI_CreateShare_FullMethodName = "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/CreateShare"
CollaborationAPI_RemoveShare_FullMethodName = "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/RemoveShare"
CollaborationAPI_GetShare_FullMethodName = "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetShare"
CollaborationAPI_ListShares_FullMethodName = "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListShares"
CollaborationAPI_UpdateShare_FullMethodName = "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateShare"
CollaborationAPI_ListReceivedShares_FullMethodName = "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares"
CollaborationAPI_UpdateReceivedShare_FullMethodName = "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateReceivedShare"
CollaborationAPI_GetReceivedShare_FullMethodName = "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetReceivedShare"
)
// CollaborationAPIClient is the client API for CollaborationAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type CollaborationAPIClient interface {
// Creates a new share.
// MUST return CODE_NOT_FOUND if the resource reference does not exist.
// MUST return CODE_LOCKED if the resource reference already locked.
// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
// (owner, shared_resource, grantee).
// New shares MUST be created in the state SHARE_STATE_PENDING.
CreateShare(ctx context.Context, in *CreateShareRequest, opts ...grpc.CallOption) (*CreateShareResponse, error)
// Removes a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...grpc.CallOption) (*RemoveShareResponse, error)
// Gets share information for a single share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
GetShare(ctx context.Context, in *GetShareRequest, opts ...grpc.CallOption) (*GetShareResponse, error)
// List the shares the authenticated principal has created,
// both as owner and creator. If a filter is specified, only
// shares satisfying the filter MUST be returned.
ListShares(ctx context.Context, in *ListSharesRequest, opts ...grpc.CallOption) (*ListSharesResponse, error)
// Updates a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...grpc.CallOption) (*UpdateShareResponse, error)
// List all shares the authenticated principal has received.
ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...grpc.CallOption) (*ListReceivedSharesResponse, error)
// Update the received share to change the share state or the display name.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...grpc.CallOption) (*UpdateReceivedShareResponse, error)
// Get the information for the given received share reference.
// MUST return CODE_NOT_FOUND if the received share reference does not exist.
GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...grpc.CallOption) (*GetReceivedShareResponse, error)
}
type collaborationAPIClient struct {
cc grpc.ClientConnInterface
}
func NewCollaborationAPIClient(cc grpc.ClientConnInterface) CollaborationAPIClient {
return &collaborationAPIClient{cc}
}
func (c *collaborationAPIClient) CreateShare(ctx context.Context, in *CreateShareRequest, opts ...grpc.CallOption) (*CreateShareResponse, error) {
out := new(CreateShareResponse)
err := c.cc.Invoke(ctx, CollaborationAPI_CreateShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collaborationAPIClient) RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...grpc.CallOption) (*RemoveShareResponse, error) {
out := new(RemoveShareResponse)
err := c.cc.Invoke(ctx, CollaborationAPI_RemoveShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collaborationAPIClient) GetShare(ctx context.Context, in *GetShareRequest, opts ...grpc.CallOption) (*GetShareResponse, error) {
out := new(GetShareResponse)
err := c.cc.Invoke(ctx, CollaborationAPI_GetShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collaborationAPIClient) ListShares(ctx context.Context, in *ListSharesRequest, opts ...grpc.CallOption) (*ListSharesResponse, error) {
out := new(ListSharesResponse)
err := c.cc.Invoke(ctx, CollaborationAPI_ListShares_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collaborationAPIClient) UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...grpc.CallOption) (*UpdateShareResponse, error) {
out := new(UpdateShareResponse)
err := c.cc.Invoke(ctx, CollaborationAPI_UpdateShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collaborationAPIClient) ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...grpc.CallOption) (*ListReceivedSharesResponse, error) {
out := new(ListReceivedSharesResponse)
err := c.cc.Invoke(ctx, CollaborationAPI_ListReceivedShares_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collaborationAPIClient) UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...grpc.CallOption) (*UpdateReceivedShareResponse, error) {
out := new(UpdateReceivedShareResponse)
err := c.cc.Invoke(ctx, CollaborationAPI_UpdateReceivedShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collaborationAPIClient) GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...grpc.CallOption) (*GetReceivedShareResponse, error) {
out := new(GetReceivedShareResponse)
err := c.cc.Invoke(ctx, CollaborationAPI_GetReceivedShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CollaborationAPIServer is the server API for CollaborationAPI service.
// All implementations should embed UnimplementedCollaborationAPIServer
// for forward compatibility
type CollaborationAPIServer interface {
// Creates a new share.
// MUST return CODE_NOT_FOUND if the resource reference does not exist.
// MUST return CODE_LOCKED if the resource reference already locked.
// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
// (owner, shared_resource, grantee).
// New shares MUST be created in the state SHARE_STATE_PENDING.
CreateShare(context.Context, *CreateShareRequest) (*CreateShareResponse, error)
// Removes a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
RemoveShare(context.Context, *RemoveShareRequest) (*RemoveShareResponse, error)
// Gets share information for a single share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
GetShare(context.Context, *GetShareRequest) (*GetShareResponse, error)
// List the shares the authenticated principal has created,
// both as owner and creator. If a filter is specified, only
// shares satisfying the filter MUST be returned.
ListShares(context.Context, *ListSharesRequest) (*ListSharesResponse, error)
// Updates a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
UpdateShare(context.Context, *UpdateShareRequest) (*UpdateShareResponse, error)
// List all shares the authenticated principal has received.
ListReceivedShares(context.Context, *ListReceivedSharesRequest) (*ListReceivedSharesResponse, error)
// Update the received share to change the share state or the display name.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
UpdateReceivedShare(context.Context, *UpdateReceivedShareRequest) (*UpdateReceivedShareResponse, error)
// Get the information for the given received share reference.
// MUST return CODE_NOT_FOUND if the received share reference does not exist.
GetReceivedShare(context.Context, *GetReceivedShareRequest) (*GetReceivedShareResponse, error)
}
// UnimplementedCollaborationAPIServer should be embedded to have forward compatible implementations.
type UnimplementedCollaborationAPIServer struct {
}
func (UnimplementedCollaborationAPIServer) CreateShare(context.Context, *CreateShareRequest) (*CreateShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateShare not implemented")
}
func (UnimplementedCollaborationAPIServer) RemoveShare(context.Context, *RemoveShareRequest) (*RemoveShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveShare not implemented")
}
func (UnimplementedCollaborationAPIServer) GetShare(context.Context, *GetShareRequest) (*GetShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetShare not implemented")
}
func (UnimplementedCollaborationAPIServer) ListShares(context.Context, *ListSharesRequest) (*ListSharesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListShares not implemented")
}
func (UnimplementedCollaborationAPIServer) UpdateShare(context.Context, *UpdateShareRequest) (*UpdateShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateShare not implemented")
}
func (UnimplementedCollaborationAPIServer) ListReceivedShares(context.Context, *ListReceivedSharesRequest) (*ListReceivedSharesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListReceivedShares not implemented")
}
func (UnimplementedCollaborationAPIServer) UpdateReceivedShare(context.Context, *UpdateReceivedShareRequest) (*UpdateReceivedShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedShare not implemented")
}
func (UnimplementedCollaborationAPIServer) GetReceivedShare(context.Context, *GetReceivedShareRequest) (*GetReceivedShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetReceivedShare not implemented")
}
// UnsafeCollaborationAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to CollaborationAPIServer will
// result in compilation errors.
type UnsafeCollaborationAPIServer interface {
mustEmbedUnimplementedCollaborationAPIServer()
}
func RegisterCollaborationAPIServer(s grpc.ServiceRegistrar, srv CollaborationAPIServer) {
s.RegisterService(&CollaborationAPI_ServiceDesc, srv)
}
func _CollaborationAPI_CreateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollaborationAPIServer).CreateShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollaborationAPI_CreateShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollaborationAPIServer).CreateShare(ctx, req.(*CreateShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollaborationAPI_RemoveShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RemoveShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollaborationAPIServer).RemoveShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollaborationAPI_RemoveShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollaborationAPIServer).RemoveShare(ctx, req.(*RemoveShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollaborationAPI_GetShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollaborationAPIServer).GetShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollaborationAPI_GetShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollaborationAPIServer).GetShare(ctx, req.(*GetShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollaborationAPI_ListShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListSharesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollaborationAPIServer).ListShares(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollaborationAPI_ListShares_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollaborationAPIServer).ListShares(ctx, req.(*ListSharesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollaborationAPI_UpdateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollaborationAPIServer).UpdateShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollaborationAPI_UpdateShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollaborationAPIServer).UpdateShare(ctx, req.(*UpdateShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollaborationAPI_ListReceivedShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListReceivedSharesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollaborationAPIServer).ListReceivedShares(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollaborationAPI_ListReceivedShares_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollaborationAPIServer).ListReceivedShares(ctx, req.(*ListReceivedSharesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollaborationAPI_UpdateReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateReceivedShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollaborationAPIServer).UpdateReceivedShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollaborationAPI_UpdateReceivedShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollaborationAPIServer).UpdateReceivedShare(ctx, req.(*UpdateReceivedShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollaborationAPI_GetReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetReceivedShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollaborationAPIServer).GetReceivedShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollaborationAPI_GetReceivedShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollaborationAPIServer).GetReceivedShare(ctx, req.(*GetReceivedShareRequest))
}
return interceptor(ctx, in, info, handler)
}
// CollaborationAPI_ServiceDesc is the grpc.ServiceDesc for CollaborationAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var CollaborationAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.sharing.collaboration.v1beta1.CollaborationAPI",
HandlerType: (*CollaborationAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateShare",
Handler: _CollaborationAPI_CreateShare_Handler,
},
{
MethodName: "RemoveShare",
Handler: _CollaborationAPI_RemoveShare_Handler,
},
{
MethodName: "GetShare",
Handler: _CollaborationAPI_GetShare_Handler,
},
{
MethodName: "ListShares",
Handler: _CollaborationAPI_ListShares_Handler,
},
{
MethodName: "UpdateShare",
Handler: _CollaborationAPI_UpdateShare_Handler,
},
{
MethodName: "ListReceivedShares",
Handler: _CollaborationAPI_ListReceivedShares_Handler,
},
{
MethodName: "UpdateReceivedShare",
Handler: _CollaborationAPI_UpdateReceivedShare_Handler,
},
{
MethodName: "GetReceivedShare",
Handler: _CollaborationAPI_GetReceivedShare_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/sharing/collaboration/v1beta1/collaboration_api.proto",
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,342 @@
// Copyright 2018-2023 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/sharing/link/v1beta1/link_api.proto
package linkv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
LinkAPI_CreatePublicShare_FullMethodName = "/cs3.sharing.link.v1beta1.LinkAPI/CreatePublicShare"
LinkAPI_RemovePublicShare_FullMethodName = "/cs3.sharing.link.v1beta1.LinkAPI/RemovePublicShare"
LinkAPI_GetPublicShare_FullMethodName = "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShare"
LinkAPI_GetPublicShareByToken_FullMethodName = "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShareByToken"
LinkAPI_ListPublicShares_FullMethodName = "/cs3.sharing.link.v1beta1.LinkAPI/ListPublicShares"
LinkAPI_UpdatePublicShare_FullMethodName = "/cs3.sharing.link.v1beta1.LinkAPI/UpdatePublicShare"
)
// LinkAPIClient is the client API for LinkAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type LinkAPIClient interface {
// Creates a new share.
// MUST return CODE_NOT_FOUND if the resource reference does not exist.
// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
// (owner, shared_resource, grantee).
// New shares MUST be created in the state SHARE_STATE_PENDING.
CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...grpc.CallOption) (*CreatePublicShareResponse, error)
// Removes a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...grpc.CallOption) (*RemovePublicShareResponse, error)
// Gets share information for a single share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...grpc.CallOption) (*GetPublicShareResponse, error)
// Gets share information for a single share by its unlisted token.
// MUST return CODE_NOT_FOUND if the share does not exist.
GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*GetPublicShareByTokenResponse, error)
// List the shares the authenticated principal has created,
// both as owner and creator. If a filter is specified, only
// shares satisfying the filter MUST be returned.
ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...grpc.CallOption) (*ListPublicSharesResponse, error)
// Updates a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...grpc.CallOption) (*UpdatePublicShareResponse, error)
}
type linkAPIClient struct {
cc grpc.ClientConnInterface
}
func NewLinkAPIClient(cc grpc.ClientConnInterface) LinkAPIClient {
return &linkAPIClient{cc}
}
func (c *linkAPIClient) CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...grpc.CallOption) (*CreatePublicShareResponse, error) {
out := new(CreatePublicShareResponse)
err := c.cc.Invoke(ctx, LinkAPI_CreatePublicShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *linkAPIClient) RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...grpc.CallOption) (*RemovePublicShareResponse, error) {
out := new(RemovePublicShareResponse)
err := c.cc.Invoke(ctx, LinkAPI_RemovePublicShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *linkAPIClient) GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...grpc.CallOption) (*GetPublicShareResponse, error) {
out := new(GetPublicShareResponse)
err := c.cc.Invoke(ctx, LinkAPI_GetPublicShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *linkAPIClient) GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*GetPublicShareByTokenResponse, error) {
out := new(GetPublicShareByTokenResponse)
err := c.cc.Invoke(ctx, LinkAPI_GetPublicShareByToken_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *linkAPIClient) ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...grpc.CallOption) (*ListPublicSharesResponse, error) {
out := new(ListPublicSharesResponse)
err := c.cc.Invoke(ctx, LinkAPI_ListPublicShares_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *linkAPIClient) UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...grpc.CallOption) (*UpdatePublicShareResponse, error) {
out := new(UpdatePublicShareResponse)
err := c.cc.Invoke(ctx, LinkAPI_UpdatePublicShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// LinkAPIServer is the server API for LinkAPI service.
// All implementations should embed UnimplementedLinkAPIServer
// for forward compatibility
type LinkAPIServer interface {
// Creates a new share.
// MUST return CODE_NOT_FOUND if the resource reference does not exist.
// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
// (owner, shared_resource, grantee).
// New shares MUST be created in the state SHARE_STATE_PENDING.
CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error)
// Removes a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error)
// Gets share information for a single share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error)
// Gets share information for a single share by its unlisted token.
// MUST return CODE_NOT_FOUND if the share does not exist.
GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error)
// List the shares the authenticated principal has created,
// both as owner and creator. If a filter is specified, only
// shares satisfying the filter MUST be returned.
ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error)
// Updates a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error)
}
// UnimplementedLinkAPIServer should be embedded to have forward compatible implementations.
type UnimplementedLinkAPIServer struct {
}
func (UnimplementedLinkAPIServer) CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreatePublicShare not implemented")
}
func (UnimplementedLinkAPIServer) RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemovePublicShare not implemented")
}
func (UnimplementedLinkAPIServer) GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPublicShare not implemented")
}
func (UnimplementedLinkAPIServer) GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPublicShareByToken not implemented")
}
func (UnimplementedLinkAPIServer) ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPublicShares not implemented")
}
func (UnimplementedLinkAPIServer) UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdatePublicShare not implemented")
}
// UnsafeLinkAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to LinkAPIServer will
// result in compilation errors.
type UnsafeLinkAPIServer interface {
mustEmbedUnimplementedLinkAPIServer()
}
func RegisterLinkAPIServer(s grpc.ServiceRegistrar, srv LinkAPIServer) {
s.RegisterService(&LinkAPI_ServiceDesc, srv)
}
func _LinkAPI_CreatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreatePublicShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkAPIServer).CreatePublicShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LinkAPI_CreatePublicShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkAPIServer).CreatePublicShare(ctx, req.(*CreatePublicShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _LinkAPI_RemovePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RemovePublicShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkAPIServer).RemovePublicShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LinkAPI_RemovePublicShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkAPIServer).RemovePublicShare(ctx, req.(*RemovePublicShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _LinkAPI_GetPublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetPublicShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkAPIServer).GetPublicShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LinkAPI_GetPublicShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkAPIServer).GetPublicShare(ctx, req.(*GetPublicShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _LinkAPI_GetPublicShareByToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetPublicShareByTokenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkAPIServer).GetPublicShareByToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LinkAPI_GetPublicShareByToken_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkAPIServer).GetPublicShareByToken(ctx, req.(*GetPublicShareByTokenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _LinkAPI_ListPublicShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListPublicSharesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkAPIServer).ListPublicShares(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LinkAPI_ListPublicShares_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkAPIServer).ListPublicShares(ctx, req.(*ListPublicSharesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _LinkAPI_UpdatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdatePublicShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkAPIServer).UpdatePublicShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LinkAPI_UpdatePublicShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkAPIServer).UpdatePublicShare(ctx, req.(*UpdatePublicShareRequest))
}
return interceptor(ctx, in, info, handler)
}
// LinkAPI_ServiceDesc is the grpc.ServiceDesc for LinkAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var LinkAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.sharing.link.v1beta1.LinkAPI",
HandlerType: (*LinkAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreatePublicShare",
Handler: _LinkAPI_CreatePublicShare_Handler,
},
{
MethodName: "RemovePublicShare",
Handler: _LinkAPI_RemovePublicShare_Handler,
},
{
MethodName: "GetPublicShare",
Handler: _LinkAPI_GetPublicShare_Handler,
},
{
MethodName: "GetPublicShareByToken",
Handler: _LinkAPI_GetPublicShareByToken_Handler,
},
{
MethodName: "ListPublicShares",
Handler: _LinkAPI_ListPublicShares_Handler,
},
{
MethodName: "UpdatePublicShare",
Handler: _LinkAPI_UpdatePublicShare_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/sharing/link/v1beta1/link_api.proto",
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,479 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/sharing/ocm/v1beta1/ocm_api.proto
package ocmv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
OcmAPI_CreateOCMShare_FullMethodName = "/cs3.sharing.ocm.v1beta1.OcmAPI/CreateOCMShare"
OcmAPI_RemoveOCMShare_FullMethodName = "/cs3.sharing.ocm.v1beta1.OcmAPI/RemoveOCMShare"
OcmAPI_GetOCMShare_FullMethodName = "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShare"
OcmAPI_GetOCMShareByToken_FullMethodName = "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShareByToken"
OcmAPI_ListOCMShares_FullMethodName = "/cs3.sharing.ocm.v1beta1.OcmAPI/ListOCMShares"
OcmAPI_UpdateOCMShare_FullMethodName = "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateOCMShare"
OcmAPI_ListReceivedOCMShares_FullMethodName = "/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares"
OcmAPI_UpdateReceivedOCMShare_FullMethodName = "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateReceivedOCMShare"
OcmAPI_GetReceivedOCMShare_FullMethodName = "/cs3.sharing.ocm.v1beta1.OcmAPI/GetReceivedOCMShare"
)
// OcmAPIClient is the client API for OcmAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type OcmAPIClient interface {
// Creates a new ocm share.
// MUST return CODE_NOT_FOUND if the resource reference does not exist.
// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
// (owner, shared_resource, grantee).
// New shares MUST be created in the state SHARE_STATE_PENDING, and MUST be sent
// to the remote system using the OCM API at:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1shares/post
CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error)
// Removes a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
// This action SHALL be notified to the remote system
// using the OCM API at:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error)
// Gets share information for a single share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error)
// Gets share information for a single share by its unlisted token.
// MUST return CODE_NOT_FOUND if the share does not exist.
GetOCMShareByToken(ctx context.Context, in *GetOCMShareByTokenRequest, opts ...grpc.CallOption) (*GetOCMShareByTokenResponse, error)
// List the shares the authenticated principal has created,
// both as owner and creator. If a filter is specified, only
// shares satisfying the filter MUST be returned.
ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error)
// Updates a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
// This action SHALL be notified to the remote system
// using the OCM API at:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error)
// List all shares the authenticated principal has received.
ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error)
// Update the received share to change the share state or the display name.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error)
// Get the information for the given received share reference.
// MUST return CODE_NOT_FOUND if the received share reference does not exist.
GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error)
}
type ocmAPIClient struct {
cc grpc.ClientConnInterface
}
func NewOcmAPIClient(cc grpc.ClientConnInterface) OcmAPIClient {
return &ocmAPIClient{cc}
}
func (c *ocmAPIClient) CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error) {
out := new(CreateOCMShareResponse)
err := c.cc.Invoke(ctx, OcmAPI_CreateOCMShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmAPIClient) RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error) {
out := new(RemoveOCMShareResponse)
err := c.cc.Invoke(ctx, OcmAPI_RemoveOCMShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmAPIClient) GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error) {
out := new(GetOCMShareResponse)
err := c.cc.Invoke(ctx, OcmAPI_GetOCMShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmAPIClient) GetOCMShareByToken(ctx context.Context, in *GetOCMShareByTokenRequest, opts ...grpc.CallOption) (*GetOCMShareByTokenResponse, error) {
out := new(GetOCMShareByTokenResponse)
err := c.cc.Invoke(ctx, OcmAPI_GetOCMShareByToken_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmAPIClient) ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error) {
out := new(ListOCMSharesResponse)
err := c.cc.Invoke(ctx, OcmAPI_ListOCMShares_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmAPIClient) UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error) {
out := new(UpdateOCMShareResponse)
err := c.cc.Invoke(ctx, OcmAPI_UpdateOCMShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmAPIClient) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error) {
out := new(ListReceivedOCMSharesResponse)
err := c.cc.Invoke(ctx, OcmAPI_ListReceivedOCMShares_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmAPIClient) UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error) {
out := new(UpdateReceivedOCMShareResponse)
err := c.cc.Invoke(ctx, OcmAPI_UpdateReceivedOCMShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ocmAPIClient) GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error) {
out := new(GetReceivedOCMShareResponse)
err := c.cc.Invoke(ctx, OcmAPI_GetReceivedOCMShare_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// OcmAPIServer is the server API for OcmAPI service.
// All implementations should embed UnimplementedOcmAPIServer
// for forward compatibility
type OcmAPIServer interface {
// Creates a new ocm share.
// MUST return CODE_NOT_FOUND if the resource reference does not exist.
// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
// (owner, shared_resource, grantee).
// New shares MUST be created in the state SHARE_STATE_PENDING, and MUST be sent
// to the remote system using the OCM API at:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1shares/post
CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error)
// Removes a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
// This action SHALL be notified to the remote system
// using the OCM API at:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error)
// Gets share information for a single share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error)
// Gets share information for a single share by its unlisted token.
// MUST return CODE_NOT_FOUND if the share does not exist.
GetOCMShareByToken(context.Context, *GetOCMShareByTokenRequest) (*GetOCMShareByTokenResponse, error)
// List the shares the authenticated principal has created,
// both as owner and creator. If a filter is specified, only
// shares satisfying the filter MUST be returned.
ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error)
// Updates a share.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
// This action SHALL be notified to the remote system
// using the OCM API at:
// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error)
// List all shares the authenticated principal has received.
ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error)
// Update the received share to change the share state or the display name.
// MUST return CODE_NOT_FOUND if the share reference does not exist.
UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error)
// Get the information for the given received share reference.
// MUST return CODE_NOT_FOUND if the received share reference does not exist.
GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error)
}
// UnimplementedOcmAPIServer should be embedded to have forward compatible implementations.
type UnimplementedOcmAPIServer struct {
}
func (UnimplementedOcmAPIServer) CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateOCMShare not implemented")
}
func (UnimplementedOcmAPIServer) RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveOCMShare not implemented")
}
func (UnimplementedOcmAPIServer) GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetOCMShare not implemented")
}
func (UnimplementedOcmAPIServer) GetOCMShareByToken(context.Context, *GetOCMShareByTokenRequest) (*GetOCMShareByTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetOCMShareByToken not implemented")
}
func (UnimplementedOcmAPIServer) ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListOCMShares not implemented")
}
func (UnimplementedOcmAPIServer) UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateOCMShare not implemented")
}
func (UnimplementedOcmAPIServer) ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListReceivedOCMShares not implemented")
}
func (UnimplementedOcmAPIServer) UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedOCMShare not implemented")
}
func (UnimplementedOcmAPIServer) GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetReceivedOCMShare not implemented")
}
// UnsafeOcmAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to OcmAPIServer will
// result in compilation errors.
type UnsafeOcmAPIServer interface {
mustEmbedUnimplementedOcmAPIServer()
}
func RegisterOcmAPIServer(s grpc.ServiceRegistrar, srv OcmAPIServer) {
s.RegisterService(&OcmAPI_ServiceDesc, srv)
}
func _OcmAPI_CreateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateOCMShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmAPIServer).CreateOCMShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmAPI_CreateOCMShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmAPIServer).CreateOCMShare(ctx, req.(*CreateOCMShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmAPI_RemoveOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RemoveOCMShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmAPIServer).RemoveOCMShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmAPI_RemoveOCMShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmAPIServer).RemoveOCMShare(ctx, req.(*RemoveOCMShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmAPI_GetOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetOCMShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmAPIServer).GetOCMShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmAPI_GetOCMShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmAPIServer).GetOCMShare(ctx, req.(*GetOCMShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmAPI_GetOCMShareByToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetOCMShareByTokenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmAPIServer).GetOCMShareByToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmAPI_GetOCMShareByToken_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmAPIServer).GetOCMShareByToken(ctx, req.(*GetOCMShareByTokenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmAPI_ListOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListOCMSharesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmAPIServer).ListOCMShares(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmAPI_ListOCMShares_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmAPIServer).ListOCMShares(ctx, req.(*ListOCMSharesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmAPI_UpdateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateOCMShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmAPIServer).UpdateOCMShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmAPI_UpdateOCMShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmAPIServer).UpdateOCMShare(ctx, req.(*UpdateOCMShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmAPI_ListReceivedOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListReceivedOCMSharesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmAPIServer).ListReceivedOCMShares(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmAPI_ListReceivedOCMShares_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmAPIServer).ListReceivedOCMShares(ctx, req.(*ListReceivedOCMSharesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmAPI_UpdateReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateReceivedOCMShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmAPIServer).UpdateReceivedOCMShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmAPI_UpdateReceivedOCMShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmAPIServer).UpdateReceivedOCMShare(ctx, req.(*UpdateReceivedOCMShareRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OcmAPI_GetReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetReceivedOCMShareRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OcmAPIServer).GetReceivedOCMShare(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: OcmAPI_GetReceivedOCMShare_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OcmAPIServer).GetReceivedOCMShare(ctx, req.(*GetReceivedOCMShareRequest))
}
return interceptor(ctx, in, info, handler)
}
// OcmAPI_ServiceDesc is the grpc.ServiceDesc for OcmAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var OcmAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.sharing.ocm.v1beta1.OcmAPI",
HandlerType: (*OcmAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateOCMShare",
Handler: _OcmAPI_CreateOCMShare_Handler,
},
{
MethodName: "RemoveOCMShare",
Handler: _OcmAPI_RemoveOCMShare_Handler,
},
{
MethodName: "GetOCMShare",
Handler: _OcmAPI_GetOCMShare_Handler,
},
{
MethodName: "GetOCMShareByToken",
Handler: _OcmAPI_GetOCMShareByToken_Handler,
},
{
MethodName: "ListOCMShares",
Handler: _OcmAPI_ListOCMShares_Handler,
},
{
MethodName: "UpdateOCMShare",
Handler: _OcmAPI_UpdateOCMShare_Handler,
},
{
MethodName: "ListReceivedOCMShares",
Handler: _OcmAPI_ListReceivedOCMShares_Handler,
},
{
MethodName: "UpdateReceivedOCMShare",
Handler: _OcmAPI_UpdateReceivedOCMShare_Handler,
},
{
MethodName: "GetReceivedOCMShare",
Handler: _OcmAPI_GetReceivedOCMShare_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/sharing/ocm/v1beta1/ocm_api.proto",
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,244 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/storage/provider/v1beta1/spaces_api.proto
package providerv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
SpacesAPI_CreateStorageSpace_FullMethodName = "/cs3.storage.provider.v1beta1.SpacesAPI/CreateStorageSpace"
SpacesAPI_ListStorageSpaces_FullMethodName = "/cs3.storage.provider.v1beta1.SpacesAPI/ListStorageSpaces"
SpacesAPI_UpdateStorageSpace_FullMethodName = "/cs3.storage.provider.v1beta1.SpacesAPI/UpdateStorageSpace"
SpacesAPI_DeleteStorageSpace_FullMethodName = "/cs3.storage.provider.v1beta1.SpacesAPI/DeleteStorageSpace"
)
// SpacesAPIClient is the client API for SpacesAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type SpacesAPIClient interface {
// Creates a storage space.
CreateStorageSpace(ctx context.Context, in *CreateStorageSpaceRequest, opts ...grpc.CallOption) (*CreateStorageSpaceResponse, error)
// Lists storage spaces.
ListStorageSpaces(ctx context.Context, in *ListStorageSpacesRequest, opts ...grpc.CallOption) (*ListStorageSpacesResponse, error)
// Updates a storage space.
UpdateStorageSpace(ctx context.Context, in *UpdateStorageSpaceRequest, opts ...grpc.CallOption) (*UpdateStorageSpaceResponse, error)
// Deletes a storage space.
DeleteStorageSpace(ctx context.Context, in *DeleteStorageSpaceRequest, opts ...grpc.CallOption) (*DeleteStorageSpaceResponse, error)
}
type spacesAPIClient struct {
cc grpc.ClientConnInterface
}
func NewSpacesAPIClient(cc grpc.ClientConnInterface) SpacesAPIClient {
return &spacesAPIClient{cc}
}
func (c *spacesAPIClient) CreateStorageSpace(ctx context.Context, in *CreateStorageSpaceRequest, opts ...grpc.CallOption) (*CreateStorageSpaceResponse, error) {
out := new(CreateStorageSpaceResponse)
err := c.cc.Invoke(ctx, SpacesAPI_CreateStorageSpace_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *spacesAPIClient) ListStorageSpaces(ctx context.Context, in *ListStorageSpacesRequest, opts ...grpc.CallOption) (*ListStorageSpacesResponse, error) {
out := new(ListStorageSpacesResponse)
err := c.cc.Invoke(ctx, SpacesAPI_ListStorageSpaces_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *spacesAPIClient) UpdateStorageSpace(ctx context.Context, in *UpdateStorageSpaceRequest, opts ...grpc.CallOption) (*UpdateStorageSpaceResponse, error) {
out := new(UpdateStorageSpaceResponse)
err := c.cc.Invoke(ctx, SpacesAPI_UpdateStorageSpace_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *spacesAPIClient) DeleteStorageSpace(ctx context.Context, in *DeleteStorageSpaceRequest, opts ...grpc.CallOption) (*DeleteStorageSpaceResponse, error) {
out := new(DeleteStorageSpaceResponse)
err := c.cc.Invoke(ctx, SpacesAPI_DeleteStorageSpace_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// SpacesAPIServer is the server API for SpacesAPI service.
// All implementations should embed UnimplementedSpacesAPIServer
// for forward compatibility
type SpacesAPIServer interface {
// Creates a storage space.
CreateStorageSpace(context.Context, *CreateStorageSpaceRequest) (*CreateStorageSpaceResponse, error)
// Lists storage spaces.
ListStorageSpaces(context.Context, *ListStorageSpacesRequest) (*ListStorageSpacesResponse, error)
// Updates a storage space.
UpdateStorageSpace(context.Context, *UpdateStorageSpaceRequest) (*UpdateStorageSpaceResponse, error)
// Deletes a storage space.
DeleteStorageSpace(context.Context, *DeleteStorageSpaceRequest) (*DeleteStorageSpaceResponse, error)
}
// UnimplementedSpacesAPIServer should be embedded to have forward compatible implementations.
type UnimplementedSpacesAPIServer struct {
}
func (UnimplementedSpacesAPIServer) CreateStorageSpace(context.Context, *CreateStorageSpaceRequest) (*CreateStorageSpaceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateStorageSpace not implemented")
}
func (UnimplementedSpacesAPIServer) ListStorageSpaces(context.Context, *ListStorageSpacesRequest) (*ListStorageSpacesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListStorageSpaces not implemented")
}
func (UnimplementedSpacesAPIServer) UpdateStorageSpace(context.Context, *UpdateStorageSpaceRequest) (*UpdateStorageSpaceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateStorageSpace not implemented")
}
func (UnimplementedSpacesAPIServer) DeleteStorageSpace(context.Context, *DeleteStorageSpaceRequest) (*DeleteStorageSpaceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteStorageSpace not implemented")
}
// UnsafeSpacesAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SpacesAPIServer will
// result in compilation errors.
type UnsafeSpacesAPIServer interface {
mustEmbedUnimplementedSpacesAPIServer()
}
func RegisterSpacesAPIServer(s grpc.ServiceRegistrar, srv SpacesAPIServer) {
s.RegisterService(&SpacesAPI_ServiceDesc, srv)
}
func _SpacesAPI_CreateStorageSpace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateStorageSpaceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SpacesAPIServer).CreateStorageSpace(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SpacesAPI_CreateStorageSpace_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SpacesAPIServer).CreateStorageSpace(ctx, req.(*CreateStorageSpaceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SpacesAPI_ListStorageSpaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListStorageSpacesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SpacesAPIServer).ListStorageSpaces(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SpacesAPI_ListStorageSpaces_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SpacesAPIServer).ListStorageSpaces(ctx, req.(*ListStorageSpacesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SpacesAPI_UpdateStorageSpace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateStorageSpaceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SpacesAPIServer).UpdateStorageSpace(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SpacesAPI_UpdateStorageSpace_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SpacesAPIServer).UpdateStorageSpace(ctx, req.(*UpdateStorageSpaceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SpacesAPI_DeleteStorageSpace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteStorageSpaceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SpacesAPIServer).DeleteStorageSpace(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SpacesAPI_DeleteStorageSpace_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SpacesAPIServer).DeleteStorageSpace(ctx, req.(*DeleteStorageSpaceRequest))
}
return interceptor(ctx, in, info, handler)
}
// SpacesAPI_ServiceDesc is the grpc.ServiceDesc for SpacesAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SpacesAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.storage.provider.v1beta1.SpacesAPI",
HandlerType: (*SpacesAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateStorageSpace",
Handler: _SpacesAPI_CreateStorageSpace_Handler,
},
{
MethodName: "ListStorageSpaces",
Handler: _SpacesAPI_ListStorageSpaces_Handler,
},
{
MethodName: "UpdateStorageSpace",
Handler: _SpacesAPI_UpdateStorageSpace_Handler,
},
{
MethodName: "DeleteStorageSpace",
Handler: _SpacesAPI_DeleteStorageSpace_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/storage/provider/v1beta1/spaces_api.proto",
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,209 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/storage/registry/v1beta1/registry_api.proto
package registryv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
RegistryAPI_GetStorageProviders_FullMethodName = "/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProviders"
RegistryAPI_ListStorageProviders_FullMethodName = "/cs3.storage.registry.v1beta1.RegistryAPI/ListStorageProviders"
RegistryAPI_GetHome_FullMethodName = "/cs3.storage.registry.v1beta1.RegistryAPI/GetHome"
)
// RegistryAPIClient is the client API for RegistryAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RegistryAPIClient interface {
// Returns the storage provider that is reponsible for the given
// resource reference.
// MUST return CODE_NOT_FOUND if the reference does not exist.
GetStorageProviders(ctx context.Context, in *GetStorageProvidersRequest, opts ...grpc.CallOption) (*GetStorageProvidersResponse, error)
// Returns a list of the available storage providers known by this registry.
ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...grpc.CallOption) (*ListStorageProvidersResponse, error)
// Gets the user home storage provider.
GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error)
}
type registryAPIClient struct {
cc grpc.ClientConnInterface
}
func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient {
return &registryAPIClient{cc}
}
func (c *registryAPIClient) GetStorageProviders(ctx context.Context, in *GetStorageProvidersRequest, opts ...grpc.CallOption) (*GetStorageProvidersResponse, error) {
out := new(GetStorageProvidersResponse)
err := c.cc.Invoke(ctx, RegistryAPI_GetStorageProviders_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *registryAPIClient) ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...grpc.CallOption) (*ListStorageProvidersResponse, error) {
out := new(ListStorageProvidersResponse)
err := c.cc.Invoke(ctx, RegistryAPI_ListStorageProviders_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *registryAPIClient) GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error) {
out := new(GetHomeResponse)
err := c.cc.Invoke(ctx, RegistryAPI_GetHome_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RegistryAPIServer is the server API for RegistryAPI service.
// All implementations should embed UnimplementedRegistryAPIServer
// for forward compatibility
type RegistryAPIServer interface {
// Returns the storage provider that is reponsible for the given
// resource reference.
// MUST return CODE_NOT_FOUND if the reference does not exist.
GetStorageProviders(context.Context, *GetStorageProvidersRequest) (*GetStorageProvidersResponse, error)
// Returns a list of the available storage providers known by this registry.
ListStorageProviders(context.Context, *ListStorageProvidersRequest) (*ListStorageProvidersResponse, error)
// Gets the user home storage provider.
GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error)
}
// UnimplementedRegistryAPIServer should be embedded to have forward compatible implementations.
type UnimplementedRegistryAPIServer struct {
}
func (UnimplementedRegistryAPIServer) GetStorageProviders(context.Context, *GetStorageProvidersRequest) (*GetStorageProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetStorageProviders not implemented")
}
func (UnimplementedRegistryAPIServer) ListStorageProviders(context.Context, *ListStorageProvidersRequest) (*ListStorageProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListStorageProviders not implemented")
}
func (UnimplementedRegistryAPIServer) GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetHome not implemented")
}
// UnsafeRegistryAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RegistryAPIServer will
// result in compilation errors.
type UnsafeRegistryAPIServer interface {
mustEmbedUnimplementedRegistryAPIServer()
}
func RegisterRegistryAPIServer(s grpc.ServiceRegistrar, srv RegistryAPIServer) {
s.RegisterService(&RegistryAPI_ServiceDesc, srv)
}
func _RegistryAPI_GetStorageProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetStorageProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).GetStorageProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_GetStorageProviders_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).GetStorageProviders(ctx, req.(*GetStorageProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegistryAPI_ListStorageProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListStorageProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).ListStorageProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_ListStorageProviders_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).ListStorageProviders(ctx, req.(*ListStorageProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegistryAPI_GetHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetHomeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegistryAPIServer).GetHome(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RegistryAPI_GetHome_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegistryAPIServer).GetHome(ctx, req.(*GetHomeRequest))
}
return interceptor(ctx, in, info, handler)
}
// RegistryAPI_ServiceDesc is the grpc.ServiceDesc for RegistryAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RegistryAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.storage.registry.v1beta1.RegistryAPI",
HandlerType: (*RegistryAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetStorageProviders",
Handler: _RegistryAPI_GetStorageProviders_Handler,
},
{
MethodName: "ListStorageProviders",
Handler: _RegistryAPI_ListStorageProviders_Handler,
},
{
MethodName: "GetHome",
Handler: _RegistryAPI_GetHome_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/storage/registry/v1beta1/registry_api.proto",
}
@@ -1,28 +1,50 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/storage/registry/v1beta1/resources.proto
package registryv1beta1
import (
fmt "fmt"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The information for the storage provider.
type ProviderInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OPTIONAL.
// Opaque information (containing storage-specific information).
// For example, additional metadata attached to the resource.
@@ -50,75 +72,79 @@ type ProviderInfo struct {
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// REQUIRED.
// List of available methods.
Features *ProviderInfo_Features `protobuf:"bytes,6,opt,name=features,proto3" json:"features,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Features *ProviderInfo_Features `protobuf:"bytes,6,opt,name=features,proto3" json:"features,omitempty"`
}
func (m *ProviderInfo) Reset() { *m = ProviderInfo{} }
func (m *ProviderInfo) String() string { return proto.CompactTextString(m) }
func (*ProviderInfo) ProtoMessage() {}
func (x *ProviderInfo) Reset() {
*x = ProviderInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProviderInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProviderInfo) ProtoMessage() {}
func (x *ProviderInfo) ProtoReflect() protoreflect.Message {
mi := &file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProviderInfo.ProtoReflect.Descriptor instead.
func (*ProviderInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_50a67fe50917e260, []int{0}
return file_cs3_storage_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *ProviderInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProviderInfo.Unmarshal(m, b)
}
func (m *ProviderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProviderInfo.Marshal(b, m, deterministic)
}
func (m *ProviderInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProviderInfo.Merge(m, src)
}
func (m *ProviderInfo) XXX_Size() int {
return xxx_messageInfo_ProviderInfo.Size(m)
}
func (m *ProviderInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ProviderInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ProviderInfo proto.InternalMessageInfo
func (m *ProviderInfo) GetOpaque() *v1beta1.Opaque {
if m != nil {
return m.Opaque
func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (m *ProviderInfo) GetProviderId() string {
if m != nil {
return m.ProviderId
func (x *ProviderInfo) GetProviderId() string {
if x != nil {
return x.ProviderId
}
return ""
}
func (m *ProviderInfo) GetProviderPath() string {
if m != nil {
return m.ProviderPath
func (x *ProviderInfo) GetProviderPath() string {
if x != nil {
return x.ProviderPath
}
return ""
}
func (m *ProviderInfo) GetAddress() string {
if m != nil {
return m.Address
func (x *ProviderInfo) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (m *ProviderInfo) GetDescription() string {
if m != nil {
return m.Description
func (x *ProviderInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *ProviderInfo) GetFeatures() *ProviderInfo_Features {
if m != nil {
return m.Features
func (x *ProviderInfo) GetFeatures() *ProviderInfo_Features {
if x != nil {
return x.Features
}
return nil
}
@@ -128,83 +154,187 @@ func (m *ProviderInfo) GetFeatures() *ProviderInfo_Features {
// on this storage provider. If the feature is not supported,
// the related service methods MUST return CODE_UNIMPLEMENTED.
type ProviderInfo_Features struct {
Recycle bool `protobuf:"varint,1,opt,name=recycle,proto3" json:"recycle,omitempty"`
FileVersions bool `protobuf:"varint,2,opt,name=file_versions,json=fileVersions,proto3" json:"file_versions,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Recycle bool `protobuf:"varint,1,opt,name=recycle,proto3" json:"recycle,omitempty"`
FileVersions bool `protobuf:"varint,2,opt,name=file_versions,json=fileVersions,proto3" json:"file_versions,omitempty"`
}
func (m *ProviderInfo_Features) Reset() { *m = ProviderInfo_Features{} }
func (m *ProviderInfo_Features) String() string { return proto.CompactTextString(m) }
func (*ProviderInfo_Features) ProtoMessage() {}
func (x *ProviderInfo_Features) Reset() {
*x = ProviderInfo_Features{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProviderInfo_Features) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProviderInfo_Features) ProtoMessage() {}
func (x *ProviderInfo_Features) ProtoReflect() protoreflect.Message {
mi := &file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProviderInfo_Features.ProtoReflect.Descriptor instead.
func (*ProviderInfo_Features) Descriptor() ([]byte, []int) {
return fileDescriptor_50a67fe50917e260, []int{0, 0}
return file_cs3_storage_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0, 0}
}
func (m *ProviderInfo_Features) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProviderInfo_Features.Unmarshal(m, b)
}
func (m *ProviderInfo_Features) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProviderInfo_Features.Marshal(b, m, deterministic)
}
func (m *ProviderInfo_Features) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProviderInfo_Features.Merge(m, src)
}
func (m *ProviderInfo_Features) XXX_Size() int {
return xxx_messageInfo_ProviderInfo_Features.Size(m)
}
func (m *ProviderInfo_Features) XXX_DiscardUnknown() {
xxx_messageInfo_ProviderInfo_Features.DiscardUnknown(m)
}
var xxx_messageInfo_ProviderInfo_Features proto.InternalMessageInfo
func (m *ProviderInfo_Features) GetRecycle() bool {
if m != nil {
return m.Recycle
func (x *ProviderInfo_Features) GetRecycle() bool {
if x != nil {
return x.Recycle
}
return false
}
func (m *ProviderInfo_Features) GetFileVersions() bool {
if m != nil {
return m.FileVersions
func (x *ProviderInfo_Features) GetFileVersions() bool {
if x != nil {
return x.FileVersions
}
return false
}
func init() {
proto.RegisterType((*ProviderInfo)(nil), "cs3.storage.registry.v1beta1.ProviderInfo")
proto.RegisterType((*ProviderInfo_Features)(nil), "cs3.storage.registry.v1beta1.ProviderInfo.Features")
var File_cs3_storage_registry_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_storage_registry_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c,
0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73,
0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x02, 0x0a, 0x0c,
0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06,
0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63,
0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12,
0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64,
0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x74,
0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x50, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x12, 0x4f, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x06, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67,
0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x2e,
0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72,
0x65, 0x73, 0x1a, 0x49, 0x0a, 0x08, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x18,
0x0a, 0x07, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
0x07, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65,
0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
0x0c, 0x66, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x90, 0x02,
0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67,
0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70,
0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2,
0x02, 0x03, 0x43, 0x53, 0x52, 0xaa, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x74, 0x6f, 0x72,
0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x61,
0x67, 0x65, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0xe2, 0x02, 0x28, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67,
0x65, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
0x1f, 0x43, 0x73, 0x33, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x3a, 0x3a, 0x52,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("cs3/storage/registry/v1beta1/resources.proto", fileDescriptor_50a67fe50917e260)
var (
file_cs3_storage_registry_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_storage_registry_v1beta1_resources_proto_rawDescData = file_cs3_storage_registry_v1beta1_resources_proto_rawDesc
)
func file_cs3_storage_registry_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_storage_registry_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_storage_registry_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_storage_registry_v1beta1_resources_proto_rawDescData)
})
return file_cs3_storage_registry_v1beta1_resources_proto_rawDescData
}
var fileDescriptor_50a67fe50917e260 = []byte{
// 352 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x6a, 0xc2, 0x40,
0x14, 0xc6, 0x49, 0x6c, 0x6d, 0x3a, 0xda, 0x16, 0xb2, 0x4a, 0xc5, 0xd2, 0xd0, 0x6e, 0x5c, 0x94,
0x09, 0x69, 0x6e, 0xa0, 0x50, 0x70, 0x65, 0x18, 0xc1, 0x45, 0x11, 0x24, 0x26, 0x4f, 0x1d, 0xb0,
0x4e, 0x3a, 0x6f, 0x14, 0x3c, 0x42, 0xaf, 0xd1, 0x65, 0x8f, 0xd2, 0x4b, 0xf4, 0x2a, 0x65, 0xc6,
0x19, 0x71, 0xe5, 0xf2, 0x7d, 0xdf, 0xef, 0x7d, 0xbc, 0x3f, 0xe4, 0xa5, 0xc4, 0x2c, 0x41, 0x25,
0x64, 0xb1, 0x84, 0x44, 0xc2, 0x92, 0xa3, 0x92, 0xfb, 0x64, 0x97, 0xce, 0x41, 0x15, 0x69, 0x22,
0x01, 0xc5, 0x56, 0x96, 0x80, 0xb4, 0x96, 0x42, 0x89, 0xb0, 0x5b, 0x62, 0x46, 0x2d, 0x4d, 0x1d,
0x4d, 0x2d, 0xdd, 0x79, 0xd0, 0x59, 0x6a, 0x5f, 0x03, 0x1e, 0x03, 0x4c, 0x75, 0x68, 0x7e, 0xfa,
0xf3, 0x49, 0x3b, 0x97, 0x62, 0xc7, 0x2b, 0x90, 0xc3, 0xcd, 0x42, 0x84, 0x29, 0x69, 0x8a, 0xba,
0xf8, 0xdc, 0x42, 0xe4, 0xc5, 0x5e, 0xaf, 0xf5, 0x7a, 0x4f, 0x75, 0xfc, 0xa1, 0xc5, 0x06, 0xd0,
0x91, 0x01, 0x98, 0x05, 0xc3, 0x47, 0xd2, 0xaa, 0x6d, 0xc4, 0x8c, 0x57, 0x91, 0x1f, 0x7b, 0xbd,
0x6b, 0x46, 0x9c, 0x34, 0xac, 0xc2, 0x67, 0x72, 0x73, 0x04, 0xea, 0x42, 0xad, 0xa2, 0x86, 0x41,
0xda, 0x4e, 0xcc, 0x0b, 0xb5, 0x0a, 0x23, 0x72, 0x55, 0x54, 0x95, 0x04, 0xc4, 0xe8, 0xc2, 0xd8,
0xae, 0x0c, 0x63, 0xd2, 0xaa, 0x00, 0x4b, 0xc9, 0x6b, 0xc5, 0xc5, 0x26, 0xba, 0x34, 0xee, 0xa9,
0x14, 0x8e, 0x48, 0xb0, 0x80, 0x42, 0x6d, 0x25, 0x60, 0xd4, 0x34, 0x63, 0x67, 0xf4, 0xdc, 0x55,
0xe8, 0xe9, 0xca, 0xf4, 0xcd, 0xb6, 0xb2, 0x63, 0x48, 0x67, 0x48, 0x02, 0xa7, 0xea, 0xc1, 0x24,
0x94, 0xfb, 0x72, 0x7d, 0x38, 0x49, 0xc0, 0x5c, 0xa9, 0xf7, 0x5a, 0xf0, 0x35, 0xcc, 0x76, 0x20,
0x91, 0x8b, 0x0d, 0x9a, 0xd5, 0x03, 0xd6, 0xd6, 0xe2, 0xc4, 0x6a, 0xfd, 0x2f, 0x8f, 0xc4, 0xa5,
0xf8, 0x38, 0x3b, 0x4f, 0xff, 0x96, 0xb9, 0xa7, 0xe6, 0xfa, 0x2d, 0xb9, 0xf7, 0x7e, 0xe7, 0x18,
0x8b, 0x7c, 0xfb, 0x8d, 0xc1, 0x98, 0xfd, 0xf8, 0xdd, 0x01, 0x66, 0x74, 0x6c, 0x73, 0x98, 0xcb,
0x99, 0xa4, 0x7d, 0x0d, 0xfd, 0x1a, 0x7b, 0x6a, 0xed, 0xa9, 0xb3, 0xa7, 0xd6, 0x9e, 0x37, 0xcd,
0xd3, 0xb3, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x80, 0x52, 0x5a, 0x61, 0x02, 0x00, 0x00,
var file_cs3_storage_registry_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_cs3_storage_registry_v1beta1_resources_proto_goTypes = []interface{}{
(*ProviderInfo)(nil), // 0: cs3.storage.registry.v1beta1.ProviderInfo
(*ProviderInfo_Features)(nil), // 1: cs3.storage.registry.v1beta1.ProviderInfo.Features
(*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque
}
var file_cs3_storage_registry_v1beta1_resources_proto_depIdxs = []int32{
2, // 0: cs3.storage.registry.v1beta1.ProviderInfo.opaque:type_name -> cs3.types.v1beta1.Opaque
1, // 1: cs3.storage.registry.v1beta1.ProviderInfo.features:type_name -> cs3.storage.registry.v1beta1.ProviderInfo.Features
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_cs3_storage_registry_v1beta1_resources_proto_init() }
func file_cs3_storage_registry_v1beta1_resources_proto_init() {
if File_cs3_storage_registry_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ProviderInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ProviderInfo_Features); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_storage_registry_v1beta1_resources_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_storage_registry_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_storage_registry_v1beta1_resources_proto_depIdxs,
MessageInfos: file_cs3_storage_registry_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_storage_registry_v1beta1_resources_proto = out.File
file_cs3_storage_registry_v1beta1_resources_proto_rawDesc = nil
file_cs3_storage_registry_v1beta1_resources_proto_goTypes = nil
file_cs3_storage_registry_v1beta1_resources_proto_depIdxs = nil
}
+333 -160
View File
@@ -1,28 +1,46 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/tx/v1beta1/resources.proto
package txv1beta1
import (
fmt "fmt"
v1beta11 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
v1beta13 "github.com/cs3org/go-cs3apis/cs3/sharing/ocm/v1beta1"
v1beta1 "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
v1beta12 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Status represents transfer status.
type Status int32
@@ -51,88 +69,121 @@ const (
Status_STATUS_TRANSFER_EXPIRED Status = 10
)
var Status_name = map[int32]string{
0: "STATUS_INVALID",
1: "STATUS_DESTINATION_NOT_FOUND",
2: "STATUS_TRANSFER_NEW",
3: "STATUS_TRANSFER_AWAITING_ACCEPTANCE",
4: "STATUS_TRANSFER_ACCEPTED",
5: "STATUS_TRANSFER_IN_PROGRESS",
6: "STATUS_TRANSFER_COMPLETE",
7: "STATUS_TRANSFER_FAILED",
8: "STATUS_TRANSFER_CANCELLED",
9: "STATUS_TRANSFER_CANCEL_FAILED",
10: "STATUS_TRANSFER_EXPIRED",
}
// Enum value maps for Status.
var (
Status_name = map[int32]string{
0: "STATUS_INVALID",
1: "STATUS_DESTINATION_NOT_FOUND",
2: "STATUS_TRANSFER_NEW",
3: "STATUS_TRANSFER_AWAITING_ACCEPTANCE",
4: "STATUS_TRANSFER_ACCEPTED",
5: "STATUS_TRANSFER_IN_PROGRESS",
6: "STATUS_TRANSFER_COMPLETE",
7: "STATUS_TRANSFER_FAILED",
8: "STATUS_TRANSFER_CANCELLED",
9: "STATUS_TRANSFER_CANCEL_FAILED",
10: "STATUS_TRANSFER_EXPIRED",
}
Status_value = map[string]int32{
"STATUS_INVALID": 0,
"STATUS_DESTINATION_NOT_FOUND": 1,
"STATUS_TRANSFER_NEW": 2,
"STATUS_TRANSFER_AWAITING_ACCEPTANCE": 3,
"STATUS_TRANSFER_ACCEPTED": 4,
"STATUS_TRANSFER_IN_PROGRESS": 5,
"STATUS_TRANSFER_COMPLETE": 6,
"STATUS_TRANSFER_FAILED": 7,
"STATUS_TRANSFER_CANCELLED": 8,
"STATUS_TRANSFER_CANCEL_FAILED": 9,
"STATUS_TRANSFER_EXPIRED": 10,
}
)
var Status_value = map[string]int32{
"STATUS_INVALID": 0,
"STATUS_DESTINATION_NOT_FOUND": 1,
"STATUS_TRANSFER_NEW": 2,
"STATUS_TRANSFER_AWAITING_ACCEPTANCE": 3,
"STATUS_TRANSFER_ACCEPTED": 4,
"STATUS_TRANSFER_IN_PROGRESS": 5,
"STATUS_TRANSFER_COMPLETE": 6,
"STATUS_TRANSFER_FAILED": 7,
"STATUS_TRANSFER_CANCELLED": 8,
"STATUS_TRANSFER_CANCEL_FAILED": 9,
"STATUS_TRANSFER_EXPIRED": 10,
func (x Status) Enum() *Status {
p := new(Status)
*p = x
return p
}
func (x Status) String() string {
return proto.EnumName(Status_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Status) Descriptor() protoreflect.EnumDescriptor {
return file_cs3_tx_v1beta1_resources_proto_enumTypes[0].Descriptor()
}
func (Status) Type() protoreflect.EnumType {
return &file_cs3_tx_v1beta1_resources_proto_enumTypes[0]
}
func (x Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Status.Descriptor instead.
func (Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e6e9f5a73c9e5a84, []int{0}
return file_cs3_tx_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
// TxId uniquely identifies a transfer in the transfer provider namespace.
type TxId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The internal transfer id used by the service implementor
// to uniquely identity the transfer in the internal
// implementation of the service.
OpaqueId string `protobuf:"bytes,1,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
OpaqueId string `protobuf:"bytes,1,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"`
}
func (m *TxId) Reset() { *m = TxId{} }
func (m *TxId) String() string { return proto.CompactTextString(m) }
func (*TxId) ProtoMessage() {}
func (x *TxId) Reset() {
*x = TxId{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_tx_v1beta1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TxId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TxId) ProtoMessage() {}
func (x *TxId) ProtoReflect() protoreflect.Message {
mi := &file_cs3_tx_v1beta1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TxId.ProtoReflect.Descriptor instead.
func (*TxId) Descriptor() ([]byte, []int) {
return fileDescriptor_e6e9f5a73c9e5a84, []int{0}
return file_cs3_tx_v1beta1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *TxId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxId.Unmarshal(m, b)
}
func (m *TxId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxId.Marshal(b, m, deterministic)
}
func (m *TxId) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxId.Merge(m, src)
}
func (m *TxId) XXX_Size() int {
return xxx_messageInfo_TxId.Size(m)
}
func (m *TxId) XXX_DiscardUnknown() {
xxx_messageInfo_TxId.DiscardUnknown(m)
}
var xxx_messageInfo_TxId proto.InternalMessageInfo
func (m *TxId) GetOpaqueId() string {
if m != nil {
return m.OpaqueId
func (x *TxId) GetOpaqueId() string {
if x != nil {
return x.OpaqueId
}
return ""
}
// TxInfo represents information about a transfer.
type TxInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The transfer identifier.
Id *TxId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
@@ -156,131 +207,253 @@ type TxInfo struct {
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// REQUIRED.
// Opaque unique identifier of the share on which the transfer is based.
ShareId *v1beta13.ShareId `protobuf:"bytes,7,opt,name=share_id,json=shareId,proto3" json:"share_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
ShareId *v1beta13.ShareId `protobuf:"bytes,7,opt,name=share_id,json=shareId,proto3" json:"share_id,omitempty"`
}
func (m *TxInfo) Reset() { *m = TxInfo{} }
func (m *TxInfo) String() string { return proto.CompactTextString(m) }
func (*TxInfo) ProtoMessage() {}
func (x *TxInfo) Reset() {
*x = TxInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_tx_v1beta1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TxInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TxInfo) ProtoMessage() {}
func (x *TxInfo) ProtoReflect() protoreflect.Message {
mi := &file_cs3_tx_v1beta1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TxInfo.ProtoReflect.Descriptor instead.
func (*TxInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_e6e9f5a73c9e5a84, []int{1}
return file_cs3_tx_v1beta1_resources_proto_rawDescGZIP(), []int{1}
}
func (m *TxInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxInfo.Unmarshal(m, b)
}
func (m *TxInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxInfo.Marshal(b, m, deterministic)
}
func (m *TxInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxInfo.Merge(m, src)
}
func (m *TxInfo) XXX_Size() int {
return xxx_messageInfo_TxInfo.Size(m)
}
func (m *TxInfo) XXX_DiscardUnknown() {
xxx_messageInfo_TxInfo.DiscardUnknown(m)
}
var xxx_messageInfo_TxInfo proto.InternalMessageInfo
func (m *TxInfo) GetId() *TxId {
if m != nil {
return m.Id
func (x *TxInfo) GetId() *TxId {
if x != nil {
return x.Id
}
return nil
}
func (m *TxInfo) GetStatus() Status {
if m != nil {
return m.Status
func (x *TxInfo) GetStatus() Status {
if x != nil {
return x.Status
}
return Status_STATUS_INVALID
}
func (m *TxInfo) GetGrantee() *v1beta1.Grantee {
if m != nil {
return m.Grantee
func (x *TxInfo) GetGrantee() *v1beta1.Grantee {
if x != nil {
return x.Grantee
}
return nil
}
func (m *TxInfo) GetCreator() *v1beta11.UserId {
if m != nil {
return m.Creator
func (x *TxInfo) GetCreator() *v1beta11.UserId {
if x != nil {
return x.Creator
}
return nil
}
func (m *TxInfo) GetCtime() *v1beta12.Timestamp {
if m != nil {
return m.Ctime
func (x *TxInfo) GetCtime() *v1beta12.Timestamp {
if x != nil {
return x.Ctime
}
return nil
}
func (m *TxInfo) GetDescription() string {
if m != nil {
return m.Description
func (x *TxInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *TxInfo) GetShareId() *v1beta13.ShareId {
if m != nil {
return m.ShareId
func (x *TxInfo) GetShareId() *v1beta13.ShareId {
if x != nil {
return x.ShareId
}
return nil
}
func init() {
proto.RegisterEnum("cs3.tx.v1beta1.Status", Status_name, Status_value)
proto.RegisterType((*TxId)(nil), "cs3.tx.v1beta1.TxId")
proto.RegisterType((*TxInfo)(nil), "cs3.tx.v1beta1.TxInfo")
var File_cs3_tx_v1beta1_resources_proto protoreflect.FileDescriptor
var file_cs3_tx_v1beta1_resources_proto_rawDesc = []byte{
0x0a, 0x1e, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x0e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75,
0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x63, 0x73, 0x33,
0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x23, 0x0a, 0x04, 0x54, 0x78, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61,
0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0xef, 0x02, 0x0a, 0x06, 0x54, 0x78, 0x49, 0x6e, 0x66,
0x6f, 0x12, 0x24, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54,
0x78, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74,
0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73,
0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52,
0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61,
0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e,
0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31,
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x63, 0x72,
0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x08, 0x73,
0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e,
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x64, 0x52,
0x07, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x64, 0x2a, 0xd8, 0x02, 0x0a, 0x06, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e,
0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x54, 0x41, 0x54, 0x55,
0x53, 0x5f, 0x44, 0x45, 0x53, 0x54, 0x49, 0x4e, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f,
0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41,
0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x4e, 0x45, 0x57,
0x10, 0x02, 0x12, 0x27, 0x0a, 0x23, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41,
0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x41, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x41,
0x43, 0x43, 0x45, 0x50, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x53,
0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x41,
0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x54, 0x41,
0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x49, 0x4e, 0x5f,
0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54,
0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x43, 0x4f,
0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x54, 0x41, 0x54,
0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c,
0x45, 0x44, 0x10, 0x07, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54,
0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45,
0x44, 0x10, 0x08, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52,
0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x46, 0x41,
0x49, 0x4c, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,
0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45,
0x44, 0x10, 0x0a, 0x42, 0xb5, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e,
0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f, 0x72, 0x67, 0x2f,
0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x74,
0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x78, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x73, 0x33, 0x2e,
0x54, 0x78, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x73, 0x33,
0x5c, 0x54, 0x78, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1a, 0x43, 0x73,
0x33, 0x5c, 0x54, 0x78, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x43, 0x73, 0x33, 0x3a, 0x3a,
0x54, 0x78, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
func init() { proto.RegisterFile("cs3/tx/v1beta1/resources.proto", fileDescriptor_e6e9f5a73c9e5a84) }
var (
file_cs3_tx_v1beta1_resources_proto_rawDescOnce sync.Once
file_cs3_tx_v1beta1_resources_proto_rawDescData = file_cs3_tx_v1beta1_resources_proto_rawDesc
)
var fileDescriptor_e6e9f5a73c9e5a84 = []byte{
// 587 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xdf, 0x6e, 0xd3, 0x30,
0x18, 0xc5, 0x69, 0xb6, 0xb5, 0xeb, 0x37, 0xa9, 0x8a, 0x0c, 0xda, 0xc2, 0xfe, 0x40, 0xb7, 0x81,
0x36, 0x10, 0x4a, 0xb5, 0xf5, 0x72, 0x17, 0x28, 0x6b, 0xbd, 0xc9, 0x52, 0x49, 0x2b, 0xc7, 0xfb,
0x03, 0x9a, 0x14, 0x65, 0x89, 0x19, 0xb9, 0x68, 0x5d, 0x6c, 0x77, 0xca, 0x5e, 0x87, 0x4b, 0x1e,
0x85, 0x27, 0xe0, 0x2d, 0x78, 0x05, 0x14, 0x27, 0x2d, 0xd0, 0x6d, 0xdc, 0xb5, 0xdf, 0xf9, 0x9d,
0x23, 0x7f, 0xc7, 0x31, 0xbc, 0x88, 0x55, 0xbb, 0xa5, 0xb3, 0xd6, 0xed, 0xc1, 0x35, 0xd7, 0xd1,
0x41, 0x4b, 0x72, 0x25, 0x26, 0x32, 0xe6, 0xca, 0x1d, 0x4b, 0xa1, 0x05, 0x6a, 0xc4, 0xaa, 0xed,
0xea, 0xcc, 0x2d, 0xf5, 0xf5, 0x37, 0x39, 0x9f, 0x26, 0x7c, 0xa4, 0x53, 0x7d, 0xd7, 0x9a, 0x28,
0x2e, 0x1f, 0xb3, 0xae, 0xef, 0xe5, 0xa8, 0xfa, 0x12, 0xc9, 0x74, 0x74, 0xd3, 0x12, 0xf1, 0xf0,
0x51, 0xf0, 0x9d, 0x01, 0xb5, 0x90, 0xd1, 0x0d, 0x6f, 0x8d, 0xa5, 0xb8, 0x4d, 0x93, 0xff, 0xc4,
0x6e, 0x99, 0x13, 0xdf, 0x8d, 0xb9, 0x9a, 0x21, 0xe6, 0x5f, 0x21, 0xef, 0xec, 0xc2, 0x22, 0xcb,
0x48, 0x82, 0x36, 0xa0, 0x2e, 0xc6, 0xd1, 0xd7, 0x09, 0x0f, 0xd3, 0xc4, 0xa9, 0x34, 0x2b, 0xfb,
0x75, 0xba, 0x5c, 0x0c, 0x48, 0xb2, 0xf3, 0xcb, 0x82, 0x2a, 0xcb, 0xc8, 0xe8, 0xb3, 0x40, 0xaf,
0xc0, 0x2a, 0x81, 0x95, 0xc3, 0x67, 0xee, 0xbf, 0xdb, 0xba, 0x79, 0x12, 0xb5, 0xd2, 0x04, 0xb9,
0x50, 0x55, 0x3a, 0xd2, 0x13, 0xe5, 0x58, 0xcd, 0xca, 0x7e, 0xe3, 0x70, 0x75, 0x9e, 0x0c, 0x8c,
0x4a, 0x4b, 0x0a, 0xbd, 0x87, 0xda, 0x8d, 0x8c, 0x46, 0x9a, 0x73, 0x67, 0xc1, 0x44, 0xbf, 0x36,
0x86, 0x72, 0x49, 0x77, 0xba, 0xe4, 0xcc, 0x7e, 0x5a, 0xc0, 0x74, 0xea, 0x42, 0x47, 0x50, 0x8b,
0x25, 0x8f, 0xb4, 0x90, 0xce, 0xa2, 0x09, 0xd8, 0x36, 0x01, 0xd3, 0xe6, 0xdd, 0xbc, 0xf9, 0x99,
0xfb, 0x4c, 0x71, 0x49, 0x12, 0x3a, 0x75, 0xa0, 0x43, 0x58, 0x8a, 0x75, 0x3a, 0xe4, 0xce, 0x92,
0xb1, 0x6e, 0x16, 0x87, 0x35, 0x25, 0xcd, 0x36, 0x4b, 0x87, 0x5c, 0xe9, 0x68, 0x38, 0xa6, 0x05,
0x8a, 0x9a, 0xb0, 0x92, 0x70, 0x15, 0xcb, 0x74, 0xac, 0x53, 0x31, 0x72, 0xaa, 0xa6, 0xb1, 0xbf,
0x47, 0xe8, 0x08, 0x96, 0xf3, 0xdb, 0x34, 0x85, 0xd6, 0x4c, 0x70, 0xb3, 0x58, 0xaa, 0xb8, 0x62,
0x57, 0xc4, 0xc3, 0x3f, 0x75, 0xe4, 0x60, 0x7e, 0x24, 0x55, 0xfc, 0x78, 0xfb, 0xd3, 0x82, 0x6a,
0xd1, 0x11, 0x42, 0xd0, 0x08, 0x98, 0xc7, 0xce, 0x82, 0x90, 0xf8, 0xe7, 0x5e, 0x8f, 0x74, 0xed,
0x27, 0xa8, 0x09, 0x9b, 0xe5, 0xac, 0x8b, 0x03, 0x46, 0x7c, 0x8f, 0x91, 0xbe, 0x1f, 0xfa, 0x7d,
0x16, 0x9e, 0xf4, 0xcf, 0xfc, 0xae, 0x5d, 0x41, 0x6b, 0xf0, 0xb4, 0x24, 0x18, 0xf5, 0xfc, 0xe0,
0x04, 0xd3, 0xd0, 0xc7, 0x17, 0xb6, 0x85, 0xf6, 0x60, 0x77, 0x5e, 0xf0, 0x2e, 0x3c, 0xc2, 0x88,
0x7f, 0x1a, 0x7a, 0x9d, 0x0e, 0x1e, 0x30, 0xcf, 0xef, 0x60, 0x7b, 0x01, 0x6d, 0x82, 0x73, 0x0f,
0x34, 0x3a, 0xee, 0xda, 0x8b, 0xe8, 0x25, 0x6c, 0xcc, 0xab, 0xc4, 0x0f, 0x07, 0xb4, 0x7f, 0x4a,
0x71, 0x10, 0xd8, 0x4b, 0x0f, 0xd9, 0x3b, 0xfd, 0x0f, 0x83, 0x1e, 0x66, 0xd8, 0xae, 0xa2, 0x75,
0x58, 0x9d, 0x57, 0x4f, 0x3c, 0xd2, 0xc3, 0x5d, 0xbb, 0x86, 0xb6, 0xe0, 0xf9, 0x3d, 0x67, 0x7e,
0xa6, 0x5e, 0x2e, 0x2f, 0xa3, 0x6d, 0xd8, 0x7a, 0x58, 0x9e, 0x26, 0xd4, 0xd1, 0x06, 0xac, 0xcd,
0x23, 0xf8, 0x72, 0x40, 0x28, 0xee, 0xda, 0x70, 0xfc, 0x11, 0x50, 0x2c, 0x86, 0x73, 0x1f, 0xe4,
0x71, 0x83, 0x4e, 0xdf, 0xcd, 0x20, 0x7f, 0x17, 0x83, 0xca, 0xa7, 0xba, 0xce, 0x4a, 0xf1, 0x9b,
0xb5, 0xd0, 0x61, 0x97, 0xdf, 0xad, 0x46, 0x47, 0xb5, 0x5d, 0x96, 0xb9, 0xe7, 0x07, 0xc7, 0xf9,
0xf8, 0x87, 0x19, 0x5c, 0xb1, 0xec, 0xaa, 0x1c, 0x5c, 0x57, 0xcd, 0x9b, 0x6a, 0xff, 0x0e, 0x00,
0x00, 0xff, 0xff, 0x0d, 0x00, 0x76, 0xc4, 0x26, 0x04, 0x00, 0x00,
func file_cs3_tx_v1beta1_resources_proto_rawDescGZIP() []byte {
file_cs3_tx_v1beta1_resources_proto_rawDescOnce.Do(func() {
file_cs3_tx_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_tx_v1beta1_resources_proto_rawDescData)
})
return file_cs3_tx_v1beta1_resources_proto_rawDescData
}
var file_cs3_tx_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_cs3_tx_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_cs3_tx_v1beta1_resources_proto_goTypes = []interface{}{
(Status)(0), // 0: cs3.tx.v1beta1.Status
(*TxId)(nil), // 1: cs3.tx.v1beta1.TxId
(*TxInfo)(nil), // 2: cs3.tx.v1beta1.TxInfo
(*v1beta1.Grantee)(nil), // 3: cs3.storage.provider.v1beta1.Grantee
(*v1beta11.UserId)(nil), // 4: cs3.identity.user.v1beta1.UserId
(*v1beta12.Timestamp)(nil), // 5: cs3.types.v1beta1.Timestamp
(*v1beta13.ShareId)(nil), // 6: cs3.sharing.ocm.v1beta1.ShareId
}
var file_cs3_tx_v1beta1_resources_proto_depIdxs = []int32{
1, // 0: cs3.tx.v1beta1.TxInfo.id:type_name -> cs3.tx.v1beta1.TxId
0, // 1: cs3.tx.v1beta1.TxInfo.status:type_name -> cs3.tx.v1beta1.Status
3, // 2: cs3.tx.v1beta1.TxInfo.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee
4, // 3: cs3.tx.v1beta1.TxInfo.creator:type_name -> cs3.identity.user.v1beta1.UserId
5, // 4: cs3.tx.v1beta1.TxInfo.ctime:type_name -> cs3.types.v1beta1.Timestamp
6, // 5: cs3.tx.v1beta1.TxInfo.share_id:type_name -> cs3.sharing.ocm.v1beta1.ShareId
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_cs3_tx_v1beta1_resources_proto_init() }
func file_cs3_tx_v1beta1_resources_proto_init() {
if File_cs3_tx_v1beta1_resources_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_tx_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TxId); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_tx_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TxInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_tx_v1beta1_resources_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_tx_v1beta1_resources_proto_goTypes,
DependencyIndexes: file_cs3_tx_v1beta1_resources_proto_depIdxs,
EnumInfos: file_cs3_tx_v1beta1_resources_proto_enumTypes,
MessageInfos: file_cs3_tx_v1beta1_resources_proto_msgTypes,
}.Build()
File_cs3_tx_v1beta1_resources_proto = out.File
file_cs3_tx_v1beta1_resources_proto_rawDesc = nil
file_cs3_tx_v1beta1_resources_proto_goTypes = nil
file_cs3_tx_v1beta1_resources_proto_depIdxs = nil
}
File diff suppressed because it is too large Load Diff
+287
View File
@@ -0,0 +1,287 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: cs3/tx/v1beta1/tx_api.proto
package txv1beta1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
TxAPI_CreateTransfer_FullMethodName = "/cs3.tx.v1beta1.TxAPI/CreateTransfer"
TxAPI_GetTransferStatus_FullMethodName = "/cs3.tx.v1beta1.TxAPI/GetTransferStatus"
TxAPI_CancelTransfer_FullMethodName = "/cs3.tx.v1beta1.TxAPI/CancelTransfer"
TxAPI_ListTransfers_FullMethodName = "/cs3.tx.v1beta1.TxAPI/ListTransfers"
TxAPI_RetryTransfer_FullMethodName = "/cs3.tx.v1beta1.TxAPI/RetryTransfer"
)
// TxAPIClient is the client API for TxAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type TxAPIClient interface {
// Requests creation of a transfer.
// Returns a CreateTransferResponse.
CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...grpc.CallOption) (*CreateTransferResponse, error)
// Requests a transfer status.
GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...grpc.CallOption) (*GetTransferStatusResponse, error)
// Requests to cancel a transfer.
CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...grpc.CallOption) (*CancelTransferResponse, error)
// Requests a list of transfers received by the authenticated principle.
// If a filter is specified, only transfers satisfying the filter MUST be returned.
ListTransfers(ctx context.Context, in *ListTransfersRequest, opts ...grpc.CallOption) (*ListTransfersResponse, error)
// Requests retrying a transfer.
RetryTransfer(ctx context.Context, in *RetryTransferRequest, opts ...grpc.CallOption) (*RetryTransferResponse, error)
}
type txAPIClient struct {
cc grpc.ClientConnInterface
}
func NewTxAPIClient(cc grpc.ClientConnInterface) TxAPIClient {
return &txAPIClient{cc}
}
func (c *txAPIClient) CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...grpc.CallOption) (*CreateTransferResponse, error) {
out := new(CreateTransferResponse)
err := c.cc.Invoke(ctx, TxAPI_CreateTransfer_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *txAPIClient) GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...grpc.CallOption) (*GetTransferStatusResponse, error) {
out := new(GetTransferStatusResponse)
err := c.cc.Invoke(ctx, TxAPI_GetTransferStatus_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *txAPIClient) CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...grpc.CallOption) (*CancelTransferResponse, error) {
out := new(CancelTransferResponse)
err := c.cc.Invoke(ctx, TxAPI_CancelTransfer_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *txAPIClient) ListTransfers(ctx context.Context, in *ListTransfersRequest, opts ...grpc.CallOption) (*ListTransfersResponse, error) {
out := new(ListTransfersResponse)
err := c.cc.Invoke(ctx, TxAPI_ListTransfers_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *txAPIClient) RetryTransfer(ctx context.Context, in *RetryTransferRequest, opts ...grpc.CallOption) (*RetryTransferResponse, error) {
out := new(RetryTransferResponse)
err := c.cc.Invoke(ctx, TxAPI_RetryTransfer_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// TxAPIServer is the server API for TxAPI service.
// All implementations should embed UnimplementedTxAPIServer
// for forward compatibility
type TxAPIServer interface {
// Requests creation of a transfer.
// Returns a CreateTransferResponse.
CreateTransfer(context.Context, *CreateTransferRequest) (*CreateTransferResponse, error)
// Requests a transfer status.
GetTransferStatus(context.Context, *GetTransferStatusRequest) (*GetTransferStatusResponse, error)
// Requests to cancel a transfer.
CancelTransfer(context.Context, *CancelTransferRequest) (*CancelTransferResponse, error)
// Requests a list of transfers received by the authenticated principle.
// If a filter is specified, only transfers satisfying the filter MUST be returned.
ListTransfers(context.Context, *ListTransfersRequest) (*ListTransfersResponse, error)
// Requests retrying a transfer.
RetryTransfer(context.Context, *RetryTransferRequest) (*RetryTransferResponse, error)
}
// UnimplementedTxAPIServer should be embedded to have forward compatible implementations.
type UnimplementedTxAPIServer struct {
}
func (UnimplementedTxAPIServer) CreateTransfer(context.Context, *CreateTransferRequest) (*CreateTransferResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateTransfer not implemented")
}
func (UnimplementedTxAPIServer) GetTransferStatus(context.Context, *GetTransferStatusRequest) (*GetTransferStatusResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTransferStatus not implemented")
}
func (UnimplementedTxAPIServer) CancelTransfer(context.Context, *CancelTransferRequest) (*CancelTransferResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelTransfer not implemented")
}
func (UnimplementedTxAPIServer) ListTransfers(context.Context, *ListTransfersRequest) (*ListTransfersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListTransfers not implemented")
}
func (UnimplementedTxAPIServer) RetryTransfer(context.Context, *RetryTransferRequest) (*RetryTransferResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RetryTransfer not implemented")
}
// UnsafeTxAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to TxAPIServer will
// result in compilation errors.
type UnsafeTxAPIServer interface {
mustEmbedUnimplementedTxAPIServer()
}
func RegisterTxAPIServer(s grpc.ServiceRegistrar, srv TxAPIServer) {
s.RegisterService(&TxAPI_ServiceDesc, srv)
}
func _TxAPI_CreateTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateTransferRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TxAPIServer).CreateTransfer(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: TxAPI_CreateTransfer_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TxAPIServer).CreateTransfer(ctx, req.(*CreateTransferRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TxAPI_GetTransferStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetTransferStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TxAPIServer).GetTransferStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: TxAPI_GetTransferStatus_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TxAPIServer).GetTransferStatus(ctx, req.(*GetTransferStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TxAPI_CancelTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CancelTransferRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TxAPIServer).CancelTransfer(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: TxAPI_CancelTransfer_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TxAPIServer).CancelTransfer(ctx, req.(*CancelTransferRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TxAPI_ListTransfers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListTransfersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TxAPIServer).ListTransfers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: TxAPI_ListTransfers_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TxAPIServer).ListTransfers(ctx, req.(*ListTransfersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TxAPI_RetryTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RetryTransferRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TxAPIServer).RetryTransfer(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: TxAPI_RetryTransfer_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TxAPIServer).RetryTransfer(ctx, req.(*RetryTransferRequest))
}
return interceptor(ctx, in, info, handler)
}
// TxAPI_ServiceDesc is the grpc.ServiceDesc for TxAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var TxAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cs3.tx.v1beta1.TxAPI",
HandlerType: (*TxAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateTransfer",
Handler: _TxAPI_CreateTransfer_Handler,
},
{
MethodName: "GetTransferStatus",
Handler: _TxAPI_GetTransferStatus_Handler,
},
{
MethodName: "CancelTransfer",
Handler: _TxAPI_CancelTransfer_Handler,
},
{
MethodName: "ListTransfers",
Handler: _TxAPI_ListTransfers_Handler,
},
{
MethodName: "RetryTransfer",
Handler: _TxAPI_RetryTransfer_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cs3/tx/v1beta1/tx_api.proto",
}
+274 -132
View File
@@ -1,24 +1,42 @@
// Copyright 2018-2019 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// In applying this license, CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: cs3/types/v1beta1/types.proto
package typesv1beta1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Opaque represents opaque information
// in a form on a map.
@@ -26,41 +44,49 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// use this message to include filesystem
// extended attributes.
type Opaque struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
Map map[string]*OpaqueEntry `protobuf:"bytes,1,rep,name=map,proto3" json:"map,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:"-"`
Map map[string]*OpaqueEntry `protobuf:"bytes,1,rep,name=map,proto3" json:"map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (m *Opaque) Reset() { *m = Opaque{} }
func (m *Opaque) String() string { return proto.CompactTextString(m) }
func (*Opaque) ProtoMessage() {}
func (x *Opaque) Reset() {
*x = Opaque{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_types_v1beta1_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Opaque) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Opaque) ProtoMessage() {}
func (x *Opaque) ProtoReflect() protoreflect.Message {
mi := &file_cs3_types_v1beta1_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Opaque.ProtoReflect.Descriptor instead.
func (*Opaque) Descriptor() ([]byte, []int) {
return fileDescriptor_96c094046ef70f69, []int{0}
return file_cs3_types_v1beta1_types_proto_rawDescGZIP(), []int{0}
}
func (m *Opaque) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Opaque.Unmarshal(m, b)
}
func (m *Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Opaque.Marshal(b, m, deterministic)
}
func (m *Opaque) XXX_Merge(src proto.Message) {
xxx_messageInfo_Opaque.Merge(m, src)
}
func (m *Opaque) XXX_Size() int {
return xxx_messageInfo_Opaque.Size(m)
}
func (m *Opaque) XXX_DiscardUnknown() {
xxx_messageInfo_Opaque.DiscardUnknown(m)
}
var xxx_messageInfo_Opaque proto.InternalMessageInfo
func (m *Opaque) GetMap() map[string]*OpaqueEntry {
if m != nil {
return m.Map
func (x *Opaque) GetMap() map[string]*OpaqueEntry {
if x != nil {
return x.Map
}
return nil
}
@@ -68,53 +94,61 @@ func (m *Opaque) GetMap() map[string]*OpaqueEntry {
// OpaqueEntry represents the encoded
// opaque value.
type OpaqueEntry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// REQUIRED.
// The decoder to use: json, xml, toml, ...
// TODO(labkode): make encoder a fixed set using a enum type?
Decoder string `protobuf:"bytes,1,opt,name=decoder,proto3" json:"decoder,omitempty"`
// REQUIRED.
// The encoded value.
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (m *OpaqueEntry) Reset() { *m = OpaqueEntry{} }
func (m *OpaqueEntry) String() string { return proto.CompactTextString(m) }
func (*OpaqueEntry) ProtoMessage() {}
func (x *OpaqueEntry) Reset() {
*x = OpaqueEntry{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_types_v1beta1_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OpaqueEntry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OpaqueEntry) ProtoMessage() {}
func (x *OpaqueEntry) ProtoReflect() protoreflect.Message {
mi := &file_cs3_types_v1beta1_types_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OpaqueEntry.ProtoReflect.Descriptor instead.
func (*OpaqueEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_96c094046ef70f69, []int{1}
return file_cs3_types_v1beta1_types_proto_rawDescGZIP(), []int{1}
}
func (m *OpaqueEntry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpaqueEntry.Unmarshal(m, b)
}
func (m *OpaqueEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpaqueEntry.Marshal(b, m, deterministic)
}
func (m *OpaqueEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpaqueEntry.Merge(m, src)
}
func (m *OpaqueEntry) XXX_Size() int {
return xxx_messageInfo_OpaqueEntry.Size(m)
}
func (m *OpaqueEntry) XXX_DiscardUnknown() {
xxx_messageInfo_OpaqueEntry.DiscardUnknown(m)
}
var xxx_messageInfo_OpaqueEntry proto.InternalMessageInfo
func (m *OpaqueEntry) GetDecoder() string {
if m != nil {
return m.Decoder
func (x *OpaqueEntry) GetDecoder() string {
if x != nil {
return x.Decoder
}
return ""
}
func (m *OpaqueEntry) GetValue() []byte {
if m != nil {
return m.Value
func (x *OpaqueEntry) GetValue() []byte {
if x != nil {
return x.Value
}
return nil
}
@@ -130,6 +164,10 @@ func (m *OpaqueEntry) GetValue() []byte {
// Restricting to this range ensures the conversion from and to [RFC
// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
type Timestamp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Represents seconds of UTC time since Unix epoch
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
// 9999-12-31T23:59:59Z inclusive.
@@ -139,78 +177,182 @@ type Timestamp struct {
// that count forward in time.
// Value MUST be from 0 to 999,999,999
// inclusive.
Nanos uint32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Nanos uint32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
}
func (m *Timestamp) Reset() { *m = Timestamp{} }
func (m *Timestamp) String() string { return proto.CompactTextString(m) }
func (*Timestamp) ProtoMessage() {}
func (x *Timestamp) Reset() {
*x = Timestamp{}
if protoimpl.UnsafeEnabled {
mi := &file_cs3_types_v1beta1_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Timestamp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Timestamp) ProtoMessage() {}
func (x *Timestamp) ProtoReflect() protoreflect.Message {
mi := &file_cs3_types_v1beta1_types_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.
func (*Timestamp) Descriptor() ([]byte, []int) {
return fileDescriptor_96c094046ef70f69, []int{2}
return file_cs3_types_v1beta1_types_proto_rawDescGZIP(), []int{2}
}
func (m *Timestamp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Timestamp.Unmarshal(m, b)
}
func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic)
}
func (m *Timestamp) XXX_Merge(src proto.Message) {
xxx_messageInfo_Timestamp.Merge(m, src)
}
func (m *Timestamp) XXX_Size() int {
return xxx_messageInfo_Timestamp.Size(m)
}
func (m *Timestamp) XXX_DiscardUnknown() {
xxx_messageInfo_Timestamp.DiscardUnknown(m)
}
var xxx_messageInfo_Timestamp proto.InternalMessageInfo
func (m *Timestamp) GetSeconds() uint64 {
if m != nil {
return m.Seconds
func (x *Timestamp) GetSeconds() uint64 {
if x != nil {
return x.Seconds
}
return 0
}
func (m *Timestamp) GetNanos() uint32 {
if m != nil {
return m.Nanos
func (x *Timestamp) GetNanos() uint32 {
if x != nil {
return x.Nanos
}
return 0
}
func init() {
proto.RegisterType((*Opaque)(nil), "cs3.types.v1beta1.Opaque")
proto.RegisterMapType((map[string]*OpaqueEntry)(nil), "cs3.types.v1beta1.Opaque.MapEntry")
proto.RegisterType((*OpaqueEntry)(nil), "cs3.types.v1beta1.OpaqueEntry")
proto.RegisterType((*Timestamp)(nil), "cs3.types.v1beta1.Timestamp")
var File_cs3_types_v1beta1_types_proto protoreflect.FileDescriptor
var file_cs3_types_v1beta1_types_proto_rawDesc = []byte{
0x0a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65,
0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x11, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
0x61, 0x31, 0x22, 0x96, 0x01, 0x0a, 0x06, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x34, 0x0a,
0x03, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x73, 0x33,
0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f,
0x70, 0x61, 0x71, 0x75, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03,
0x6d, 0x61, 0x70, 0x1a, 0x56, 0x0a, 0x08, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0b, 0x4f,
0x70, 0x61, 0x71, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65,
0x63, 0x6f, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x63,
0x6f, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3b, 0x0a, 0x09, 0x54, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0xc6, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e,
0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x73, 0x33, 0x6f,
0x72, 0x67, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x73, 0x33, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x73,
0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b,
0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43,
0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x73, 0x33, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56,
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x11, 0x43, 0x73, 0x33, 0x5c, 0x54, 0x79, 0x70,
0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x1d, 0x43, 0x73, 0x33,
0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x43, 0x73, 0x33,
0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() { proto.RegisterFile("cs3/types/v1beta1/types.proto", fileDescriptor_96c094046ef70f69) }
var (
file_cs3_types_v1beta1_types_proto_rawDescOnce sync.Once
file_cs3_types_v1beta1_types_proto_rawDescData = file_cs3_types_v1beta1_types_proto_rawDesc
)
var fileDescriptor_96c094046ef70f69 = []byte{
// 283 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4d, 0x2e, 0x36, 0xd6,
0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0x84, 0xf0, 0xf4,
0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x04, 0x93, 0x8b, 0x8d, 0xf5, 0x20, 0x02, 0x50, 0x69, 0xa5,
0x69, 0x8c, 0x5c, 0x6c, 0xfe, 0x05, 0x89, 0x85, 0xa5, 0xa9, 0x42, 0x26, 0x5c, 0xcc, 0xb9, 0x89,
0x05, 0x12, 0x8c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0x4a, 0x7a, 0x18, 0x6a, 0xf5, 0x20, 0xea, 0xf4,
0x7c, 0x13, 0x0b, 0x5c, 0xf3, 0x4a, 0x8a, 0x2a, 0x83, 0x40, 0xca, 0xa5, 0xc2, 0xb8, 0x38, 0x60,
0x02, 0x42, 0x02, 0x5c, 0xcc, 0xd9, 0xa9, 0x95, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x20,
0xa6, 0x90, 0x09, 0x17, 0x6b, 0x59, 0x62, 0x4e, 0x69, 0xaa, 0x04, 0x93, 0x02, 0xa3, 0x06, 0xb7,
0x91, 0x1c, 0x4e, 0x53, 0x21, 0x26, 0x42, 0x14, 0x5b, 0x31, 0x59, 0x30, 0x2a, 0xd9, 0x72, 0x71,
0x23, 0xc9, 0x08, 0x49, 0x70, 0xb1, 0xa7, 0xa4, 0x26, 0xe7, 0xa7, 0xa4, 0x16, 0x41, 0x8d, 0x87,
0x71, 0x85, 0x44, 0x90, 0xad, 0xe0, 0x81, 0x1a, 0xa1, 0x64, 0xcd, 0xc5, 0x19, 0x92, 0x99, 0x9b,
0x5a, 0x5c, 0x92, 0x98, 0x5b, 0x00, 0xd2, 0x5c, 0x9c, 0x9a, 0x9c, 0x9f, 0x97, 0x52, 0x0c, 0xd6,
0xcc, 0x12, 0x04, 0xe3, 0x82, 0x34, 0xe7, 0x25, 0xe6, 0xe5, 0x17, 0x83, 0x35, 0xf3, 0x06, 0x41,
0x38, 0x4e, 0x89, 0x5c, 0xa2, 0xc9, 0xf9, 0xb9, 0x98, 0x6e, 0x75, 0xe2, 0x0a, 0x01, 0x71, 0x03,
0x40, 0x81, 0x19, 0xc0, 0x18, 0xc5, 0x03, 0x96, 0x84, 0xca, 0x2d, 0x62, 0x62, 0x76, 0x0e, 0x89,
0x58, 0xc5, 0x24, 0xe8, 0x5c, 0x6c, 0xac, 0x07, 0x56, 0xa6, 0x17, 0x66, 0xe8, 0x04, 0x92, 0x39,
0x05, 0x16, 0x8b, 0x01, 0x8b, 0xc5, 0x40, 0xc5, 0x92, 0xd8, 0xc0, 0x31, 0x62, 0x0c, 0x08, 0x00,
0x00, 0xff, 0xff, 0xdb, 0x97, 0xa5, 0xae, 0xb2, 0x01, 0x00, 0x00,
func file_cs3_types_v1beta1_types_proto_rawDescGZIP() []byte {
file_cs3_types_v1beta1_types_proto_rawDescOnce.Do(func() {
file_cs3_types_v1beta1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_types_v1beta1_types_proto_rawDescData)
})
return file_cs3_types_v1beta1_types_proto_rawDescData
}
var file_cs3_types_v1beta1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_cs3_types_v1beta1_types_proto_goTypes = []interface{}{
(*Opaque)(nil), // 0: cs3.types.v1beta1.Opaque
(*OpaqueEntry)(nil), // 1: cs3.types.v1beta1.OpaqueEntry
(*Timestamp)(nil), // 2: cs3.types.v1beta1.Timestamp
nil, // 3: cs3.types.v1beta1.Opaque.MapEntry
}
var file_cs3_types_v1beta1_types_proto_depIdxs = []int32{
3, // 0: cs3.types.v1beta1.Opaque.map:type_name -> cs3.types.v1beta1.Opaque.MapEntry
1, // 1: cs3.types.v1beta1.Opaque.MapEntry.value:type_name -> cs3.types.v1beta1.OpaqueEntry
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_cs3_types_v1beta1_types_proto_init() }
func file_cs3_types_v1beta1_types_proto_init() {
if File_cs3_types_v1beta1_types_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cs3_types_v1beta1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Opaque); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_types_v1beta1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*OpaqueEntry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cs3_types_v1beta1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Timestamp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cs3_types_v1beta1_types_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cs3_types_v1beta1_types_proto_goTypes,
DependencyIndexes: file_cs3_types_v1beta1_types_proto_depIdxs,
MessageInfos: file_cs3_types_v1beta1_types_proto_msgTypes,
}.Build()
File_cs3_types_v1beta1_types_proto = out.File
file_cs3_types_v1beta1_types_proto_rawDesc = nil
file_cs3_types_v1beta1_types_proto_goTypes = nil
file_cs3_types_v1beta1_types_proto_depIdxs = nil
}
+4 -4
View File
@@ -142,7 +142,7 @@ func resolveLightweightScope(ctx context.Context, ref *provider.Reference, scope
}
for _, share := range shares.Shares {
shareKey := "lw:" + user.Id.OpaqueId + scopeDelimiter + storagespace.FormatResourceID(*share.Share.ResourceId)
shareKey := "lw:" + user.Id.OpaqueId + scopeDelimiter + storagespace.FormatResourceID(share.Share.ResourceId)
_ = scopeExpansionCache.SetWithExpire(shareKey, nil, scopeCacheExpiration*time.Second)
if ref.ResourceId != nil && utils.ResourceIDEqual(share.Share.ResourceId, ref.ResourceId) {
@@ -229,7 +229,7 @@ func checkRelativeReference(ctx context.Context, requested *provider.Reference,
}
}
key := storagespace.FormatResourceID(*sharedResourceID) + scopeDelimiter + getRefKey(requested)
key := storagespace.FormatResourceID(sharedResourceID) + scopeDelimiter + getRefKey(requested)
_ = scopeExpansionCache.SetWithExpire(key, nil, scopeCacheExpiration*time.Second)
return nil
}
@@ -246,7 +246,7 @@ func resolveUserShare(ctx context.Context, ref *provider.Reference, scope *authp
func checkCacheForNestedResource(ctx context.Context, ref *provider.Reference, resource *provider.ResourceId, client gateway.GatewayAPIClient, mgr token.Manager) error {
// Check if this ref is cached
key := storagespace.FormatResourceID(*resource) + scopeDelimiter + getRefKey(ref)
key := storagespace.FormatResourceID(resource) + scopeDelimiter + getRefKey(ref)
if _, err := scopeExpansionCache.Get(key); err == nil {
return nil
}
@@ -520,7 +520,7 @@ func getRefKey(ref *provider.Reference) string {
}
if ref.GetResourceId() != nil {
return storagespace.FormatResourceID(*ref.ResourceId)
return storagespace.FormatResourceID(ref.ResourceId)
}
// on malicious request both path and rid could be empty
@@ -36,6 +36,7 @@ import (
"github.com/cs3org/reva/v2/pkg/sharedconf"
"github.com/pkg/errors"
"google.golang.org/grpc/metadata"
"google.golang.org/protobuf/proto"
)
func (s *svc) Authenticate(ctx context.Context, req *gateway.AuthenticateRequest) (*gateway.AuthenticateResponse, error) {
@@ -92,12 +93,12 @@ func (s *svc) Authenticate(ctx context.Context, req *gateway.AuthenticateRequest
}, nil
}
u := *res.User
u := proto.Clone(res.User).(*userpb.User)
if sharedconf.SkipUserGroupsInToken() {
u.Groups = []string{}
}
token, err := s.tokenmgr.MintToken(ctx, &u, res.TokenScope)
token, err := s.tokenmgr.MintToken(ctx, u, res.TokenScope)
if err != nil {
err = errors.Wrap(err, "authsvc: error in MintToken")
res := &gateway.AuthenticateResponse{
@@ -213,7 +213,7 @@ func (s *svc) CreateStorageSpace(ctx context.Context, req *provider.CreateStorag
}
// just pick the first provider, we expect only one
c, err := s.getStorageProviderClient(ctx, res.Providers[0])
c, err := s.getSpacesProviderClient(ctx, res.Providers[0])
if err != nil {
return &provider.CreateStorageSpaceResponse{
Status: status.NewStatusFromErrType(ctx, "gateway could not get storage provider client", err),
@@ -310,7 +310,7 @@ func (s *svc) ListStorageSpaces(ctx context.Context, req *provider.ListStorageSp
func (s *svc) UpdateStorageSpace(ctx context.Context, req *provider.UpdateStorageSpaceRequest) (*provider.UpdateStorageSpaceResponse, error) {
// TODO: needs to be fixed
ref := &provider.Reference{ResourceId: req.StorageSpace.Root}
c, _, err := s.find(ctx, ref)
c, _, err := s.findSpacesProvider(ctx, ref)
if err != nil {
return &provider.UpdateStorageSpaceResponse{
Status: status.NewStatusFromErrType(ctx, fmt.Sprintf("gateway could not find reference %+v", ref), err),
@@ -347,7 +347,7 @@ func (s *svc) DeleteStorageSpace(ctx context.Context, req *provider.DeleteStorag
}
ref := &provider.Reference{ResourceId: &rid}
c, _, err := s.find(ctx, ref)
c, _, err := s.findSpacesProvider(ctx, ref)
if err != nil {
return &provider.DeleteStorageSpaceResponse{
Status: status.NewStatusFromErrType(ctx, fmt.Sprintf("gateway could not find reference %+v", ref), err),
@@ -1028,6 +1028,20 @@ func (s *svc) find(ctx context.Context, ref *provider.Reference) (provider.Provi
return client, p[0], err
}
// findSpacesProvider looks up the provider that is responsible for the given request
// It will return a client that the caller can use to make the call, as well as the ProviderInfo. It:
// - contains the provider path, which is the mount point of the provider
// - may contain a list of storage spaces with their id and space path
func (s *svc) findSpacesProvider(ctx context.Context, ref *provider.Reference) (provider.SpacesAPIClient, *registry.ProviderInfo, error) {
p, err := s.findSpaces(ctx, ref)
if err != nil {
return nil, nil, err
}
client, err := s.getSpacesProviderClient(ctx, p[0])
return client, p[0], err
}
func (s *svc) findUnique(ctx context.Context, ref *provider.Reference) (provider.ProviderAPIClient, *registry.ProviderInfo, error) {
p, err := s.findSingleSpace(ctx, ref)
if err != nil {
@@ -1082,6 +1096,18 @@ func (s *svc) findAndUnwrapUnique(ctx context.Context, ref *provider.Reference)
return c, p, relativeReference, nil
}
func (s *svc) getSpacesProviderClient(_ context.Context, p *registry.ProviderInfo) (provider.SpacesAPIClient, error) {
c, err := pool.GetSpacesProviderServiceClient(p.Address)
if err != nil {
return nil, err
}
return &cachedSpacesAPIClient{
c: c,
createPersonalSpaceCache: s.createPersonalSpaceCache,
}, nil
}
func (s *svc) getStorageProviderClient(_ context.Context, p *registry.ProviderInfo) (provider.ProviderAPIClient, error) {
c, err := pool.GetStorageProviderServiceClient(p.Address)
if err != nil {
@@ -77,6 +77,50 @@ func (c *cachedRegistryClient) GetHome(ctx context.Context, in *registry.GetHome
return c.c.GetHome(ctx, in, opts...)
}
/*
Cached Spaces Provider
*/
type cachedSpacesAPIClient struct {
c provider.SpacesAPIClient
createPersonalSpaceCache cache.CreatePersonalSpaceCache
}
// CreateStorageSpace creates a storage space
func (c *cachedSpacesAPIClient) CreateStorageSpace(ctx context.Context, in *provider.CreateStorageSpaceRequest, opts ...grpc.CallOption) (*provider.CreateStorageSpaceResponse, error) {
if in.Type == "personal" {
key := c.createPersonalSpaceCache.GetKey(ctxpkg.ContextMustGetUser(ctx).GetId())
if key != "" {
s := &provider.CreateStorageSpaceResponse{}
if err := c.createPersonalSpaceCache.PullFromCache(key, s); err == nil {
return s, nil
}
}
resp, err := c.c.CreateStorageSpace(ctx, in, opts...)
switch {
case err != nil:
return nil, err
case resp.Status.Code != rpc.Code_CODE_OK && resp.Status.Code != rpc.Code_CODE_ALREADY_EXISTS:
return resp, nil
case key == "":
return resp, nil
default:
return resp, c.createPersonalSpaceCache.PushToCache(key, resp)
}
}
return c.c.CreateStorageSpace(ctx, in, opts...)
}
func (c *cachedSpacesAPIClient) ListStorageSpaces(ctx context.Context, in *provider.ListStorageSpacesRequest, opts ...grpc.CallOption) (*provider.ListStorageSpacesResponse, error) {
return c.c.ListStorageSpaces(ctx, in, opts...)
}
func (c *cachedSpacesAPIClient) UpdateStorageSpace(ctx context.Context, in *provider.UpdateStorageSpaceRequest, opts ...grpc.CallOption) (*provider.UpdateStorageSpaceResponse, error) {
return c.c.UpdateStorageSpace(ctx, in, opts...)
}
func (c *cachedSpacesAPIClient) DeleteStorageSpace(ctx context.Context, in *provider.DeleteStorageSpaceRequest, opts ...grpc.CallOption) (*provider.DeleteStorageSpaceResponse, error) {
return c.c.DeleteStorageSpace(ctx, in, opts...)
}
/*
Cached Storage Provider
*/
@@ -108,31 +152,6 @@ func (c *cachedAPIClient) CreateHome(ctx context.Context, in *provider.CreateHom
}
}
// CreateStorageSpace creates a storage space
func (c *cachedAPIClient) CreateStorageSpace(ctx context.Context, in *provider.CreateStorageSpaceRequest, opts ...grpc.CallOption) (*provider.CreateStorageSpaceResponse, error) {
if in.Type == "personal" {
key := c.createPersonalSpaceCache.GetKey(ctxpkg.ContextMustGetUser(ctx).GetId())
if key != "" {
s := &provider.CreateStorageSpaceResponse{}
if err := c.createPersonalSpaceCache.PullFromCache(key, s); err == nil {
return s, nil
}
}
resp, err := c.c.CreateStorageSpace(ctx, in, opts...)
switch {
case err != nil:
return nil, err
case resp.Status.Code != rpc.Code_CODE_OK && resp.Status.Code != rpc.Code_CODE_ALREADY_EXISTS:
return resp, nil
case key == "":
return resp, nil
default:
return resp, c.createPersonalSpaceCache.PushToCache(key, resp)
}
}
return c.c.CreateStorageSpace(ctx, in, opts...)
}
// methods below here are not cached, they just call the client directly
// Stat returns the Resoure info for a given resource
@@ -226,15 +245,6 @@ func (c *cachedAPIClient) Unlock(ctx context.Context, in *provider.UnlockRequest
func (c *cachedAPIClient) GetHome(ctx context.Context, in *provider.GetHomeRequest, opts ...grpc.CallOption) (*provider.GetHomeResponse, error) {
return c.c.GetHome(ctx, in, opts...)
}
func (c *cachedAPIClient) ListStorageSpaces(ctx context.Context, in *provider.ListStorageSpacesRequest, opts ...grpc.CallOption) (*provider.ListStorageSpacesResponse, error) {
return c.c.ListStorageSpaces(ctx, in, opts...)
}
func (c *cachedAPIClient) UpdateStorageSpace(ctx context.Context, in *provider.UpdateStorageSpaceRequest, opts ...grpc.CallOption) (*provider.UpdateStorageSpaceResponse, error) {
return c.c.UpdateStorageSpace(ctx, in, opts...)
}
func (c *cachedAPIClient) DeleteStorageSpace(ctx context.Context, in *provider.DeleteStorageSpaceRequest, opts ...grpc.CallOption) (*provider.DeleteStorageSpaceResponse, error) {
return c.c.DeleteStorageSpace(ctx, in, opts...)
}
func (c *cachedAPIClient) TouchFile(ctx context.Context, in *provider.TouchFileRequest, opts ...grpc.CallOption) (*provider.TouchFileResponse, error) {
return c.c.TouchFile(ctx, in, opts...)
}
@@ -22,6 +22,7 @@ import (
"context"
"slices"
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
rpc "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
collaboration "github.com/cs3org/go-cs3apis/cs3/sharing/collaboration/v1beta1"
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
@@ -365,6 +366,10 @@ func (s *svc) UpdateReceivedShare(ctx context.Context, req *collaboration.Update
*/
}
func (s *svc) ListExistingReceivedShares(_ context.Context, _ *collaboration.ListReceivedSharesRequest) (*gateway.ListExistingReceivedSharesResponse, error) {
return nil, errtypes.NotSupported("Unimplemented")
}
func (s *svc) denyGrant(ctx context.Context, id *provider.ResourceId, g *provider.Grantee, opaque *typesv1beta1.Opaque) (*rpc.Status, error) {
ref := &provider.Reference{
ResourceId: id,
@@ -350,7 +350,7 @@ func (s *service) RemovePublicShare(ctx context.Context, req *link.RemovePublicS
Status: status.NewInternal(ctx, "error loading public share"),
}, err
}
if !publicshare.IsCreatedByUser(*ps, user) {
if !publicshare.IsCreatedByUser(ps, user) {
sRes, err := gatewayClient.Stat(ctx, &provider.StatRequest{Ref: &provider.Reference{ResourceId: ps.ResourceId}})
if err != nil {
log.Err(err).Interface("resource_id", ps.ResourceId).Msg("failed to stat shared resource")
@@ -480,7 +480,7 @@ func (s *service) UpdatePublicShare(ctx context.Context, req *link.UpdatePublicS
// users should always be able to downgrade links to internal links
// when they are the creator of the link
// all other users should have the WritePublicLink permission
if !isInternalLink && !publicshare.IsCreatedByUser(*ps, user) {
if !isInternalLink && !publicshare.IsCreatedByUser(ps, user) {
canWriteLink, err := utils.CheckPermission(ctx, permission.WritePublicLink, gatewayClient)
if err != nil {
return &link.UpdatePublicShareResponse{
@@ -502,7 +502,7 @@ func (s *service) UpdatePublicShare(ctx context.Context, req *link.UpdatePublicS
}, err
}
if !publicshare.IsCreatedByUser(*ps, user) {
if !publicshare.IsCreatedByUser(ps, user) {
if !sRes.GetInfo().GetPermissionSet().UpdateGrant {
return &link.UpdatePublicShareResponse{
Status: status.NewPermissionDenied(ctx, nil, "no permission to update public share"),
@@ -75,6 +75,7 @@ func (s *service) UnprotectedEndpoints() []string {
func (s *service) Register(ss *grpc.Server) {
provider.RegisterProviderAPIServer(ss, s)
provider.RegisterSpacesAPIServer(ss, s)
}
func parseConfig(m map[string]interface{}) (*config, error) {
@@ -453,7 +454,7 @@ func (s *service) ListStorageSpaces(ctx context.Context, req *provider.ListStora
// we know a grant for this resource
space := &provider.StorageSpace{
Id: &provider.StorageSpaceId{
OpaqueId: storagespace.FormatResourceID(*root),
OpaqueId: storagespace.FormatResourceID(root),
},
SpaceType: "grant",
Owner: &userv1beta1.User{Id: grantee},
@@ -485,7 +486,7 @@ func (s *service) ListStorageSpaces(ctx context.Context, req *provider.ListStora
}
space := &provider.StorageSpace{
Id: &provider.StorageSpaceId{
OpaqueId: storagespace.FormatResourceID(*root),
OpaqueId: storagespace.FormatResourceID(root),
},
SpaceType: "mountpoint",
Owner: &userv1beta1.User{Id: grantee}, // FIXME actually, the mount point belongs to no one?
@@ -77,6 +77,7 @@ func (s *service) UnprotectedEndpoints() []string {
func (s *service) Register(ss *grpc.Server) {
provider.RegisterProviderAPIServer(ss, s)
provider.RegisterSpacesAPIServer(ss, s)
}
// NewDefault returns a new instance of the SharesStorageProvider service with default dependencies
@@ -432,7 +433,7 @@ func (s *service) ListStorageSpaces(ctx context.Context, req *provider.ListStora
space := &provider.StorageSpace{
Opaque: opaque,
Id: &provider.StorageSpaceId{
OpaqueId: storagespace.FormatResourceID(*virtualRootID),
OpaqueId: storagespace.FormatResourceID(virtualRootID),
},
SpaceType: "virtual",
//Owner: &userv1beta1.User{Id: receivedShare.Share.Owner}, // FIXME actually, the mount point belongs to the recipient
@@ -454,7 +455,7 @@ func (s *service) ListStorageSpaces(ctx context.Context, req *provider.ListStora
// we know a grant for this resource
space := &provider.StorageSpace{
Id: &provider.StorageSpaceId{
OpaqueId: storagespace.FormatResourceID(*root),
OpaqueId: storagespace.FormatResourceID(root),
},
SpaceType: "grant",
Owner: &userv1beta1.User{Id: receivedShare.Share.Owner},
@@ -508,7 +509,7 @@ func (s *service) ListStorageSpaces(ctx context.Context, req *provider.ListStora
space := &provider.StorageSpace{
Opaque: opaque,
Id: &provider.StorageSpaceId{
OpaqueId: storagespace.FormatResourceID(*root),
OpaqueId: storagespace.FormatResourceID(root),
},
SpaceType: "mountpoint",
Owner: &userv1beta1.User{Id: receivedShare.Share.Owner}, // FIXME actually, the mount point belongs to the recipient
@@ -818,7 +819,7 @@ func (s *service) ListContainer(ctx context.Context, req *provider.ListContainer
if receivedShare.GetState() != collaboration.ShareState_SHARE_STATE_ACCEPTED {
continue
}
rIDStr := storagespace.FormatResourceID(*receivedShare.GetShare().GetResourceId())
rIDStr := storagespace.FormatResourceID(receivedShare.GetShare().GetResourceId())
if oldest, ok := oldestReceivedSharesByResourceID[rIDStr]; ok {
// replace if older than current oldest
if utils.TSToTime(receivedShare.GetShare().GetCtime()).Before(utils.TSToTime(oldest.GetShare().GetCtime())) {
@@ -116,6 +116,7 @@ func (s *Service) UnprotectedEndpoints() []string { return []string{} }
func (s *Service) Register(ss *grpc.Server) {
provider.RegisterProviderAPIServer(ss, s)
provider.RegisterSpacesAPIServer(ss, s)
}
func parseXSTypes(xsTypes map[string]uint32) ([]*provider.ResourceChecksumPriority, error) {
@@ -298,7 +299,7 @@ func (s *Service) InitiateFileDownload(ctx context.Context, req *provider.Initia
if utils.IsRelativeReference(req.Ref) {
s.addMissingStorageProviderID(req.GetRef().GetResourceId(), nil)
protocol.Protocol = "spaces"
u.Path = path.Join(u.Path, "spaces", storagespace.FormatResourceID(*req.Ref.ResourceId), req.Ref.Path)
u.Path = path.Join(u.Path, "spaces", storagespace.FormatResourceID(req.Ref.ResourceId), req.Ref.Path)
} else {
// Currently, we only support the simple protocol for GET requests
// Once we have multiple protocols, this would be moved to the fs layer
@@ -612,7 +613,7 @@ func (s *Service) DeleteStorageSpace(ctx context.Context, req *provider.DeleteSt
// FIXME: why is this string parsing necessary?
idraw, _ := storagespace.ParseID(req.Id.GetOpaqueId())
idraw.OpaqueId = idraw.GetSpaceId()
id := &provider.StorageSpaceId{OpaqueId: storagespace.FormatResourceID(idraw)}
id := &provider.StorageSpaceId{OpaqueId: storagespace.FormatResourceID(&idraw)}
spaces, err := s.Storage.ListStorageSpaces(ctx, []*provider.ListStorageSpacesRequest_Filter{{Type: provider.ListStorageSpacesRequest_Filter_TYPE_ID, Term: &provider.ListStorageSpacesRequest_Filter_Id{Id: id}}}, true)
if err != nil {
@@ -48,6 +48,7 @@ import (
"github.com/mitchellh/mapstructure"
"github.com/pkg/errors"
"github.com/rs/zerolog"
"google.golang.org/protobuf/proto"
)
func init() {
@@ -304,7 +305,7 @@ func (s *svc) handleNew(w http.ResponseWriter, r *http.Request) {
writeError(w, r, appErrorInvalidParameter, "the given file id does not point to a file", nil)
return
}
fileid = storagespace.FormatResourceID(*statRes.Info.Id)
fileid = storagespace.FormatResourceID(statRes.Info.Id)
}
js, err := json.Marshal(
@@ -574,7 +575,8 @@ func buildApps(mimeTypes []*appregistry.MimeTypeInfo, userAgent, secureViewAppAd
for _, m := range mimeTypes {
apps := []*ProviderInfo{}
for _, p := range m.AppProviders {
ep := &ProviderInfo{ProviderInfo: *p}
ep := &ProviderInfo{}
proto.Merge(&ep.ProviderInfo, p)
if p.Address == secureViewAppAddr {
ep.SecureView = true
}
@@ -586,7 +588,8 @@ func buildApps(mimeTypes []*appregistry.MimeTypeInfo, userAgent, secureViewAppAd
}
}
if len(apps) > 0 {
mt := &MimeTypeInfo{MimeTypeInfo: *m}
mt := &MimeTypeInfo{}
proto.Merge(&mt.MimeTypeInfo, m)
mt.AppProviders = apps
res = append(res, mt)
}
@@ -214,7 +214,7 @@ func (s *svc) executePathCopy(ctx context.Context, selector pool.Selectable[gate
return fmt.Errorf("status code %d", r.GetStatus().GetCode())
}
fileid = storagespace.FormatResourceID(*r.GetInfo().GetId())
fileid = storagespace.FormatResourceID(r.GetInfo().GetId())
} else {
// copy file
@@ -438,7 +438,7 @@ func (s *svc) executeSpacesCopy(ctx context.Context, w http.ResponseWriter, sele
return fmt.Errorf("stat: status code %d", r.GetStatus().GetCode())
}
fileid = storagespace.FormatResourceID(*r.GetInfo().GetId())
fileid = storagespace.FormatResourceID(r.GetInfo().GetId())
} else {
// copy file
// 1. get download url
@@ -287,7 +287,7 @@ func (h *DavHandler) Handler(s *svc) http.Handler {
// If the link is internal then 307 redirect
if psRes.Status.Code == rpc.Code_CODE_OK && grants.PermissionsEqual(psRes.Share.Permissions.GetPermissions(), &provider.ResourcePermissions{}) {
if psRes.GetShare().GetResourceId() != nil {
rUrl := path.Join("/dav/spaces", storagespace.FormatResourceID(*psRes.GetShare().GetResourceId()))
rUrl := path.Join("/dav/spaces", storagespace.FormatResourceID(psRes.GetShare().GetResourceId()))
http.Redirect(w, r, rUrl, http.StatusTemporaryRedirect)
return
}
@@ -61,7 +61,10 @@ func (s *svc) handleDelete(ctx context.Context, w http.ResponseWriter, r *http.R
ctx, span := appctx.GetTracerProvider(r.Context()).Tracer(tracerName).Start(ctx, "delete")
defer span.End()
req := &provider.DeleteRequest{Ref: ref}
req := &provider.DeleteRequest{
Ref: ref,
LockId: requestLockToken(r),
}
// FIXME the lock token is part of the application level protocol, it should be part of the DeleteRequest message not the opaque
ih, ok := parseIfHeader(r.Header.Get(net.HeaderIf))
@@ -85,7 +85,7 @@ func (s *svc) handleHead(ctx context.Context, w http.ResponseWriter, r *http.Req
info := res.Info
w.Header().Set(net.HeaderContentType, info.MimeType)
w.Header().Set(net.HeaderETag, info.Etag)
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(*info.Id))
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(info.Id))
w.Header().Set(net.HeaderOCETag, info.Etag)
if info.Checksum != nil {
w.Header().Set(net.HeaderOCChecksum, fmt.Sprintf("%s:%s", strings.ToUpper(string(storageprovider.GRPC2PKGXS(info.Checksum.Type))), info.Checksum.Sum))
@@ -647,3 +647,7 @@ func (s *svc) unlockReference(ctx context.Context, _ http.ResponseWriter, r *htt
}
return http.StatusInternalServerError, err
}
func requestLockToken(r *http.Request) string {
return strings.TrimSuffix(strings.TrimPrefix(r.Header.Get(net.HeaderLockToken), "<"), ">")
}
@@ -104,7 +104,7 @@ func (h *MetaHandler) handlePathForUser(w http.ResponseWriter, r *http.Request,
ctx, span := appctx.GetTracerProvider(r.Context()).Tracer(tracerName).Start(r.Context(), "meta_propfind")
defer span.End()
id := storagespace.FormatResourceID(*rid)
id := storagespace.FormatResourceID(rid)
sublog := appctx.GetLogger(ctx).With().Str("path", r.URL.Path).Str("resourceid", id).Logger()
sublog.Info().Msg("calling get path for user")
@@ -294,7 +294,11 @@ func (s *svc) handleMove(ctx context.Context, w http.ResponseWriter, r *http.Req
dst.Path = utils.MakeRelativePath(dstStatRes.GetInfo().GetName())
dst.ResourceId = dstStatRes.GetInfo().GetParentId()
}
mReq := &provider.MoveRequest{Source: src, Destination: dst}
mReq := &provider.MoveRequest{
Source: src,
Destination: dst,
LockId: requestLockToken(r),
}
mRes, err := client.Move(ctx, mReq)
if err != nil {
log.Error().Err(err).Msg("error sending move grpc request")
@@ -341,7 +345,7 @@ func (s *svc) handleMove(ctx context.Context, w http.ResponseWriter, r *http.Req
info := dstStatRes.Info
w.Header().Set(net.HeaderContentType, info.MimeType)
w.Header().Set(net.HeaderETag, info.Etag)
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(*info.Id))
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(info.Id))
w.Header().Set(net.HeaderOCETag, info.Etag)
w.WriteHeader(successCode)
}
@@ -1177,7 +1177,7 @@ func mdToPropResponse(ctx context.Context, pf *XML, md *provider.ResourceInfo, p
// return all known properties
if id != nil {
sid := storagespace.FormatResourceID(*id)
sid := storagespace.FormatResourceID(id)
appendToOK(
prop.Escaped("oc:id", sid),
prop.Escaped("oc:fileid", sid),
@@ -1186,7 +1186,7 @@ func mdToPropResponse(ctx context.Context, pf *XML, md *provider.ResourceInfo, p
}
if md.ParentId != nil {
appendToOK(prop.Escaped("oc:file-parent", storagespace.FormatResourceID(*md.ParentId)))
appendToOK(prop.Escaped("oc:file-parent", storagespace.FormatResourceID(md.ParentId)))
} else {
appendToNotFound(prop.NotFound("oc:file-parent"))
}
@@ -1305,19 +1305,19 @@ func mdToPropResponse(ctx context.Context, pf *XML, md *provider.ResourceInfo, p
// I tested the desktop client and phoenix to annotate which properties are requestted, see below cases
case "fileid": // phoenix only
if id != nil {
appendToOK(prop.Escaped("oc:fileid", storagespace.FormatResourceID(*id)))
appendToOK(prop.Escaped("oc:fileid", storagespace.FormatResourceID(id)))
} else {
appendToNotFound(prop.NotFound("oc:fileid"))
}
case "id": // desktop client only
if id != nil {
appendToOK(prop.Escaped("oc:id", storagespace.FormatResourceID(*id)))
appendToOK(prop.Escaped("oc:id", storagespace.FormatResourceID(id)))
} else {
appendToNotFound(prop.NotFound("oc:id"))
}
case "file-parent":
if md.ParentId != nil {
appendToOK(prop.Escaped("oc:file-parent", storagespace.FormatResourceID(*md.ParentId)))
appendToOK(prop.Escaped("oc:file-parent", storagespace.FormatResourceID(md.ParentId)))
} else {
appendToNotFound(prop.NotFound("oc:file-parent"))
}
@@ -1521,7 +1521,7 @@ func mdToPropResponse(ctx context.Context, pf *XML, md *provider.ResourceInfo, p
case "privatelink":
privateURL, err := url.Parse(publicURL)
if err == nil && id != nil {
privateURL.Path = path.Join(privateURL.Path, "f", storagespace.FormatResourceID(*id))
privateURL.Path = path.Join(privateURL.Path, "f", storagespace.FormatResourceID(id))
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:privatelink", privateURL.String()))
} else {
propstatNotFound.Prop = append(propstatNotFound.Prop, prop.NotFound("oc:privatelink"))
@@ -230,7 +230,7 @@ func (s *svc) handlePut(ctx context.Context, w http.ResponseWriter, r *http.Requ
w.Header().Set(net.HeaderETag, sRes.Info.Etag)
w.Header().Set(net.HeaderOCETag, sRes.Info.Etag)
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(*sRes.Info.Id))
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(sRes.Info.Id))
w.Header().Set(net.HeaderLastModified, net.RFC1123Z(sRes.Info.Mtime))
w.WriteHeader(http.StatusCreated)
@@ -276,6 +276,7 @@ func (s *svc) handlePut(ctx context.Context, w http.ResponseWriter, r *http.Requ
uReq := &provider.InitiateFileUploadRequest{
Ref: ref,
Opaque: opaque,
LockId: requestLockToken(r),
}
if ifMatch := r.Header.Get(net.HeaderIfMatch); ifMatch != "" {
uReq.Options = &provider.InitiateFileUploadRequest_IfMatch{IfMatch: ifMatch}
@@ -22,6 +22,7 @@ import (
"net/http"
"path"
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
"github.com/cs3org/reva/v2/internal/http/services/owncloud/ocdav/config"
"github.com/cs3org/reva/v2/internal/http/services/owncloud/ocdav/errors"
"github.com/cs3org/reva/v2/internal/http/services/owncloud/ocdav/net"
@@ -30,6 +31,7 @@ import (
"github.com/cs3org/reva/v2/pkg/rhttp/router"
"github.com/cs3org/reva/v2/pkg/storagespace"
"github.com/cs3org/reva/v2/pkg/utils"
"google.golang.org/protobuf/proto"
)
// SpacesHandler handles trashbin requests
@@ -167,10 +169,10 @@ func (h *SpacesHandler) handleSpacesTrashbin(w http.ResponseWriter, r *http.Requ
}
log.Debug().Str("key", key).Str("path", r.URL.Path).Str("dst", dst).Msg("spaces restore")
dstRef := ref
dstRef := proto.Clone(&ref).(*provider.Reference)
dstRef.Path = utils.MakeRelativePath(dst)
trashbinHandler.restore(w, r, s, &ref, &dstRef, key, r.URL.Path)
trashbinHandler.restore(w, r, s, &ref, dstRef, key, r.URL.Path)
case http.MethodDelete:
trashbinHandler.delete(w, r, s, &ref, key, r.URL.Path)
default:
@@ -601,7 +601,7 @@ func (h *TrashbinHandler) restore(w http.ResponseWriter, r *http.Request, s *svc
info := dstStatRes.Info
w.Header().Set(net.HeaderContentType, info.MimeType)
w.Header().Set(net.HeaderETag, info.Etag)
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(*info.Id))
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(info.Id))
w.Header().Set(net.HeaderOCETag, info.Etag)
w.WriteHeader(successCode)
@@ -377,7 +377,7 @@ func (s *svc) handleTusPost(ctx context.Context, w http.ResponseWriter, r *http.
)
w.Header().Set(net.HeaderContentType, info.MimeType)
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(*info.Id))
w.Header().Set(net.HeaderOCFileID, storagespace.FormatResourceID(info.Id))
w.Header().Set(net.HeaderOCETag, info.Etag)
w.Header().Set(net.HeaderETag, info.Etag)
w.Header().Set(net.HeaderOCPermissions, permissions)
@@ -58,7 +58,7 @@ func (h *VersionsHandler) Handler(s *svc, rid *provider.ResourceId) http.Handler
}
// baseURI is encoded as part of the response payload in href field
baseURI := path.Join(ctx.Value(net.CtxKeyBaseURI).(string), storagespace.FormatResourceID(*rid))
baseURI := path.Join(ctx.Value(net.CtxKeyBaseURI).(string), storagespace.FormatResourceID(rid))
ctx = context.WithValue(ctx, net.CtxKeyBaseURI, baseURI)
r = r.WithContext(ctx)
@@ -81,7 +81,7 @@ func handleGetToken(ctx context.Context, tkn string, pw string, c gateway.Gatewa
}
if protected && !t.PasswordProtected {
space, status, err := spacelookup.LookUpStorageSpaceByID(ctx, c, storagespace.FormatResourceID(provider.ResourceId{StorageId: t.StorageID, SpaceId: t.SpaceID, OpaqueId: t.OpaqueID}))
space, status, err := spacelookup.LookUpStorageSpaceByID(ctx, c, storagespace.FormatResourceID(&provider.ResourceId{StorageId: t.StorageID, SpaceId: t.SpaceID, OpaqueId: t.OpaqueID}))
// add info only if user is able to stat
if err == nil && status.Code == rpc.Code_CODE_OK {
t.SpacePath = utils.ReadPlainFromOpaque(space.Opaque, "path")
@@ -111,7 +111,7 @@ func buildTokenInfo(owner *user.User, tkn string, token string, passProtected bo
return t, fmt.Errorf("can't stat resource. %+v %s", sRes, err)
}
t.ID = storagespace.FormatResourceID(*sRes.Share.GetResourceId())
t.ID = storagespace.FormatResourceID(sRes.Share.GetResourceId())
t.StorageID = sRes.Share.ResourceId.GetStorageId()
t.SpaceID = sRes.Share.ResourceId.GetSpaceId()
t.OpaqueID = sRes.Share.ResourceId.GetOpaqueId()
@@ -323,7 +323,7 @@ func (h *Handler) updatePublicShare(w http.ResponseWriter, r *http.Request, shar
return
}
createdByUser := publicshare.IsCreatedByUser(*share, user)
createdByUser := publicshare.IsCreatedByUser(share, user)
// NOTE: you are allowed to update a link TO a public link without the `PublicLink.Write` permission if you created it yourself
if (permKey != nil && *permKey != 0) || !createdByUser {
@@ -540,7 +540,7 @@ func (h *Handler) removePublicShare(w http.ResponseWriter, r *http.Request, shar
}
u := ctxpkg.ContextMustGetUser(ctx)
if !publicshare.IsCreatedByUser(*share, u) {
if !publicshare.IsCreatedByUser(share, u) {
sRes, err := c.Stat(r.Context(), &provider.StatRequest{Ref: &provider.Reference{ResourceId: share.ResourceId}})
if err != nil {
log.Err(err).Interface("resource_id", share.ResourceId).Msg("failed to stat shared resource")
@@ -179,13 +179,14 @@ func (h *Handler) startCacheWarmup(c sharecache.Warmup) {
}
}
func (h *Handler) extractReference(r *http.Request) (provider.Reference, error) {
var ref provider.Reference
func (h *Handler) extractReference(r *http.Request) (*provider.Reference, error) {
ref := &provider.Reference{}
// NOTE: space_ref is deprecated and will be removed in ~2 weeks (1.6.22)
sr := r.FormValue("space_ref")
if sr != "" {
return storagespace.ParseReference(sr)
ref, err := storagespace.ParseReference(sr)
return &ref, err
}
p, id := r.FormValue("path"), r.FormValue("space")
@@ -243,7 +244,7 @@ func (h *Handler) CreateShare(w http.ResponseWriter, r *http.Request) {
return
}
statReq := provider.StatRequest{Ref: &ref, FieldMask: &fieldmaskpb.FieldMask{Paths: []string{"space"}}}
statReq := provider.StatRequest{Ref: ref, FieldMask: &fieldmaskpb.FieldMask{Paths: []string{"space"}}}
statRes, err := client.Stat(ctx, &statReq)
if err != nil {
sublog.Debug().Err(err).Msg("CreateShare: error on stat call")
@@ -976,7 +977,7 @@ func (h *Handler) listSharesWithMe(w http.ResponseWriter, r *http.Request) {
}
var status *rpc.Status
pinfo, status, err = h.getResourceInfoByReference(ctx, client, &ref)
pinfo, status, err = h.getResourceInfoByReference(ctx, client, ref)
if err != nil {
response.WriteOCSError(w, r, response.MetaServerError.StatusCode, "error sending a grpc stat request", err)
return
@@ -1157,7 +1158,7 @@ func (h *Handler) listSharesWithOthers(w http.ResponseWriter, r *http.Request) {
response.WriteOCSError(w, r, response.MetaBadRequest.StatusCode, errParsingSpaceReference.Error(), errParsingSpaceReference)
return
}
filters, linkFilters, e = h.addFilters(w, r, &ref)
filters, linkFilters, e = h.addFilters(w, r, ref)
if e != nil {
// result has been written as part of addFilters
return
@@ -1275,7 +1276,7 @@ func (h *Handler) addFileInfo(ctx context.Context, s *conversions.ShareData, inf
s.MimeType = parsedMt
// TODO STime: &types.Timestamp{Seconds: info.Mtime.Seconds, Nanos: info.Mtime.Nanos},
// TODO Storage: int
s.ItemSource = storagespace.FormatResourceID(*info.Id)
s.ItemSource = storagespace.FormatResourceID(info.Id)
s.FileSource = s.ItemSource
s.Path = path.Join("/", info.Path)
switch {
@@ -1317,7 +1318,7 @@ func (h *Handler) addFileInfo(ctx context.Context, s *conversions.ShareData, inf
s.StorageID = storageIDPrefix + s.FileTarget
if info.ParentId != nil {
s.FileParent = storagespace.FormatResourceID(*info.ParentId)
s.FileParent = storagespace.FormatResourceID(info.ParentId)
}
// item type
s.ItemType = conversions.ResourceType(info.GetType()).String()
@@ -1333,7 +1334,7 @@ func (h *Handler) addFileInfo(ctx context.Context, s *conversions.ShareData, inf
}
if info.GetSpace().GetRoot() != nil {
s.SpaceID = storagespace.FormatResourceID(*info.GetSpace().GetRoot())
s.SpaceID = storagespace.FormatResourceID(info.GetSpace().GetRoot())
}
s.SpaceAlias = utils.ReadPlainFromOpaque(info.GetSpace().GetOpaque(), "spaceAlias")
}
@@ -150,14 +150,14 @@ func (h *Handler) addSpaceMember(w http.ResponseWriter, r *http.Request, info *p
return
}
if !isSpaceManagerRemaining(lgRes.Grants, grantee) {
if !isSpaceManagerRemaining(lgRes.Grants, &grantee) {
response.WriteOCSError(w, r, http.StatusForbidden, "the space must have at least one manager", nil)
return
}
// we have to send the update request to the gateway to give it a chance to invalidate its cache
// TODO the gateway no longer should cache stuff because invalidation is to expensive. The decomposedfs already has a better cache.
if granteeExists(lgRes.Grants, grantee) {
if granteeExists(lgRes.Grants, &grantee) {
if permissions != nil {
fieldmask = append(fieldmask, "permissions")
}
@@ -257,7 +257,7 @@ func (h *Handler) removeSpaceMember(w http.ResponseWriter, r *http.Request, spac
return
}
if len(lgRes.Grants) == 1 || !isSpaceManagerRemaining(lgRes.Grants, grantee) {
if len(lgRes.Grants) == 1 || !isSpaceManagerRemaining(lgRes.Grants, &grantee) {
response.WriteOCSError(w, r, http.StatusForbidden, "can't remove the last manager", nil)
return
}
@@ -349,28 +349,28 @@ func (h *Handler) findProvider(ctx context.Context, ref *provider.Reference) (*r
return res.Providers[0], nil
}
func isSpaceManagerRemaining(grants []*provider.Grant, grantee provider.Grantee) bool {
func isSpaceManagerRemaining(grants []*provider.Grant, grantee *provider.Grantee) bool {
for _, g := range grants {
// RemoveGrant is currently the way to check for the manager role
// If it is not set than the current grant is not for a manager and
// we can just continue with the next one.
if g.Permissions.RemoveGrant && !isEqualGrantee(*g.Grantee, grantee) {
if g.Permissions.RemoveGrant && !isEqualGrantee(g.Grantee, grantee) {
return true
}
}
return false
}
func granteeExists(grants []*provider.Grant, grantee provider.Grantee) bool {
func granteeExists(grants []*provider.Grant, grantee *provider.Grantee) bool {
for _, g := range grants {
if isEqualGrantee(*g.Grantee, grantee) {
if isEqualGrantee(g.Grantee, grantee) {
return true
}
}
return false
}
func isEqualGrantee(a, b provider.Grantee) bool {
func isEqualGrantee(a, b *provider.Grantee) bool {
// Ideally we would want to use utils.GranteeEqual()
// but the grants stored in the decomposedfs aren't complete (missing usertype and idp)
// because of that the check would fail so we can only check the ... for now.
+1 -1
View File
@@ -40,7 +40,7 @@ type demoProvider struct {
}
func (p *demoProvider) GetAppURL(ctx context.Context, resource *provider.ResourceInfo, viewMode appprovider.ViewMode, token, language string) (*appprovider.OpenInAppURL, error) {
url := fmt.Sprintf("<iframe src=%s/open/%s?view-mode=%s&access-token=%s />", p.iframeUIProvider, storagespace.FormatResourceID(*resource.Id), viewMode.String(), token)
url := fmt.Sprintf("<iframe src=%s/open/%s?view-mode=%s&access-token=%s />", p.iframeUIProvider, storagespace.FormatResourceID(resource.Id), viewMode.String(), token)
return &appprovider.OpenInAppURL{
AppUrl: url,
Method: "GET",
+3 -3
View File
@@ -190,13 +190,13 @@ func (m *manager) getProvidersFromMicroRegistry(ctx context.Context) ([]*registr
for _, node := range services[0].Nodes {
p := m.providerFromMetadata(node.Metadata)
p.Address = node.Address
providers = append(providers, &p)
providers = append(providers, p)
}
return providers, nil
}
func (m *manager) providerFromMetadata(metadata map[string]string) registrypb.ProviderInfo {
p := registrypb.ProviderInfo{
func (m *manager) providerFromMetadata(metadata map[string]string) *registrypb.ProviderInfo {
p := &registrypb.ProviderInfo{
MimeTypes: splitMimeTypes(metadata[m.namespace+".app-provider.mime_type"]),
// Address: node.Address,
Name: metadata[m.namespace+".app-provider.name"],
+3 -2
View File
@@ -38,6 +38,7 @@ import (
"github.com/pkg/errors"
"github.com/sethvargo/go-password/password"
"golang.org/x/crypto/bcrypt"
"google.golang.org/protobuf/proto"
)
func init() {
@@ -165,9 +166,9 @@ func (mgr *jsonManager) GenerateAppPassword(ctx context.Context, scope map[strin
return nil, errors.Wrap(err, "error saving new token")
}
clonedAppPass := *appPass
clonedAppPass := proto.Clone(appPass).(*apppb.AppPassword)
clonedAppPass.Password = token
return &clonedAppPass, nil
return clonedAppPass, nil
}
func (mgr *jsonManager) ListAppPasswords(ctx context.Context) ([]*apppb.AppPassword, error) {
+3 -3
View File
@@ -180,8 +180,8 @@ func (am *Manager) Authenticate(ctx context.Context, clientID, clientSecret stri
}
type resultsObj struct {
User user.User `json:"user"`
Scopes map[string]authpb.Scope `json:"scopes"`
User user.User `json:"user"`
Scopes map[string]*authpb.Scope `json:"scopes"`
}
result := &resultsObj{}
err = json.Unmarshal(body, &result)
@@ -191,7 +191,7 @@ func (am *Manager) Authenticate(ctx context.Context, clientID, clientSecret stri
var pointersMap = make(map[string]*authpb.Scope)
for k := range result.Scopes {
scope := result.Scopes[k]
pointersMap[k] = &scope
pointersMap[k] = scope
}
return &result.User, pointersMap, nil
}
+10 -10
View File
@@ -93,25 +93,25 @@ func ocmShareScope(_ context.Context, scope *authpb.Scope, resource interface{},
// editor role
case *provider.CreateContainerRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
case *provider.TouchFileRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
case *provider.DeleteRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
case *provider.MoveRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetSource(), ocmNamespace) && checkStorageRefForOCMShare(&share, v.GetDestination(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetSource(), ocmNamespace) && checkStorageRefForOCMShare(&share, v.GetDestination(), ocmNamespace), nil
case *provider.InitiateFileUploadRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
case *provider.SetArbitraryMetadataRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
case *provider.UnsetArbitraryMetadataRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
case *provider.SetLockRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
case *provider.RefreshLockRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
case *provider.UnlockRequest:
return hasRoleEditor(*scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
return hasRoleEditor(scope) && checkStorageRefForOCMShare(&share, v.GetRef(), ocmNamespace), nil
// App provider requests
case *appregistry.GetDefaultAppProviderForMimeTypeRequest:
+7 -7
View File
@@ -106,19 +106,19 @@ func publicshareScope(ctx context.Context, scope *authpb.Scope, resource interfa
// Editor role
// need to return appropriate status codes in the ocs/ocdav layers.
case *provider.CreateContainerRequest:
return hasRoleEditor(*scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
return hasRoleEditor(scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
case *provider.TouchFileRequest:
return hasRoleEditor(*scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
return hasRoleEditor(scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
case *provider.DeleteRequest:
return hasRoleEditor(*scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
return hasRoleEditor(scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
case *provider.MoveRequest:
return hasRoleEditor(*scope) && checkStorageRef(ctx, &share, v.GetSource()) && checkStorageRef(ctx, &share, v.GetDestination()), nil
return hasRoleEditor(scope) && checkStorageRef(ctx, &share, v.GetSource()) && checkStorageRef(ctx, &share, v.GetDestination()), nil
case *provider.InitiateFileUploadRequest:
return hasRoleEditor(*scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
return hasRoleEditor(scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
case *provider.SetArbitraryMetadataRequest:
return hasRoleEditor(*scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
return hasRoleEditor(scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
case *provider.UnsetArbitraryMetadataRequest:
return hasRoleEditor(*scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
return hasRoleEditor(scope) && checkStorageRef(ctx, &share, v.GetRef()), nil
// App provider requests
case *appregistry.GetDefaultAppProviderForMimeTypeRequest:
+7 -7
View File
@@ -83,19 +83,19 @@ func resourceinfoScope(_ context.Context, scope *authpb.Scope, resource interfac
// Editor role
// need to return appropriate status codes in the ocs/ocdav layers.
case *provider.CreateContainerRequest:
return hasRoleEditor(*scope) && checkResourceInfo(&r, v.GetRef()), nil
return hasRoleEditor(scope) && checkResourceInfo(&r, v.GetRef()), nil
case *provider.TouchFileRequest:
return hasRoleEditor(*scope) && checkResourceInfo(&r, v.GetRef()), nil
return hasRoleEditor(scope) && checkResourceInfo(&r, v.GetRef()), nil
case *provider.DeleteRequest:
return hasRoleEditor(*scope) && checkResourceInfo(&r, v.GetRef()), nil
return hasRoleEditor(scope) && checkResourceInfo(&r, v.GetRef()), nil
case *provider.MoveRequest:
return hasRoleEditor(*scope) && checkResourceInfo(&r, v.GetSource()) && checkResourceInfo(&r, v.GetDestination()), nil
return hasRoleEditor(scope) && checkResourceInfo(&r, v.GetSource()) && checkResourceInfo(&r, v.GetDestination()), nil
case *provider.InitiateFileUploadRequest:
return hasRoleEditor(*scope) && checkResourceInfo(&r, v.GetRef()), nil
return hasRoleEditor(scope) && checkResourceInfo(&r, v.GetRef()), nil
case *provider.SetArbitraryMetadataRequest:
return hasRoleEditor(*scope) && checkResourceInfo(&r, v.GetRef()), nil
return hasRoleEditor(scope) && checkResourceInfo(&r, v.GetRef()), nil
case *provider.UnsetArbitraryMetadataRequest:
return hasRoleEditor(*scope) && checkResourceInfo(&r, v.GetRef()), nil
return hasRoleEditor(scope) && checkResourceInfo(&r, v.GetRef()), nil
case string:
return checkResourcePath(v), nil
+1 -1
View File
@@ -56,6 +56,6 @@ func VerifyScope(ctx context.Context, scopeMap map[string]*authpb.Scope, resourc
return false, nil
}
func hasRoleEditor(scope authpb.Scope) bool {
func hasRoleEditor(scope *authpb.Scope) bool {
return scope.Role == authpb.Role_ROLE_OWNER || scope.Role == authpb.Role_ROLE_EDITOR || scope.Role == authpb.Role_ROLE_UPLOADER
}
+1 -1
View File
@@ -345,7 +345,7 @@ func ReceivedOCMShare2ShareData(share *ocm.ReceivedShare, path string) (*ShareDa
FileTarget: shareTarget,
MimeType: mime.Detect(share.ResourceType == provider.ResourceType_RESOURCE_TYPE_CONTAINER, share.Name),
ItemType: ResourceType(share.ResourceType).String(),
ItemSource: storagespace.FormatResourceID(provider.ResourceId{
ItemSource: storagespace.FormatResourceID(&provider.ResourceId{
StorageId: utils.OCMStorageProviderID,
SpaceId: share.Id.OpaqueId,
OpaqueId: opaqueid,
+4 -12
View File
@@ -21,7 +21,6 @@ package conversions
import (
"fmt"
"reflect"
"strings"
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
@@ -573,19 +572,12 @@ func SufficientCS3Permissions(existing, requested *provider.ResourcePermissions)
if grants.PermissionsEqual(requested, &provider.ResourcePermissions{}) {
return existing.DenyGrant
}
requestedPermissionsType := reflect.TypeOf(provider.ResourcePermissions{})
numFields := requestedPermissionsType.NumField()
requestedPermissionsValues := reflect.ValueOf(requested)
existingPermissionsValues := reflect.ValueOf(existing)
numFields := existing.ProtoReflect().Descriptor().Fields().Len()
for i := 0; i < numFields; i++ {
permissionName := requestedPermissionsType.Field(i).Name
// filter out irrelevant fields
if strings.Contains(permissionName, "XXX") {
continue
}
existingPermission := reflect.Indirect(existingPermissionsValues).FieldByName(permissionName).Bool()
requestedPermission := requestedPermissionsValues.Elem().Field(i).Bool()
field := existing.ProtoReflect().Descriptor().Fields().Get(i)
existingPermission := existing.ProtoReflect().Get(field).Bool()
requestedPermission := requested.ProtoReflect().Get(field).Bool()
// every requested permission needs to exist for the creator
if requestedPermission && !existingPermission {
return false

Some files were not shown because too many files have changed in this diff Show More