switch to go vendoring
This commit is contained in:
+340
@@ -0,0 +1,340 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// REQUIRED.
|
||||
// View mode.
|
||||
type OpenInAppRequest_ViewMode int32
|
||||
|
||||
const (
|
||||
OpenInAppRequest_VIEW_MODE_INVALID OpenInAppRequest_ViewMode = 0
|
||||
// The resource can be opened but not downloaded.
|
||||
OpenInAppRequest_VIEW_MODE_VIEW_ONLY OpenInAppRequest_ViewMode = 1
|
||||
// The resource can be downloaded.
|
||||
OpenInAppRequest_VIEW_MODE_READ_ONLY OpenInAppRequest_ViewMode = 2
|
||||
// The resource can be downloaded and updated. The underlying application
|
||||
// MUST be a fully capable editor to support this mode.
|
||||
OpenInAppRequest_VIEW_MODE_READ_WRITE OpenInAppRequest_ViewMode = 3
|
||||
// The resource can be downloaded and updated, but must be shown in
|
||||
// preview mode. If the underlying application does not support a preview mode,
|
||||
// or if in a view-only mode users are not allowed to switch to edit mode,
|
||||
// then this mode MUST fall back to READ_WRITE.
|
||||
OpenInAppRequest_VIEW_MODE_PREVIEW OpenInAppRequest_ViewMode = 4
|
||||
)
|
||||
|
||||
var OpenInAppRequest_ViewMode_name = map[int32]string{
|
||||
0: "VIEW_MODE_INVALID",
|
||||
1: "VIEW_MODE_VIEW_ONLY",
|
||||
2: "VIEW_MODE_READ_ONLY",
|
||||
3: "VIEW_MODE_READ_WRITE",
|
||||
4: "VIEW_MODE_PREVIEW",
|
||||
}
|
||||
|
||||
var OpenInAppRequest_ViewMode_value = map[string]int32{
|
||||
"VIEW_MODE_INVALID": 0,
|
||||
"VIEW_MODE_VIEW_ONLY": 1,
|
||||
"VIEW_MODE_READ_ONLY": 2,
|
||||
"VIEW_MODE_READ_WRITE": 3,
|
||||
"VIEW_MODE_PREVIEW": 4,
|
||||
}
|
||||
|
||||
func (x OpenInAppRequest_ViewMode) String() string {
|
||||
return proto.EnumName(OpenInAppRequest_ViewMode_name, int32(x))
|
||||
}
|
||||
|
||||
func (OpenInAppRequest_ViewMode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_c007b70b037097fe, []int{0, 0}
|
||||
}
|
||||
|
||||
type OpenInAppRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The resourceInfo to be opened. The gateway grpc message has a ref instead.
|
||||
ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"`
|
||||
ViewMode OpenInAppRequest_ViewMode `protobuf:"varint,3,opt,name=view_mode,json=viewMode,proto3,enum=cs3.app.provider.v1beta1.OpenInAppRequest_ViewMode" json:"view_mode,omitempty"`
|
||||
// REQUIRED.
|
||||
// The access token this application provider will use when contacting
|
||||
// the storage provider to read and write.
|
||||
// Service implementors MUST make sure that the access token only grants
|
||||
// access to the requested resource.
|
||||
// Service implementors should use a ResourceId rather than a filepath to grant access, as
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *OpenInAppRequest) Reset() { *m = OpenInAppRequest{} }
|
||||
func (m *OpenInAppRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*OpenInAppRequest) ProtoMessage() {}
|
||||
func (*OpenInAppRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_c007b70b037097fe, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OpenInAppRequest) GetResourceInfo() *v1beta11.ResourceInfo {
|
||||
if m != nil {
|
||||
return m.ResourceInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OpenInAppRequest) GetViewMode() OpenInAppRequest_ViewMode {
|
||||
if m != nil {
|
||||
return m.ViewMode
|
||||
}
|
||||
return OpenInAppRequest_VIEW_MODE_INVALID
|
||||
}
|
||||
|
||||
func (m *OpenInAppRequest) GetAccessToken() string {
|
||||
if m != nil {
|
||||
return m.AccessToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type OpenInAppResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *OpenInAppResponse) Reset() { *m = OpenInAppResponse{} }
|
||||
func (m *OpenInAppResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*OpenInAppResponse) ProtoMessage() {}
|
||||
func (*OpenInAppResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_c007b70b037097fe, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OpenInAppResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OpenInAppResponse) GetAppUrl() *OpenInAppURL {
|
||||
if m != nil {
|
||||
return m.AppUrl
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("cs3.app.provider.v1beta1.OpenInAppRequest_ViewMode", OpenInAppRequest_ViewMode_name, OpenInAppRequest_ViewMode_value)
|
||||
proto.RegisterType((*OpenInAppRequest)(nil), "cs3.app.provider.v1beta1.OpenInAppRequest")
|
||||
proto.RegisterType((*OpenInAppResponse)(nil), "cs3.app.provider.v1beta1.OpenInAppResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/app/provider/v1beta1/provider_api.proto", fileDescriptor_c007b70b037097fe)
|
||||
}
|
||||
|
||||
var fileDescriptor_c007b70b037097fe = []byte{
|
||||
// 510 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xd1, 0x6e, 0xd3, 0x30,
|
||||
0x14, 0x86, 0x49, 0x3b, 0x95, 0xd5, 0x1d, 0x90, 0x19, 0xd0, 0x42, 0x35, 0xa4, 0xd2, 0x0b, 0x54,
|
||||
0x6d, 0xc8, 0x55, 0xdb, 0x07, 0x40, 0xe9, 0xda, 0x8b, 0x48, 0xdd, 0x1a, 0x99, 0xad, 0x13, 0xa8,
|
||||
0x52, 0xe4, 0xa5, 0x1e, 0x8a, 0xd8, 0xe2, 0x33, 0x3b, 0xe9, 0xc4, 0x15, 0x37, 0x3c, 0x01, 0x8f,
|
||||
0xc0, 0x25, 0x4f, 0xc0, 0x33, 0xf0, 0x54, 0x28, 0x8e, 0x13, 0xba, 0xa1, 0x6a, 0xbd, 0x8b, 0xcf,
|
||||
0xff, 0xfd, 0xc7, 0xf6, 0x7f, 0x1c, 0x74, 0x18, 0xaa, 0x41, 0x97, 0x01, 0x74, 0x41, 0x8a, 0x65,
|
||||
0xb4, 0xe0, 0xb2, 0xbb, 0xec, 0x5d, 0xf0, 0x84, 0xf5, 0xca, 0x42, 0xc0, 0x20, 0x22, 0x20, 0x45,
|
||||
0x22, 0xb0, 0x13, 0xaa, 0x01, 0x61, 0x00, 0xa4, 0xd0, 0x88, 0x81, 0x9b, 0x9d, 0xb5, 0x6d, 0x24,
|
||||
0x57, 0x22, 0x95, 0x21, 0x57, 0x79, 0x8f, 0xe6, 0x7e, 0x46, 0x4a, 0x08, 0x4b, 0x40, 0x25, 0x2c,
|
||||
0x49, 0x0b, 0xf5, 0x5d, 0xa6, 0xaa, 0x44, 0x48, 0xf6, 0x99, 0x3f, 0xdc, 0xeb, 0x75, 0x46, 0x27,
|
||||
0x5f, 0x81, 0xab, 0x12, 0xd1, 0xab, 0x5c, 0x6e, 0xff, 0xa8, 0x22, 0x7b, 0x0a, 0x3c, 0xf6, 0x62,
|
||||
0x17, 0x80, 0xf2, 0x9b, 0x94, 0xab, 0x04, 0xf7, 0x50, 0x4d, 0x00, 0xbb, 0x49, 0xb9, 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ca, 0x8d, 0x14, 0x88, 0x58,
|
||||
0x71, 0xdc, 0x45, 0xb5, 0xfc, 0x1d, 0x98, 0xa9, 0xec, 0xe9, 0x38, 0x24, 0x84, 0x65, 0x0a, 0x1f,
|
||||
0xb4, 0x4c, 0x0d, 0xb6, 0x32, 0xc6, 0xca, 0xa6, 0x63, 0x7c, 0x8f, 0x1e, 0x33, 0x80, 0x20, 0x95,
|
||||
0x57, 0x3a, 0xf3, 0x46, 0xff, 0xed, 0x06, 0x99, 0x9f, 0xd1, 0x09, 0xad, 0x31, 0x80, 0x33, 0x79,
|
||||
0xd5, 0x57, 0xa8, 0xe1, 0x1b, 0xd0, 0xf5, 0x3d, 0xbc, 0x40, 0xf5, 0x12, 0xc3, 0x07, 0x9b, 0xcf,
|
||||
0xaf, 0x79, 0xb8, 0x11, 0x9b, 0x27, 0x33, 0xfc, 0x86, 0xf6, 0x43, 0x71, 0xbd, 0xd6, 0x31, 0xb4,
|
||||
0xcb, 0x23, 0x41, 0xe4, 0x67, 0xcf, 0xde, 0xb7, 0x3e, 0x3d, 0x2b, 0x28, 0x03, 0xfd, 0xac, 0x54,
|
||||
0x8f, 0x5c, 0xff, 0x57, 0xc5, 0x39, 0x52, 0x03, 0xe2, 0x02, 0x90, 0xc2, 0x43, 0x66, 0xbd, 0x61,
|
||||
0x06, 0xfc, 0xd1, 0xd2, 0xdc, 0x05, 0x98, 0x17, 0xd2, 0xdc, 0x48, 0x17, 0x35, 0xfd, 0x33, 0x0d,
|
||||
0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x27, 0x47, 0xc0, 0x89, 0x2a, 0x04, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
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
|
||||
}
|
||||
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,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cs3/app/provider/v1beta1/provider_api.proto",
|
||||
}
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/app/provider/v1beta1/resources.proto
|
||||
|
||||
package providerv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// Represents the information for the app URL to be called by the clients.
|
||||
type OpenInAppURL struct {
|
||||
// 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"`
|
||||
// REQUIRED.
|
||||
// The method for the request to be made.
|
||||
// Only GET and POST are supported.
|
||||
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
|
||||
// OPTIONAL.
|
||||
// The form parameters which have to be passed along with the request.
|
||||
// These are sent only if the method is 'POST'.
|
||||
FormParameters map[string]string `protobuf:"bytes,3,rep,name=form_parameters,json=formParameters,proto3" json:"form_parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// OPTIONAL.
|
||||
// The headers to be added to the request.
|
||||
Headers map[string]string `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OpenInAppURL) Reset() { *m = OpenInAppURL{} }
|
||||
func (m *OpenInAppURL) String() string { return proto.CompactTextString(m) }
|
||||
func (*OpenInAppURL) ProtoMessage() {}
|
||||
func (*OpenInAppURL) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f3a36ae8e74be4dc, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OpenInAppURL) GetMethod() string {
|
||||
if m != nil {
|
||||
return m.Method
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OpenInAppURL) GetFormParameters() map[string]string {
|
||||
if m != nil {
|
||||
return m.FormParameters
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OpenInAppURL) GetHeaders() map[string]string {
|
||||
if m != nil {
|
||||
return m.Headers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/app/provider/v1beta1/resources.proto", fileDescriptor_f3a36ae8e74be4dc)
|
||||
}
|
||||
|
||||
var fileDescriptor_f3a36ae8e74be4dc = []byte{
|
||||
// 324 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x4b, 0xf3, 0x40,
|
||||
0x10, 0xc6, 0x49, 0xf2, 0xbe, 0x2d, 0xae, 0xa5, 0x95, 0x55, 0x34, 0x14, 0x0f, 0xc5, 0x53, 0x4f,
|
||||
0x1b, 0x6a, 0x2e, 0xd2, 0x5b, 0x5a, 0x14, 0x05, 0xc5, 0x10, 0xa8, 0x07, 0x29, 0x94, 0x6d, 0xb2,
|
||||
0xa5, 0x62, 0x92, 0x1d, 0x66, 0x93, 0x40, 0x0f, 0x7e, 0x19, 0x8f, 0x7e, 0x14, 0x3f, 0x8e, 0x9f,
|
||||
0x40, 0xf2, 0x67, 0xa5, 0x82, 0x05, 0xbd, 0xed, 0xcc, 0x3c, 0xf3, 0x7b, 0x78, 0x98, 0x25, 0xc3,
|
||||
0x50, 0xb9, 0x0e, 0x07, 0x70, 0x00, 0x65, 0xf1, 0x14, 0x09, 0x74, 0x8a, 0xd1, 0x52, 0x64, 0x7c,
|
||||
0xe4, 0xa0, 0x50, 0x32, 0xc7, 0x50, 0x28, 0x06, 0x28, 0x33, 0x49, 0xed, 0x50, 0xb9, 0x8c, 0x03,
|
||||
0x30, 0xad, 0x64, 0x8d, 0xf2, 0xec, 0xc3, 0x24, 0x9d, 0x7b, 0x10, 0xe9, 0x4d, 0xea, 0x01, 0xcc,
|
||||
0x82, 0x5b, 0x7a, 0x42, 0xda, 0x1c, 0x60, 0x91, 0x63, 0x6c, 0x1b, 0x03, 0x63, 0xb8, 0x17, 0xb4,
|
||||
0x38, 0xc0, 0x0c, 0x63, 0x7a, 0x4c, 0x5a, 0x89, 0xc8, 0xd6, 0x32, 0xb2, 0xcd, 0xba, 0x5f, 0x57,
|
||||
0x34, 0x24, 0xbd, 0x95, 0xc4, 0x64, 0x01, 0x1c, 0x79, 0x22, 0x32, 0x81, 0xca, 0xb6, 0x06, 0xd6,
|
||||
0x70, 0xff, 0x7c, 0xcc, 0x76, 0xb9, 0xb2, 0x6d, 0x47, 0x76, 0x25, 0x31, 0xf1, 0xbf, 0x96, 0x2f,
|
||||
0xd3, 0x0c, 0x37, 0x41, 0x77, 0xf5, 0xad, 0x49, 0xef, 0x48, 0x7b, 0x2d, 0x78, 0x54, 0xc2, 0xff,
|
||||
0x55, 0x70, 0xf7, 0x97, 0xf0, 0xeb, 0x7a, 0xab, 0xa6, 0x6a, 0x46, 0xdf, 0x23, 0x87, 0x3f, 0xb8,
|
||||
0xd2, 0x03, 0x62, 0x3d, 0x8b, 0x4d, 0x93, 0xbb, 0x7c, 0xd2, 0x23, 0xf2, 0xbf, 0xe0, 0x71, 0x2e,
|
||||
0x9a, 0xcc, 0x75, 0x31, 0x36, 0x2f, 0x8c, 0xfe, 0x98, 0x74, 0xb6, 0xd9, 0x7f, 0xd9, 0x9d, 0xbc,
|
||||
0x90, 0xd3, 0x50, 0x26, 0x3b, 0x13, 0x4c, 0xba, 0x81, 0xbe, 0x9f, 0x5f, 0x9e, 0xcf, 0x37, 0x1e,
|
||||
0x7b, 0x5a, 0xd3, 0x48, 0x5e, 0x4d, 0x6b, 0xea, 0xf9, 0x6f, 0xa6, 0x3d, 0x55, 0x2e, 0xf3, 0x00,
|
||||
0x98, 0xaf, 0x19, 0x0f, 0xa3, 0x49, 0x29, 0x78, 0xaf, 0x46, 0x73, 0x0f, 0x60, 0xae, 0x47, 0xf3,
|
||||
0x66, 0xb4, 0x6c, 0x55, 0x9f, 0xc2, 0xfd, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xd8, 0x2b, 0xca,
|
||||
0x40, 0x02, 0x00, 0x00,
|
||||
}
|
||||
+1016
File diff suppressed because it is too large
Load Diff
+337
@@ -0,0 +1,337 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// REQUIRED.
|
||||
// The capability of the underlying app.
|
||||
type ProviderInfo_Capability int32
|
||||
|
||||
const (
|
||||
ProviderInfo_CAPABILITY_INVALID ProviderInfo_Capability = 0
|
||||
// The app is a simple viewer.
|
||||
ProviderInfo_CAPABILITY_VIEWER ProviderInfo_Capability = 1
|
||||
// The app is a full editor.
|
||||
ProviderInfo_CAPABILITY_EDITOR ProviderInfo_Capability = 2
|
||||
)
|
||||
|
||||
var ProviderInfo_Capability_name = map[int32]string{
|
||||
0: "CAPABILITY_INVALID",
|
||||
1: "CAPABILITY_VIEWER",
|
||||
2: "CAPABILITY_EDITOR",
|
||||
}
|
||||
|
||||
var ProviderInfo_Capability_value = map[string]int32{
|
||||
"CAPABILITY_INVALID": 0,
|
||||
"CAPABILITY_VIEWER": 1,
|
||||
"CAPABILITY_EDITOR": 2,
|
||||
}
|
||||
|
||||
func (x ProviderInfo_Capability) String() string {
|
||||
return proto.EnumName(ProviderInfo_Capability_name, int32(x))
|
||||
}
|
||||
|
||||
func (ProviderInfo_Capability) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2e6a666226304af3, []int{0, 0}
|
||||
}
|
||||
|
||||
// Represents the information of the app provider.
|
||||
type ProviderInfo struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The mimetypes handled by this provider.
|
||||
MimeTypes []string `protobuf:"bytes,2,rep,name=mime_types,json=mimeTypes,proto3" json:"mime_types,omitempty"`
|
||||
// REQUIRED.
|
||||
// The address where the app provider can be reached.
|
||||
// For example, tcp://localhost:1099.
|
||||
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
|
||||
Capability ProviderInfo_Capability `protobuf:"varint,4,opt,name=capability,proto3,enum=cs3.app.registry.v1beta1.ProviderInfo_Capability" json:"capability,omitempty"`
|
||||
// OPTIONAL.
|
||||
// A human-readable name of the underlying app.
|
||||
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Information to describe the functionalities
|
||||
// offered by the underlying app. Meant to be read
|
||||
// by humans.
|
||||
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// OPTIONAL.
|
||||
// A URI to a static asset which represents the app icon.
|
||||
Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Whether the app can be opened only on desktop
|
||||
DesktopOnly bool `protobuf:"varint,8,opt,name=desktop_only,json=desktopOnly,proto3" json:"desktop_only,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) Reset() { *m = ProviderInfo{} }
|
||||
func (m *ProviderInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProviderInfo) ProtoMessage() {}
|
||||
func (*ProviderInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2e6a666226304af3, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetMimeTypes() []string {
|
||||
if m != nil {
|
||||
return m.MimeTypes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetAddress() string {
|
||||
if m != nil {
|
||||
return m.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetCapability() ProviderInfo_Capability {
|
||||
if m != nil {
|
||||
return m.Capability
|
||||
}
|
||||
return ProviderInfo_CAPABILITY_INVALID
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetIcon() string {
|
||||
if m != nil {
|
||||
return m.Icon
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetDesktopOnly() bool {
|
||||
if m != nil {
|
||||
return m.DesktopOnly
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Represents a mime type and its corresponding file extension.
|
||||
type MimeTypeInfo struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The mime type.
|
||||
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
|
||||
// REQUIRED.
|
||||
// The file extension mapped to this mime type.
|
||||
Ext string `protobuf:"bytes,3,opt,name=ext,proto3" json:"ext,omitempty"`
|
||||
// REQUIRED.
|
||||
// The list of app providers which can open this mime type
|
||||
AppProviders []*ProviderInfo `protobuf:"bytes,4,rep,name=app_providers,json=appProviders,proto3" json:"app_providers,omitempty"`
|
||||
// OPTIONAL.
|
||||
// The friendly name of this mime type.
|
||||
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Human-readable information to describe the mime type.
|
||||
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// OPTIONAL.
|
||||
// A URI to a static asset which represents the mime type icon.
|
||||
Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Whether the mime type is eligible for file creation in the web UI.
|
||||
// Defaults to false, i.e. files with this mime type can be opened
|
||||
// but not directly created from the web UI.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *MimeTypeInfo) Reset() { *m = MimeTypeInfo{} }
|
||||
func (m *MimeTypeInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*MimeTypeInfo) ProtoMessage() {}
|
||||
func (*MimeTypeInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2e6a666226304af3, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MimeTypeInfo) GetMimeType() string {
|
||||
if m != nil {
|
||||
return m.MimeType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MimeTypeInfo) GetExt() string {
|
||||
if m != nil {
|
||||
return m.Ext
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MimeTypeInfo) GetAppProviders() []*ProviderInfo {
|
||||
if m != nil {
|
||||
return m.AppProviders
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MimeTypeInfo) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MimeTypeInfo) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MimeTypeInfo) GetIcon() string {
|
||||
if m != nil {
|
||||
return m.Icon
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MimeTypeInfo) GetAllowCreation() bool {
|
||||
if m != nil {
|
||||
return m.AllowCreation
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *MimeTypeInfo) GetDefaultApplication() string {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/app/registry/v1beta1/resources.proto", fileDescriptor_2e6a666226304af3)
|
||||
}
|
||||
|
||||
var fileDescriptor_2e6a666226304af3 = []byte{
|
||||
// 506 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xdd, 0x8e, 0xd2, 0x40,
|
||||
0x14, 0xb6, 0x2d, 0xb2, 0x70, 0x60, 0x11, 0xc7, 0x68, 0xc6, 0x9f, 0x4d, 0x2a, 0x89, 0xa6, 0x57,
|
||||
0x25, 0xc0, 0x13, 0x14, 0x96, 0x8b, 0xc6, 0x55, 0x70, 0x42, 0x30, 0x1a, 0x92, 0x66, 0x68, 0x67,
|
||||
0x4d, 0x63, 0xe9, 0x1c, 0x3b, 0x65, 0x95, 0x0b, 0x5f, 0xc1, 0x87, 0xf0, 0xd2, 0x47, 0xf1, 0x25,
|
||||
0x7c, 0x15, 0xd3, 0xa1, 0x65, 0x89, 0xc9, 0x26, 0xc6, 0xec, 0xdd, 0xf4, 0xfb, 0xeb, 0x9c, 0xf9,
|
||||
0x72, 0xc0, 0x09, 0x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0x79, 0xd7, 0xcc, 0xf8, 0x1b, 0x3c, 0x0b, 0xe5, 0xe6, 0xc6, 0xe1, 0xc6, 0x1d, 0x56, 0x2d, 0xd7,
|
||||
0xbc, 0x58, 0x91, 0xb9, 0xf1, 0xe1, 0x5e, 0xa5, 0x29, 0x25, 0x3f, 0x4c, 0x6b, 0xe2, 0xb1, 0x9f,
|
||||
0x26, 0x9d, 0xa8, 0x91, 0xeb, 0x21, 0xba, 0xac, 0xca, 0x58, 0x0e, 0xc6, 0x85, 0xe0, 0x97, 0xa6,
|
||||
0x56, 0x1e, 0xe2, 0xaa, 0xa2, 0x56, 0x25, 0xb5, 0xae, 0xeb, 0xc5, 0x1b, 0xfd, 0x09, 0x00, 0x00,
|
||||
0xff, 0xff, 0x0b, 0x11, 0x40, 0xb4, 0xdd, 0x03, 0x00, 0x00,
|
||||
}
|
||||
Generated
Vendored
+749
@@ -0,0 +1,749 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/auth/applications/v1beta1/applications_api.proto
|
||||
|
||||
package applicationsv1beta1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
fmt "fmt"
|
||||
v1beta11 "github.com/cs3org/go-cs3apis/cs3/auth/provider/v1beta1"
|
||||
v1beta13 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
||||
v1beta12 "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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
type GenerateAppPasswordRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// OPTIONAL.
|
||||
// The scope of the token to be issued.
|
||||
// This would be a list of resources with corresponding role-based access scope.
|
||||
TokenScope map[string]*v1beta11.Scope `protobuf:"bytes,2,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"`
|
||||
// OPTIONAL.
|
||||
// A label to be associated with the password.
|
||||
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
|
||||
// OPTIONAL.
|
||||
// The time when the token will expire.
|
||||
Expiration *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=expiration,proto3" json:"expiration,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GenerateAppPasswordRequest) Reset() { *m = GenerateAppPasswordRequest{} }
|
||||
func (m *GenerateAppPasswordRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GenerateAppPasswordRequest) ProtoMessage() {}
|
||||
func (*GenerateAppPasswordRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_829b4bb376cdbfb0, []int{0}
|
||||
}
|
||||
|
||||
func (m *GenerateAppPasswordRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GenerateAppPasswordRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GenerateAppPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GenerateAppPasswordRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GenerateAppPasswordRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GenerateAppPasswordRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GenerateAppPasswordRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GenerateAppPasswordRequest.Size(m)
|
||||
}
|
||||
func (m *GenerateAppPasswordRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GenerateAppPasswordRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GenerateAppPasswordRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GenerateAppPasswordRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GenerateAppPasswordRequest) GetTokenScope() map[string]*v1beta11.Scope {
|
||||
if m != nil {
|
||||
return m.TokenScope
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GenerateAppPasswordRequest) GetLabel() string {
|
||||
if m != nil {
|
||||
return m.Label
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GenerateAppPasswordRequest) GetExpiration() *v1beta1.Timestamp {
|
||||
if m != nil {
|
||||
return m.Expiration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GenerateAppPasswordResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The generated access password.
|
||||
AppPassword *AppPassword `protobuf:"bytes,3,opt,name=app_password,json=appPassword,proto3" json:"app_password,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GenerateAppPasswordResponse) Reset() { *m = GenerateAppPasswordResponse{} }
|
||||
func (m *GenerateAppPasswordResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GenerateAppPasswordResponse) ProtoMessage() {}
|
||||
func (*GenerateAppPasswordResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_829b4bb376cdbfb0, []int{1}
|
||||
}
|
||||
|
||||
func (m *GenerateAppPasswordResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GenerateAppPasswordResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GenerateAppPasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GenerateAppPasswordResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GenerateAppPasswordResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GenerateAppPasswordResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GenerateAppPasswordResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GenerateAppPasswordResponse.Size(m)
|
||||
}
|
||||
func (m *GenerateAppPasswordResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GenerateAppPasswordResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GenerateAppPasswordResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GenerateAppPasswordResponse) GetStatus() *v1beta12.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GenerateAppPasswordResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GenerateAppPasswordResponse) GetAppPassword() *AppPassword {
|
||||
if m != nil {
|
||||
return m.AppPassword
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListAppPasswordsRequest struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ListAppPasswordsRequest) Reset() { *m = ListAppPasswordsRequest{} }
|
||||
func (m *ListAppPasswordsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListAppPasswordsRequest) ProtoMessage() {}
|
||||
func (*ListAppPasswordsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_829b4bb376cdbfb0, []int{2}
|
||||
}
|
||||
|
||||
func (m *ListAppPasswordsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListAppPasswordsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListAppPasswordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListAppPasswordsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListAppPasswordsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListAppPasswordsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListAppPasswordsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListAppPasswordsRequest.Size(m)
|
||||
}
|
||||
func (m *ListAppPasswordsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListAppPasswordsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListAppPasswordsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListAppPasswordsRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListAppPasswordsResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The generated access password.
|
||||
AppPasswords []*AppPassword `protobuf:"bytes,3,rep,name=app_passwords,json=appPasswords,proto3" json:"app_passwords,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListAppPasswordsResponse) Reset() { *m = ListAppPasswordsResponse{} }
|
||||
func (m *ListAppPasswordsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListAppPasswordsResponse) ProtoMessage() {}
|
||||
func (*ListAppPasswordsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_829b4bb376cdbfb0, []int{3}
|
||||
}
|
||||
|
||||
func (m *ListAppPasswordsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListAppPasswordsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListAppPasswordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListAppPasswordsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListAppPasswordsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListAppPasswordsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListAppPasswordsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListAppPasswordsResponse.Size(m)
|
||||
}
|
||||
func (m *ListAppPasswordsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListAppPasswordsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListAppPasswordsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListAppPasswordsResponse) GetStatus() *v1beta12.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListAppPasswordsResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListAppPasswordsResponse) GetAppPasswords() []*AppPassword {
|
||||
if m != nil {
|
||||
return m.AppPasswords
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type InvalidateAppPasswordRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The password which has to be invalidated.
|
||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *InvalidateAppPasswordRequest) Reset() { *m = InvalidateAppPasswordRequest{} }
|
||||
func (m *InvalidateAppPasswordRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*InvalidateAppPasswordRequest) ProtoMessage() {}
|
||||
func (*InvalidateAppPasswordRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_829b4bb376cdbfb0, []int{4}
|
||||
}
|
||||
|
||||
func (m *InvalidateAppPasswordRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_InvalidateAppPasswordRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *InvalidateAppPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_InvalidateAppPasswordRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *InvalidateAppPasswordRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_InvalidateAppPasswordRequest.Merge(m, src)
|
||||
}
|
||||
func (m *InvalidateAppPasswordRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_InvalidateAppPasswordRequest.Size(m)
|
||||
}
|
||||
func (m *InvalidateAppPasswordRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_InvalidateAppPasswordRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_InvalidateAppPasswordRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *InvalidateAppPasswordRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *InvalidateAppPasswordRequest) GetPassword() string {
|
||||
if m != nil {
|
||||
return m.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type InvalidateAppPasswordResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *InvalidateAppPasswordResponse) Reset() { *m = InvalidateAppPasswordResponse{} }
|
||||
func (m *InvalidateAppPasswordResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*InvalidateAppPasswordResponse) ProtoMessage() {}
|
||||
func (*InvalidateAppPasswordResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_829b4bb376cdbfb0, []int{5}
|
||||
}
|
||||
|
||||
func (m *InvalidateAppPasswordResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_InvalidateAppPasswordResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *InvalidateAppPasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_InvalidateAppPasswordResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *InvalidateAppPasswordResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_InvalidateAppPasswordResponse.Merge(m, src)
|
||||
}
|
||||
func (m *InvalidateAppPasswordResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_InvalidateAppPasswordResponse.Size(m)
|
||||
}
|
||||
func (m *InvalidateAppPasswordResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_InvalidateAppPasswordResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_InvalidateAppPasswordResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *InvalidateAppPasswordResponse) GetStatus() *v1beta12.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *InvalidateAppPasswordResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetAppPasswordRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The user who created the app password.
|
||||
User *v1beta13.UserId `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
|
||||
// REQUIRED.
|
||||
// The password which has to be retrieved.
|
||||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetAppPasswordRequest) Reset() { *m = GetAppPasswordRequest{} }
|
||||
func (m *GetAppPasswordRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetAppPasswordRequest) ProtoMessage() {}
|
||||
func (*GetAppPasswordRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_829b4bb376cdbfb0, []int{6}
|
||||
}
|
||||
|
||||
func (m *GetAppPasswordRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetAppPasswordRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetAppPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetAppPasswordRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetAppPasswordRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetAppPasswordRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetAppPasswordRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetAppPasswordRequest.Size(m)
|
||||
}
|
||||
func (m *GetAppPasswordRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetAppPasswordRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetAppPasswordRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetAppPasswordRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAppPasswordRequest) GetUser() *v1beta13.UserId {
|
||||
if m != nil {
|
||||
return m.User
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAppPasswordRequest) GetPassword() string {
|
||||
if m != nil {
|
||||
return m.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetAppPasswordResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The generated access password.
|
||||
AppPassword *AppPassword `protobuf:"bytes,3,opt,name=app_password,json=appPassword,proto3" json:"app_password,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetAppPasswordResponse) Reset() { *m = GetAppPasswordResponse{} }
|
||||
func (m *GetAppPasswordResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetAppPasswordResponse) ProtoMessage() {}
|
||||
func (*GetAppPasswordResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_829b4bb376cdbfb0, []int{7}
|
||||
}
|
||||
|
||||
func (m *GetAppPasswordResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetAppPasswordResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetAppPasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetAppPasswordResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetAppPasswordResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetAppPasswordResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetAppPasswordResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetAppPasswordResponse.Size(m)
|
||||
}
|
||||
func (m *GetAppPasswordResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetAppPasswordResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetAppPasswordResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetAppPasswordResponse) GetStatus() *v1beta12.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAppPasswordResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAppPasswordResponse) GetAppPassword() *AppPassword {
|
||||
if m != nil {
|
||||
return m.AppPassword
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GenerateAppPasswordRequest)(nil), "cs3.auth.applications.v1beta1.GenerateAppPasswordRequest")
|
||||
proto.RegisterMapType((map[string]*v1beta11.Scope)(nil), "cs3.auth.applications.v1beta1.GenerateAppPasswordRequest.TokenScopeEntry")
|
||||
proto.RegisterType((*GenerateAppPasswordResponse)(nil), "cs3.auth.applications.v1beta1.GenerateAppPasswordResponse")
|
||||
proto.RegisterType((*ListAppPasswordsRequest)(nil), "cs3.auth.applications.v1beta1.ListAppPasswordsRequest")
|
||||
proto.RegisterType((*ListAppPasswordsResponse)(nil), "cs3.auth.applications.v1beta1.ListAppPasswordsResponse")
|
||||
proto.RegisterType((*InvalidateAppPasswordRequest)(nil), "cs3.auth.applications.v1beta1.InvalidateAppPasswordRequest")
|
||||
proto.RegisterType((*InvalidateAppPasswordResponse)(nil), "cs3.auth.applications.v1beta1.InvalidateAppPasswordResponse")
|
||||
proto.RegisterType((*GetAppPasswordRequest)(nil), "cs3.auth.applications.v1beta1.GetAppPasswordRequest")
|
||||
proto.RegisterType((*GetAppPasswordResponse)(nil), "cs3.auth.applications.v1beta1.GetAppPasswordResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/auth/applications/v1beta1/applications_api.proto", fileDescriptor_829b4bb376cdbfb0)
|
||||
}
|
||||
|
||||
var fileDescriptor_829b4bb376cdbfb0 = []byte{
|
||||
// 686 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x41, 0x4f, 0x13, 0x41,
|
||||
0x14, 0xce, 0x6c, 0x81, 0xc8, 0x2b, 0x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34, 0xf8, 0xf1, 0xd8, 0xdb, 0xd8, 0xdc, 0x1a, 0x87, 0xaa, 0x5d, 0x3d, 0x43, 0x30, 0xd7, 0x3f,
|
||||
0xd7, 0x78, 0x73, 0x84, 0xe0, 0x05, 0x7b, 0xc5, 0x7c, 0x78, 0x69, 0x9e, 0xae, 0xe2, 0x23, 0x82,
|
||||
0xc5, 0x81, 0xc3, 0x81, 0x9f, 0x8c, 0x90, 0x1c, 0x36, 0xc2, 0xe6, 0xf6, 0x78, 0x64, 0x5d, 0xd4,
|
||||
0x7b, 0xb8, 0xd5, 0xfb, 0x14, 0xf1, 0xfa, 0x48, 0xa3, 0x07, 0x4c, 0x96, 0xb9, 0x71, 0x49, 0x56,
|
||||
0x9c, 0x7e, 0xe7, 0x13, 0x82, 0x55, 0x37, 0x68, 0x0d, 0x27, 0xef, 0x2c, 0xf4, 0xbc, 0x2f, 0xe6,
|
||||
0xd5, 0xe4, 0x17, 0x44, 0x0d, 0xbd, 0x9a, 0x4f, 0xa3, 0x35, 0xf8, 0x8b, 0x91, 0xd9, 0xad, 0x54,
|
||||
0xbe, 0x1a, 0x2b, 0xbb, 0xbc, 0x6c, 0x57, 0xa4, 0x64, 0x9a, 0x6c, 0xbf, 0x2c, 0xee, 0x48, 0xd4,
|
||||
0x77, 0x15, 0x3f, 0x92, 0xf1, 0xa3, 0x74, 0xfc, 0x48, 0xc7, 0x8f, 0xa7, 0xd4, 0x57, 0x4a, 0xf9,
|
||||
0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x14, 0x79, 0xb2, 0xbe, 0x09, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// ApplicationsAPIClient is the client API for ApplicationsAPI service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#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.ClientConn
|
||||
}
|
||||
|
||||
func NewApplicationsAPIClient(cc *grpc.ClientConn) 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, "/cs3.auth.applications.v1beta1.ApplicationsAPI/GenerateAppPassword", 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, "/cs3.auth.applications.v1beta1.ApplicationsAPI/ListAppPasswords", 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, "/cs3.auth.applications.v1beta1.ApplicationsAPI/InvalidateAppPassword", 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, "/cs3.auth.applications.v1beta1.ApplicationsAPI/GetAppPassword", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ApplicationsAPIServer is the server API for ApplicationsAPI service.
|
||||
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 can be embedded to have forward compatible implementations.
|
||||
type UnimplementedApplicationsAPIServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedApplicationsAPIServer) GenerateAppPassword(ctx context.Context, req *GenerateAppPasswordRequest) (*GenerateAppPasswordResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GenerateAppPassword not implemented")
|
||||
}
|
||||
func (*UnimplementedApplicationsAPIServer) ListAppPasswords(ctx context.Context, req *ListAppPasswordsRequest) (*ListAppPasswordsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListAppPasswords not implemented")
|
||||
}
|
||||
func (*UnimplementedApplicationsAPIServer) InvalidateAppPassword(ctx context.Context, req *InvalidateAppPasswordRequest) (*InvalidateAppPasswordResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method InvalidateAppPassword not implemented")
|
||||
}
|
||||
func (*UnimplementedApplicationsAPIServer) GetAppPassword(ctx context.Context, req *GetAppPasswordRequest) (*GetAppPasswordResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetAppPassword not implemented")
|
||||
}
|
||||
|
||||
func RegisterApplicationsAPIServer(s *grpc.Server, 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: "/cs3.auth.applications.v1beta1.ApplicationsAPI/GenerateAppPassword",
|
||||
}
|
||||
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: "/cs3.auth.applications.v1beta1.ApplicationsAPI/ListAppPasswords",
|
||||
}
|
||||
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: "/cs3.auth.applications.v1beta1.ApplicationsAPI/InvalidateAppPassword",
|
||||
}
|
||||
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: "/cs3.auth.applications.v1beta1.ApplicationsAPI/GetAppPassword",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ApplicationsAPIServer).GetAppPassword(ctx, req.(*GetAppPasswordRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
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",
|
||||
}
|
||||
Generated
Vendored
+167
@@ -0,0 +1,167 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// AppPassword stores information about secondary passwords generated by users
|
||||
// to be used with third-party applications.
|
||||
type AppPassword struct {
|
||||
// REQUIRED.
|
||||
// The generated access password.
|
||||
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
|
||||
// OPTIONAL.
|
||||
// The scope of the token to be issued.
|
||||
// This would be a list of resources with corresponding role-based access scope.
|
||||
TokenScope map[string]*v1beta1.Scope `protobuf:"bytes,2,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"`
|
||||
// OPTIONAL.
|
||||
// A label to be associated with the password.
|
||||
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
|
||||
// REQUIRED.
|
||||
// The user who created the password.
|
||||
User *v1beta11.UserId `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
|
||||
// OPTIONAL.
|
||||
// The time when the token will expire.
|
||||
Expiration *v1beta12.Timestamp `protobuf:"bytes,5,opt,name=expiration,proto3" json:"expiration,omitempty"`
|
||||
// REQUIRED.
|
||||
// The creation time of the password.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *AppPassword) Reset() { *m = AppPassword{} }
|
||||
func (m *AppPassword) String() string { return proto.CompactTextString(m) }
|
||||
func (*AppPassword) ProtoMessage() {}
|
||||
func (*AppPassword) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_1b1b72514a65f2c5, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AppPassword) GetTokenScope() map[string]*v1beta1.Scope {
|
||||
if m != nil {
|
||||
return m.TokenScope
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppPassword) GetLabel() string {
|
||||
if m != nil {
|
||||
return m.Label
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AppPassword) GetUser() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.User
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppPassword) GetExpiration() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Expiration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppPassword) GetCtime() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Ctime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppPassword) GetUtime() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/auth/applications/v1beta1/resources.proto", fileDescriptor_1b1b72514a65f2c5)
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
+279
@@ -0,0 +1,279 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
type AuthenticateRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// OPTIONAL.
|
||||
// The id of the client.
|
||||
// For basic authentication with username and password
|
||||
// both client_id and client_secret are expected to be filled.
|
||||
// However, for example, for OIDC only a token is necessary.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} }
|
||||
func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*AuthenticateRequest) ProtoMessage() {}
|
||||
func (*AuthenticateRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2ddf0fa535f43d36, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuthenticateRequest) GetClientId() string {
|
||||
if m != nil {
|
||||
return m.ClientId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuthenticateRequest) GetClientSecret() string {
|
||||
if m != nil {
|
||||
return m.ClientSecret
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AuthenticateResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// REQUIRED.
|
||||
// The authenticated user.
|
||||
User *v1beta12.User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} }
|
||||
func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*AuthenticateResponse) ProtoMessage() {}
|
||||
func (*AuthenticateResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2ddf0fa535f43d36, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuthenticateResponse) GetUser() *v1beta12.User {
|
||||
if m != nil {
|
||||
return m.User
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuthenticateResponse) GetTokenScope() map[string]*Scope {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/auth/provider/v1beta1/provider_api.proto", fileDescriptor_2ddf0fa535f43d36)
|
||||
}
|
||||
|
||||
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,
|
||||
0x3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|
||||
|
||||
// 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
|
||||
}
|
||||
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
|
||||
}
|
||||
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,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cs3/auth/provider/v1beta1/provider_api.proto",
|
||||
}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// The role associated with the scope.
|
||||
type Role int32
|
||||
|
||||
const (
|
||||
// Used for invalid roles
|
||||
Role_ROLE_INVALID Role = 0
|
||||
// Grants owner permissions on a resource
|
||||
Role_ROLE_OWNER Role = 1
|
||||
// Provides backwards compatibility
|
||||
Role_ROLE_LEGACY Role = 2
|
||||
// Grants non-editor role on a resource
|
||||
Role_ROLE_VIEWER Role = 3
|
||||
// Grants editor permission on a resource, including folders
|
||||
Role_ROLE_EDITOR Role = 4
|
||||
// Grants editor permission on a single file
|
||||
Role_ROLE_FILE_EDITOR Role = 5
|
||||
// Grants co-owner permissions on a resource
|
||||
Role_ROLE_COOWNER Role = 6
|
||||
// Role with only write permission can use InitiateFileUpload, nothing else
|
||||
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",
|
||||
}
|
||||
|
||||
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) String() string {
|
||||
return proto.EnumName(Role_name, int32(x))
|
||||
}
|
||||
|
||||
func (Role) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a291f551e0c9d7e6, []int{0}
|
||||
}
|
||||
|
||||
// Scope defines role-based permissions for various resources.
|
||||
type Scope struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *Scope) Reset() { *m = Scope{} }
|
||||
func (m *Scope) String() string { return proto.CompactTextString(m) }
|
||||
func (*Scope) ProtoMessage() {}
|
||||
func (*Scope) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a291f551e0c9d7e6, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Scope) GetRole() Role {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/auth/provider/v1beta1/resources.proto", fileDescriptor_a291f551e0c9d7e6)
|
||||
}
|
||||
|
||||
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, 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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,
|
||||
}
|
||||
+405
@@ -0,0 +1,405 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
type GetAuthProvidersRequest struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *GetAuthProvidersRequest) Reset() { *m = GetAuthProvidersRequest{} }
|
||||
func (m *GetAuthProvidersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetAuthProvidersRequest) ProtoMessage() {}
|
||||
func (*GetAuthProvidersRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_154ff675d363d74d, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAuthProvidersRequest) GetType() string {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetAuthProvidersResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *GetAuthProvidersResponse) Reset() { *m = GetAuthProvidersResponse{} }
|
||||
func (m *GetAuthProvidersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetAuthProvidersResponse) ProtoMessage() {}
|
||||
func (*GetAuthProvidersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_154ff675d363d74d, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAuthProvidersResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAuthProvidersResponse) GetProviders() []*ProviderInfo {
|
||||
if m != nil {
|
||||
return m.Providers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListAuthProvidersRequest struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ListAuthProvidersRequest) Reset() { *m = ListAuthProvidersRequest{} }
|
||||
func (m *ListAuthProvidersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListAuthProvidersRequest) ProtoMessage() {}
|
||||
func (*ListAuthProvidersRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_154ff675d363d74d, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListAuthProvidersResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *ListAuthProvidersResponse) Reset() { *m = ListAuthProvidersResponse{} }
|
||||
func (m *ListAuthProvidersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListAuthProvidersResponse) ProtoMessage() {}
|
||||
func (*ListAuthProvidersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_154ff675d363d74d, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListAuthProvidersResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListAuthProvidersResponse) GetProviders() []*ProviderInfo {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/auth/registry/v1beta1/registry_api.proto", fileDescriptor_154ff675d363d74d)
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
|
||||
// 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 ®istryAPIClient{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
|
||||
}
|
||||
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
|
||||
}
|
||||
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,
|
||||
},
|
||||
{
|
||||
MethodName: "ListAuthProviders",
|
||||
Handler: _RegistryAPI_ListAuthProviders_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cs3/auth/registry/v1beta1/registry_api.proto",
|
||||
}
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// ProviderInfo provides the information about an authentication provider.
|
||||
type ProviderInfo struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information (containing storage-specific information).
|
||||
// For example, additional metadata attached to the resource.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The storage provider id that will become part of the
|
||||
// resource id.
|
||||
// For example, if the provider_id is "home", resources obtained
|
||||
// from this storage provider will have a resource id like "home:1234".
|
||||
ProviderType string `protobuf:"bytes,2,opt,name=provider_type,json=providerType,proto3" json:"provider_type,omitempty"`
|
||||
// REQUIRED.
|
||||
// The address where the storage provider can be reached.
|
||||
// For example, tcp://localhost:1099.
|
||||
Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
|
||||
// OPTIONAL.
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) Reset() { *m = ProviderInfo{} }
|
||||
func (m *ProviderInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProviderInfo) ProtoMessage() {}
|
||||
func (*ProviderInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d0bd226beb320d12, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetProviderType() string {
|
||||
if m != nil {
|
||||
return m.ProviderType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetAddress() string {
|
||||
if m != nil {
|
||||
return m.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ProviderInfo)(nil), "cs3.auth.registry.v1beta1.ProviderInfo")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/auth/registry/v1beta1/resources.proto", fileDescriptor_d0bd226beb320d12)
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
+4637
File diff suppressed because it is too large
Load Diff
+223
@@ -0,0 +1,223 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/gateway/v1beta1/resources.proto
|
||||
|
||||
package gatewayv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// A file upload protocol object stores information about
|
||||
// uploading resources using a specific protocol.
|
||||
type FileUploadProtocol struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The protocol to be followed.
|
||||
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
||||
// REQUIRED.
|
||||
// The endpoint where to upload the data.
|
||||
// The value MUST be a Uniform Resource Identifier (URI)
|
||||
// as specified in RFC 3986.
|
||||
UploadEndpoint string `protobuf:"bytes,3,opt,name=upload_endpoint,json=uploadEndpoint,proto3" json:"upload_endpoint,omitempty"`
|
||||
// REQUIRED.
|
||||
// List of available checksums
|
||||
// the client can use when sending
|
||||
// the file.
|
||||
AvailableChecksums []*v1beta11.ResourceChecksumPriority `protobuf:"bytes,4,rep,name=available_checksums,json=availableChecksums,proto3" json:"available_checksums,omitempty"`
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *FileUploadProtocol) Reset() { *m = FileUploadProtocol{} }
|
||||
func (m *FileUploadProtocol) String() string { return proto.CompactTextString(m) }
|
||||
func (*FileUploadProtocol) ProtoMessage() {}
|
||||
func (*FileUploadProtocol) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_6dff5533c2cc40ba, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FileUploadProtocol) GetProtocol() string {
|
||||
if m != nil {
|
||||
return m.Protocol
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *FileUploadProtocol) GetUploadEndpoint() string {
|
||||
if m != nil {
|
||||
return m.UploadEndpoint
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *FileUploadProtocol) GetAvailableChecksums() []*v1beta11.ResourceChecksumPriority {
|
||||
if m != nil {
|
||||
return m.AvailableChecksums
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FileUploadProtocol) GetToken() string {
|
||||
if m != nil {
|
||||
return m.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A file download protocol object stores information about
|
||||
// downloading resources using a specific protocol.
|
||||
type FileDownloadProtocol struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The protocol to be followed.
|
||||
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
||||
// REQUIRED.
|
||||
// The endpoint where to download the data.
|
||||
// The value MUST be a Uniform Resource Identifier (URI)
|
||||
// as specified in RFC 3986.
|
||||
DownloadEndpoint string `protobuf:"bytes,3,opt,name=download_endpoint,json=downloadEndpoint,proto3" json:"download_endpoint,omitempty"`
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *FileDownloadProtocol) Reset() { *m = FileDownloadProtocol{} }
|
||||
func (m *FileDownloadProtocol) String() string { return proto.CompactTextString(m) }
|
||||
func (*FileDownloadProtocol) ProtoMessage() {}
|
||||
func (*FileDownloadProtocol) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_6dff5533c2cc40ba, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FileDownloadProtocol) GetProtocol() string {
|
||||
if m != nil {
|
||||
return m.Protocol
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *FileDownloadProtocol) GetDownloadEndpoint() string {
|
||||
if m != nil {
|
||||
return m.DownloadEndpoint
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *FileDownloadProtocol) GetToken() string {
|
||||
if m != nil {
|
||||
return m.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*FileUploadProtocol)(nil), "cs3.gateway.v1beta1.FileUploadProtocol")
|
||||
proto.RegisterType((*FileDownloadProtocol)(nil), "cs3.gateway.v1beta1.FileDownloadProtocol")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/gateway/v1beta1/resources.proto", fileDescriptor_6dff5533c2cc40ba)
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
+935
@@ -0,0 +1,935 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/identity/group/v1beta1/group_api.proto
|
||||
|
||||
package groupv1beta1
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
type GetGroupRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The id of the group.
|
||||
GroupId *GroupId `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Whether to skip fetching members along with the group object.
|
||||
SkipFetchingMembers bool `protobuf:"varint,3,opt,name=skip_fetching_members,json=skipFetchingMembers,proto3" json:"skip_fetching_members,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetGroupRequest) Reset() { *m = GetGroupRequest{} }
|
||||
func (m *GetGroupRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetGroupRequest) ProtoMessage() {}
|
||||
func (*GetGroupRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{0}
|
||||
}
|
||||
|
||||
func (m *GetGroupRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetGroupRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetGroupRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetGroupRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetGroupRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetGroupRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetGroupRequest.Size(m)
|
||||
}
|
||||
func (m *GetGroupRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetGroupRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetGroupRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetGroupRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetGroupRequest) GetGroupId() *GroupId {
|
||||
if m != nil {
|
||||
return m.GroupId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetGroupRequest) GetSkipFetchingMembers() bool {
|
||||
if m != nil {
|
||||
return m.SkipFetchingMembers
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type GetGroupResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The group information.
|
||||
Group *Group `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetGroupResponse) Reset() { *m = GetGroupResponse{} }
|
||||
func (m *GetGroupResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetGroupResponse) ProtoMessage() {}
|
||||
func (*GetGroupResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{1}
|
||||
}
|
||||
|
||||
func (m *GetGroupResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetGroupResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetGroupResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetGroupResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetGroupResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetGroupResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetGroupResponse.Size(m)
|
||||
}
|
||||
func (m *GetGroupResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetGroupResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetGroupResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetGroupResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetGroupResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetGroupResponse) GetGroup() *Group {
|
||||
if m != nil {
|
||||
return m.Group
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetGroupByClaimRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The claim on the basis of which groups will be filtered.
|
||||
Claim string `protobuf:"bytes,2,opt,name=claim,proto3" json:"claim,omitempty"`
|
||||
// REQUIRED.
|
||||
// The value of the claim to find the specific group.
|
||||
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Whether to skip fetching members along with the group object.
|
||||
SkipFetchingMembers bool `protobuf:"varint,4,opt,name=skip_fetching_members,json=skipFetchingMembers,proto3" json:"skip_fetching_members,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetGroupByClaimRequest) Reset() { *m = GetGroupByClaimRequest{} }
|
||||
func (m *GetGroupByClaimRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetGroupByClaimRequest) ProtoMessage() {}
|
||||
func (*GetGroupByClaimRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{2}
|
||||
}
|
||||
|
||||
func (m *GetGroupByClaimRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetGroupByClaimRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetGroupByClaimRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetGroupByClaimRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetGroupByClaimRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetGroupByClaimRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetGroupByClaimRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetGroupByClaimRequest.Size(m)
|
||||
}
|
||||
func (m *GetGroupByClaimRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetGroupByClaimRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetGroupByClaimRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetGroupByClaimRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetGroupByClaimRequest) GetClaim() string {
|
||||
if m != nil {
|
||||
return m.Claim
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GetGroupByClaimRequest) GetValue() string {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GetGroupByClaimRequest) GetSkipFetchingMembers() bool {
|
||||
if m != nil {
|
||||
return m.SkipFetchingMembers
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type GetGroupByClaimResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The group information.
|
||||
Group *Group `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetGroupByClaimResponse) Reset() { *m = GetGroupByClaimResponse{} }
|
||||
func (m *GetGroupByClaimResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetGroupByClaimResponse) ProtoMessage() {}
|
||||
func (*GetGroupByClaimResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetGroupByClaimResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetGroupByClaimResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetGroupByClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetGroupByClaimResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetGroupByClaimResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetGroupByClaimResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetGroupByClaimResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetGroupByClaimResponse.Size(m)
|
||||
}
|
||||
func (m *GetGroupByClaimResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetGroupByClaimResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetGroupByClaimResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetGroupByClaimResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetGroupByClaimResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetGroupByClaimResponse) GetGroup() *Group {
|
||||
if m != nil {
|
||||
return m.Group
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetMembersRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The id of the group.
|
||||
GroupId *GroupId `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetMembersRequest) Reset() { *m = GetMembersRequest{} }
|
||||
func (m *GetMembersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetMembersRequest) ProtoMessage() {}
|
||||
func (*GetMembersRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{4}
|
||||
}
|
||||
|
||||
func (m *GetMembersRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetMembersRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetMembersRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetMembersRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetMembersRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetMembersRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetMembersRequest.Size(m)
|
||||
}
|
||||
func (m *GetMembersRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetMembersRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetMembersRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetMembersRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetMembersRequest) GetGroupId() *GroupId {
|
||||
if m != nil {
|
||||
return m.GroupId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetMembersResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The members of the group.
|
||||
Members []*v1beta12.UserId `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetMembersResponse) Reset() { *m = GetMembersResponse{} }
|
||||
func (m *GetMembersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetMembersResponse) ProtoMessage() {}
|
||||
func (*GetMembersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{5}
|
||||
}
|
||||
|
||||
func (m *GetMembersResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetMembersResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetMembersResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetMembersResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetMembersResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetMembersResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetMembersResponse.Size(m)
|
||||
}
|
||||
func (m *GetMembersResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetMembersResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetMembersResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetMembersResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetMembersResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetMembersResponse) GetMembers() []*v1beta12.UserId {
|
||||
if m != nil {
|
||||
return m.Members
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type HasMemberRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The id of the group.
|
||||
GroupId *GroupId `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
||||
// REQUIRED.
|
||||
// The id of the user to check.
|
||||
UserId *v1beta12.UserId `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *HasMemberRequest) Reset() { *m = HasMemberRequest{} }
|
||||
func (m *HasMemberRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*HasMemberRequest) ProtoMessage() {}
|
||||
func (*HasMemberRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{6}
|
||||
}
|
||||
|
||||
func (m *HasMemberRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_HasMemberRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *HasMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_HasMemberRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *HasMemberRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_HasMemberRequest.Merge(m, src)
|
||||
}
|
||||
func (m *HasMemberRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_HasMemberRequest.Size(m)
|
||||
}
|
||||
func (m *HasMemberRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_HasMemberRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_HasMemberRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *HasMemberRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HasMemberRequest) GetGroupId() *GroupId {
|
||||
if m != nil {
|
||||
return m.GroupId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HasMemberRequest) GetUserId() *v1beta12.UserId {
|
||||
if m != nil {
|
||||
return m.UserId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type HasMemberResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// Tells if the user belongs to the group.
|
||||
Ok bool `protobuf:"varint,3,opt,name=ok,proto3" json:"ok,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *HasMemberResponse) Reset() { *m = HasMemberResponse{} }
|
||||
func (m *HasMemberResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*HasMemberResponse) ProtoMessage() {}
|
||||
func (*HasMemberResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{7}
|
||||
}
|
||||
|
||||
func (m *HasMemberResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_HasMemberResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *HasMemberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_HasMemberResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *HasMemberResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_HasMemberResponse.Merge(m, src)
|
||||
}
|
||||
func (m *HasMemberResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_HasMemberResponse.Size(m)
|
||||
}
|
||||
func (m *HasMemberResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_HasMemberResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_HasMemberResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *HasMemberResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HasMemberResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HasMemberResponse) GetOk() bool {
|
||||
if m != nil {
|
||||
return m.Ok
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type FindGroupsRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The filter to apply.
|
||||
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Whether to skip fetching members along with the group object.
|
||||
SkipFetchingMembers bool `protobuf:"varint,3,opt,name=skip_fetching_members,json=skipFetchingMembers,proto3" json:"skip_fetching_members,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FindGroupsRequest) Reset() { *m = FindGroupsRequest{} }
|
||||
func (m *FindGroupsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*FindGroupsRequest) ProtoMessage() {}
|
||||
func (*FindGroupsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{8}
|
||||
}
|
||||
|
||||
func (m *FindGroupsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FindGroupsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FindGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FindGroupsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *FindGroupsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FindGroupsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *FindGroupsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_FindGroupsRequest.Size(m)
|
||||
}
|
||||
func (m *FindGroupsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FindGroupsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FindGroupsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *FindGroupsRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FindGroupsRequest) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *FindGroupsRequest) GetSkipFetchingMembers() bool {
|
||||
if m != nil {
|
||||
return m.SkipFetchingMembers
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type FindGroupsResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The groups matching the specified filter.
|
||||
Groups []*Group `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FindGroupsResponse) Reset() { *m = FindGroupsResponse{} }
|
||||
func (m *FindGroupsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*FindGroupsResponse) ProtoMessage() {}
|
||||
func (*FindGroupsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd2eee9df4cadb63, []int{9}
|
||||
}
|
||||
|
||||
func (m *FindGroupsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FindGroupsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FindGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FindGroupsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *FindGroupsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FindGroupsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *FindGroupsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_FindGroupsResponse.Size(m)
|
||||
}
|
||||
func (m *FindGroupsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FindGroupsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FindGroupsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *FindGroupsResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FindGroupsResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FindGroupsResponse) GetGroups() []*Group {
|
||||
if m != nil {
|
||||
return m.Groups
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GetGroupRequest)(nil), "cs3.identity.group.v1beta1.GetGroupRequest")
|
||||
proto.RegisterType((*GetGroupResponse)(nil), "cs3.identity.group.v1beta1.GetGroupResponse")
|
||||
proto.RegisterType((*GetGroupByClaimRequest)(nil), "cs3.identity.group.v1beta1.GetGroupByClaimRequest")
|
||||
proto.RegisterType((*GetGroupByClaimResponse)(nil), "cs3.identity.group.v1beta1.GetGroupByClaimResponse")
|
||||
proto.RegisterType((*GetMembersRequest)(nil), "cs3.identity.group.v1beta1.GetMembersRequest")
|
||||
proto.RegisterType((*GetMembersResponse)(nil), "cs3.identity.group.v1beta1.GetMembersResponse")
|
||||
proto.RegisterType((*HasMemberRequest)(nil), "cs3.identity.group.v1beta1.HasMemberRequest")
|
||||
proto.RegisterType((*HasMemberResponse)(nil), "cs3.identity.group.v1beta1.HasMemberResponse")
|
||||
proto.RegisterType((*FindGroupsRequest)(nil), "cs3.identity.group.v1beta1.FindGroupsRequest")
|
||||
proto.RegisterType((*FindGroupsResponse)(nil), "cs3.identity.group.v1beta1.FindGroupsResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/identity/group/v1beta1/group_api.proto", fileDescriptor_cd2eee9df4cadb63)
|
||||
}
|
||||
|
||||
var fileDescriptor_cd2eee9df4cadb63 = []byte{
|
||||
// 659 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4b, 0x6f, 0xd3, 0x4c,
|
||||
0x14, 0xd5, 0xb8, 0xad, 0x9b, 0xde, 0x7e, 0x1f, 0xb4, 0x03, 0xb4, 0xc1, 0x02, 0x54, 0xcc, 0xa6,
|
||||
0x3c, 0xea, 0x28, 0xc9, 0x02, 0x01, 0x12, 0x12, 0x89, 0xd4, 0x90, 0x05, 0x22, 0x32, 0x82, 0x05,
|
||||
0x8a, 0x14, 0x39, 0xce, 0x34, 0xb5, 0xf2, 0xb0, 0xeb, 0x19, 0x57, 0x0a, 0x1b, 0x76, 0xb0, 0xe7,
|
||||
0x27, 0xb0, 0x84, 0x05, 0x42, 0x08, 0xc4, 0x96, 0x2d, 0xbf, 0x0a, 0xcd, 0xc3, 0x71, 0x42, 0x12,
|
||||
0x37, 0x50, 0x29, 0x15, 0xab, 0x76, 0x7c, 0xce, 0xbd, 0x73, 0xce, 0xc9, 0xcc, 0xb5, 0xe1, 0x96,
|
||||
0x4b, 0x8b, 0x39, 0xaf, 0x45, 0xfa, 0xcc, 0x63, 0x83, 0x5c, 0x3b, 0xf4, 0xa3, 0x20, 0x77, 0x9c,
|
||||
0x6f, 0x12, 0xe6, 0xe4, 0xe5, 0xaa, 0xe1, 0x04, 0x9e, 0x15, 0x84, 0x3e, 0xf3, 0xb1, 0xe1, 0xd2,
|
||||
0xa2, 0x15, 0x73, 0x2d, 0x81, 0x5a, 0x8a, 0x6b, 0xa4, 0xf5, 0x09, 0x09, 0xf5, 0xa3, 0xd0, 0x25,
|
||||
0x54, 0xf6, 0x31, 0x6e, 0x8e, 0x71, 0x23, 0x4a, 0xc2, 0x99, 0xd4, 0x2b, 0x9c, 0x1a, 0x06, 0xee,
|
||||
0x90, 0x40, 0x99, 0xc3, 0xa2, 0x18, 0xbd, 0xca, 0x51, 0x36, 0x08, 0x08, 0x1d, 0xe2, 0x62, 0x25,
|
||||
0x61, 0xf3, 0x3b, 0x82, 0xf3, 0x15, 0xc2, 0x2a, 0x5c, 0x8c, 0x4d, 0x8e, 0x22, 0x42, 0x19, 0xce,
|
||||
0x83, 0xee, 0x07, 0xce, 0x51, 0x44, 0xb2, 0x68, 0x07, 0xed, 0xae, 0x17, 0x2e, 0x5b, 0xdc, 0x94,
|
||||
0xac, 0x52, 0x3d, 0xac, 0xa7, 0x82, 0x60, 0x2b, 0x22, 0x7e, 0x08, 0x19, 0x99, 0x84, 0xd7, 0xca,
|
||||
0x6a, 0xa2, 0xe8, 0x86, 0x35, 0x3b, 0x09, 0x4b, 0x6c, 0x57, 0x6d, 0xd9, 0xab, 0x6d, 0xf9, 0x0f,
|
||||
0x2e, 0xc0, 0x25, 0xda, 0xf1, 0x82, 0xc6, 0x01, 0x61, 0xee, 0xa1, 0xd7, 0x6f, 0x37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 0x27, 0x51, 0x0d, 0xbd, 0xfc, 0x4f, 0xe0,
|
||||
0x0a, 0x7e, 0xaf, 0x2d, 0x95, 0xab, 0x95, 0x0f, 0x9a, 0x51, 0xa6, 0x45, 0xab, 0x1a, 0x77, 0x10,
|
||||
0x25, 0xd6, 0x8b, 0x7c, 0x89, 0x53, 0x7e, 0x0a, 0xb0, 0x1e, 0x83, 0x75, 0x01, 0xd6, 0x15, 0xd8,
|
||||
0xd4, 0xc5, 0x97, 0x56, 0xf1, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x83, 0xca, 0x46, 0x47,
|
||||
0x0a, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// GroupAPIClient is the client API for GroupAPI service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#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.ClientConn
|
||||
}
|
||||
|
||||
func NewGroupAPIClient(cc *grpc.ClientConn) 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, "/cs3.identity.group.v1beta1.GroupAPI/GetGroup", 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, "/cs3.identity.group.v1beta1.GroupAPI/GetGroupByClaim", 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, "/cs3.identity.group.v1beta1.GroupAPI/GetMembers", 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, "/cs3.identity.group.v1beta1.GroupAPI/HasMember", 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, "/cs3.identity.group.v1beta1.GroupAPI/FindGroups", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// GroupAPIServer is the server API for GroupAPI service.
|
||||
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 can be embedded to have forward compatible implementations.
|
||||
type UnimplementedGroupAPIServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedGroupAPIServer) GetGroup(ctx context.Context, req *GetGroupRequest) (*GetGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetGroup not implemented")
|
||||
}
|
||||
func (*UnimplementedGroupAPIServer) GetGroupByClaim(ctx context.Context, req *GetGroupByClaimRequest) (*GetGroupByClaimResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetGroupByClaim not implemented")
|
||||
}
|
||||
func (*UnimplementedGroupAPIServer) GetMembers(ctx context.Context, req *GetMembersRequest) (*GetMembersResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetMembers not implemented")
|
||||
}
|
||||
func (*UnimplementedGroupAPIServer) HasMember(ctx context.Context, req *HasMemberRequest) (*HasMemberResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method HasMember not implemented")
|
||||
}
|
||||
func (*UnimplementedGroupAPIServer) FindGroups(ctx context.Context, req *FindGroupsRequest) (*FindGroupsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindGroups not implemented")
|
||||
}
|
||||
|
||||
func RegisterGroupAPIServer(s *grpc.Server, 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: "/cs3.identity.group.v1beta1.GroupAPI/GetGroup",
|
||||
}
|
||||
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: "/cs3.identity.group.v1beta1.GroupAPI/GetGroupByClaim",
|
||||
}
|
||||
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: "/cs3.identity.group.v1beta1.GroupAPI/GetMembers",
|
||||
}
|
||||
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: "/cs3.identity.group.v1beta1.GroupAPI/HasMember",
|
||||
}
|
||||
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: "/cs3.identity.group.v1beta1.GroupAPI/FindGroups",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupAPIServer).FindGroups(ctx, req.(*FindGroupsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
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",
|
||||
}
|
||||
+210
@@ -0,0 +1,210 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// A GroupId represents a group.
|
||||
type GroupId struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *GroupId) Reset() { *m = GroupId{} }
|
||||
func (m *GroupId) String() string { return proto.CompactTextString(m) }
|
||||
func (*GroupId) ProtoMessage() {}
|
||||
func (*GroupId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_855c824f484248c0, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GroupId) GetOpaqueId() string {
|
||||
if m != nil {
|
||||
return m.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:"-"`
|
||||
}
|
||||
|
||||
func (m *Group) Reset() { *m = Group{} }
|
||||
func (m *Group) String() string { return proto.CompactTextString(m) }
|
||||
func (*Group) ProtoMessage() {}
|
||||
func (*Group) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_855c824f484248c0, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Group) GetGroupName() string {
|
||||
if m != nil {
|
||||
return m.GroupName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Group) GetGidNumber() int64 {
|
||||
if m != nil {
|
||||
return m.GidNumber
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Group) GetMail() string {
|
||||
if m != nil {
|
||||
return m.Mail
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Group) GetMailVerified() bool {
|
||||
if m != nil {
|
||||
return m.MailVerified
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *Group) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Group) GetMembers() []*v1beta1.UserId {
|
||||
if m != nil {
|
||||
return m.Members
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Group) GetOpaque() *v1beta11.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GroupId)(nil), "cs3.identity.group.v1beta1.GroupId")
|
||||
proto.RegisterType((*Group)(nil), "cs3.identity.group.v1beta1.Group")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/identity/group/v1beta1/resources.proto", fileDescriptor_855c824f484248c0)
|
||||
}
|
||||
|
||||
var fileDescriptor_855c824f484248c0 = []byte{
|
||||
// 390 bytes of a gzipped FileDescriptorProto
|
||||
0x1f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 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,
|
||||
}
|
||||
+293
@@ -0,0 +1,293 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// The type of user.
|
||||
type UserType int32
|
||||
|
||||
const (
|
||||
// The user is invalid, for example, is missing primary attributes.
|
||||
UserType_USER_TYPE_INVALID UserType = 0
|
||||
// A primary user.
|
||||
UserType_USER_TYPE_PRIMARY UserType = 1
|
||||
// A secondary user for cases with multiple identities.
|
||||
UserType_USER_TYPE_SECONDARY UserType = 2
|
||||
// A user catering to specific services.
|
||||
UserType_USER_TYPE_SERVICE UserType = 3
|
||||
// A user to be used by specific applications.
|
||||
UserType_USER_TYPE_APPLICATION UserType = 4
|
||||
// A guest user not affiliated to the IDP.
|
||||
UserType_USER_TYPE_GUEST UserType = 5
|
||||
// A federated user provided by external IDPs.
|
||||
UserType_USER_TYPE_FEDERATED UserType = 6
|
||||
// A lightweight user account without access to various major functionalities.
|
||||
UserType_USER_TYPE_LIGHTWEIGHT UserType = 7
|
||||
// A space owner to allow access for public link or content indexing.
|
||||
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",
|
||||
}
|
||||
|
||||
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) String() string {
|
||||
return proto.EnumName(UserType_name, int32(x))
|
||||
}
|
||||
|
||||
func (UserType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f6f8fec048fe85c8, []int{0}
|
||||
}
|
||||
|
||||
// A UserId represents a user.
|
||||
type UserId struct {
|
||||
// REQUIRED.
|
||||
// The identity provider for the user.
|
||||
Idp string `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"`
|
||||
// REQUIRED.
|
||||
// the unique identifier for the user in the scope of
|
||||
// the identity provider.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *UserId) Reset() { *m = UserId{} }
|
||||
func (m *UserId) String() string { return proto.CompactTextString(m) }
|
||||
func (*UserId) ProtoMessage() {}
|
||||
func (*UserId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f6f8fec048fe85c8, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *UserId) GetOpaqueId() string {
|
||||
if m != nil {
|
||||
return m.OpaqueId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *UserId) GetType() UserType {
|
||||
if m != nil {
|
||||
return m.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:"-"`
|
||||
}
|
||||
|
||||
func (m *User) Reset() { *m = User{} }
|
||||
func (m *User) String() string { return proto.CompactTextString(m) }
|
||||
func (*User) ProtoMessage() {}
|
||||
func (*User) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f6f8fec048fe85c8, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *User) GetUsername() string {
|
||||
if m != nil {
|
||||
return m.Username
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *User) GetMail() string {
|
||||
if m != nil {
|
||||
return m.Mail
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *User) GetMailVerified() bool {
|
||||
if m != nil {
|
||||
return m.MailVerified
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *User) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *User) GetGroups() []string {
|
||||
if m != nil {
|
||||
return m.Groups
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *User) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *User) GetUidNumber() int64 {
|
||||
if m != nil {
|
||||
return m.UidNumber
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *User) GetGidNumber() int64 {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/identity/user/v1beta1/resources.proto", fileDescriptor_f6f8fec048fe85c8)
|
||||
}
|
||||
|
||||
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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|
||||
0x00,
|
||||
}
|
||||
+769
@@ -0,0 +1,769 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/identity/user/v1beta1/user_api.proto
|
||||
|
||||
package userv1beta1
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
type GetUserRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The id of the user.
|
||||
UserId *UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Whether to skip fetching user groups along with the user object.
|
||||
SkipFetchingUserGroups bool `protobuf:"varint,3,opt,name=skip_fetching_user_groups,json=skipFetchingUserGroups,proto3" json:"skip_fetching_user_groups,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetUserRequest) Reset() { *m = GetUserRequest{} }
|
||||
func (m *GetUserRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetUserRequest) ProtoMessage() {}
|
||||
func (*GetUserRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fb4e4164505d2418, []int{0}
|
||||
}
|
||||
|
||||
func (m *GetUserRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetUserRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetUserRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetUserRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetUserRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetUserRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetUserRequest.Size(m)
|
||||
}
|
||||
func (m *GetUserRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetUserRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetUserRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetUserRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserRequest) GetUserId() *UserId {
|
||||
if m != nil {
|
||||
return m.UserId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserRequest) GetSkipFetchingUserGroups() bool {
|
||||
if m != nil {
|
||||
return m.SkipFetchingUserGroups
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type GetUserResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The user information.
|
||||
User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetUserResponse) Reset() { *m = GetUserResponse{} }
|
||||
func (m *GetUserResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetUserResponse) ProtoMessage() {}
|
||||
func (*GetUserResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fb4e4164505d2418, []int{1}
|
||||
}
|
||||
|
||||
func (m *GetUserResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetUserResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetUserResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetUserResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetUserResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetUserResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetUserResponse.Size(m)
|
||||
}
|
||||
func (m *GetUserResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetUserResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetUserResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetUserResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserResponse) GetUser() *User {
|
||||
if m != nil {
|
||||
return m.User
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetUserByClaimRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The claim on the basis of which users will be filtered.
|
||||
Claim string `protobuf:"bytes,2,opt,name=claim,proto3" json:"claim,omitempty"`
|
||||
// REQUIRED.
|
||||
// The value of the claim to find the specific user.
|
||||
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Whether to skip fetching user groups along with the user object.
|
||||
SkipFetchingUserGroups bool `protobuf:"varint,4,opt,name=skip_fetching_user_groups,json=skipFetchingUserGroups,proto3" json:"skip_fetching_user_groups,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetUserByClaimRequest) Reset() { *m = GetUserByClaimRequest{} }
|
||||
func (m *GetUserByClaimRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetUserByClaimRequest) ProtoMessage() {}
|
||||
func (*GetUserByClaimRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fb4e4164505d2418, []int{2}
|
||||
}
|
||||
|
||||
func (m *GetUserByClaimRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetUserByClaimRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetUserByClaimRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetUserByClaimRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetUserByClaimRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetUserByClaimRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetUserByClaimRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetUserByClaimRequest.Size(m)
|
||||
}
|
||||
func (m *GetUserByClaimRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetUserByClaimRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetUserByClaimRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetUserByClaimRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserByClaimRequest) GetClaim() string {
|
||||
if m != nil {
|
||||
return m.Claim
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GetUserByClaimRequest) GetValue() string {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GetUserByClaimRequest) GetSkipFetchingUserGroups() bool {
|
||||
if m != nil {
|
||||
return m.SkipFetchingUserGroups
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type GetUserByClaimResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The user information.
|
||||
User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetUserByClaimResponse) Reset() { *m = GetUserByClaimResponse{} }
|
||||
func (m *GetUserByClaimResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetUserByClaimResponse) ProtoMessage() {}
|
||||
func (*GetUserByClaimResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fb4e4164505d2418, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetUserByClaimResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetUserByClaimResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetUserByClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetUserByClaimResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetUserByClaimResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetUserByClaimResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetUserByClaimResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetUserByClaimResponse.Size(m)
|
||||
}
|
||||
func (m *GetUserByClaimResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetUserByClaimResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetUserByClaimResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetUserByClaimResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserByClaimResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserByClaimResponse) GetUser() *User {
|
||||
if m != nil {
|
||||
return m.User
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetUserGroupsRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The id of the user.
|
||||
UserId *UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetUserGroupsRequest) Reset() { *m = GetUserGroupsRequest{} }
|
||||
func (m *GetUserGroupsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetUserGroupsRequest) ProtoMessage() {}
|
||||
func (*GetUserGroupsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fb4e4164505d2418, []int{4}
|
||||
}
|
||||
|
||||
func (m *GetUserGroupsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetUserGroupsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetUserGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetUserGroupsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetUserGroupsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetUserGroupsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetUserGroupsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetUserGroupsRequest.Size(m)
|
||||
}
|
||||
func (m *GetUserGroupsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetUserGroupsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetUserGroupsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetUserGroupsRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserGroupsRequest) GetUserId() *UserId {
|
||||
if m != nil {
|
||||
return m.UserId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetUserGroupsResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The groups for the user.
|
||||
Groups []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetUserGroupsResponse) Reset() { *m = GetUserGroupsResponse{} }
|
||||
func (m *GetUserGroupsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetUserGroupsResponse) ProtoMessage() {}
|
||||
func (*GetUserGroupsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fb4e4164505d2418, []int{5}
|
||||
}
|
||||
|
||||
func (m *GetUserGroupsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetUserGroupsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetUserGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetUserGroupsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetUserGroupsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetUserGroupsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetUserGroupsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetUserGroupsResponse.Size(m)
|
||||
}
|
||||
func (m *GetUserGroupsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetUserGroupsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetUserGroupsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetUserGroupsResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserGroupsResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetUserGroupsResponse) GetGroups() []string {
|
||||
if m != nil {
|
||||
return m.Groups
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type FindUsersRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED. TODO(labkode): create proper filters for most common searches.
|
||||
// The filter to apply.
|
||||
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Whether to skip fetching user groups along with the user object.
|
||||
SkipFetchingUserGroups bool `protobuf:"varint,3,opt,name=skip_fetching_user_groups,json=skipFetchingUserGroups,proto3" json:"skip_fetching_user_groups,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FindUsersRequest) Reset() { *m = FindUsersRequest{} }
|
||||
func (m *FindUsersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*FindUsersRequest) ProtoMessage() {}
|
||||
func (*FindUsersRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fb4e4164505d2418, []int{6}
|
||||
}
|
||||
|
||||
func (m *FindUsersRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FindUsersRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FindUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FindUsersRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *FindUsersRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FindUsersRequest.Merge(m, src)
|
||||
}
|
||||
func (m *FindUsersRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_FindUsersRequest.Size(m)
|
||||
}
|
||||
func (m *FindUsersRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FindUsersRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FindUsersRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *FindUsersRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FindUsersRequest) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *FindUsersRequest) GetSkipFetchingUserGroups() bool {
|
||||
if m != nil {
|
||||
return m.SkipFetchingUserGroups
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type FindUsersResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The users matching the specified filter.
|
||||
Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FindUsersResponse) Reset() { *m = FindUsersResponse{} }
|
||||
func (m *FindUsersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*FindUsersResponse) ProtoMessage() {}
|
||||
func (*FindUsersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fb4e4164505d2418, []int{7}
|
||||
}
|
||||
|
||||
func (m *FindUsersResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FindUsersResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FindUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FindUsersResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *FindUsersResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FindUsersResponse.Merge(m, src)
|
||||
}
|
||||
func (m *FindUsersResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_FindUsersResponse.Size(m)
|
||||
}
|
||||
func (m *FindUsersResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FindUsersResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FindUsersResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *FindUsersResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FindUsersResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FindUsersResponse) GetUsers() []*User {
|
||||
if m != nil {
|
||||
return m.Users
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GetUserRequest)(nil), "cs3.identity.user.v1beta1.GetUserRequest")
|
||||
proto.RegisterType((*GetUserResponse)(nil), "cs3.identity.user.v1beta1.GetUserResponse")
|
||||
proto.RegisterType((*GetUserByClaimRequest)(nil), "cs3.identity.user.v1beta1.GetUserByClaimRequest")
|
||||
proto.RegisterType((*GetUserByClaimResponse)(nil), "cs3.identity.user.v1beta1.GetUserByClaimResponse")
|
||||
proto.RegisterType((*GetUserGroupsRequest)(nil), "cs3.identity.user.v1beta1.GetUserGroupsRequest")
|
||||
proto.RegisterType((*GetUserGroupsResponse)(nil), "cs3.identity.user.v1beta1.GetUserGroupsResponse")
|
||||
proto.RegisterType((*FindUsersRequest)(nil), "cs3.identity.user.v1beta1.FindUsersRequest")
|
||||
proto.RegisterType((*FindUsersResponse)(nil), "cs3.identity.user.v1beta1.FindUsersResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/identity/user/v1beta1/user_api.proto", fileDescriptor_fb4e4164505d2418)
|
||||
}
|
||||
|
||||
var fileDescriptor_fb4e4164505d2418 = []byte{
|
||||
// 577 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x4d, 0x6f, 0x52, 0x41,
|
||||
0x14, 0xcd, 0x40, 0xfb, 0x90, 0x8b, 0x9f, 0x93, 0x8a, 0xf0, 0x62, 0x63, 0x65, 0x45, 0xd5, 0x0c,
|
||||
0x05, 0xe2, 0x42, 0x77, 0x42, 0xd2, 0x86, 0x95, 0xe4, 0x99, 0xba, 0x30, 0x24, 0xf8, 0xfa, 0x18,
|
||||
0xea, 0x44, 0xca, 0x9b, 0xce, 0xcc, 0x6b, 0x82, 0x7b, 0x7f, 0x81, 0x1b, 0xd7, 0x2e, 0xbb, 0x30,
|
||||
0xe9, 0xd6, 0x85, 0x3f, 0xc0, 0x5f, 0x65, 0xe6, 0x83, 0x67, 0x69, 0xc2, 0x87, 0x21, 0xa9, 0xae,
|
||||
0xc8, 0xe5, 0x9c, 0x73, 0xef, 0xb9, 0x77, 0xee, 0xcc, 0x83, 0x6a, 0x24, 0x9b, 0x35, 0x36, 0xa0,
|
||||
0x63, 0xc5, 0xd4, 0xa4, 0x96, 0x48, 0x2a, 0x6a, 0x67, 0xf5, 0x23, 0xaa, 0xc2, 0xba, 0x09, 0xfa,
|
||||
0x21, 0x67, 0x84, 0x8b, 0x58, 0xc5, 0xb8, 0x1c, 0xc9, 0x26, 0x99, 0x32, 0x89, 0x06, 0x89, 0x63,
|
||||
0xfa, 0xbb, 0xf3, 0x93, 0x08, 0x2a, 0xe3, 0x44, 0x44, 0x54, 0xda, 0x2c, 0xfe, 0x43, 0x4d, 0x15,
|
||||
0x3c, 0x4a, 0x09, 0x52,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|
||||
0xaf, 0x6e, 0xb2, 0xff, 0x6c, 0x35, 0xb2, 0xad, 0xd3, 0xfa, 0x04, 0xdb, 0x51, 0x7c, 0x32, 0x5f,
|
||||
0xd2, 0xba, 0x69, 0x8e, 0x97, 0xb3, 0xae, 0xfe, 0x56, 0x76, 0xd1, 0xbb, 0x82, 0x46, 0x1d, 0xf8,
|
||||
0x2d, 0x93, 0x6d, 0x77, 0x0e, 0xcf, 0x33, 0xe5, 0xb6, 0x6c, 0x92, 0xce, 0x54, 0xae, 0x05, 0xe4,
|
||||
0x6d, 0xbd, 0xa5, 0x19, 0xbf, 0x0c, 0xd6, 0x9b, 0x62, 0x3d, 0x8d, 0xf5, 0x1c, 0x76, 0xe4, 0x99,
|
||||
0xef, 0x6f, 0xf3, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x54, 0x66, 0x47, 0xc4, 0x2e, 0x08, 0x00,
|
||||
0x00,
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// UserAPIClient is the client API for UserAPI service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#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.ClientConn
|
||||
}
|
||||
|
||||
func NewUserAPIClient(cc *grpc.ClientConn) 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, "/cs3.identity.user.v1beta1.UserAPI/GetUser", 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, "/cs3.identity.user.v1beta1.UserAPI/GetUserByClaim", 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, "/cs3.identity.user.v1beta1.UserAPI/GetUserGroups", 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, "/cs3.identity.user.v1beta1.UserAPI/FindUsers", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// UserAPIServer is the server API for UserAPI service.
|
||||
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 can be embedded to have forward compatible implementations.
|
||||
type UnimplementedUserAPIServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedUserAPIServer) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
|
||||
}
|
||||
func (*UnimplementedUserAPIServer) GetUserByClaim(ctx context.Context, req *GetUserByClaimRequest) (*GetUserByClaimResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetUserByClaim not implemented")
|
||||
}
|
||||
func (*UnimplementedUserAPIServer) GetUserGroups(ctx context.Context, req *GetUserGroupsRequest) (*GetUserGroupsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetUserGroups not implemented")
|
||||
}
|
||||
func (*UnimplementedUserAPIServer) FindUsers(ctx context.Context, req *FindUsersRequest) (*FindUsersResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindUsers not implemented")
|
||||
}
|
||||
|
||||
func RegisterUserAPIServer(s *grpc.Server, 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: "/cs3.identity.user.v1beta1.UserAPI/GetUser",
|
||||
}
|
||||
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: "/cs3.identity.user.v1beta1.UserAPI/GetUserByClaim",
|
||||
}
|
||||
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: "/cs3.identity.user.v1beta1.UserAPI/GetUserGroups",
|
||||
}
|
||||
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: "/cs3.identity.user.v1beta1.UserAPI/FindUsers",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UserAPIServer).FindUsers(ctx, req.(*FindUsersRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
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",
|
||||
}
|
||||
+329
@@ -0,0 +1,329 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/ocm/core/v1beta1/ocm_core_api.proto
|
||||
|
||||
package corev1beta1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
fmt "fmt"
|
||||
v1beta11 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
||||
v1beta12 "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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// https://rawgit.com/GEANT/OCM-API/v1/docs.html#null%2Fpaths%2F~1shares%2Fpost
|
||||
type CreateOCMCoreShareRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Description for the share.
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// REQUIRED.
|
||||
// Name of the resource (file or folder).
|
||||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// REQUIRED.
|
||||
// Identifier to identify the resource at the provider side. This is unique per provider.
|
||||
ProviderId string `protobuf:"bytes,4,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
|
||||
// REQUIRED.
|
||||
// Provider specific identifier of the user that wants to share the resource.
|
||||
Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
|
||||
// REQUIRED.
|
||||
// Consumer specific identifier of the user or group the provider wants to share the resource with.
|
||||
// This is known in advance, for example using the OCM invitation flow.
|
||||
// Please note that the consumer service endpoint is known in advance as well, so this is no part of the request body.
|
||||
// TODO: this field needs to represent either a user or group in the future, not only a user.
|
||||
ShareWith *v1beta11.UserId `protobuf:"bytes,6,opt,name=share_with,json=shareWith,proto3" json:"share_with,omitempty"`
|
||||
// REQUIRED.
|
||||
// The protocol which is used to establish synchronisation.
|
||||
Protocol *Protocol `protobuf:"bytes,7,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareRequest) Reset() { *m = CreateOCMCoreShareRequest{} }
|
||||
func (m *CreateOCMCoreShareRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateOCMCoreShareRequest) ProtoMessage() {}
|
||||
func (*CreateOCMCoreShareRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4e8f411283db0fc7, []int{0}
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateOCMCoreShareRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateOCMCoreShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateOCMCoreShareRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateOCMCoreShareRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateOCMCoreShareRequest.Merge(m, src)
|
||||
}
|
||||
func (m *CreateOCMCoreShareRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateOCMCoreShareRequest.Size(m)
|
||||
}
|
||||
func (m *CreateOCMCoreShareRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateOCMCoreShareRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateOCMCoreShareRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateOCMCoreShareRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareRequest) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareRequest) GetProviderId() string {
|
||||
if m != nil {
|
||||
return m.ProviderId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareRequest) GetOwner() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Owner
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareRequest) GetShareWith() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.ShareWith
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareRequest) GetProtocol() *Protocol {
|
||||
if m != nil {
|
||||
return m.Protocol
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CreateOCMCoreShareResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// Unique ID to identify the share at the consumer side.
|
||||
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// REQUIRED.
|
||||
Created *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareResponse) Reset() { *m = CreateOCMCoreShareResponse{} }
|
||||
func (m *CreateOCMCoreShareResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateOCMCoreShareResponse) ProtoMessage() {}
|
||||
func (*CreateOCMCoreShareResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4e8f411283db0fc7, []int{1}
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateOCMCoreShareResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateOCMCoreShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateOCMCoreShareResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateOCMCoreShareResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateOCMCoreShareResponse.Merge(m, src)
|
||||
}
|
||||
func (m *CreateOCMCoreShareResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateOCMCoreShareResponse.Size(m)
|
||||
}
|
||||
func (m *CreateOCMCoreShareResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateOCMCoreShareResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateOCMCoreShareResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateOCMCoreShareResponse) GetStatus() *v1beta12.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareResponse) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateOCMCoreShareResponse) GetCreated() *v1beta1.Timestamp {
|
||||
if m != nil {
|
||||
return m.Created
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*CreateOCMCoreShareRequest)(nil), "cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest")
|
||||
proto.RegisterType((*CreateOCMCoreShareResponse)(nil), "cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/ocm/core/v1beta1/ocm_core_api.proto", fileDescriptor_4e8f411283db0fc7)
|
||||
}
|
||||
|
||||
var fileDescriptor_4e8f411283db0fc7 = []byte{
|
||||
// 484 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xdd, 0x6a, 0xd4, 0x40,
|
||||
0x14, 0x26, 0x69, 0xbb, 0xb5, 0x27, 0xa0, 0x30, 0x14, 0x4c, 0x97, 0xaa, 0x6b, 0x11, 0xac, 0x37,
|
||||
0x13, 0x77, 0x17, 0x14, 0xbc, 0xd2, 0xcd, 0x55, 0x2f, 0x24, 0x4b, 0xea, 0x0f, 0xc8, 0xc2, 0x92,
|
||||
0x4e, 0x0e, 0xec, 0x80, 0xc9, 0x4c, 0x67, 0x26, 0x5d, 0xfa, 0x00, 0xbe, 0x88, 0x97, 0x3e, 0x89,
|
||||
0xf8, 0x0c, 0x3e, 0x8c, 0xcc, 0x64, 0x12, 0x8a, 0x46, 0xd8, 0xbb, 0xe4, 0xfb, 0x39, 0x39, 0xe7,
|
||||
0xfb, 0x02, 0xcf, 0x99, 0x9e, 0x27, 0x82, 0x55, 0x09, 0x13, 0x0a, 0x93, 0x9b, 0xe9, 0x15, 0x9a,
|
||||
0x62, 0x6a, 0x81, 0xb5, 0x05, 0xd6, 0x85, 0xe4, 0x54, 0x2a, 0x61, 0x04, 0x39, 0x66, 0x7a, 0x4e,
|
||||
0x05, 0xab, 0xa8, 0xc5, 0xa9, 0x17, 0x8e, 0x5f, 0x58, 0x3b, 0x2f, 0xb1, 0x36, 0xdc, 0xdc, 0x26,
|
||||
0x8d, 0x46, 0xd5, 0xcf, 0x50, 0xa8, 0x45, 0xa3, 0x18, 0xea, 0x76, 0xc0, 0xf8, 0xd9, 0xe0, 0x97,
|
||||
0xfe, 0x56, 0x9d, 0x5a, 0x95, 0x92, 0xac, 0x17, 0x68, 0x53, 0x98, 0xa6, 0x63, 0x1f, 0x59, 0xd6,
|
||||
0xdc, 0x4a, 0xd4, 0x3d, 0xef, 0xde, 0x5a, 0xfa, 0xec, 0x77, 0x08, 0x27, 0xa9, 0xc2, 0xc2, 0x60,
|
||||
0x96, 0xbe, 0x4f, 0x85, 0xc2, 0xcb, 0x4d, 0xa1, 0x30, 0xc7, 0xeb, 0x06, 0xb5, 0x21, 0x53, 0x18,
|
||||
0x09, 0x59, 0x5c, 0x37, 0x18, 0x07, 0x93, 0xe0, 0x3c, 0x9a, 0x9d, 0x50, 0x7b, 0x52, 0xeb, 0xf7,
|
||||
0xd3, 0x68, 0xe6, 0x04, 0xb9, 0x17, 0x92, 0x09, 0x44, 0x25, 0x6a, 0xa6, 0xb8, 0x34, 0x5c, 0xd4,
|
||||
0x71, 0x38, 0x09, 0xce, 0x8f, 0xf2, 0xbb, 0x10, 0x21, 0xb0, 0x5f, 0x17, 0x15, 0xc6, 0x7b, 0x8e,
|
||||
0x72, 0xcf, 0xe4, 0x09, 0x44, 0x52, 0x89, 0x1b, 0x5e, 0xa2, 0x5a, 0xf3, 0x32, 0xde, 0x77, 0x14,
|
||||
0x74, 0xd0, 0x45, 0x49, 0x5e, 0xc3, 0x81, 0xd8, 0xd6, 0xa8, 0xe2, 0x03, 0xb7, 0xc8, 0x53, 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x39, 0xcd, 0x58,
|
||||
0x45, 0xad, 0x96, 0x7e, 0x9a, 0x2e, 0x2c, 0xf9, 0xcb, 0xc1, 0xab, 0x8c, 0x55, 0x2b, 0x0b, 0xaf,
|
||||
0x3c, 0x7c, 0x35, 0x72, 0x65, 0xce, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x27, 0xaa, 0xb1,
|
||||
0xf7, 0x03, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// OcmCoreAPIClient is the client API for OcmCoreAPI service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type OcmCoreAPIClient interface {
|
||||
// Creates a new ocm share.
|
||||
CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*CreateOCMCoreShareResponse, error)
|
||||
}
|
||||
|
||||
type ocmCoreAPIClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewOcmCoreAPIClient(cc *grpc.ClientConn) 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, "/cs3.ocm.core.v1beta1.OcmCoreAPI/CreateOCMCoreShare", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// OcmCoreAPIServer is the server API for OcmCoreAPI service.
|
||||
type OcmCoreAPIServer interface {
|
||||
// Creates a new ocm share.
|
||||
CreateOCMCoreShare(context.Context, *CreateOCMCoreShareRequest) (*CreateOCMCoreShareResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedOcmCoreAPIServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedOcmCoreAPIServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedOcmCoreAPIServer) CreateOCMCoreShare(ctx context.Context, req *CreateOCMCoreShareRequest) (*CreateOCMCoreShareResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateOCMCoreShare not implemented")
|
||||
}
|
||||
|
||||
func RegisterOcmCoreAPIServer(s *grpc.Server, 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: "/cs3.ocm.core.v1beta1.OcmCoreAPI/CreateOCMCoreShare",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OcmCoreAPIServer).CreateOCMCoreShare(ctx, req.(*CreateOCMCoreShareRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _OcmCoreAPI_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cs3.ocm.core.v1beta1.OcmCoreAPI",
|
||||
HandlerType: (*OcmCoreAPIServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "CreateOCMCoreShare",
|
||||
Handler: _OcmCoreAPI_CreateOCMCoreShare_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cs3/ocm/core/v1beta1/ocm_core_api.proto",
|
||||
}
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/ocm/core/v1beta1/resources.proto
|
||||
|
||||
package corev1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// The protocol which is used to establish synchronisation.
|
||||
type Protocol struct {
|
||||
// REQUIRED.
|
||||
// The name of the protocol to use.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// REQUIRED.
|
||||
// JSON object with protocol specific options,
|
||||
// e.g. uri, access_token, password, permissions etc.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Protocol) Reset() { *m = Protocol{} }
|
||||
func (m *Protocol) String() string { return proto.CompactTextString(m) }
|
||||
func (*Protocol) ProtoMessage() {}
|
||||
func (*Protocol) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2e4d9c6821c1d4ee, []int{0}
|
||||
}
|
||||
|
||||
func (m *Protocol) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Protocol.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Protocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Protocol.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Protocol) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Protocol.Merge(m, src)
|
||||
}
|
||||
func (m *Protocol) XXX_Size() int {
|
||||
return xxx_messageInfo_Protocol.Size(m)
|
||||
}
|
||||
func (m *Protocol) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Protocol.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Protocol proto.InternalMessageInfo
|
||||
|
||||
func (m *Protocol) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Protocol) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Protocol)(nil), "cs3.ocm.core.v1beta1.Protocol")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/ocm/core/v1beta1/resources.proto", fileDescriptor_2e4d9c6821c1d4ee)
|
||||
}
|
||||
|
||||
var fileDescriptor_2e4d9c6821c1d4ee = []byte{
|
||||
// 219 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0x2e, 0x36, 0xd6,
|
||||
0xcf, 0x4f, 0xce, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 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, 0x49, 0x2e, 0x36, 0xd6, 0xcb, 0x4f, 0xce, 0xd5, 0x03, 0xa9, 0xd2, 0x83, 0xaa, 0x92,
|
||||
0x92, 0x05, 0xe9, 0x2d, 0xa9, 0x2c, 0x48, 0x2d, 0x86, 0x6b, 0x04, 0xf3, 0x20, 0x9a, 0x94, 0x02,
|
||||
0xb9, 0x38, 0x02, 0x40, 0x8c, 0xe4, 0xfc, 0x1c, 0x21, 0x21, 0x2e, 0x96, 0xbc, 0xc4, 0xdc, 0x54,
|
||||
0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0x5b, 0xc8, 0x90, 0x8b, 0x2d, 0xbf, 0x20, 0xb1,
|
||||
0xb0, 0x34, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x52, 0x0f, 0x64, 0x0b, 0xc4, 0x04,
|
||||
0xa8, 0x79, 0x7a, 0xfe, 0x60, 0x05, 0x41, 0x50, 0x85, 0x4e, 0xb9, 0x5c, 0x12, 0xc9, 0xf9, 0xb9,
|
||||
0x7a, 0xd8, 0x5c, 0xe3, 0xc4, 0x17, 0x04, 0x73, 0x34, 0xd8, 0xd6, 0x00, 0xc6, 0x28, 0x6e, 0x90,
|
||||
0x3c, 0x54, 0x7a, 0x11, 0x13, 0xb3, 0xb3, 0xbf, 0xf3, 0x2a, 0x26, 0x11, 0xe7, 0x62, 0x63, 0x3d,
|
||||
0xff, 0xe4, 0x5c, 0x3d, 0x67, 0x90, 0xde, 0x30, 0x43, 0x27, 0x90, 0xe4, 0x29, 0xb0, 0x70, 0x8c,
|
||||
0x7f, 0x72, 0x6e, 0x0c, 0x48, 0x38, 0x06, 0x2a, 0x9c, 0xc4, 0x06, 0xf6, 0x88, 0x31, 0x20, 0x00,
|
||||
0x00, 0xff, 0xff, 0x20, 0x4f, 0x98, 0x27, 0x25, 0x01, 0x00, 0x00,
|
||||
}
|
||||
+876
@@ -0,0 +1,876 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/ocm/invite/v1beta1/invite_api.proto
|
||||
|
||||
package invitev1beta1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
fmt "fmt"
|
||||
v1beta13 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
||||
v1beta12 "github.com/cs3org/go-cs3apis/cs3/ocm/provider/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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
type GenerateInviteTokenRequest struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *GenerateInviteTokenRequest) Reset() { *m = GenerateInviteTokenRequest{} }
|
||||
func (m *GenerateInviteTokenRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GenerateInviteTokenRequest) ProtoMessage() {}
|
||||
func (*GenerateInviteTokenRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{0}
|
||||
}
|
||||
|
||||
func (m *GenerateInviteTokenRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GenerateInviteTokenRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GenerateInviteTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GenerateInviteTokenRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GenerateInviteTokenRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GenerateInviteTokenRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GenerateInviteTokenRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GenerateInviteTokenRequest.Size(m)
|
||||
}
|
||||
func (m *GenerateInviteTokenRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GenerateInviteTokenRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GenerateInviteTokenRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GenerateInviteTokenRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GenerateInviteTokenResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The generated token.
|
||||
InviteToken *InviteToken `protobuf:"bytes,3,opt,name=invite_token,json=inviteToken,proto3" json:"invite_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GenerateInviteTokenResponse) Reset() { *m = GenerateInviteTokenResponse{} }
|
||||
func (m *GenerateInviteTokenResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GenerateInviteTokenResponse) ProtoMessage() {}
|
||||
func (*GenerateInviteTokenResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{1}
|
||||
}
|
||||
|
||||
func (m *GenerateInviteTokenResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GenerateInviteTokenResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GenerateInviteTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GenerateInviteTokenResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GenerateInviteTokenResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GenerateInviteTokenResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GenerateInviteTokenResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GenerateInviteTokenResponse.Size(m)
|
||||
}
|
||||
func (m *GenerateInviteTokenResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GenerateInviteTokenResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GenerateInviteTokenResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GenerateInviteTokenResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GenerateInviteTokenResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GenerateInviteTokenResponse) GetInviteToken() *InviteToken {
|
||||
if m != nil {
|
||||
return m.InviteToken
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ForwardInviteRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The token to authenticate with.
|
||||
InviteToken *InviteToken `protobuf:"bytes,2,opt,name=invite_token,json=inviteToken,proto3" json:"invite_token,omitempty"`
|
||||
// REQUIRED.
|
||||
// The details of the sync'n'share system provider of the user who sent the invite.
|
||||
OriginSystemProvider *v1beta12.ProviderInfo `protobuf:"bytes,3,opt,name=origin_system_provider,json=originSystemProvider,proto3" json:"origin_system_provider,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ForwardInviteRequest) Reset() { *m = ForwardInviteRequest{} }
|
||||
func (m *ForwardInviteRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ForwardInviteRequest) ProtoMessage() {}
|
||||
func (*ForwardInviteRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{2}
|
||||
}
|
||||
|
||||
func (m *ForwardInviteRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ForwardInviteRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ForwardInviteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ForwardInviteRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ForwardInviteRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ForwardInviteRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ForwardInviteRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ForwardInviteRequest.Size(m)
|
||||
}
|
||||
func (m *ForwardInviteRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ForwardInviteRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ForwardInviteRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ForwardInviteRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ForwardInviteRequest) GetInviteToken() *InviteToken {
|
||||
if m != nil {
|
||||
return m.InviteToken
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ForwardInviteRequest) GetOriginSystemProvider() *v1beta12.ProviderInfo {
|
||||
if m != nil {
|
||||
return m.OriginSystemProvider
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ForwardInviteResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ForwardInviteResponse) Reset() { *m = ForwardInviteResponse{} }
|
||||
func (m *ForwardInviteResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ForwardInviteResponse) ProtoMessage() {}
|
||||
func (*ForwardInviteResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{3}
|
||||
}
|
||||
|
||||
func (m *ForwardInviteResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ForwardInviteResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ForwardInviteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ForwardInviteResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ForwardInviteResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ForwardInviteResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ForwardInviteResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ForwardInviteResponse.Size(m)
|
||||
}
|
||||
func (m *ForwardInviteResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ForwardInviteResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ForwardInviteResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ForwardInviteResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ForwardInviteResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type AcceptInviteRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The token to authenticate with.
|
||||
InviteToken *InviteToken `protobuf:"bytes,2,opt,name=invite_token,json=inviteToken,proto3" json:"invite_token,omitempty"`
|
||||
// REQUIRED.
|
||||
// The user who accepted the invite.
|
||||
RemoteUser *v1beta13.User `protobuf:"bytes,3,opt,name=remote_user,json=remoteUser,proto3" json:"remote_user,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AcceptInviteRequest) Reset() { *m = AcceptInviteRequest{} }
|
||||
func (m *AcceptInviteRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*AcceptInviteRequest) ProtoMessage() {}
|
||||
func (*AcceptInviteRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{4}
|
||||
}
|
||||
|
||||
func (m *AcceptInviteRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AcceptInviteRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AcceptInviteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AcceptInviteRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *AcceptInviteRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AcceptInviteRequest.Merge(m, src)
|
||||
}
|
||||
func (m *AcceptInviteRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_AcceptInviteRequest.Size(m)
|
||||
}
|
||||
func (m *AcceptInviteRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AcceptInviteRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AcceptInviteRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *AcceptInviteRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AcceptInviteRequest) GetInviteToken() *InviteToken {
|
||||
if m != nil {
|
||||
return m.InviteToken
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AcceptInviteRequest) GetRemoteUser() *v1beta13.User {
|
||||
if m != nil {
|
||||
return m.RemoteUser
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type AcceptInviteResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AcceptInviteResponse) Reset() { *m = AcceptInviteResponse{} }
|
||||
func (m *AcceptInviteResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*AcceptInviteResponse) ProtoMessage() {}
|
||||
func (*AcceptInviteResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{5}
|
||||
}
|
||||
|
||||
func (m *AcceptInviteResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AcceptInviteResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AcceptInviteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AcceptInviteResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *AcceptInviteResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AcceptInviteResponse.Merge(m, src)
|
||||
}
|
||||
func (m *AcceptInviteResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_AcceptInviteResponse.Size(m)
|
||||
}
|
||||
func (m *AcceptInviteResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AcceptInviteResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AcceptInviteResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *AcceptInviteResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AcceptInviteResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetAcceptedUserRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The id of the user.
|
||||
RemoteUserId *v1beta13.UserId `protobuf:"bytes,2,opt,name=remote_user_id,json=remoteUserId,proto3" json:"remote_user_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetAcceptedUserRequest) Reset() { *m = GetAcceptedUserRequest{} }
|
||||
func (m *GetAcceptedUserRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetAcceptedUserRequest) ProtoMessage() {}
|
||||
func (*GetAcceptedUserRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{6}
|
||||
}
|
||||
|
||||
func (m *GetAcceptedUserRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetAcceptedUserRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetAcceptedUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetAcceptedUserRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetAcceptedUserRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetAcceptedUserRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetAcceptedUserRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetAcceptedUserRequest.Size(m)
|
||||
}
|
||||
func (m *GetAcceptedUserRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetAcceptedUserRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetAcceptedUserRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetAcceptedUserRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAcceptedUserRequest) GetRemoteUserId() *v1beta13.UserId {
|
||||
if m != nil {
|
||||
return m.RemoteUserId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetAcceptedUserResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The user information.
|
||||
RemoteUser *v1beta13.User `protobuf:"bytes,3,opt,name=remote_user,json=remoteUser,proto3" json:"remote_user,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetAcceptedUserResponse) Reset() { *m = GetAcceptedUserResponse{} }
|
||||
func (m *GetAcceptedUserResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetAcceptedUserResponse) ProtoMessage() {}
|
||||
func (*GetAcceptedUserResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{7}
|
||||
}
|
||||
|
||||
func (m *GetAcceptedUserResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetAcceptedUserResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetAcceptedUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetAcceptedUserResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetAcceptedUserResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetAcceptedUserResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetAcceptedUserResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetAcceptedUserResponse.Size(m)
|
||||
}
|
||||
func (m *GetAcceptedUserResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetAcceptedUserResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetAcceptedUserResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetAcceptedUserResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAcceptedUserResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetAcceptedUserResponse) GetRemoteUser() *v1beta13.User {
|
||||
if m != nil {
|
||||
return m.RemoteUser
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type FindAcceptedUsersRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The filter to apply.
|
||||
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FindAcceptedUsersRequest) Reset() { *m = FindAcceptedUsersRequest{} }
|
||||
func (m *FindAcceptedUsersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*FindAcceptedUsersRequest) ProtoMessage() {}
|
||||
func (*FindAcceptedUsersRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{8}
|
||||
}
|
||||
|
||||
func (m *FindAcceptedUsersRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FindAcceptedUsersRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FindAcceptedUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FindAcceptedUsersRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *FindAcceptedUsersRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FindAcceptedUsersRequest.Merge(m, src)
|
||||
}
|
||||
func (m *FindAcceptedUsersRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_FindAcceptedUsersRequest.Size(m)
|
||||
}
|
||||
func (m *FindAcceptedUsersRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FindAcceptedUsersRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FindAcceptedUsersRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *FindAcceptedUsersRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FindAcceptedUsersRequest) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type FindAcceptedUsersResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The accepted users matching the specified filter.
|
||||
AcceptedUsers []*v1beta13.User `protobuf:"bytes,3,rep,name=accepted_users,json=acceptedUsers,proto3" json:"accepted_users,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FindAcceptedUsersResponse) Reset() { *m = FindAcceptedUsersResponse{} }
|
||||
func (m *FindAcceptedUsersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*FindAcceptedUsersResponse) ProtoMessage() {}
|
||||
func (*FindAcceptedUsersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b0e70953130e3677, []int{9}
|
||||
}
|
||||
|
||||
func (m *FindAcceptedUsersResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FindAcceptedUsersResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FindAcceptedUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FindAcceptedUsersResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *FindAcceptedUsersResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FindAcceptedUsersResponse.Merge(m, src)
|
||||
}
|
||||
func (m *FindAcceptedUsersResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_FindAcceptedUsersResponse.Size(m)
|
||||
}
|
||||
func (m *FindAcceptedUsersResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FindAcceptedUsersResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FindAcceptedUsersResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *FindAcceptedUsersResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FindAcceptedUsersResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FindAcceptedUsersResponse) GetAcceptedUsers() []*v1beta13.User {
|
||||
if m != nil {
|
||||
return m.AcceptedUsers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GenerateInviteTokenRequest)(nil), "cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest")
|
||||
proto.RegisterType((*GenerateInviteTokenResponse)(nil), "cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse")
|
||||
proto.RegisterType((*ForwardInviteRequest)(nil), "cs3.ocm.invite.v1beta1.ForwardInviteRequest")
|
||||
proto.RegisterType((*ForwardInviteResponse)(nil), "cs3.ocm.invite.v1beta1.ForwardInviteResponse")
|
||||
proto.RegisterType((*AcceptInviteRequest)(nil), "cs3.ocm.invite.v1beta1.AcceptInviteRequest")
|
||||
proto.RegisterType((*AcceptInviteResponse)(nil), "cs3.ocm.invite.v1beta1.AcceptInviteResponse")
|
||||
proto.RegisterType((*GetAcceptedUserRequest)(nil), "cs3.ocm.invite.v1beta1.GetAcceptedUserRequest")
|
||||
proto.RegisterType((*GetAcceptedUserResponse)(nil), "cs3.ocm.invite.v1beta1.GetAcceptedUserResponse")
|
||||
proto.RegisterType((*FindAcceptedUsersRequest)(nil), "cs3.ocm.invite.v1beta1.FindAcceptedUsersRequest")
|
||||
proto.RegisterType((*FindAcceptedUsersResponse)(nil), "cs3.ocm.invite.v1beta1.FindAcceptedUsersResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/ocm/invite/v1beta1/invite_api.proto", fileDescriptor_b0e70953130e3677)
|
||||
}
|
||||
|
||||
var fileDescriptor_b0e70953130e3677 = []byte{
|
||||
// 667 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdf, 0x6e, 0xd3, 0x3e,
|
||||
0x14, 0x56, 0xda, 0x9f, 0x2a, 0xed, 0xec, 0xcf, 0x4f, 0x64, 0xa3, 0xeb, 0x02, 0x88, 0x11, 0xa4,
|
||||
0x31, 0xc4, 0x48, 0xe9, 0xfa, 0x02, 0x6c, 0x93, 0x36, 0xf5, 0xaa, 0x55, 0x06, 0x5c, 0xa0, 0x4a,
|
||||
0x55, 0xe6, 0x9c, 0x21, 0x8b, 0x25, 0xce, 0x6c, 0x77, 0x30, 0x90, 0x78, 0x0a, 0x9e, 0x80, 0x4b,
|
||||
0x5e, 0x82, 0x4b, 0x04, 0x97, 0x7b, 0x11, 0x5e, 0x01, 0xc5, 0x76, 0xb3, 0x6c, 0x4b, 0xa0, 0xeb,
|
||||
0xa4, 0x8a, 0xbb, 0xba, 0xdf, 0x77, 0xbe, 0x73, 0xfc, 0xd9, 0xe7, 0x38, 0xf0, 0x88, 0x88, 0x76,
|
||||
0x93, 0x91, 0xa8, 0x49, 0xe3, 0x13, 0x2a, 0xb1, 0x79, 0xd2, 0x3a, 0x40, 0x19, 0xb4, 0xcc, 0x72,
|
||||
0x10, 0x24, 0xd4, 0x4b, 0x38, 0x93, 0xcc, 0xae, 0x13, 0xd1, 0xf6, 0x18, 0x89, 0x3c, 0x8d, 0x78,
|
||||
0x86, 0xe8, 0x3c, 0x4e, 0x05, 0x68, 0x88, 0xb1, 0xa4, 0xf2, 0xb4, 0x39, 0x14, 0xc8, 0x33, 0x0d,
|
||||
0x8e, 0x82, 0x0d, 0x39, 0x41, 0xa1, 0x25, 0x9c, 0xb5, 0x92, 0x5c, 0x97, 0x79, 0xeb, 0x23, 0x5e,
|
||||
0xc2, 0xd9, 0x09, 0x0d, 0xff, 0xa0, 0x78, 0x37, 0x65, 0xf2, 0x84, 0x64, 0x04, 0x21, 0x03, 0x39,
|
||||
0x1c, 0xa1, 0xf7, 0x52, 0x54, 0x9e, 0x26, 0x28, 0x32, 0x5c, 0xad, 0x34, 0xec, 0x76, 0xc1, 0xd9,
|
||||
0xc3, 0x18, 0x79, 0x20, 0xb1, 0xa3, 0x0a, 0x7a, 0xc1, 0xde, 0x62, 0xec, 0xe3, 0xf1, 0x10, 0x85,
|
||||
0xb4, 0x5b, 0x50, 0x63, 0x49, 0x70, 0x3c, 0xc4, 0x86, 0xb5, 0x6a, 0xad, 0xcf, 0x6e, 0xae, 0x78,
|
||||
0xa9, 0x01, 0x3a, 0xde, 0xa8, 0x79, 0x5d, 0x45, 0xf0, 0x0d, 0xd1, 0xfd, 0x61, 0xc1, 0x9d, 0x42,
|
||||
0x45, 0x91, 0xb0, 0x58, 0xa0, 0xdd, 0x84, 0x9a, 0xae, 0xcf, 0x48, 0x2e, 0x2b, 0x49, 0x9e, 0x90,
|
||||
0x4c, 0x70, 0x5f, 0xc1, 0xbe, 0xa1, 0xe5, 0x6a, 0xa8, 0x8c, 0x59, 0x83,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0x6b, 0x86, 0x21, 0x7c, 0xa9, 0x54, 0x77, 0xba, 0x9d, 0xaf, 0x95,
|
||||
0xfa, 0x8e, 0x68, 0x7b, 0x5d, 0x12, 0x99, 0x47, 0xc0, 0x7b, 0xd5, 0xda, 0x4e, 0xe1, 0x9f, 0x0a,
|
||||
0xe8, 0x77, 0x49, 0xd4, 0xd7, 0x40, 0xdf, 0x00, 0x07, 0x35, 0xf5, 0xe5, 0xd4, 0xfe, 0x1d, 0x00,
|
||||
0x00, 0xff, 0xff, 0xb7, 0x73, 0x79, 0xaf, 0x36, 0x0a, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// InviteAPIClient is the client API for InviteAPI service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#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)
|
||||
// Forwards a received invite to the sync'n'share system provider.
|
||||
ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...grpc.CallOption) (*ForwardInviteResponse, error)
|
||||
// Completes an invitation acceptance.
|
||||
AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...grpc.CallOption) (*AcceptInviteResponse, error)
|
||||
// Retrieves details about a remote user who has accepted an invite to share.
|
||||
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)
|
||||
}
|
||||
|
||||
type inviteAPIClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewInviteAPIClient(cc *grpc.ClientConn) 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, "/cs3.ocm.invite.v1beta1.InviteAPI/GenerateInviteToken", 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, "/cs3.ocm.invite.v1beta1.InviteAPI/ForwardInvite", 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, "/cs3.ocm.invite.v1beta1.InviteAPI/AcceptInvite", 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, "/cs3.ocm.invite.v1beta1.InviteAPI/GetAcceptedUser", 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, "/cs3.ocm.invite.v1beta1.InviteAPI/FindAcceptedUsers", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// InviteAPIServer is the server API for InviteAPI service.
|
||||
type InviteAPIServer interface {
|
||||
// Generates a new token for the user with a validity of 24 hours.
|
||||
GenerateInviteToken(context.Context, *GenerateInviteTokenRequest) (*GenerateInviteTokenResponse, error)
|
||||
// Forwards a received invite to the sync'n'share system provider.
|
||||
ForwardInvite(context.Context, *ForwardInviteRequest) (*ForwardInviteResponse, error)
|
||||
// Completes an invitation acceptance.
|
||||
AcceptInvite(context.Context, *AcceptInviteRequest) (*AcceptInviteResponse, error)
|
||||
// Retrieves details about a remote user who has accepted an invite to share.
|
||||
GetAcceptedUser(context.Context, *GetAcceptedUserRequest) (*GetAcceptedUserResponse, error)
|
||||
// Finds users who accepted invite tokens by their attributes.
|
||||
FindAcceptedUsers(context.Context, *FindAcceptedUsersRequest) (*FindAcceptedUsersResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedInviteAPIServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedInviteAPIServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedInviteAPIServer) GenerateInviteToken(ctx context.Context, req *GenerateInviteTokenRequest) (*GenerateInviteTokenResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GenerateInviteToken not implemented")
|
||||
}
|
||||
func (*UnimplementedInviteAPIServer) ForwardInvite(ctx context.Context, req *ForwardInviteRequest) (*ForwardInviteResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ForwardInvite not implemented")
|
||||
}
|
||||
func (*UnimplementedInviteAPIServer) AcceptInvite(ctx context.Context, req *AcceptInviteRequest) (*AcceptInviteResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AcceptInvite not implemented")
|
||||
}
|
||||
func (*UnimplementedInviteAPIServer) GetAcceptedUser(ctx context.Context, req *GetAcceptedUserRequest) (*GetAcceptedUserResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetAcceptedUser not implemented")
|
||||
}
|
||||
func (*UnimplementedInviteAPIServer) FindAcceptedUsers(ctx context.Context, req *FindAcceptedUsersRequest) (*FindAcceptedUsersResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindAcceptedUsers not implemented")
|
||||
}
|
||||
|
||||
func RegisterInviteAPIServer(s *grpc.Server, 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: "/cs3.ocm.invite.v1beta1.InviteAPI/GenerateInviteToken",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InviteAPIServer).GenerateInviteToken(ctx, req.(*GenerateInviteTokenRequest))
|
||||
}
|
||||
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: "/cs3.ocm.invite.v1beta1.InviteAPI/ForwardInvite",
|
||||
}
|
||||
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: "/cs3.ocm.invite.v1beta1.InviteAPI/AcceptInvite",
|
||||
}
|
||||
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: "/cs3.ocm.invite.v1beta1.InviteAPI/GetAcceptedUser",
|
||||
}
|
||||
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: "/cs3.ocm.invite.v1beta1.InviteAPI/FindAcceptedUsers",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(InviteAPIServer).FindAcceptedUsers(ctx, req.(*FindAcceptedUsersRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _InviteAPI_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cs3.ocm.invite.v1beta1.InviteAPI",
|
||||
HandlerType: (*InviteAPIServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "GenerateInviteToken",
|
||||
Handler: _InviteAPI_GenerateInviteToken_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,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cs3/ocm/invite/v1beta1/invite_api.proto",
|
||||
}
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// InviteToken is used to invite users and groups from other sync'n'share
|
||||
// systems to collaborate on resources.
|
||||
type InviteToken struct {
|
||||
// REQUIRED.
|
||||
// Unique ID associated with an InviteToken.
|
||||
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
||||
// REQUIRED.
|
||||
// The user who created the token.
|
||||
UserId *v1beta1.UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
// OPTIONAL.
|
||||
// The time when the token will expire.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *InviteToken) Reset() { *m = InviteToken{} }
|
||||
func (m *InviteToken) String() string { return proto.CompactTextString(m) }
|
||||
func (*InviteToken) ProtoMessage() {}
|
||||
func (*InviteToken) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9bdba69a40d5b11f, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *InviteToken) GetUserId() *v1beta1.UserId {
|
||||
if m != nil {
|
||||
return m.UserId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *InviteToken) GetExpiration() *v1beta11.Timestamp {
|
||||
if m != nil {
|
||||
return m.Expiration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *InviteToken) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*InviteToken)(nil), "cs3.ocm.invite.v1beta1.InviteToken")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/ocm/invite/v1beta1/resources.proto", fileDescriptor_9bdba69a40d5b11f)
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
+552
@@ -0,0 +1,552 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/ocm/provider/v1beta1/provider_api.proto
|
||||
|
||||
package providerv1beta1
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
type IsProviderAllowedRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The provider that we need to check against the list of verified mesh providers.
|
||||
Provider *ProviderInfo `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *IsProviderAllowedRequest) Reset() { *m = IsProviderAllowedRequest{} }
|
||||
func (m *IsProviderAllowedRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*IsProviderAllowedRequest) ProtoMessage() {}
|
||||
func (*IsProviderAllowedRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f9d7362468fbd522, []int{0}
|
||||
}
|
||||
|
||||
func (m *IsProviderAllowedRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_IsProviderAllowedRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *IsProviderAllowedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_IsProviderAllowedRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *IsProviderAllowedRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_IsProviderAllowedRequest.Merge(m, src)
|
||||
}
|
||||
func (m *IsProviderAllowedRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_IsProviderAllowedRequest.Size(m)
|
||||
}
|
||||
func (m *IsProviderAllowedRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_IsProviderAllowedRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_IsProviderAllowedRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *IsProviderAllowedRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *IsProviderAllowedRequest) GetProvider() *ProviderInfo {
|
||||
if m != nil {
|
||||
return m.Provider
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type IsProviderAllowedResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *IsProviderAllowedResponse) Reset() { *m = IsProviderAllowedResponse{} }
|
||||
func (m *IsProviderAllowedResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*IsProviderAllowedResponse) ProtoMessage() {}
|
||||
func (*IsProviderAllowedResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f9d7362468fbd522, []int{1}
|
||||
}
|
||||
|
||||
func (m *IsProviderAllowedResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_IsProviderAllowedResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *IsProviderAllowedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_IsProviderAllowedResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *IsProviderAllowedResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_IsProviderAllowedResponse.Merge(m, src)
|
||||
}
|
||||
func (m *IsProviderAllowedResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_IsProviderAllowedResponse.Size(m)
|
||||
}
|
||||
func (m *IsProviderAllowedResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_IsProviderAllowedResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_IsProviderAllowedResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *IsProviderAllowedResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *IsProviderAllowedResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetInfoByDomainRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The domain of the system provider.
|
||||
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetInfoByDomainRequest) Reset() { *m = GetInfoByDomainRequest{} }
|
||||
func (m *GetInfoByDomainRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetInfoByDomainRequest) ProtoMessage() {}
|
||||
func (*GetInfoByDomainRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f9d7362468fbd522, []int{2}
|
||||
}
|
||||
|
||||
func (m *GetInfoByDomainRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetInfoByDomainRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetInfoByDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetInfoByDomainRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetInfoByDomainRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetInfoByDomainRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetInfoByDomainRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetInfoByDomainRequest.Size(m)
|
||||
}
|
||||
func (m *GetInfoByDomainRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetInfoByDomainRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetInfoByDomainRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetInfoByDomainRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetInfoByDomainRequest) GetDomain() string {
|
||||
if m != nil {
|
||||
return m.Domain
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetInfoByDomainResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The info of the provider
|
||||
ProviderInfo *ProviderInfo `protobuf:"bytes,3,opt,name=provider_info,json=providerInfo,proto3" json:"provider_info,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetInfoByDomainResponse) Reset() { *m = GetInfoByDomainResponse{} }
|
||||
func (m *GetInfoByDomainResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetInfoByDomainResponse) ProtoMessage() {}
|
||||
func (*GetInfoByDomainResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f9d7362468fbd522, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetInfoByDomainResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetInfoByDomainResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetInfoByDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetInfoByDomainResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetInfoByDomainResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetInfoByDomainResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetInfoByDomainResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetInfoByDomainResponse.Size(m)
|
||||
}
|
||||
func (m *GetInfoByDomainResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetInfoByDomainResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetInfoByDomainResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetInfoByDomainResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetInfoByDomainResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetInfoByDomainResponse) GetProviderInfo() *ProviderInfo {
|
||||
if m != nil {
|
||||
return m.ProviderInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListAllProvidersRequest struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ListAllProvidersRequest) Reset() { *m = ListAllProvidersRequest{} }
|
||||
func (m *ListAllProvidersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListAllProvidersRequest) ProtoMessage() {}
|
||||
func (*ListAllProvidersRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f9d7362468fbd522, []int{4}
|
||||
}
|
||||
|
||||
func (m *ListAllProvidersRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListAllProvidersRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListAllProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListAllProvidersRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListAllProvidersRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListAllProvidersRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListAllProvidersRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListAllProvidersRequest.Size(m)
|
||||
}
|
||||
func (m *ListAllProvidersRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListAllProvidersRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListAllProvidersRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListAllProvidersRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListAllProvidersResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The share.
|
||||
Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListAllProvidersResponse) Reset() { *m = ListAllProvidersResponse{} }
|
||||
func (m *ListAllProvidersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListAllProvidersResponse) ProtoMessage() {}
|
||||
func (*ListAllProvidersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_f9d7362468fbd522, []int{5}
|
||||
}
|
||||
|
||||
func (m *ListAllProvidersResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListAllProvidersResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListAllProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListAllProvidersResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListAllProvidersResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListAllProvidersResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListAllProvidersResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListAllProvidersResponse.Size(m)
|
||||
}
|
||||
func (m *ListAllProvidersResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListAllProvidersResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListAllProvidersResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListAllProvidersResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListAllProvidersResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListAllProvidersResponse) GetProviders() []*ProviderInfo {
|
||||
if m != nil {
|
||||
return m.Providers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*IsProviderAllowedRequest)(nil), "cs3.ocm.provider.v1beta1.IsProviderAllowedRequest")
|
||||
proto.RegisterType((*IsProviderAllowedResponse)(nil), "cs3.ocm.provider.v1beta1.IsProviderAllowedResponse")
|
||||
proto.RegisterType((*GetInfoByDomainRequest)(nil), "cs3.ocm.provider.v1beta1.GetInfoByDomainRequest")
|
||||
proto.RegisterType((*GetInfoByDomainResponse)(nil), "cs3.ocm.provider.v1beta1.GetInfoByDomainResponse")
|
||||
proto.RegisterType((*ListAllProvidersRequest)(nil), "cs3.ocm.provider.v1beta1.ListAllProvidersRequest")
|
||||
proto.RegisterType((*ListAllProvidersResponse)(nil), "cs3.ocm.provider.v1beta1.ListAllProvidersResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/ocm/provider/v1beta1/provider_api.proto", fileDescriptor_f9d7362468fbd522)
|
||||
}
|
||||
|
||||
var fileDescriptor_f9d7362468fbd522 = []byte{
|
||||
// 468 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xcd, 0x6a, 0xdb, 0x30,
|
||||
0x1c, 0xc7, 0x0e, 0x84, 0xf5, 0xdf, 0x8d, 0x76, 0x3a, 0x34, 0xaa, 0xe9, 0xa0, 0xf8, 0x30, 0x0a,
|
||||
0x03, 0x65, 0x8e, 0x9f, 0xa0, 0x6e, 0x61, 0x84, 0x15, 0x62, 0x3c, 0xd8, 0x61, 0x04, 0x86, 0xab,
|
||||
0xa8, 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x03, 0x47,
|
||||
0x94, 0x97, 0x9d, 0xc2, 0x64, 0xdf, 0xed, 0x4a, 0x14, 0x69, 0xf3, 0x1c, 0xa6, 0xde, 0xa7, 0x3d,
|
||||
0xcb, 0x32, 0xa4, 0xef, 0xfe, 0xe0, 0x6c, 0x96, 0xfe, 0xf0, 0xf1, 0x99, 0x8c, 0xc9, 0x8c, 0x96,
|
||||
0xee, 0xb6, 0xc9, 0xc7, 0x28, 0x69, 0x08, 0xb7, 0x1a, 0x9a, 0xcf, 0x68, 0x39, 0xb7, 0xd0, 0xdc,
|
||||
0x40, 0x97, 0x43, 0xfd, 0xc8, 0xc6, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x28, 0xc2, 0x2b, 0xf7,
|
||||
0x14, 0x06, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// 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 {
|
||||
// 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.ClientConn
|
||||
}
|
||||
|
||||
func NewProviderAPIClient(cc *grpc.ClientConn) 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, "/cs3.ocm.provider.v1beta1.ProviderAPI/IsProviderAllowed", 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, "/cs3.ocm.provider.v1beta1.ProviderAPI/GetInfoByDomain", 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, "/cs3.ocm.provider.v1beta1.ProviderAPI/ListAllProviders", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ProviderAPIServer is the server API for ProviderAPI service.
|
||||
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 can be embedded to have forward compatible implementations.
|
||||
type UnimplementedProviderAPIServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedProviderAPIServer) IsProviderAllowed(ctx context.Context, req *IsProviderAllowedRequest) (*IsProviderAllowedResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method IsProviderAllowed not implemented")
|
||||
}
|
||||
func (*UnimplementedProviderAPIServer) GetInfoByDomain(ctx context.Context, req *GetInfoByDomainRequest) (*GetInfoByDomainResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetInfoByDomain not implemented")
|
||||
}
|
||||
func (*UnimplementedProviderAPIServer) ListAllProviders(ctx context.Context, req *ListAllProvidersRequest) (*ListAllProvidersResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListAllProviders not implemented")
|
||||
}
|
||||
|
||||
func RegisterProviderAPIServer(s *grpc.Server, 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: "/cs3.ocm.provider.v1beta1.ProviderAPI/IsProviderAllowed",
|
||||
}
|
||||
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: "/cs3.ocm.provider.v1beta1.ProviderAPI/GetInfoByDomain",
|
||||
}
|
||||
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: "/cs3.ocm.provider.v1beta1.ProviderAPI/ListAllProviders",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ProviderAPIServer).ListAllProviders(ctx, req.(*ListAllProvidersRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
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",
|
||||
}
|
||||
+401
@@ -0,0 +1,401 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/ocm/provider/v1beta1/resources.proto
|
||||
|
||||
package providerv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// Identifier for various types of services offered by sync'n'share system providers.
|
||||
type ServiceType struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ServiceType) Reset() { *m = ServiceType{} }
|
||||
func (m *ServiceType) String() string { return proto.CompactTextString(m) }
|
||||
func (*ServiceType) ProtoMessage() {}
|
||||
func (*ServiceType) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_646d597abb45fefd, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ServiceType) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The endpoints exposed by particular services.
|
||||
type ServiceEndpoint struct {
|
||||
// REQUIRED.
|
||||
// The type of service.
|
||||
Type *ServiceType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// REQUIRED.
|
||||
// The name of the service.
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// REQUIRED.
|
||||
// The path at which the service is hosted.
|
||||
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Whether the service is monitored.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *ServiceEndpoint) Reset() { *m = ServiceEndpoint{} }
|
||||
func (m *ServiceEndpoint) String() string { return proto.CompactTextString(m) }
|
||||
func (*ServiceEndpoint) ProtoMessage() {}
|
||||
func (*ServiceEndpoint) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_646d597abb45fefd, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ServiceEndpoint) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ServiceEndpoint) GetPath() string {
|
||||
if m != nil {
|
||||
return m.Path
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ServiceEndpoint) GetIsMonitored() bool {
|
||||
if m != nil {
|
||||
return m.IsMonitored
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *ServiceEndpoint) GetProperties() map[string]string {
|
||||
if m != nil {
|
||||
return m.Properties
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The services offered by sync'n'share system providers.
|
||||
type Service struct {
|
||||
// REQUIRED.
|
||||
// The URL at which the service is hosted.
|
||||
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
|
||||
// REQUIRED.
|
||||
// The primary endpoint of the service.
|
||||
Endpoint *ServiceEndpoint `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
||||
// REQUIRED.
|
||||
// The API version of the provided service.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *Service) Reset() { *m = Service{} }
|
||||
func (m *Service) String() string { return proto.CompactTextString(m) }
|
||||
func (*Service) ProtoMessage() {}
|
||||
func (*Service) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_646d597abb45fefd, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Service) GetEndpoint() *ServiceEndpoint {
|
||||
if m != nil {
|
||||
return m.Endpoint
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetApiVersion() string {
|
||||
if m != nil {
|
||||
return m.ApiVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Service) GetAdditionalEndpoints() []*ServiceEndpoint {
|
||||
if m != nil {
|
||||
return m.AdditionalEndpoints
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Details of the sync'n'share system provider.
|
||||
type ProviderInfo struct {
|
||||
// REQUIRED.
|
||||
// The name of the provider.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// REQUIRED.
|
||||
// The full name of the provider.
|
||||
FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
|
||||
// REQUIRED.
|
||||
// A description of the provider.
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// REQUIRED.
|
||||
// The organization to which the provider belongs.
|
||||
Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"`
|
||||
// REQUIRED.
|
||||
// The domain of the sync'n'share provider.
|
||||
Domain string `protobuf:"bytes,5,opt,name=domain,proto3" json:"domain,omitempty"`
|
||||
// REQUIRED.
|
||||
// The homepage of the provider.
|
||||
Homepage string `protobuf:"bytes,6,opt,name=homepage,proto3" json:"homepage,omitempty"`
|
||||
// REQUIRED.
|
||||
// The email at which the provider can be reached.
|
||||
Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`
|
||||
// REQUIRED.
|
||||
// The list of services provided by the provider.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) Reset() { *m = ProviderInfo{} }
|
||||
func (m *ProviderInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProviderInfo) ProtoMessage() {}
|
||||
func (*ProviderInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_646d597abb45fefd, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetFullName() string {
|
||||
if m != nil {
|
||||
return m.FullName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetOrganization() string {
|
||||
if m != nil {
|
||||
return m.Organization
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetDomain() string {
|
||||
if m != nil {
|
||||
return m.Domain
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetHomepage() string {
|
||||
if m != nil {
|
||||
return m.Homepage
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetEmail() string {
|
||||
if m != nil {
|
||||
return m.Email
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetServices() []*Service {
|
||||
if m != nil {
|
||||
return m.Services
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetProperties() map[string]string {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/ocm/provider/v1beta1/resources.proto", fileDescriptor_646d597abb45fefd)
|
||||
}
|
||||
|
||||
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, 0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, 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,
|
||||
}
|
||||
Generated
Vendored
+248
@@ -0,0 +1,248 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// CheckPermissionsRequest is used to check if a user has a certain permission.
|
||||
type CheckPermissionRequest struct {
|
||||
//REQUIRED.
|
||||
// The permission to check.
|
||||
Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
|
||||
// REQUIRED.
|
||||
// The subject holding the permission.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *CheckPermissionRequest) Reset() { *m = CheckPermissionRequest{} }
|
||||
func (m *CheckPermissionRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CheckPermissionRequest) ProtoMessage() {}
|
||||
func (*CheckPermissionRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_54602e0476ec6c5b, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CheckPermissionRequest) GetSubjectRef() *SubjectReference {
|
||||
if m != nil {
|
||||
return m.SubjectRef
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CheckPermissionRequest) GetRef() *v1beta1.Reference {
|
||||
if m != nil {
|
||||
return m.Ref
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// CheckPermissionsResponse ...
|
||||
type CheckPermissionResponse struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *CheckPermissionResponse) Reset() { *m = CheckPermissionResponse{} }
|
||||
func (m *CheckPermissionResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*CheckPermissionResponse) ProtoMessage() {}
|
||||
func (*CheckPermissionResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_54602e0476ec6c5b, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*CheckPermissionRequest)(nil), "cs3.permissions.v1beta1.CheckPermissionRequest")
|
||||
proto.RegisterType((*CheckPermissionResponse)(nil), "cs3.permissions.v1beta1.CheckPermissionResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/permissions/v1beta1/permissions_api.proto", fileDescriptor_54602e0476ec6c5b)
|
||||
}
|
||||
|
||||
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, 0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f, 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,
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
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
|
||||
}
|
||||
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,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cs3/permissions/v1beta1/permissions_api.proto",
|
||||
}
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// SubjectReference references either a user or a group by id.
|
||||
type SubjectReference struct {
|
||||
// Types that are valid to be assigned to Spec:
|
||||
// *SubjectReference_UserId
|
||||
// *SubjectReference_GroupId
|
||||
Spec isSubjectReference_Spec `protobuf_oneof:"spec"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SubjectReference) Reset() { *m = SubjectReference{} }
|
||||
func (m *SubjectReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*SubjectReference) ProtoMessage() {}
|
||||
func (*SubjectReference) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3530957b3a793cab, []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)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SubjectReference proto.InternalMessageInfo
|
||||
|
||||
type isSubjectReference_Spec interface {
|
||||
isSubjectReference_Spec()
|
||||
}
|
||||
|
||||
type SubjectReference_UserId struct {
|
||||
UserId *v1beta1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubjectReference_GroupId struct {
|
||||
GroupId *v1beta11.GroupId `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*SubjectReference_UserId) isSubjectReference_Spec() {}
|
||||
|
||||
func (*SubjectReference_GroupId) isSubjectReference_Spec() {}
|
||||
|
||||
func (m *SubjectReference) GetSpec() isSubjectReference_Spec {
|
||||
if m != nil {
|
||||
return m.Spec
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SubjectReference) GetUserId() *v1beta1.UserId {
|
||||
if x, ok := m.GetSpec().(*SubjectReference_UserId); ok {
|
||||
return x.UserId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SubjectReference) GetGroupId() *v1beta11.GroupId {
|
||||
if x, ok := m.GetSpec().(*SubjectReference_GroupId); ok {
|
||||
return x.GroupId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*SubjectReference) XXX_OneofWrappers() []interface{} {
|
||||
return []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,
|
||||
}
|
||||
Generated
Vendored
+365
@@ -0,0 +1,365 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
type SetKeyRequest struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *SetKeyRequest) Reset() { *m = SetKeyRequest{} }
|
||||
func (m *SetKeyRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*SetKeyRequest) ProtoMessage() {}
|
||||
func (*SetKeyRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d9feea93568a6977, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SetKeyRequest) GetVal() string {
|
||||
if m != nil {
|
||||
return m.Val
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type SetKeyResponse struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *SetKeyResponse) Reset() { *m = SetKeyResponse{} }
|
||||
func (m *SetKeyResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*SetKeyResponse) ProtoMessage() {}
|
||||
func (*SetKeyResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d9feea93568a6977, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetKeyRequest struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *GetKeyRequest) Reset() { *m = GetKeyRequest{} }
|
||||
func (m *GetKeyRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetKeyRequest) ProtoMessage() {}
|
||||
func (*GetKeyRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d9feea93568a6977, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetKeyResponse struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *GetKeyResponse) Reset() { *m = GetKeyResponse{} }
|
||||
func (m *GetKeyResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetKeyResponse) ProtoMessage() {}
|
||||
func (*GetKeyResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d9feea93568a6977, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetKeyResponse) GetVal() string {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/preferences/v1beta1/preferences_api.proto", fileDescriptor_d9feea93568a6977)
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
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
|
||||
}
|
||||
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,
|
||||
},
|
||||
{
|
||||
MethodName: "GetKey",
|
||||
Handler: _PreferencesAPI_GetKey_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cs3/preferences/v1beta1/preferences_api.proto",
|
||||
}
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/preferences/v1beta1/resources.proto
|
||||
|
||||
package preferencesv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// Represents a key object consisting of a namespace and a string key.
|
||||
type PreferenceKey struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *PreferenceKey) Reset() { *m = PreferenceKey{} }
|
||||
func (m *PreferenceKey) String() string { return proto.CompactTextString(m) }
|
||||
func (*PreferenceKey) ProtoMessage() {}
|
||||
func (*PreferenceKey) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea161434d95765fd, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PreferenceKey) GetKey() string {
|
||||
if m != nil {
|
||||
return m.Key
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PreferenceKey)(nil), "cs3.preferences.v1beta1.PreferenceKey")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/preferences/v1beta1/resources.proto", fileDescriptor_ea161434d95765fd)
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
+279
@@ -0,0 +1,279 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/rpc/v1beta1/code.proto
|
||||
|
||||
package rpcv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// These are the canonical error codes used by CS3 APIs.
|
||||
//
|
||||
// Adapted from Google APIs:
|
||||
// https://github.com/googleapis/googleapis/
|
||||
//
|
||||
// Sometimes multiple error codes may apply. Services should return
|
||||
// the most specific error code that applies. For example, prefer
|
||||
// `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
|
||||
// Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
|
||||
type Code int32
|
||||
|
||||
const (
|
||||
// A programmer would not intentionally set the code to CODE_INVALID.
|
||||
// This code exists to force service implementors to set
|
||||
// a specific code for the API call and to not rely on defaults.
|
||||
//
|
||||
// HTTP Mapping: 500 Internal Server Error
|
||||
Code_CODE_INVALID Code = 0
|
||||
// Not an error; returned on success
|
||||
//
|
||||
// HTTP Mapping: 200 OK
|
||||
Code_CODE_OK Code = 1
|
||||
// The operation was cancelled, typically by the caller.
|
||||
//
|
||||
// HTTP Mapping: 499 Client Closed Request
|
||||
Code_CODE_CANCELLED Code = 2
|
||||
// Unknown error. For example, this error may be returned when
|
||||
// a `Status` value received from another address space belongs to
|
||||
// an error space that is not known in this address space. Also
|
||||
// errors raised by APIs that do not return enough error information
|
||||
// may be converted to this error.
|
||||
//
|
||||
// HTTP Mapping: 500 Internal Server Error
|
||||
Code_CODE_UNKNOWN Code = 3
|
||||
// The client specified an invalid argument. Note that this differs
|
||||
// from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
|
||||
// that are problematic regardless of the state of the system
|
||||
// (e.g., a malformed file name).
|
||||
//
|
||||
// HTTP Mapping: 400 Bad Request
|
||||
Code_CODE_INVALID_ARGUMENT Code = 4
|
||||
// The deadline expired before the operation could complete. For operations
|
||||
// that change the state of the system, this error may be returned
|
||||
// even if the operation has completed successfully. For example, a
|
||||
// successful response from a server could have been delayed long
|
||||
// enough for the deadline to expire.
|
||||
//
|
||||
// HTTP Mapping: 504 Gateway Timeout
|
||||
Code_CODE_DEADLINE_EXCEEDED Code = 5
|
||||
// Some requested entity (e.g., file or directory) was not found.
|
||||
//
|
||||
// Note to server developers: if a request is denied for an entire class
|
||||
// of users, such as gradual feature rollout or undocumented whitelist,
|
||||
// `NOT_FOUND` may be used. If a request is denied for some users within
|
||||
// a class of users, such as user-based access control, `PERMISSION_DENIED`
|
||||
// must be used.
|
||||
//
|
||||
// HTTP Mapping: 404 Not Found
|
||||
Code_CODE_NOT_FOUND Code = 6
|
||||
// The entity that a client attempted to create (e.g., file or directory)
|
||||
// already exists.
|
||||
//
|
||||
// HTTP Mapping: 409 Conflict
|
||||
Code_CODE_ALREADY_EXISTS Code = 7
|
||||
// The caller does not have permission to execute the specified
|
||||
// operation. `PERMISSION_DENIED` must not be used for rejections
|
||||
// caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
|
||||
// instead for those errors). `PERMISSION_DENIED` must not be
|
||||
// used if the caller can not be identified (use `UNAUTHENTICATED`
|
||||
// instead for those errors). This error code does not imply the
|
||||
// request is valid or the requested entity exists or satisfies
|
||||
// other pre-conditions.
|
||||
//
|
||||
// HTTP Mapping: 403 Forbidden
|
||||
Code_CODE_PERMISSION_DENIED Code = 8
|
||||
// The request does not have valid authentication credentials for the
|
||||
// operation.
|
||||
//
|
||||
// HTTP Mapping: 401 Unauthorized
|
||||
Code_CODE_UNAUTHENTICATED Code = 9
|
||||
// Some resource has been exhausted, perhaps a per-user quota, or
|
||||
// perhaps the entire file system is out of space.
|
||||
//
|
||||
// HTTP Mapping: 429 Too Many Requests
|
||||
Code_CODE_RESOURCE_EXHAUSTED Code = 10
|
||||
// The operation was rejected because the system is not in a state
|
||||
// required for the operation's execution. For example, the directory
|
||||
// to be deleted is non-empty, an rmdir operation is applied to
|
||||
// a non-directory, etc.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// HTTP Mapping: 400 Bad Request
|
||||
Code_CODE_FAILED_PRECONDITION Code = 11
|
||||
// The operation was aborted, typically due to a concurrency issue such as
|
||||
// a sequencer check failure or transaction abort.
|
||||
//
|
||||
// See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
||||
// `ABORTED`, and `UNAVAILABLE`.
|
||||
//
|
||||
// HTTP Mapping: 409 Conflict
|
||||
Code_CODE_ABORTED Code = 12
|
||||
// The operation was attempted past the valid range. E.g., seeking or
|
||||
// reading past end-of-file.
|
||||
//
|
||||
// Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
|
||||
// be fixed if the system state changes. For example, a 32-bit file
|
||||
// system will generate `INVALID_ARGUMENT` if asked to read at an
|
||||
// offset that is not in the range [0,2^32-1], but it will generate
|
||||
// `OUT_OF_RANGE` if asked to read from an offset past the current
|
||||
// file size.
|
||||
//
|
||||
// There is a fair bit of overlap between `FAILED_PRECONDITION` and
|
||||
// `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
|
||||
// error) when it applies so that callers who are iterating through
|
||||
// a space can easily look for an `OUT_OF_RANGE` error to detect when
|
||||
// they are done.
|
||||
//
|
||||
// HTTP Mapping: 400 Bad Request
|
||||
Code_CODE_OUT_OF_RANGE Code = 13
|
||||
// The operation is not implemented or is not supported/enabled in this
|
||||
// service.
|
||||
//
|
||||
// HTTP Mapping: 501 Not Implemented
|
||||
Code_CODE_UNIMPLEMENTED Code = 14
|
||||
// Internal errors. This means that some invariants expected by the
|
||||
// underlying system have been broken. This error code is reserved
|
||||
// for serious errors.
|
||||
//
|
||||
// HTTP Mapping: 500 Internal Server Error
|
||||
Code_CODE_INTERNAL Code = 15
|
||||
// The service is currently unavailable. This is most likely a
|
||||
// transient condition, which can be corrected by retrying with
|
||||
// a backoff.
|
||||
//
|
||||
// See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
||||
// `ABORTED`, and `UNAVAILABLE`.
|
||||
//
|
||||
// HTTP Mapping: 503 Service Unavailable
|
||||
Code_CODE_UNAVAILABLE Code = 16
|
||||
// Unrecoverable data loss or corruption.
|
||||
//
|
||||
// HTTP Mapping: 500 Internal Server Error
|
||||
Code_CODE_DATA_LOSS Code = 17
|
||||
// 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
|
||||
// storage.
|
||||
//
|
||||
// HTTP Mapping: 507 Insufficient Storage
|
||||
Code_CODE_INSUFFICIENT_STORAGE Code = 19
|
||||
)
|
||||
|
||||
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",
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
|
||||
func (x Code) String() string {
|
||||
return proto.EnumName(Code_name, int32(x))
|
||||
}
|
||||
|
||||
func (Code) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d7978aa548ead3ec, []int{0}
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("cs3.rpc.v1beta1.Code", Code_name, Code_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cs3/rpc/v1beta1/code.proto", fileDescriptor_d7978aa548ead3ec) }
|
||||
|
||||
var fileDescriptor_d7978aa548ead3ec = []byte{
|
||||
// 427 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0xdd, 0x6e, 0xd3, 0x30,
|
||||
0x14, 0xc7, 0x59, 0x3b, 0x36, 0x76, 0xf6, 0xd1, 0x53, 0x77, 0xdf, 0xc0, 0x0b, 0x70, 0x91, 0xaa,
|
||||
0xea, 0x13, 0x38, 0x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0xbd, 0xb2, 0x26, 0x4a, 0x32, 0x8a, 0x24, 0xbe, 0x61, 0xb7, 0x70, 0xd9, 0x55, 0xc4,
|
||||
0x8b, 0xf0, 0x40, 0x26, 0x28, 0xc1, 0x03, 0x49, 0x3c, 0x61, 0x6f, 0xe1, 0xa6, 0x25, 0x8e, 0xbc,
|
||||
0x2d, 0x9c, 0x68, 0xd2, 0x3f, 0xf0, 0xc2, 0x37, 0x10, 0xd8, 0x3b, 0xb8, 0x6d, 0x61, 0xc6, 0x95,
|
||||
0x26, 0x19, 0x73, 0x47, 0xc2, 0x1a, 0xa9, 0x82, 0xb2, 0x06, 0x4f, 0xfb, 0x36, 0x79, 0x6a, 0x5d,
|
||||
0x13, 0x7f, 0xc6, 0xae, 0x60, 0xfc, 0x67, 0x32, 0x45, 0x88, 0x36, 0x8b, 0x8e, 0x9b, 0x05, 0xe1,
|
||||
0x39, 0xbb, 0x06, 0xd6, 0x65, 0x57, 0xcb, 0x5c, 0x53, 0xd3, 0x38, 0x49, 0xbc, 0x60, 0x63, 0x38,
|
||||
0xef, 0xa6, 0x12, 0xc8, 0x19, 0xae, 0x71, 0xc4, 0x2e, 0x01, 0xff, 0x16, 0xba, 0xe2, 0x4a, 0xf3,
|
||||
0x54, 0x13, 0x62, 0x3f, 0x07, 0xc9, 0x03, 0x8f, 0xda, 0x7a, 0x8f, 0xe3, 0x3e, 0xd2, 0x91, 0x54,
|
||||
0x8e, 0x44, 0x5b, 0x13, 0x63, 0xef, 0xe1, 0xae, 0xb3, 0xf4, 0x45, 0x96, 0x29, 0xa1, 0xc8, 0x84,
|
||||
0xe8, 0x83, 0x75, 0x7c, 0x41, 0x38, 0x49, 0xd7, 0x30, 0x29, 0xab, 0xaf, 0xc9, 0x7f, 0xcb, 0x4e,
|
||||
0x4f, 0x9a, 0x4d, 0xe7, 0xcd, 0x21, 0xe4, 0x07, 0x9f, 0x61, 0x5b, 0x97, 0x1d, 0xf8, 0x3e, 0x18,
|
||||
0x0a, 0xb7, 0xfe, 0x31, 0x18, 0x89, 0xdd, 0x3c, 0x71, 0x75, 0x99, 0xac, 0x66, 0x69, 0xa3, 0xff,
|
||||
0x6c, 0x95, 0x27, 0x57, 0x97, 0x4f, 0x9d, 0xf2, 0x7c, 0xd4, 0xde, 0xd1, 0xfc, 0x77, 0x00, 0x00,
|
||||
0x00, 0xff, 0xff, 0xca, 0x09, 0x0e, 0x95, 0x65, 0x02, 0x00, 0x00,
|
||||
}
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/rpc/v1beta1/status.proto
|
||||
|
||||
package rpcv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// 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 {
|
||||
// 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"`
|
||||
// OPTIONAL.
|
||||
// A developer-facing error message, which should be in English. Any
|
||||
// user-facing error message should be localized and sent in the
|
||||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||||
// OPTIONAL.
|
||||
// A trace added to the response for helping support to identify client problems.
|
||||
Trace string `protobuf:"bytes,3,opt,name=trace,proto3" json:"trace,omitempty"`
|
||||
// OPTIONAL.
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *Status) Reset() { *m = Status{} }
|
||||
func (m *Status) String() string { return proto.CompactTextString(m) }
|
||||
func (*Status) ProtoMessage() {}
|
||||
func (*Status) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e02c75bc6b84198d, []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
|
||||
}
|
||||
return Code_CODE_INVALID
|
||||
}
|
||||
|
||||
func (m *Status) GetMessage() string {
|
||||
if m != nil {
|
||||
return m.Message
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Status) GetTrace() string {
|
||||
if m != nil {
|
||||
return m.Trace
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Status) GetTargetUri() string {
|
||||
if m != nil {
|
||||
return m.TargetUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Status)(nil), "cs3.rpc.v1beta1.Status")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cs3/rpc/v1beta1/status.proto", fileDescriptor_e02c75bc6b84198d) }
|
||||
|
||||
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,
|
||||
}
|
||||
Generated
Vendored
+1579
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+840
@@ -0,0 +1,840 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/sharing/collaboration/v1beta1/resources.proto
|
||||
|
||||
package collaborationv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
v1beta11 "github.com/cs3org/go-cs3apis/cs3/identity/user/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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// The state of the share.
|
||||
type ShareState int32
|
||||
|
||||
const (
|
||||
// The share is no longer valid, for example, the share expired.
|
||||
ShareState_SHARE_STATE_INVALID ShareState = 0
|
||||
// New shares MUST be created in the SHARE_STATE_PENDING state.
|
||||
// This state means the share is pending to be accepted or rejected
|
||||
// by the recipient of the share.
|
||||
ShareState_SHARE_STATE_PENDING ShareState = 1
|
||||
// The recipient of the share has accepted the share.
|
||||
ShareState_SHARE_STATE_ACCEPTED ShareState = 2
|
||||
// The recipient of the share has rejected the share.
|
||||
// Do not means the share is removed, the recipient MAY
|
||||
// change the state to accepted or pending.
|
||||
ShareState_SHARE_STATE_REJECTED ShareState = 3
|
||||
)
|
||||
|
||||
var ShareState_name = map[int32]string{
|
||||
0: "SHARE_STATE_INVALID",
|
||||
1: "SHARE_STATE_PENDING",
|
||||
2: "SHARE_STATE_ACCEPTED",
|
||||
3: "SHARE_STATE_REJECTED",
|
||||
}
|
||||
|
||||
var ShareState_value = map[string]int32{
|
||||
"SHARE_STATE_INVALID": 0,
|
||||
"SHARE_STATE_PENDING": 1,
|
||||
"SHARE_STATE_ACCEPTED": 2,
|
||||
"SHARE_STATE_REJECTED": 3,
|
||||
}
|
||||
|
||||
func (x ShareState) String() string {
|
||||
return proto.EnumName(ShareState_name, int32(x))
|
||||
}
|
||||
|
||||
func (ShareState) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{0}
|
||||
}
|
||||
|
||||
// The filter to apply.
|
||||
type Filter_Type int32
|
||||
|
||||
const (
|
||||
Filter_TYPE_INVALID Filter_Type = 0
|
||||
Filter_TYPE_NO Filter_Type = 1
|
||||
Filter_TYPE_RESOURCE_ID Filter_Type = 2
|
||||
Filter_TYPE_OWNER Filter_Type = 3
|
||||
Filter_TYPE_CREATOR Filter_Type = 4
|
||||
Filter_TYPE_GRANTEE_TYPE Filter_Type = 5
|
||||
Filter_TYPE_EXCLUDE_DENIALS Filter_Type = 6
|
||||
Filter_TYPE_SPACE_ID Filter_Type = 7
|
||||
Filter_TYPE_STATE Filter_Type = 8
|
||||
)
|
||||
|
||||
var Filter_Type_name = map[int32]string{
|
||||
0: "TYPE_INVALID",
|
||||
1: "TYPE_NO",
|
||||
2: "TYPE_RESOURCE_ID",
|
||||
3: "TYPE_OWNER",
|
||||
4: "TYPE_CREATOR",
|
||||
5: "TYPE_GRANTEE_TYPE",
|
||||
6: "TYPE_EXCLUDE_DENIALS",
|
||||
7: "TYPE_SPACE_ID",
|
||||
8: "TYPE_STATE",
|
||||
}
|
||||
|
||||
var Filter_Type_value = map[string]int32{
|
||||
"TYPE_INVALID": 0,
|
||||
"TYPE_NO": 1,
|
||||
"TYPE_RESOURCE_ID": 2,
|
||||
"TYPE_OWNER": 3,
|
||||
"TYPE_CREATOR": 4,
|
||||
"TYPE_GRANTEE_TYPE": 5,
|
||||
"TYPE_EXCLUDE_DENIALS": 6,
|
||||
"TYPE_SPACE_ID": 7,
|
||||
"TYPE_STATE": 8,
|
||||
}
|
||||
|
||||
func (x Filter_Type) String() string {
|
||||
return proto.EnumName(Filter_Type_name, int32(x))
|
||||
}
|
||||
|
||||
func (Filter_Type) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{7, 0}
|
||||
}
|
||||
|
||||
// Shares are relationships between a resource owner
|
||||
// (usually the authenticated user) who grants permissions to a recipient (grantee)
|
||||
// on a specified resource (resource_id). UserShares represents both user and groups.
|
||||
type Share struct {
|
||||
// REQUIRED.
|
||||
// Opaque unique identifier of the share.
|
||||
Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// REQUIRED.
|
||||
// Unique identifier of the shared resource.
|
||||
ResourceId *v1beta1.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
||||
// REQUIRED.
|
||||
// Permissions for the grantee to use
|
||||
// the resource.
|
||||
Permissions *SharePermissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
// REQUIRED.
|
||||
// The receiver of the share, like a user, group ...
|
||||
Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"`
|
||||
// REQUIRED.
|
||||
// Uniquely identifies the owner of the share
|
||||
// (the resource owner at the time of creating the share).
|
||||
// In case the ownership of the underlying resource changes
|
||||
// the share owner field MAY change to reflect the change of ownsership.
|
||||
Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
|
||||
// REQUIRED.
|
||||
// Uniquely identifies a principal who initiates the share creation.
|
||||
// A creator can create shares on behalf of the owner (because of re-sharing,
|
||||
// because belonging to special groups, ...).
|
||||
// Creator and owner often result in being the same principal.
|
||||
Creator *v1beta11.UserId `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"`
|
||||
// REQUIRED.
|
||||
// Creation time of the share.
|
||||
Ctime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"`
|
||||
// REQUIRED.
|
||||
// Last modification time of the share.
|
||||
Mtime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"`
|
||||
// Optional.
|
||||
// The expiration time of the share.
|
||||
Expiration *v1beta12.Timestamp `protobuf:"bytes,9,opt,name=expiration,proto3" json:"expiration,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Share) Reset() { *m = Share{} }
|
||||
func (m *Share) String() string { return proto.CompactTextString(m) }
|
||||
func (*Share) ProtoMessage() {}
|
||||
func (*Share) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{0}
|
||||
}
|
||||
|
||||
func (m *Share) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Share.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Share) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Share.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Share) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Share.Merge(m, src)
|
||||
}
|
||||
func (m *Share) XXX_Size() int {
|
||||
return xxx_messageInfo_Share.Size(m)
|
||||
}
|
||||
func (m *Share) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Share.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Share proto.InternalMessageInfo
|
||||
|
||||
func (m *Share) GetId() *ShareId {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetResourceId() *v1beta1.ResourceId {
|
||||
if m != nil {
|
||||
return m.ResourceId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetPermissions() *SharePermissions {
|
||||
if m != nil {
|
||||
return m.Permissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetGrantee() *v1beta1.Grantee {
|
||||
if m != nil {
|
||||
return m.Grantee
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetOwner() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Owner
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetCreator() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Creator
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetCtime() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Ctime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetMtime() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Mtime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetExpiration() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Expiration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The permissions for a share.
|
||||
type SharePermissions struct {
|
||||
Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SharePermissions) Reset() { *m = SharePermissions{} }
|
||||
func (m *SharePermissions) String() string { return proto.CompactTextString(m) }
|
||||
func (*SharePermissions) ProtoMessage() {}
|
||||
func (*SharePermissions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{1}
|
||||
}
|
||||
|
||||
func (m *SharePermissions) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SharePermissions.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SharePermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SharePermissions.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *SharePermissions) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SharePermissions.Merge(m, src)
|
||||
}
|
||||
func (m *SharePermissions) XXX_Size() int {
|
||||
return xxx_messageInfo_SharePermissions.Size(m)
|
||||
}
|
||||
func (m *SharePermissions) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SharePermissions.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SharePermissions proto.InternalMessageInfo
|
||||
|
||||
func (m *SharePermissions) GetPermissions() *v1beta1.ResourcePermissions {
|
||||
if m != nil {
|
||||
return m.Permissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A received share is the share that a grantee will receive.
|
||||
// It expands the original share by adding state to the share,
|
||||
// a display name from the perspective of the grantee and a
|
||||
// resource mount point in case the share will be mounted
|
||||
// in a storage provider.
|
||||
type ReceivedShare struct {
|
||||
// REQUIRED.
|
||||
Share *Share `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
|
||||
// REQUIRED.
|
||||
// The state of the share.
|
||||
State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.collaboration.v1beta1.ShareState" json:"state,omitempty"`
|
||||
// REQUIRED.
|
||||
// The mount point of the share.
|
||||
MountPoint *v1beta1.Reference `protobuf:"bytes,3,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ReceivedShare) Reset() { *m = ReceivedShare{} }
|
||||
func (m *ReceivedShare) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReceivedShare) ProtoMessage() {}
|
||||
func (*ReceivedShare) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{2}
|
||||
}
|
||||
|
||||
func (m *ReceivedShare) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ReceivedShare.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ReceivedShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ReceivedShare.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ReceivedShare) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ReceivedShare.Merge(m, src)
|
||||
}
|
||||
func (m *ReceivedShare) XXX_Size() int {
|
||||
return xxx_messageInfo_ReceivedShare.Size(m)
|
||||
}
|
||||
func (m *ReceivedShare) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ReceivedShare.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ReceivedShare proto.InternalMessageInfo
|
||||
|
||||
func (m *ReceivedShare) GetShare() *Share {
|
||||
if m != nil {
|
||||
return m.Share
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ReceivedShare) GetState() ShareState {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return ShareState_SHARE_STATE_INVALID
|
||||
}
|
||||
|
||||
func (m *ReceivedShare) GetMountPoint() *v1beta1.Reference {
|
||||
if m != nil {
|
||||
return m.MountPoint
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Uniquely identifies a share in the share provider.
|
||||
// A share MUST be uniquely identify by four (4) elements:
|
||||
// 1) The share provider id
|
||||
// 2) The owner of the share
|
||||
// 3) The resource id
|
||||
// 4) The grantee for the share
|
||||
// This 4-tuple MUST be unique.
|
||||
// For example, owner Alice shares the resource /home/docs with id
|
||||
// home:1234 to an user named Bob. The 4-tuple will consist of
|
||||
// 1) The share provider id = "user"
|
||||
// 2) The owner of the share = "Alice"
|
||||
// 3) The resource id = "home:1234"
|
||||
// 4) The grantee for the share = Grantee("type" = "user", "" => "Bob")
|
||||
type ShareKey struct {
|
||||
// REQUIRED.
|
||||
Owner *v1beta11.UserId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
|
||||
// REQUIRED.
|
||||
ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
||||
// REQUIRED.
|
||||
Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ShareKey) Reset() { *m = ShareKey{} }
|
||||
func (m *ShareKey) String() string { return proto.CompactTextString(m) }
|
||||
func (*ShareKey) ProtoMessage() {}
|
||||
func (*ShareKey) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{3}
|
||||
}
|
||||
|
||||
func (m *ShareKey) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ShareKey.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ShareKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ShareKey.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ShareKey) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ShareKey.Merge(m, src)
|
||||
}
|
||||
func (m *ShareKey) XXX_Size() int {
|
||||
return xxx_messageInfo_ShareKey.Size(m)
|
||||
}
|
||||
func (m *ShareKey) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ShareKey.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ShareKey proto.InternalMessageInfo
|
||||
|
||||
func (m *ShareKey) GetOwner() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Owner
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareKey) GetResourceId() *v1beta1.ResourceId {
|
||||
if m != nil {
|
||||
return m.ResourceId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareKey) GetGrantee() *v1beta1.Grantee {
|
||||
if m != nil {
|
||||
return m.Grantee
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A share id identifies uniquely a // share in the share provider namespace.
|
||||
// A ShareId MUST be unique inside the share provider.
|
||||
type ShareId struct {
|
||||
// REQUIRED.
|
||||
// The internal id used by service implementor to
|
||||
// uniquely Collaboration the share in the internal
|
||||
// implementation of the service.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *ShareId) Reset() { *m = ShareId{} }
|
||||
func (m *ShareId) String() string { return proto.CompactTextString(m) }
|
||||
func (*ShareId) ProtoMessage() {}
|
||||
func (*ShareId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{4}
|
||||
}
|
||||
|
||||
func (m *ShareId) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ShareId.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ShareId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ShareId.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ShareId) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ShareId.Merge(m, src)
|
||||
}
|
||||
func (m *ShareId) XXX_Size() int {
|
||||
return xxx_messageInfo_ShareId.Size(m)
|
||||
}
|
||||
func (m *ShareId) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ShareId.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ShareId proto.InternalMessageInfo
|
||||
|
||||
func (m *ShareId) GetOpaqueId() string {
|
||||
if m != nil {
|
||||
return m.OpaqueId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The mechanism to identify a share
|
||||
// in the share provider namespace.
|
||||
type ShareReference struct {
|
||||
// REQUIRED.
|
||||
// One of the specifications MUST be specified.
|
||||
//
|
||||
// Types that are valid to be assigned to Spec:
|
||||
// *ShareReference_Id
|
||||
// *ShareReference_Key
|
||||
Spec isShareReference_Spec `protobuf_oneof:"spec"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ShareReference) Reset() { *m = ShareReference{} }
|
||||
func (m *ShareReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*ShareReference) ProtoMessage() {}
|
||||
func (*ShareReference) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{5}
|
||||
}
|
||||
|
||||
func (m *ShareReference) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ShareReference.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ShareReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ShareReference.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ShareReference) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ShareReference.Merge(m, src)
|
||||
}
|
||||
func (m *ShareReference) XXX_Size() int {
|
||||
return xxx_messageInfo_ShareReference.Size(m)
|
||||
}
|
||||
func (m *ShareReference) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ShareReference.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ShareReference proto.InternalMessageInfo
|
||||
|
||||
type isShareReference_Spec interface {
|
||||
isShareReference_Spec()
|
||||
}
|
||||
|
||||
type ShareReference_Id struct {
|
||||
Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ShareReference_Key struct {
|
||||
Key *ShareKey `protobuf:"bytes,2,opt,name=key,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ShareReference_Id) isShareReference_Spec() {}
|
||||
|
||||
func (*ShareReference_Key) isShareReference_Spec() {}
|
||||
|
||||
func (m *ShareReference) GetSpec() isShareReference_Spec {
|
||||
if m != nil {
|
||||
return m.Spec
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareReference) GetId() *ShareId {
|
||||
if x, ok := m.GetSpec().(*ShareReference_Id); ok {
|
||||
return x.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareReference) GetKey() *ShareKey {
|
||||
if x, ok := m.GetSpec().(*ShareReference_Key); ok {
|
||||
return x.Key
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*ShareReference) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*ShareReference_Id)(nil),
|
||||
(*ShareReference_Key)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
// A share grant specifies the share permissions
|
||||
// for a grantee.
|
||||
type ShareGrant struct {
|
||||
// REQUIRED.
|
||||
// The grantee of the grant.
|
||||
Grantee *v1beta1.Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
|
||||
// REQUIRED.
|
||||
// The share permissions for the grant.
|
||||
Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
// OPTIONAL
|
||||
// Expiration of the grant.
|
||||
Expiration *v1beta12.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ShareGrant) Reset() { *m = ShareGrant{} }
|
||||
func (m *ShareGrant) String() string { return proto.CompactTextString(m) }
|
||||
func (*ShareGrant) ProtoMessage() {}
|
||||
func (*ShareGrant) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{6}
|
||||
}
|
||||
|
||||
func (m *ShareGrant) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ShareGrant.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ShareGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ShareGrant.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ShareGrant) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ShareGrant.Merge(m, src)
|
||||
}
|
||||
func (m *ShareGrant) XXX_Size() int {
|
||||
return xxx_messageInfo_ShareGrant.Size(m)
|
||||
}
|
||||
func (m *ShareGrant) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ShareGrant.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ShareGrant proto.InternalMessageInfo
|
||||
|
||||
func (m *ShareGrant) GetGrantee() *v1beta1.Grantee {
|
||||
if m != nil {
|
||||
return m.Grantee
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareGrant) GetPermissions() *SharePermissions {
|
||||
if m != nil {
|
||||
return m.Permissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareGrant) GetExpiration() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Expiration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Represents a filter to apply to the request.
|
||||
type Filter struct {
|
||||
// REQUIRED.
|
||||
Type Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.collaboration.v1beta1.Filter_Type" json:"type,omitempty"`
|
||||
// Types that are valid to be assigned to Term:
|
||||
// *Filter_ResourceId
|
||||
// *Filter_Owner
|
||||
// *Filter_Creator
|
||||
// *Filter_GranteeType
|
||||
// *Filter_SpaceId
|
||||
// *Filter_State
|
||||
Term isFilter_Term `protobuf_oneof:"term"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Filter) Reset() { *m = Filter{} }
|
||||
func (m *Filter) String() string { return proto.CompactTextString(m) }
|
||||
func (*Filter) ProtoMessage() {}
|
||||
func (*Filter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cb95b447da150104, []int{7}
|
||||
}
|
||||
|
||||
func (m *Filter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Filter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Filter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Filter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Filter.Merge(m, src)
|
||||
}
|
||||
func (m *Filter) XXX_Size() int {
|
||||
return xxx_messageInfo_Filter.Size(m)
|
||||
}
|
||||
func (m *Filter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Filter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Filter proto.InternalMessageInfo
|
||||
|
||||
func (m *Filter) GetType() Filter_Type {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return Filter_TYPE_INVALID
|
||||
}
|
||||
|
||||
type isFilter_Term interface {
|
||||
isFilter_Term()
|
||||
}
|
||||
|
||||
type Filter_ResourceId struct {
|
||||
ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Filter_Owner struct {
|
||||
Owner *v1beta11.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Filter_Creator struct {
|
||||
Creator *v1beta11.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Filter_GranteeType struct {
|
||||
GranteeType v1beta1.GranteeType `protobuf:"varint,6,opt,name=grantee_type,json=granteeType,proto3,enum=cs3.storage.provider.v1beta1.GranteeType,oneof"`
|
||||
}
|
||||
|
||||
type Filter_SpaceId struct {
|
||||
SpaceId string `protobuf:"bytes,7,opt,name=space_id,json=spaceId,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Filter_State struct {
|
||||
State ShareState `protobuf:"varint,8,opt,name=state,proto3,enum=cs3.sharing.collaboration.v1beta1.ShareState,oneof"`
|
||||
}
|
||||
|
||||
func (*Filter_ResourceId) isFilter_Term() {}
|
||||
|
||||
func (*Filter_Owner) isFilter_Term() {}
|
||||
|
||||
func (*Filter_Creator) isFilter_Term() {}
|
||||
|
||||
func (*Filter_GranteeType) isFilter_Term() {}
|
||||
|
||||
func (*Filter_SpaceId) isFilter_Term() {}
|
||||
|
||||
func (*Filter_State) isFilter_Term() {}
|
||||
|
||||
func (m *Filter) GetTerm() isFilter_Term {
|
||||
if m != nil {
|
||||
return m.Term
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Filter) GetResourceId() *v1beta1.ResourceId {
|
||||
if x, ok := m.GetTerm().(*Filter_ResourceId); ok {
|
||||
return x.ResourceId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Filter) GetOwner() *v1beta11.UserId {
|
||||
if x, ok := m.GetTerm().(*Filter_Owner); ok {
|
||||
return x.Owner
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Filter) GetCreator() *v1beta11.UserId {
|
||||
if x, ok := m.GetTerm().(*Filter_Creator); ok {
|
||||
return x.Creator
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Filter) GetGranteeType() v1beta1.GranteeType {
|
||||
if x, ok := m.GetTerm().(*Filter_GranteeType); ok {
|
||||
return x.GranteeType
|
||||
}
|
||||
return v1beta1.GranteeType_GRANTEE_TYPE_INVALID
|
||||
}
|
||||
|
||||
func (m *Filter) GetSpaceId() string {
|
||||
if x, ok := m.GetTerm().(*Filter_SpaceId); ok {
|
||||
return x.SpaceId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Filter) GetState() ShareState {
|
||||
if x, ok := m.GetTerm().(*Filter_State); ok {
|
||||
return x.State
|
||||
}
|
||||
return ShareState_SHARE_STATE_INVALID
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*Filter) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*Filter_ResourceId)(nil),
|
||||
(*Filter_Owner)(nil),
|
||||
(*Filter_Creator)(nil),
|
||||
(*Filter_GranteeType)(nil),
|
||||
(*Filter_SpaceId)(nil),
|
||||
(*Filter_State)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("cs3.sharing.collaboration.v1beta1.ShareState", ShareState_name, ShareState_value)
|
||||
proto.RegisterEnum("cs3.sharing.collaboration.v1beta1.Filter_Type", Filter_Type_name, Filter_Type_value)
|
||||
proto.RegisterType((*Share)(nil), "cs3.sharing.collaboration.v1beta1.Share")
|
||||
proto.RegisterType((*SharePermissions)(nil), "cs3.sharing.collaboration.v1beta1.SharePermissions")
|
||||
proto.RegisterType((*ReceivedShare)(nil), "cs3.sharing.collaboration.v1beta1.ReceivedShare")
|
||||
proto.RegisterType((*ShareKey)(nil), "cs3.sharing.collaboration.v1beta1.ShareKey")
|
||||
proto.RegisterType((*ShareId)(nil), "cs3.sharing.collaboration.v1beta1.ShareId")
|
||||
proto.RegisterType((*ShareReference)(nil), "cs3.sharing.collaboration.v1beta1.ShareReference")
|
||||
proto.RegisterType((*ShareGrant)(nil), "cs3.sharing.collaboration.v1beta1.ShareGrant")
|
||||
proto.RegisterType((*Filter)(nil), "cs3.sharing.collaboration.v1beta1.Filter")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/sharing/collaboration/v1beta1/resources.proto", fileDescriptor_cb95b447da150104)
|
||||
}
|
||||
|
||||
var fileDescriptor_cb95b447da150104 = []byte{
|
||||
// 921 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xcd, 0x6e, 0xe3, 0x54,
|
||||
0x14, 0xc7, 0xe3, 0x24, 0x4e, 0xd2, 0x93, 0x99, 0xca, 0x73, 0x29, 0xc2, 0x9a, 0x01, 0x89, 0x46,
|
||||
0x1a, 0xe8, 0x0c, 0xe0, 0x28, 0xcd, 0x02, 0x01, 0x03, 0xa3, 0xc4, 0x31, 0x8d, 0x69, 0x95, 0x46,
|
||||
0xd7, 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11, 0xae, 0xbc, 0xe2, 0x08,
|
||||
0xff, 0xa2, 0x42, 0xed, 0xcb, 0xe0, 0x3c, 0x65, 0x9c, 0xf4, 0xa1, 0x2a, 0x88, 0x6c, 0x22, 0x8c,
|
||||
0x02, 0x81, 0x49, 0xd0, 0x98, 0x2c, 0x62, 0x46, 0x91, 0x25, 0x87, 0xb7, 0xea, 0xc0, 0x61, 0x69,
|
||||
0xad, 0x07, 0x3f, 0xc9, 0xe7, 0xa0, 0x5a, 0x70, 0x0e, 0x86, 0xa5, 0x7c, 0x12, 0x3e, 0xbf, 0x5a,
|
||||
0xbe, 0x6a, 0x71, 0x78, 0xb9, 0x7e, 0x47, 0x70, 0x27, 0xab, 0xda, 0x14, 0x53, 0x52, 0xc3, 0x94,
|
||||
0x3c, 0x2a, 0x54, 0x70, 0x91, 0x8d, 0x61, 0x89, 0x36, 0x67, 0x57, 0x9f, 0xe4, 0x01, 0x34, 0x92,
|
||||
0xd8, 0x95, 0x39, 0x11, 0x1b, 0x7d, 0x4b, 0x5c, 0x86, 0x27, 0xb6, 0x4f, 0xac, 0x7c, 0x15, 0x35,
|
||||
0x6e, 0xb0, 0x8a, 0xc4, 0x93, 0x91, 0x6e, 0xfd, 0xa9, 0x40, 0x15, 0x2f, 0xd3, 0xe0, 0xce, 0xe4,
|
||||
0xdb, 0xb1, 0x35, 0xb5, 0x47, 0xcf, 0x7a, 0x47, 0xf6, 0x40, 0x2b, 0x91, 0x26, 0xd4, 0xf1, 0x64,
|
||||
0x74, 0xac, 0x29, 0x64, 0x07, 0x34, 0xfc, 0xa0, 0x96, 0x73, 0x7c, 0x42, 0x4d, 0x6b, 0x6a, 0x0f,
|
||||
0xb4, 0x32, 0xd9, 0x06, 0xc0, 0xd3, 0xe3, 0xaf, 0x47, 0x16, 0xd5, 0x2a, 0x4b, 0x27, 0x26, 0xb5,
|
||||
0x7a, 0x93, 0x63, 0xaa, 0x55, 0xc9, 0x9b, 0x70, 0x0f, 0x4f, 0x0e, 0x68, 0x6f, 0x34, 0xb1, 0xac,
|
||||
0xa9, 0xf8, 0xd0, 0x54, 0xa2, 0xc3, 0x0e, 0x1e, 0x5b, 0xdf, 0x98, 0x47, 0x27, 0x03, 0x6b, 0x3a,
|
||||
0xb0, 0x46, 0x76, 0xef, 0xc8, 0xd1, 0x6a, 0xe4, 0x1e, 0xdc, 0x45, 0x8b, 0x33, 0xee, 0xc9, 0x5b,
|
||||
0xea, 0xcb, 0x5b, 0x9c, 0x49, 0x6f, 0x62, 0x69, 0x0d, 0x31, 0x6a, 0x29, 0xe3, 0xf3, 0xc7, 0x3c,
|
||||
0x9b, 0x34, 0x7c, 0x12, 0x79, 0x0b, 0xde, 0x70, 0x86, 0x3d, 0x9a, 0xc9, 0x56, 0xde, 0xb1, 0x61,
|
||||
0x18, 0x5b, 0xa3, 0x81, 0x3d, 0x3a, 0xd0, 0x14, 0x11, 0xc4, 0xaa, 0xa1, 0x67, 0x9a, 0xd6, 0x78,
|
||||
0x62, 0x89, 0x77, 0x6d, 0x58, 0xa8, 0xf5, 0x95, 0x65, 0x0a, 0x4b, 0xa5, 0xff, 0x9b, 0x02, 0x0f,
|
||||
0xbd, 0x68, 0x7e, 0x7d, 0xb6, 0xfb, 0xdb, 0x79, 0x87, 0x26, 0x63, 0xf1, 0xdf, 0x69, 0xac, 0x7c,
|
||||
0xb7, 0xb3, 0x26, 0xcc, 0x74, 0xbf, 0x97, 0x2b, 0xa6, 0x63, 0xfe, 0x51, 0xde, 0x35, 0x93, 0x2e,
|
||||
0x56, 0x48, 0x78, 0x34, 0xd7, 0x3c, 0x3e, 0xeb, 0xf4, 0x85, 0xf2, 0x6f, 0xd4, 0x9c, 0x66, 0x9a,
|
||||
0xd3, 0x35, 0xcd, 0x69, 0xa6, 0x39, 0xab, 0xe1, 0x1f, 0xb5, 0xee, 0xff, 0x01, 0x00, 0x00, 0xff,
|
||||
0xff, 0xcf, 0x24, 0xc6, 0x10, 0x78, 0x0a, 0x00, 0x00,
|
||||
}
|
||||
+1454
File diff suppressed because it is too large
Load Diff
+645
@@ -0,0 +1,645 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/sharing/link/v1beta1/resources.proto
|
||||
|
||||
package linkv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
v1beta11 "github.com/cs3org/go-cs3apis/cs3/identity/user/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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// Public share are relationships between a resource owner
|
||||
// (usually the authenticated user) who grants permissions to a recipient (grantee)
|
||||
// on a specified resource (resource_id). UserShares represents both user and groups.
|
||||
// TODO(labkode): do we need to have resource_type stored on the share?
|
||||
// This is not needed if when getting the shares a stat operation is launched against the
|
||||
// the storage provider.
|
||||
type PublicShare struct {
|
||||
// REQUIRED.
|
||||
// Opaque unique identifier of the share.
|
||||
Id *PublicShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// REQUIRED.
|
||||
// The unlisted token to give public access
|
||||
// to the public share.
|
||||
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
||||
// REQUIRED.
|
||||
// Unique identifier of the shared resource.
|
||||
ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
||||
// REQUIRED.
|
||||
// Permissions for the grantee to use
|
||||
// the resource.
|
||||
Permissions *PublicSharePermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
// REQUIRED.
|
||||
// Uniquely identifies the owner of the share
|
||||
// (the resource owner at the time of creating the share).
|
||||
// In case the ownership of the underlying resource changes
|
||||
// the share owner field MAY change to reflect the change of ownsership.
|
||||
Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
|
||||
// REQUIRED.
|
||||
// Uniquely identifies a principal who initiates the share creation.
|
||||
// A creator can create shares on behalf of the owner (because of re-sharing,
|
||||
// because belonging to special groups, ...).
|
||||
// Creator and owner often result in being the same principal.
|
||||
Creator *v1beta11.UserId `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"`
|
||||
// REQUIRED.
|
||||
// Creation time of the share.
|
||||
Ctime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"`
|
||||
// REQUIRED.
|
||||
// Last modification time of the share.
|
||||
Mtime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"`
|
||||
// REQUIRED.
|
||||
// Determines if the public share is password protected or not.
|
||||
PasswordProtected bool `protobuf:"varint,9,opt,name=password_protected,json=passwordProtected,proto3" json:"password_protected,omitempty"`
|
||||
// OPTIONAL.
|
||||
// The expiration time for the public share.
|
||||
Expiration *v1beta12.Timestamp `protobuf:"bytes,10,opt,name=expiration,proto3" json:"expiration,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Display name for the shared resource (such as file, directory basename or any
|
||||
// user defined name).
|
||||
// The display name MAY be different than the actual resource basename.
|
||||
// This field is only useful for informational purposes, like for example,
|
||||
// setting the window title in a public share HTML page.
|
||||
DisplayName string `protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
// OPTIONAL.
|
||||
// A time constrained token with which
|
||||
// GetPublicSharebyToken requests can be
|
||||
// authenticated.
|
||||
Signature *ShareSignature `protobuf:"bytes,12,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
// OPTIONAL
|
||||
// A bool value indicating if the link is the quicklink
|
||||
// the server will enforce a maximum of 1 quicklink per resource
|
||||
Quicklink bool `protobuf:"varint,13,opt,name=quicklink,proto3" json:"quicklink,omitempty"`
|
||||
// OPTIONAL
|
||||
// Description of the share.
|
||||
Description string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PublicShare) Reset() { *m = PublicShare{} }
|
||||
func (m *PublicShare) String() string { return proto.CompactTextString(m) }
|
||||
func (*PublicShare) ProtoMessage() {}
|
||||
func (*PublicShare) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2f13c61869aaebc4, []int{0}
|
||||
}
|
||||
|
||||
func (m *PublicShare) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PublicShare.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PublicShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PublicShare.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PublicShare) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PublicShare.Merge(m, src)
|
||||
}
|
||||
func (m *PublicShare) XXX_Size() int {
|
||||
return xxx_messageInfo_PublicShare.Size(m)
|
||||
}
|
||||
func (m *PublicShare) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PublicShare.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PublicShare proto.InternalMessageInfo
|
||||
|
||||
func (m *PublicShare) GetId() *PublicShareId {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetToken() string {
|
||||
if m != nil {
|
||||
return m.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetResourceId() *v1beta1.ResourceId {
|
||||
if m != nil {
|
||||
return m.ResourceId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetPermissions() *PublicSharePermissions {
|
||||
if m != nil {
|
||||
return m.Permissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetOwner() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Owner
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetCreator() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Creator
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetCtime() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Ctime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetMtime() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Mtime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetPasswordProtected() bool {
|
||||
if m != nil {
|
||||
return m.PasswordProtected
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetExpiration() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Expiration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetSignature() *ShareSignature {
|
||||
if m != nil {
|
||||
return m.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetQuicklink() bool {
|
||||
if m != nil {
|
||||
return m.Quicklink
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *PublicShare) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The permissions for a share.
|
||||
type PublicSharePermissions struct {
|
||||
Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PublicSharePermissions) Reset() { *m = PublicSharePermissions{} }
|
||||
func (m *PublicSharePermissions) String() string { return proto.CompactTextString(m) }
|
||||
func (*PublicSharePermissions) ProtoMessage() {}
|
||||
func (*PublicSharePermissions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2f13c61869aaebc4, []int{1}
|
||||
}
|
||||
|
||||
func (m *PublicSharePermissions) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PublicSharePermissions.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PublicSharePermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PublicSharePermissions.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PublicSharePermissions) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PublicSharePermissions.Merge(m, src)
|
||||
}
|
||||
func (m *PublicSharePermissions) XXX_Size() int {
|
||||
return xxx_messageInfo_PublicSharePermissions.Size(m)
|
||||
}
|
||||
func (m *PublicSharePermissions) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PublicSharePermissions.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PublicSharePermissions proto.InternalMessageInfo
|
||||
|
||||
func (m *PublicSharePermissions) GetPermissions() *v1beta1.ResourcePermissions {
|
||||
if m != nil {
|
||||
return m.Permissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A share id identifies uniquely a // share in the share provider namespace.
|
||||
// A ShareId MUST be unique inside the share provider.
|
||||
type PublicShareId struct {
|
||||
// REQUIRED.
|
||||
// The internal id used by service implementor to
|
||||
// uniquely identity the share in the internal
|
||||
// implementation of the service.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *PublicShareId) Reset() { *m = PublicShareId{} }
|
||||
func (m *PublicShareId) String() string { return proto.CompactTextString(m) }
|
||||
func (*PublicShareId) ProtoMessage() {}
|
||||
func (*PublicShareId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2f13c61869aaebc4, []int{2}
|
||||
}
|
||||
|
||||
func (m *PublicShareId) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PublicShareId.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PublicShareId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PublicShareId.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PublicShareId) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PublicShareId.Merge(m, src)
|
||||
}
|
||||
func (m *PublicShareId) XXX_Size() int {
|
||||
return xxx_messageInfo_PublicShareId.Size(m)
|
||||
}
|
||||
func (m *PublicShareId) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PublicShareId.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PublicShareId proto.InternalMessageInfo
|
||||
|
||||
func (m *PublicShareId) GetOpaqueId() string {
|
||||
if m != nil {
|
||||
return m.OpaqueId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The mechanism to identify a share
|
||||
// in the share provider namespace.
|
||||
type PublicShareReference struct {
|
||||
// REQUIRED.
|
||||
// One of the specifications MUST be specified.
|
||||
//
|
||||
// Types that are valid to be assigned to Spec:
|
||||
// *PublicShareReference_Id
|
||||
// *PublicShareReference_Token
|
||||
Spec isPublicShareReference_Spec `protobuf_oneof:"spec"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PublicShareReference) Reset() { *m = PublicShareReference{} }
|
||||
func (m *PublicShareReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*PublicShareReference) ProtoMessage() {}
|
||||
func (*PublicShareReference) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2f13c61869aaebc4, []int{3}
|
||||
}
|
||||
|
||||
func (m *PublicShareReference) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PublicShareReference.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PublicShareReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PublicShareReference.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PublicShareReference) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PublicShareReference.Merge(m, src)
|
||||
}
|
||||
func (m *PublicShareReference) XXX_Size() int {
|
||||
return xxx_messageInfo_PublicShareReference.Size(m)
|
||||
}
|
||||
func (m *PublicShareReference) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PublicShareReference.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PublicShareReference proto.InternalMessageInfo
|
||||
|
||||
type isPublicShareReference_Spec interface {
|
||||
isPublicShareReference_Spec()
|
||||
}
|
||||
|
||||
type PublicShareReference_Id struct {
|
||||
Id *PublicShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
|
||||
}
|
||||
|
||||
type PublicShareReference_Token struct {
|
||||
Token string `protobuf:"bytes,2,opt,name=token,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*PublicShareReference_Id) isPublicShareReference_Spec() {}
|
||||
|
||||
func (*PublicShareReference_Token) isPublicShareReference_Spec() {}
|
||||
|
||||
func (m *PublicShareReference) GetSpec() isPublicShareReference_Spec {
|
||||
if m != nil {
|
||||
return m.Spec
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShareReference) GetId() *PublicShareId {
|
||||
if x, ok := m.GetSpec().(*PublicShareReference_Id); ok {
|
||||
return x.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShareReference) GetToken() string {
|
||||
if x, ok := m.GetSpec().(*PublicShareReference_Token); ok {
|
||||
return x.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*PublicShareReference) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*PublicShareReference_Id)(nil),
|
||||
(*PublicShareReference_Token)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
// The mechanism to authenticate a request to
|
||||
// GetPublicShareByToken.
|
||||
type PublicShareAuthentication struct {
|
||||
// Types that are valid to be assigned to Spec:
|
||||
// *PublicShareAuthentication_Password
|
||||
// *PublicShareAuthentication_Signature
|
||||
Spec isPublicShareAuthentication_Spec `protobuf_oneof:"spec"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PublicShareAuthentication) Reset() { *m = PublicShareAuthentication{} }
|
||||
func (m *PublicShareAuthentication) String() string { return proto.CompactTextString(m) }
|
||||
func (*PublicShareAuthentication) ProtoMessage() {}
|
||||
func (*PublicShareAuthentication) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2f13c61869aaebc4, []int{4}
|
||||
}
|
||||
|
||||
func (m *PublicShareAuthentication) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PublicShareAuthentication.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PublicShareAuthentication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PublicShareAuthentication.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PublicShareAuthentication) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PublicShareAuthentication.Merge(m, src)
|
||||
}
|
||||
func (m *PublicShareAuthentication) XXX_Size() int {
|
||||
return xxx_messageInfo_PublicShareAuthentication.Size(m)
|
||||
}
|
||||
func (m *PublicShareAuthentication) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PublicShareAuthentication.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PublicShareAuthentication proto.InternalMessageInfo
|
||||
|
||||
type isPublicShareAuthentication_Spec interface {
|
||||
isPublicShareAuthentication_Spec()
|
||||
}
|
||||
|
||||
type PublicShareAuthentication_Password struct {
|
||||
Password string `protobuf:"bytes,1,opt,name=password,proto3,oneof"`
|
||||
}
|
||||
|
||||
type PublicShareAuthentication_Signature struct {
|
||||
Signature *ShareSignature `protobuf:"bytes,2,opt,name=signature,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*PublicShareAuthentication_Password) isPublicShareAuthentication_Spec() {}
|
||||
|
||||
func (*PublicShareAuthentication_Signature) isPublicShareAuthentication_Spec() {}
|
||||
|
||||
func (m *PublicShareAuthentication) GetSpec() isPublicShareAuthentication_Spec {
|
||||
if m != nil {
|
||||
return m.Spec
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PublicShareAuthentication) GetPassword() string {
|
||||
if x, ok := m.GetSpec().(*PublicShareAuthentication_Password); ok {
|
||||
return x.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PublicShareAuthentication) GetSignature() *ShareSignature {
|
||||
if x, ok := m.GetSpec().(*PublicShareAuthentication_Signature); ok {
|
||||
return x.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*PublicShareAuthentication) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*PublicShareAuthentication_Password)(nil),
|
||||
(*PublicShareAuthentication_Signature)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
// A time constrained token which can be used to
|
||||
// authenticate link share requests.
|
||||
type ShareSignature struct {
|
||||
// REQUIRED.
|
||||
// The signature value.
|
||||
Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
// REQUIRED.
|
||||
// The time until the signature becomes invalid.
|
||||
SignatureExpiration *v1beta12.Timestamp `protobuf:"bytes,2,opt,name=signature_expiration,json=signatureExpiration,proto3" json:"signature_expiration,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ShareSignature) Reset() { *m = ShareSignature{} }
|
||||
func (m *ShareSignature) String() string { return proto.CompactTextString(m) }
|
||||
func (*ShareSignature) ProtoMessage() {}
|
||||
func (*ShareSignature) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2f13c61869aaebc4, []int{5}
|
||||
}
|
||||
|
||||
func (m *ShareSignature) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ShareSignature.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ShareSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ShareSignature.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ShareSignature) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ShareSignature.Merge(m, src)
|
||||
}
|
||||
func (m *ShareSignature) XXX_Size() int {
|
||||
return xxx_messageInfo_ShareSignature.Size(m)
|
||||
}
|
||||
func (m *ShareSignature) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ShareSignature.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ShareSignature proto.InternalMessageInfo
|
||||
|
||||
func (m *ShareSignature) GetSignature() string {
|
||||
if m != nil {
|
||||
return m.Signature
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ShareSignature) GetSignatureExpiration() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.SignatureExpiration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Defines the restrictions for the public share.
|
||||
type Grant struct {
|
||||
// REQUIRED.
|
||||
// The permissions for the share.
|
||||
Permissions *PublicSharePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
// OPTIONAL.
|
||||
// A password to protect the access to the public share.
|
||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
// OPTIONAL.
|
||||
// An expiration date to protect the access to the public share.
|
||||
Expiration *v1beta12.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Grant) Reset() { *m = Grant{} }
|
||||
func (m *Grant) String() string { return proto.CompactTextString(m) }
|
||||
func (*Grant) ProtoMessage() {}
|
||||
func (*Grant) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2f13c61869aaebc4, []int{6}
|
||||
}
|
||||
|
||||
func (m *Grant) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Grant.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Grant.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Grant) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Grant.Merge(m, src)
|
||||
}
|
||||
func (m *Grant) XXX_Size() int {
|
||||
return xxx_messageInfo_Grant.Size(m)
|
||||
}
|
||||
func (m *Grant) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Grant.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Grant proto.InternalMessageInfo
|
||||
|
||||
func (m *Grant) GetPermissions() *PublicSharePermissions {
|
||||
if m != nil {
|
||||
return m.Permissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Grant) GetPassword() string {
|
||||
if m != nil {
|
||||
return m.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Grant) GetExpiration() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Expiration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PublicShare)(nil), "cs3.sharing.link.v1beta1.PublicShare")
|
||||
proto.RegisterType((*PublicSharePermissions)(nil), "cs3.sharing.link.v1beta1.PublicSharePermissions")
|
||||
proto.RegisterType((*PublicShareId)(nil), "cs3.sharing.link.v1beta1.PublicShareId")
|
||||
proto.RegisterType((*PublicShareReference)(nil), "cs3.sharing.link.v1beta1.PublicShareReference")
|
||||
proto.RegisterType((*PublicShareAuthentication)(nil), "cs3.sharing.link.v1beta1.PublicShareAuthentication")
|
||||
proto.RegisterType((*ShareSignature)(nil), "cs3.sharing.link.v1beta1.ShareSignature")
|
||||
proto.RegisterType((*Grant)(nil), "cs3.sharing.link.v1beta1.Grant")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/sharing/link/v1beta1/resources.proto", fileDescriptor_2f13c61869aaebc4)
|
||||
}
|
||||
|
||||
var fileDescriptor_2f13c61869aaebc4 = []byte{
|
||||
// 694 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcb, 0x6e, 0xd3, 0x40,
|
||||
0x14, 0xad, 0xdd, 0xa6, 0x4d, 0xae, 0xdb, 0x4a, 0x0c, 0x55, 0x35, 0x94, 0x20, 0xa5, 0xd9, 0x10,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x84, 0x47, 0xbb,
|
||||
0xb0, 0x1e, 0x30, 0x19, 0x5f, 0x90, 0xc9, 0x38, 0x22, 0x21, 0xc5, 0x8e, 0xb1, 0x81, 0x93, 0xd5,
|
||||
0xde, 0x90, 0x90, 0xa2, 0x57, 0x50, 0x93, 0xec, 0x34, 0x22, 0x2a, 0x11, 0x14, 0xaf, 0x97, 0xad,
|
||||
0x70, 0x93, 0x7e, 0x46, 0xb9, 0x51, 0x8e, 0xf7, 0xa6, 0x54, 0x54, 0x87, 0xda, 0x65, 0xc2, 0xfc,
|
||||
0x73, 0x0d, 0xc7, 0x1b, 0xe6, 0x3a, 0xd3, 0x02, 0x6a, 0x80, 0x13, 0x50, 0xe9, 0x0b, 0x16, 0x9b,
|
||||
0x7b, 0x6c, 0x66, 0x7b, 0x4c, 0x4b, 0xcd, 0x10, 0xb6, 0x6f, 0x36, 0x07, 0x1a, 0xcd, 0x7a, 0x2c,
|
||||
0x8d, 0x41, 0x67, 0x31, 0xbb, 0xce, 0x33, 0x59, 0x73, 0x0f, 0x36, 0x66, 0xe2, 0x82, 0xee, 0x43,
|
||||
0x8d, 0xc7, 0xe4, 0x32, 0x31, 0x91, 0x48, 0xe3, 0x52, 0x4d, 0x0b, 0x83, 0xa0, 0x79, 0x09, 0x5b,
|
||||
0x25, 0xb4, 0x47, 0x3f, 0x51, 0x41, 0x23, 0x9f, 0xa2, 0xa7, 0xff, 0x10, 0xcc, 0xfe, 0x92, 0x89,
|
||||
0xe6, 0xf6, 0x4c, 0x34, 0xfb, 0x4b, 0x59, 0x38, 0x7b, 0xab, 0xb0, 0x22, 0x63, 0xea, 0x37, 0xbf,
|
||||
0x5a, 0x70, 0xaf, 0xc4, 0x7b, 0x91, 0xa8, 0x33, 0x6d, 0x63, 0x3f, 0x15, 0xb6, 0x0e, 0xd5, 0xdc,
|
||||
0x2b, 0xe6, 0x78, 0x3d, 0xa0, 0xa8, 0xa0, 0x7e, 0x59, 0x53, 0xfb, 0x76, 0x9a, 0xf6, 0x97, 0x4a,
|
||||
0xaa, 0x16, 0xdb, 0x7c, 0x81, 0xcd, 0x59, 0x98, 0xd6, 0x7b, 0x7a, 0x86, 0x59, 0xa1, 0xec, 0x86,
|
||||
0xb7, 0xb0, 0x55, 0x3c, 0x8c, 0x4b, 0x06, 0xb6, 0x17, 0x30, 0xf0, 0xdd, 0x82, 0xf9, 0xb2, 0x20,
|
||||
0x36, 0x7f, 0x58, 0x50, 0x79, 0x2d, 0x48, 0xa4, 0xfe, 0xfc, 0xe4, 0x58, 0xff, 0xe3, 0x93, 0xb3,
|
||||
0x53, 0x7a, 0x9d, 0x99, 0xf6, 0xc5, 0xcb, 0x9c, 0x4d, 0xe0, 0xf2, 0xed, 0x12, 0xd8, 0x9b, 0x40,
|
||||
0xdd, 0xe7, 0xe1, 0xdc, 0xed, 0x7a, 0x9b, 0xb9, 0x53, 0xa5, 0xce, 0x3c, 0x1f, 0x5a, 0x1f, 0x1d,
|
||||
0xdd, 0xcf, 0xda, 0xdf, 0xec, 0xe5, 0xc3, 0xd1, 0xd1, 0x77, 0x1b, 0x1f, 0xca, 0xae, 0xd1, 0x49,
|
||||
0xf3, 0x8f, 0x34, 0xff, 0x43, 0xa7, 0xa7, 0x01, 0x3f, 0x4d, 0xeb, 0x38, 0x6b, 0x1d, 0xeb, 0xd6,
|
||||
0x71, 0xd6, 0x3a, 0x59, 0x35, 0x7f, 0x26, 0xdd, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd5, 0xa3,
|
||||
0xf1, 0xe1, 0x0a, 0x07, 0x00, 0x00,
|
||||
}
|
||||
+1702
File diff suppressed because it is too large
Load Diff
+670
@@ -0,0 +1,670 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/sharing/ocm/v1beta1/resources.proto
|
||||
|
||||
package ocmv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
v1beta11 "github.com/cs3org/go-cs3apis/cs3/identity/user/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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// The state of the share.
|
||||
type ShareState int32
|
||||
|
||||
const (
|
||||
// The share is no longer valid, for example, the share expired.
|
||||
ShareState_SHARE_STATE_INVALID ShareState = 0
|
||||
// New shares MUST be created in the SHARE_STATE_PENDING state.
|
||||
// This state means the share is pending to be accepted or rejected
|
||||
// by the recipient of the share.
|
||||
ShareState_SHARE_STATE_PENDING ShareState = 1
|
||||
// The recipient of the share has accepted the share.
|
||||
ShareState_SHARE_STATE_ACCEPTED ShareState = 2
|
||||
// The recipient of the share has rejected the share.
|
||||
// Do not means the share is removed, the recipient MAY
|
||||
// change the state to accepted or pending.
|
||||
ShareState_SHARE_STATE_REJECTED ShareState = 3
|
||||
)
|
||||
|
||||
var ShareState_name = map[int32]string{
|
||||
0: "SHARE_STATE_INVALID",
|
||||
1: "SHARE_STATE_PENDING",
|
||||
2: "SHARE_STATE_ACCEPTED",
|
||||
3: "SHARE_STATE_REJECTED",
|
||||
}
|
||||
|
||||
var ShareState_value = map[string]int32{
|
||||
"SHARE_STATE_INVALID": 0,
|
||||
"SHARE_STATE_PENDING": 1,
|
||||
"SHARE_STATE_ACCEPTED": 2,
|
||||
"SHARE_STATE_REJECTED": 3,
|
||||
}
|
||||
|
||||
func (x ShareState) String() string {
|
||||
return proto.EnumName(ShareState_name, int32(x))
|
||||
}
|
||||
|
||||
func (ShareState) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b8b387acee7aaf43, []int{0}
|
||||
}
|
||||
|
||||
// Defines the type of share based on its origin.
|
||||
type Share_ShareType int32
|
||||
|
||||
const (
|
||||
Share_SHARE_TYPE_INVALID Share_ShareType = 0
|
||||
// A regular file or folder share.
|
||||
Share_SHARE_TYPE_REGULAR Share_ShareType = 1
|
||||
// A file or folder transfer.
|
||||
Share_SHARE_TYPE_TRANSFER Share_ShareType = 2
|
||||
)
|
||||
|
||||
var Share_ShareType_name = map[int32]string{
|
||||
0: "SHARE_TYPE_INVALID",
|
||||
1: "SHARE_TYPE_REGULAR",
|
||||
2: "SHARE_TYPE_TRANSFER",
|
||||
}
|
||||
|
||||
var Share_ShareType_value = map[string]int32{
|
||||
"SHARE_TYPE_INVALID": 0,
|
||||
"SHARE_TYPE_REGULAR": 1,
|
||||
"SHARE_TYPE_TRANSFER": 2,
|
||||
}
|
||||
|
||||
func (x Share_ShareType) String() string {
|
||||
return proto.EnumName(Share_ShareType_name, int32(x))
|
||||
}
|
||||
|
||||
func (Share_ShareType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b8b387acee7aaf43, []int{0, 0}
|
||||
}
|
||||
|
||||
// Shares are relationships between a resource owner
|
||||
// (usually the authenticated user) who grants permissions to a recipient (grantee)
|
||||
// on a specified resource (resource_id). UserShares represents both user and groups.
|
||||
type Share struct {
|
||||
// REQUIRED.
|
||||
// Opaque unique identifier of the share.
|
||||
Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// REQUIRED.
|
||||
// Unique identifier of the shared resource.
|
||||
ResourceId *v1beta1.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
||||
// REQUIRED.
|
||||
// Name of the shared resource.
|
||||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// REQUIRED.
|
||||
// Permissions for the grantee to use
|
||||
// the resource.
|
||||
Permissions *SharePermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
// REQUIRED.
|
||||
// The receiver of the share, like a user, group ...
|
||||
Grantee *v1beta1.Grantee `protobuf:"bytes,5,opt,name=grantee,proto3" json:"grantee,omitempty"`
|
||||
// REQUIRED.
|
||||
// Uniquely identifies the owner of the share
|
||||
// (the resource owner at the time of creating the share).
|
||||
// In case the ownership of the underlying resource changes
|
||||
// the share owner field MAY change to reflect the change of ownsership.
|
||||
Owner *v1beta11.UserId `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
|
||||
// REQUIRED.
|
||||
// Uniquely identifies a principal who initiates the share creation.
|
||||
// A creator can create shares on behalf of the owner (because of re-sharing,
|
||||
// because belonging to special groups, ...).
|
||||
// Creator and owner often result in being the same principal.
|
||||
Creator *v1beta11.UserId `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"`
|
||||
// REQUIRED.
|
||||
// Creation time of the share.
|
||||
Ctime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=ctime,proto3" json:"ctime,omitempty"`
|
||||
// REQUIRED.
|
||||
// Last modification time of the share.
|
||||
Mtime *v1beta12.Timestamp `protobuf:"bytes,9,opt,name=mtime,proto3" json:"mtime,omitempty"`
|
||||
// Specifies the type of the share.
|
||||
ShareType Share_ShareType `protobuf:"varint,10,opt,name=share_type,json=shareType,proto3,enum=cs3.sharing.ocm.v1beta1.Share_ShareType" json:"share_type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Share) Reset() { *m = Share{} }
|
||||
func (m *Share) String() string { return proto.CompactTextString(m) }
|
||||
func (*Share) ProtoMessage() {}
|
||||
func (*Share) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b8b387acee7aaf43, []int{0}
|
||||
}
|
||||
|
||||
func (m *Share) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Share.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Share) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Share.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Share) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Share.Merge(m, src)
|
||||
}
|
||||
func (m *Share) XXX_Size() int {
|
||||
return xxx_messageInfo_Share.Size(m)
|
||||
}
|
||||
func (m *Share) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Share.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Share proto.InternalMessageInfo
|
||||
|
||||
func (m *Share) GetId() *ShareId {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetResourceId() *v1beta1.ResourceId {
|
||||
if m != nil {
|
||||
return m.ResourceId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Share) GetPermissions() *SharePermissions {
|
||||
if m != nil {
|
||||
return m.Permissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetGrantee() *v1beta1.Grantee {
|
||||
if m != nil {
|
||||
return m.Grantee
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetOwner() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Owner
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetCreator() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Creator
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetCtime() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Ctime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetMtime() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Mtime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Share) GetShareType() Share_ShareType {
|
||||
if m != nil {
|
||||
return m.ShareType
|
||||
}
|
||||
return Share_SHARE_TYPE_INVALID
|
||||
}
|
||||
|
||||
// The permissions for a share.
|
||||
type SharePermissions struct {
|
||||
Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
Reshare bool `protobuf:"varint,2,opt,name=reshare,proto3" json:"reshare,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SharePermissions) Reset() { *m = SharePermissions{} }
|
||||
func (m *SharePermissions) String() string { return proto.CompactTextString(m) }
|
||||
func (*SharePermissions) ProtoMessage() {}
|
||||
func (*SharePermissions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b8b387acee7aaf43, []int{1}
|
||||
}
|
||||
|
||||
func (m *SharePermissions) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SharePermissions.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SharePermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SharePermissions.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *SharePermissions) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SharePermissions.Merge(m, src)
|
||||
}
|
||||
func (m *SharePermissions) XXX_Size() int {
|
||||
return xxx_messageInfo_SharePermissions.Size(m)
|
||||
}
|
||||
func (m *SharePermissions) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SharePermissions.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SharePermissions proto.InternalMessageInfo
|
||||
|
||||
func (m *SharePermissions) GetPermissions() *v1beta1.ResourcePermissions {
|
||||
if m != nil {
|
||||
return m.Permissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SharePermissions) GetReshare() bool {
|
||||
if m != nil {
|
||||
return m.Reshare
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// A received share is the share that a grantee will receive.
|
||||
// It expands the original share by adding state to the share,
|
||||
// a display name from the perspective of the grantee and a
|
||||
// resource mount point in case the share will be mounted
|
||||
// in a storage provider.
|
||||
type ReceivedShare struct {
|
||||
// REQUIRED.
|
||||
Share *Share `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
|
||||
// REQUIRED.
|
||||
// The state of the share.
|
||||
State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.ocm.v1beta1.ShareState" json:"state,omitempty"`
|
||||
// REQUIRED.
|
||||
// The mount point of the share.
|
||||
MountPoint *v1beta1.Reference `protobuf:"bytes,3,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ReceivedShare) Reset() { *m = ReceivedShare{} }
|
||||
func (m *ReceivedShare) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReceivedShare) ProtoMessage() {}
|
||||
func (*ReceivedShare) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b8b387acee7aaf43, []int{2}
|
||||
}
|
||||
|
||||
func (m *ReceivedShare) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ReceivedShare.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ReceivedShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ReceivedShare.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ReceivedShare) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ReceivedShare.Merge(m, src)
|
||||
}
|
||||
func (m *ReceivedShare) XXX_Size() int {
|
||||
return xxx_messageInfo_ReceivedShare.Size(m)
|
||||
}
|
||||
func (m *ReceivedShare) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ReceivedShare.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ReceivedShare proto.InternalMessageInfo
|
||||
|
||||
func (m *ReceivedShare) GetShare() *Share {
|
||||
if m != nil {
|
||||
return m.Share
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ReceivedShare) GetState() ShareState {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return ShareState_SHARE_STATE_INVALID
|
||||
}
|
||||
|
||||
func (m *ReceivedShare) GetMountPoint() *v1beta1.Reference {
|
||||
if m != nil {
|
||||
return m.MountPoint
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Uniquely identifies a share in the share provider.
|
||||
// A share MUST be uniquely identify by four (4) elements:
|
||||
// 1) The share provider id
|
||||
// 2) The owner of the share
|
||||
// 3) The resource id
|
||||
// 4) The grantee for the share
|
||||
// This 4-tuple MUST be unique.
|
||||
// For example, owner Alice shares the resource /home/docs with id
|
||||
// home:1234 to an user named Bob. The 4-tuple will consist of
|
||||
// 1) The share provider id = "user"
|
||||
// 2) The owner of the share = "Alice"
|
||||
// 3) The resource id = "home:1234"
|
||||
// 4) The grantee for the share = Grantee("type" = "user", "" => "Bob")
|
||||
type ShareKey struct {
|
||||
// REQUIRED.
|
||||
Owner *v1beta11.UserId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
|
||||
// REQUIRED.
|
||||
ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
||||
// REQUIRED.
|
||||
Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ShareKey) Reset() { *m = ShareKey{} }
|
||||
func (m *ShareKey) String() string { return proto.CompactTextString(m) }
|
||||
func (*ShareKey) ProtoMessage() {}
|
||||
func (*ShareKey) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b8b387acee7aaf43, []int{3}
|
||||
}
|
||||
|
||||
func (m *ShareKey) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ShareKey.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ShareKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ShareKey.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ShareKey) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ShareKey.Merge(m, src)
|
||||
}
|
||||
func (m *ShareKey) XXX_Size() int {
|
||||
return xxx_messageInfo_ShareKey.Size(m)
|
||||
}
|
||||
func (m *ShareKey) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ShareKey.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ShareKey proto.InternalMessageInfo
|
||||
|
||||
func (m *ShareKey) GetOwner() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Owner
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareKey) GetResourceId() *v1beta1.ResourceId {
|
||||
if m != nil {
|
||||
return m.ResourceId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareKey) GetGrantee() *v1beta1.Grantee {
|
||||
if m != nil {
|
||||
return m.Grantee
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A share id identifies uniquely a // share in the share provider namespace.
|
||||
// A ShareId MUST be unique inside the share provider.
|
||||
type ShareId struct {
|
||||
// REQUIRED.
|
||||
// The internal id used by service implementor to
|
||||
// uniquely identity the share in the internal
|
||||
// implementation of the service.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *ShareId) Reset() { *m = ShareId{} }
|
||||
func (m *ShareId) String() string { return proto.CompactTextString(m) }
|
||||
func (*ShareId) ProtoMessage() {}
|
||||
func (*ShareId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b8b387acee7aaf43, []int{4}
|
||||
}
|
||||
|
||||
func (m *ShareId) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ShareId.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ShareId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ShareId.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ShareId) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ShareId.Merge(m, src)
|
||||
}
|
||||
func (m *ShareId) XXX_Size() int {
|
||||
return xxx_messageInfo_ShareId.Size(m)
|
||||
}
|
||||
func (m *ShareId) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ShareId.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ShareId proto.InternalMessageInfo
|
||||
|
||||
func (m *ShareId) GetOpaqueId() string {
|
||||
if m != nil {
|
||||
return m.OpaqueId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The mechanism to identify a share
|
||||
// in the share provider namespace.
|
||||
type ShareReference struct {
|
||||
// REQUIRED.
|
||||
// One of the specifications MUST be specified.
|
||||
//
|
||||
// Types that are valid to be assigned to Spec:
|
||||
// *ShareReference_Id
|
||||
// *ShareReference_Key
|
||||
Spec isShareReference_Spec `protobuf_oneof:"spec"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ShareReference) Reset() { *m = ShareReference{} }
|
||||
func (m *ShareReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*ShareReference) ProtoMessage() {}
|
||||
func (*ShareReference) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b8b387acee7aaf43, []int{5}
|
||||
}
|
||||
|
||||
func (m *ShareReference) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ShareReference.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ShareReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ShareReference.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ShareReference) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ShareReference.Merge(m, src)
|
||||
}
|
||||
func (m *ShareReference) XXX_Size() int {
|
||||
return xxx_messageInfo_ShareReference.Size(m)
|
||||
}
|
||||
func (m *ShareReference) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ShareReference.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ShareReference proto.InternalMessageInfo
|
||||
|
||||
type isShareReference_Spec interface {
|
||||
isShareReference_Spec()
|
||||
}
|
||||
|
||||
type ShareReference_Id struct {
|
||||
Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ShareReference_Key struct {
|
||||
Key *ShareKey `protobuf:"bytes,2,opt,name=key,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ShareReference_Id) isShareReference_Spec() {}
|
||||
|
||||
func (*ShareReference_Key) isShareReference_Spec() {}
|
||||
|
||||
func (m *ShareReference) GetSpec() isShareReference_Spec {
|
||||
if m != nil {
|
||||
return m.Spec
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareReference) GetId() *ShareId {
|
||||
if x, ok := m.GetSpec().(*ShareReference_Id); ok {
|
||||
return x.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareReference) GetKey() *ShareKey {
|
||||
if x, ok := m.GetSpec().(*ShareReference_Key); ok {
|
||||
return x.Key
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*ShareReference) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*ShareReference_Id)(nil),
|
||||
(*ShareReference_Key)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
// A share grant specifies the share permissions
|
||||
// for a grantee.
|
||||
type ShareGrant struct {
|
||||
// REQUIRED.
|
||||
// The grantee of the grant.
|
||||
Grantee *v1beta1.Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
|
||||
// REQUIRED.
|
||||
// The share permissions for the grant.
|
||||
Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ShareGrant) Reset() { *m = ShareGrant{} }
|
||||
func (m *ShareGrant) String() string { return proto.CompactTextString(m) }
|
||||
func (*ShareGrant) ProtoMessage() {}
|
||||
func (*ShareGrant) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b8b387acee7aaf43, []int{6}
|
||||
}
|
||||
|
||||
func (m *ShareGrant) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ShareGrant.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ShareGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ShareGrant.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ShareGrant) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ShareGrant.Merge(m, src)
|
||||
}
|
||||
func (m *ShareGrant) XXX_Size() int {
|
||||
return xxx_messageInfo_ShareGrant.Size(m)
|
||||
}
|
||||
func (m *ShareGrant) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ShareGrant.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ShareGrant proto.InternalMessageInfo
|
||||
|
||||
func (m *ShareGrant) GetGrantee() *v1beta1.Grantee {
|
||||
if m != nil {
|
||||
return m.Grantee
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ShareGrant) GetPermissions() *SharePermissions {
|
||||
if m != nil {
|
||||
return m.Permissions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("cs3.sharing.ocm.v1beta1.ShareState", ShareState_name, ShareState_value)
|
||||
proto.RegisterEnum("cs3.sharing.ocm.v1beta1.Share_ShareType", Share_ShareType_name, Share_ShareType_value)
|
||||
proto.RegisterType((*Share)(nil), "cs3.sharing.ocm.v1beta1.Share")
|
||||
proto.RegisterType((*SharePermissions)(nil), "cs3.sharing.ocm.v1beta1.SharePermissions")
|
||||
proto.RegisterType((*ReceivedShare)(nil), "cs3.sharing.ocm.v1beta1.ReceivedShare")
|
||||
proto.RegisterType((*ShareKey)(nil), "cs3.sharing.ocm.v1beta1.ShareKey")
|
||||
proto.RegisterType((*ShareId)(nil), "cs3.sharing.ocm.v1beta1.ShareId")
|
||||
proto.RegisterType((*ShareReference)(nil), "cs3.sharing.ocm.v1beta1.ShareReference")
|
||||
proto.RegisterType((*ShareGrant)(nil), "cs3.sharing.ocm.v1beta1.ShareGrant")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/sharing/ocm/v1beta1/resources.proto", fileDescriptor_b8b387acee7aaf43)
|
||||
}
|
||||
|
||||
var fileDescriptor_b8b387acee7aaf43 = []byte{
|
||||
// 759 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0xcd, 0x6e, 0xda, 0x4a,
|
||||
0x14, 0xc7, 0x63, 0x03, 0x01, 0x0e, 0xba, 0x08, 0xcd, 0xbd, 0xba, 0xb1, 0x92, 0x7b, 0x2b, 0xea,
|
||||
0xaa, 0x0d, 0xa9, 0x2a, 0x53, 0xa0, 0x55, 0x55, 0x75, 0x51, 0x01, 0x71, 0xc1, 0x4d, 0x44, 0xd0,
|
||||
0xe0, 0x44, 0x6a, 0x15, 0x09, 0x39, 0xf6, 0x34, 0xb1, 0x2a, 0x7f, 0x74, 0xc6, 0xa4, 0x62, 0x59,
|
||||
0xf5, 0x2d, 0xba, 0x6c, 0x77, 0x7d, 0x94, 0x6c, 0xfa, 0x4a, 0x95, 0x67, 0x6c, 0x42, 0x90, 0xa0,
|
||||
0xf9, 0xd8, 0xa0, 0x61, 0xce, 0xff, 0x77, 0xe6, 0xcc, 0x9c, 0x0f, 0xc3, 0xb6, 0xcd, 0x5a, 0x75,
|
||||
0x76, 0x66, 0x51, 0xd7, 0x3f, 0xad, 0x07, 0xb6, 0x57, 0x3f, 0x6f, 0x9c, 0x90, 0xc8, 0x6a, 0xd4,
|
||||
0x29, 0x61, 0xc1, 0x84, 0xda, 0x84, 0x69, 0x21, 0x0d, 0xa2, 0x00, 0x6d, 0xd8, 0xac, 0xa5, 0x25,
|
||||
0x42, 0x2d, 0xb0, 0x3d, 0x2d, 0x11, 0x6e, 0xee, 0xc4, 0x1e, 0x5c, 0x87, 0xf8, 0x91, 0x1b, 0x4d,
|
||||
0xeb, 0x13, 0x46, 0xe8, 0x32, 0x1f, 0x9b, 0x4f, 0xf8, 0x61, 0x51, 0x40, 0xad, 0x53, 0x52, 0x0f,
|
||||
0x69, 0x70, 0xee, 0x3a, 0x2b, 0xd4, 0xff, 0xc7, 0xea, 0x68, 0x1a, 0x12, 0x36, 0x93, 0xf0, 0x7f,
|
||||
0xc2, 0xac, 0xfe, 0xc8, 0x41, 0x6e, 0x74, 0x66, 0x51, 0x82, 0x9e, 0x82, 0xec, 0x3a, 0x8a, 0x54,
|
||||
0x95, 0x6a, 0xa5, 0x66, 0x55, 0x5b, 0x12, 0xa7, 0xc6, 0xb5, 0x86, 0x83, 0x65, 0xd7, 0x41, 0x06,
|
||||
0x94, 0xd2, 0xd3, 0xc6, 0xae, 0xa3, 0xc8, 0x1c, 0xad, 0x09, 0x54, 0x84, 0xa7, 0xa5, 0xe1, 0xcd,
|
||||
0x78, 0x9c, 0x00, 0x86, 0x83, 0x81, 0xce, 0xd6, 0x08, 0x41, 0xd6, 0xb7, 0x3c, 0xa2, 0x64, 0xaa,
|
||||
0x52, 0xad, 0x88, 0xf9, 0x1a, 0xed, 0x41, 0x29, 0x24, 0xd4, 0x73, 0x19, 0x73, 0x03, 0x9f, 0x29,
|
||||
0x59, 0xee, 0x7e, 0x67, 0x75, 0x64, 0xc3, 0x4b, 0x00, 0xcf, 0xd3, 0xe8, 0x35, 0xe4, 0x4f, 0xa9,
|
||||
0xe5, 0x47, 0x84, 0x28, 0x39, 0xee, 0xe8, 0xe1, 0xea, 0x38, 0x7b, 0x42, 0x8c, 0x53, 0x0a, 0xbd,
|
||||
0x80, 0x5c, 0xf0, 0xd9, 0x27, 0x54, 0x59, 0xe7, 0xf8, 0x7d, 0x8e, 0xa7, 0x09, 0xd3, 0xe2, 0x84,
|
||||
0xcd, 0xd8, 0x43, 0x46, 0xa8, 0xe1, 0x60, 0xa1, 0x47, 0xaf, 0x20, 0x6f, 0x53, 0x62, 0x45, 0x01,
|
||||
0x55, 0xf2, 0xd7, 0x45, 0x53, 0x02, 0x35, 0x21, 0x67, 0x47, 0xae, 0x47, 0x94, 0x02, 0x47, 0xff,
|
||||
0xe3, 0xa8, 0xc8, 0x5f, 0x8a, 0x98, 0xae, 0x47, 0x58, 0x64, 0x79, 0x21, 0x16, 0xd2, 0x98, 0xf1,
|
||||
0x38, 0x53, 0xbc, 0x0e, 0xc3, 0xa5, 0xa8, 0x07, 0x10, 0xbf, 0x29, 0x19, 0xc7, 0x3a, 0x05, 0xaa,
|
||||
0x52, 0xad, 0x9c, 0x66, 0x72, 0xd9, 0x53, 0x8b, 0x5f, 0x73, 0x1a, 0x12, 0x5c, 0x64, 0xe9, 0x52,
|
||||
0x35, 0xa1, 0x38, 0xdb, 0x47, 0xff, 0x02, 0x1a, 0xf5, 0xdb, 0x58, 0x1f, 0x9b, 0xef, 0x86, 0xfa,
|
||||
0xd8, 0x18, 0x1c, 0xb5, 0xf7, 0x8d, 0xdd, 0xca, 0xda, 0xc2, 0x3e, 0xd6, 0x7b, 0x87, 0xfb, 0x6d,
|
||||
0x5c, 0x91, 0xd0, 0x06, 0xfc, 0x3d, 0xb7, 0x6f, 0xe2, 0xf6, 0x60, 0xf4, 0x46, 0xc7, 0x15, 0x59,
|
||||
0xfd, 0x22, 0x41, 0x65, 0x31, 0xbf, 0x68, 0x74, 0xb5, 0x3e, 0x44, 0xe5, 0x36, 0xae, 0x57, 0x7e,
|
||||
0x4b, 0xeb, 0x44, 0x81, 0x3c, 0x25, 0xfc, 0x3a, 0xbc, 0x9e, 0x0b, 0x38, 0xfd, 0xab, 0x5e, 0x48,
|
||||
0xf0, 0x17, 0x26, 0x36, 0x71, 0xcf, 0x89, 0x23, 0x3a, 0xe6, 0x19, 0xe4, 0x84, 0x52, 0x1c, 0x7d,
|
||||
0x6f, 0xf5, 0x7b, 0x61, 0x21, 0x46, 0x2f, 0x21, 0xc7, 0x22, 0x2b, 0x12, 0xfe, 0xcb, 0xcd, 0x07,
|
||||
0xab, 0xa9, 0x51, 0x2c, 0xc5, 0x82, 0x40, 0x7d, 0x28, 0x79, 0xc1, 0xc4, 0x8f, 0xc6, 0x61, 0xe0,
|
||||
0xfa, 0x11, 0x6f, 0x96, 0x52, 0x73, 0xfb, 0x4f, 0x37, 0xfe, 0x40, 0x28, 0xf1, 0x6d, 0x82, 0x81,
|
||||
0xb3, 0xc3, 0x18, 0x55, 0x7f, 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0x77, 0x39, 0xd3, 0x1d, 0x1d, 0xfc, 0x94, 0x37, 0xba, 0xac, 0xc5, 0xaf, 0x16,
|
||||
0xd3, 0x07, 0xb6, 0xa7, 0x1d, 0x35, 0x3a, 0xb1, 0xfd, 0x82, 0x5b, 0x8e, 0x13, 0xcb, 0xf1, 0x81,
|
||||
0xed, 0x1d, 0x27, 0x96, 0x93, 0x75, 0xfe, 0x15, 0x6c, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xcb,
|
||||
0xf0, 0x8f, 0x6e, 0xc1, 0x07, 0x00, 0x00,
|
||||
}
|
||||
Generated
Vendored
+6667
File diff suppressed because it is too large
Load Diff
+1954
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+553
@@ -0,0 +1,553 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/storage/registry/v1beta1/registry_api.proto
|
||||
|
||||
package registryv1beta1
|
||||
|
||||
import (
|
||||
context "context"
|
||||
fmt "fmt"
|
||||
v1beta11 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
|
||||
v1beta12 "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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
type GetHomeRequest struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *GetHomeRequest) Reset() { *m = GetHomeRequest{} }
|
||||
func (m *GetHomeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetHomeRequest) ProtoMessage() {}
|
||||
func (*GetHomeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73c91f9d6bdb642a, []int{0}
|
||||
}
|
||||
|
||||
func (m *GetHomeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetHomeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetHomeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetHomeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetHomeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetHomeRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetHomeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetHomeRequest.Size(m)
|
||||
}
|
||||
func (m *GetHomeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetHomeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetHomeRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetHomeRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetHomeResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The storage provider for the user home.
|
||||
Provider *ProviderInfo `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetHomeResponse) Reset() { *m = GetHomeResponse{} }
|
||||
func (m *GetHomeResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetHomeResponse) ProtoMessage() {}
|
||||
func (*GetHomeResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73c91f9d6bdb642a, []int{1}
|
||||
}
|
||||
|
||||
func (m *GetHomeResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetHomeResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetHomeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetHomeResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetHomeResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetHomeResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetHomeResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetHomeResponse.Size(m)
|
||||
}
|
||||
func (m *GetHomeResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetHomeResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetHomeResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetHomeResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetHomeResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetHomeResponse) GetProvider() *ProviderInfo {
|
||||
if m != nil {
|
||||
return m.Provider
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetStorageProvidersRequest struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The reference for the resource.
|
||||
Ref *v1beta12.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetStorageProvidersRequest) Reset() { *m = GetStorageProvidersRequest{} }
|
||||
func (m *GetStorageProvidersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetStorageProvidersRequest) ProtoMessage() {}
|
||||
func (*GetStorageProvidersRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73c91f9d6bdb642a, []int{2}
|
||||
}
|
||||
|
||||
func (m *GetStorageProvidersRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetStorageProvidersRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetStorageProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetStorageProvidersRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetStorageProvidersRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetStorageProvidersRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetStorageProvidersRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetStorageProvidersRequest.Size(m)
|
||||
}
|
||||
func (m *GetStorageProvidersRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetStorageProvidersRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetStorageProvidersRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetStorageProvidersRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetStorageProvidersRequest) GetRef() *v1beta12.Reference {
|
||||
if m != nil {
|
||||
return m.Ref
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetStorageProvidersResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The storage providers handling the requested storage resource.
|
||||
Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetStorageProvidersResponse) Reset() { *m = GetStorageProvidersResponse{} }
|
||||
func (m *GetStorageProvidersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetStorageProvidersResponse) ProtoMessage() {}
|
||||
func (*GetStorageProvidersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73c91f9d6bdb642a, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetStorageProvidersResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetStorageProvidersResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetStorageProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetStorageProvidersResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetStorageProvidersResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetStorageProvidersResponse.Merge(m, src)
|
||||
}
|
||||
func (m *GetStorageProvidersResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_GetStorageProvidersResponse.Size(m)
|
||||
}
|
||||
func (m *GetStorageProvidersResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetStorageProvidersResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetStorageProvidersResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetStorageProvidersResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetStorageProvidersResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetStorageProvidersResponse) GetProviders() []*ProviderInfo {
|
||||
if m != nil {
|
||||
return m.Providers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListStorageProvidersRequest struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ListStorageProvidersRequest) Reset() { *m = ListStorageProvidersRequest{} }
|
||||
func (m *ListStorageProvidersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListStorageProvidersRequest) ProtoMessage() {}
|
||||
func (*ListStorageProvidersRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73c91f9d6bdb642a, []int{4}
|
||||
}
|
||||
|
||||
func (m *ListStorageProvidersRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListStorageProvidersRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListStorageProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListStorageProvidersRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListStorageProvidersRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListStorageProvidersRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListStorageProvidersRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListStorageProvidersRequest.Size(m)
|
||||
}
|
||||
func (m *ListStorageProvidersRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListStorageProvidersRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListStorageProvidersRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListStorageProvidersRequest) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListStorageProvidersResponse struct {
|
||||
// REQUIRED.
|
||||
// The response status.
|
||||
Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Opaque information.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The list of storage 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ListStorageProvidersResponse) Reset() { *m = ListStorageProvidersResponse{} }
|
||||
func (m *ListStorageProvidersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListStorageProvidersResponse) ProtoMessage() {}
|
||||
func (*ListStorageProvidersResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73c91f9d6bdb642a, []int{5}
|
||||
}
|
||||
|
||||
func (m *ListStorageProvidersResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListStorageProvidersResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListStorageProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListStorageProvidersResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListStorageProvidersResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListStorageProvidersResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListStorageProvidersResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListStorageProvidersResponse.Size(m)
|
||||
}
|
||||
func (m *ListStorageProvidersResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListStorageProvidersResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListStorageProvidersResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListStorageProvidersResponse) GetStatus() *v1beta11.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListStorageProvidersResponse) GetOpaque() *v1beta1.Opaque {
|
||||
if m != nil {
|
||||
return m.Opaque
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListStorageProvidersResponse) GetProviders() []*ProviderInfo {
|
||||
if m != nil {
|
||||
return m.Providers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GetHomeRequest)(nil), "cs3.storage.registry.v1beta1.GetHomeRequest")
|
||||
proto.RegisterType((*GetHomeResponse)(nil), "cs3.storage.registry.v1beta1.GetHomeResponse")
|
||||
proto.RegisterType((*GetStorageProvidersRequest)(nil), "cs3.storage.registry.v1beta1.GetStorageProvidersRequest")
|
||||
proto.RegisterType((*GetStorageProvidersResponse)(nil), "cs3.storage.registry.v1beta1.GetStorageProvidersResponse")
|
||||
proto.RegisterType((*ListStorageProvidersRequest)(nil), "cs3.storage.registry.v1beta1.ListStorageProvidersRequest")
|
||||
proto.RegisterType((*ListStorageProvidersResponse)(nil), "cs3.storage.registry.v1beta1.ListStorageProvidersResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/storage/registry/v1beta1/registry_api.proto", fileDescriptor_73c91f9d6bdb642a)
|
||||
}
|
||||
|
||||
var fileDescriptor_73c91f9d6bdb642a = []byte{
|
||||
// 472 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0x4f, 0x6b, 0x13, 0x41,
|
||||
0x14, 0x67, 0xb2, 0x10, 0xf5, 0x15, 0xac, 0x8c, 0x82, 0x71, 0x1b, 0x21, 0xec, 0x45, 0x91, 0x3a,
|
||||
0x4b, 0x9a, 0x8b, 0xf5, 0x66, 0x02, 0xb6, 0x05, 0xc1, 0x65, 0x03, 0x1e, 0x24, 0x20, 0xdb, 0xf5,
|
||||
0xa5, 0xec, 0xa1, 0x99, 0xe9, 0xcc, 0xa4, 0xd0, 0xaf, 0x50, 0xf1, 0xe2, 0x47, 0xf0, 0xe8, 0x77,
|
||||
0xf0, 0x0b, 0xa8, 0x1f, 0x4a, 0x76, 0xf7, 0xcd, 0x98, 0xc2, 0xba, 0x8d, 0x41, 0x04, 0x8f, 0xbb,
|
||||
0xbf, 0x3f, 0xef, 0xbd, 0xdf, 0x1b, 0x1e, 0xc4, 0xb9, 0x19, 0xc5, 0xc6, 0x4a, 0x9d, 0x9d, 0x60,
|
||||
0xac, 0xf1, 0xa4, 0x30, 0x56, 0x5f, 0xc4, 0xe7, 0xc3, 0x63, 0xb4, 0xd9, 0xd0, 0xff, 0x78, 0x97,
|
||||
0xa9, 0x42, 0x28, 0x2d, 0xad, 0xe4, 0xfd, 0xdc, 0x8c, 0x04, 0x09, 0x84, 0xc3, 0x05, 0x09, 0xc2,
|
||||
0x12, 0x8d, 0xb5, 0xca, 0xbd, 0x83, 0xb1, 0x99, 0x5d, 0x9a, 0x5a, 0x1b, 0xee, 0xae, 0x16, 0x53,
|
||||
0x5a, 0x9e, 0x17, 0xef, 0x51, 0xaf, 0x14, 0x33, 0x72, 0xa9, 0x73, 0x6c, 0x64, 0x37, 0xb4, 0x76,
|
||||
0x95, 0xfd, 0xb0, 0x64, 0xdb, 0x0b, 0x85, 0xc6, 0x53, 0xaa, 0xaf, 0x1a, 0x8e, 0x26, 0x70, 0xfb,
|
||||
0x00, 0xed, 0xa1, 0x3c, 0xc5, 0x14, 0xcf, 0x96, 0x68, 0x2c, 0x1f, 0x42, 0x57, 0xaa, 0xec, 0x6c,
|
||||
0x89, 0x3d, 0x36, 0x60, 0x8f, 0xb7, 0xf6, 0x1e, 0x88, 0x72, 0xb2, 0x5a, 0x43, 0x0e, 0xe2, 0x75,
|
||||
0x45, 0x48, 0x89, 0x18, 0x7d, 0x65, 0xb0, 0xed, 0x5d, 0x8c, 0x92, 0x0b, 0x83, 0x3c, 0x86, 0x6e,
|
||||
0x3d, 0x23, 0xd9, 0xdc, 0xaf, 0x6c, 0xb4, 0xca, 0xbd, 0xc9, 0xb4, 0x82, 0x53, 0xa2, 0xad, 0xd4,
|
||||
0xed, 0xac, 0x59, 0x97, 0xbf, 0x84, 0x9b, 0x2e, 0xad, 0x5e, 0x50, 0x89, 0x9e, 0x88, 0xb6, 0x35,
|
||||
0x88, 0x84, 0xd8, 0x47, 0x8b, 0xb9, 0x4c, 0xbd, 0x36, 0xba, 0x64, 0x10, 0x1e, 0xa0, 0x9d, 0xd6,
|
||||
0x32, 0x47, 0x32, 0x9b, 0x27, 0xc2, 0xf7, 0x21, 0xd0, 0x38, 0xa7, 0x49, 0x1e, 0x5d, 0x69, 0xca,
|
||||
0x55, 0xf5, 0xd2, 0x14, 0xe7, 0xa8, 0x71, 0x91, 0x63, 0x5a, 0x6a, 0xa2, 0xef, 0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
// 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 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.ClientConn
|
||||
}
|
||||
|
||||
func NewRegistryAPIClient(cc *grpc.ClientConn) RegistryAPIClient {
|
||||
return ®istryAPIClient{cc}
|
||||
}
|
||||
|
||||
func (c *registryAPIClient) GetStorageProviders(ctx context.Context, in *GetStorageProvidersRequest, opts ...grpc.CallOption) (*GetStorageProvidersResponse, error) {
|
||||
out := new(GetStorageProvidersResponse)
|
||||
err := c.cc.Invoke(ctx, "/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProviders", 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, "/cs3.storage.registry.v1beta1.RegistryAPI/ListStorageProviders", 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, "/cs3.storage.registry.v1beta1.RegistryAPI/GetHome", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// RegistryAPIServer is the server API for RegistryAPI service.
|
||||
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 can be embedded to have forward compatible implementations.
|
||||
type UnimplementedRegistryAPIServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedRegistryAPIServer) GetStorageProviders(ctx context.Context, req *GetStorageProvidersRequest) (*GetStorageProvidersResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetStorageProviders not implemented")
|
||||
}
|
||||
func (*UnimplementedRegistryAPIServer) ListStorageProviders(ctx context.Context, req *ListStorageProvidersRequest) (*ListStorageProvidersResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListStorageProviders not implemented")
|
||||
}
|
||||
func (*UnimplementedRegistryAPIServer) GetHome(ctx context.Context, req *GetHomeRequest) (*GetHomeResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetHome not implemented")
|
||||
}
|
||||
|
||||
func RegisterRegistryAPIServer(s *grpc.Server, 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: "/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProviders",
|
||||
}
|
||||
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: "/cs3.storage.registry.v1beta1.RegistryAPI/ListStorageProviders",
|
||||
}
|
||||
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: "/cs3.storage.registry.v1beta1.RegistryAPI/GetHome",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RegistryAPIServer).GetHome(ctx, req.(*GetHomeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
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",
|
||||
}
|
||||
+210
@@ -0,0 +1,210 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// The information for the storage provider.
|
||||
type ProviderInfo struct {
|
||||
// OPTIONAL.
|
||||
// Opaque information (containing storage-specific information).
|
||||
// For example, additional metadata attached to the resource.
|
||||
Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
|
||||
// REQUIRED.
|
||||
// The storage provider id that will become part of the
|
||||
// resource id.
|
||||
// For example, if the provider_id is "home", resources obtained
|
||||
// from this storage provider will have a resource id like "home:1234".
|
||||
ProviderId string `protobuf:"bytes,2,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
|
||||
// REQUIRED.
|
||||
// The public path prefix this storage provider handles.
|
||||
// In Unix literature, the mount path.
|
||||
// For example, if the provider_path is "/home", resources obtained
|
||||
// from this storage provier will have a resource path lik "/home/docs".
|
||||
ProviderPath string `protobuf:"bytes,3,opt,name=provider_path,json=providerPath,proto3" json:"provider_path,omitempty"`
|
||||
// REQUIRED.
|
||||
// The address where the storage provider can be reached.
|
||||
// For example, tcp://localhost:1099.
|
||||
Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
|
||||
// OPTIONAL.
|
||||
// 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"`
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) Reset() { *m = ProviderInfo{} }
|
||||
func (m *ProviderInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProviderInfo) ProtoMessage() {}
|
||||
func (*ProviderInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_50a67fe50917e260, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetProviderId() string {
|
||||
if m != nil {
|
||||
return m.ProviderId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetProviderPath() string {
|
||||
if m != nil {
|
||||
return m.ProviderPath
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetAddress() string {
|
||||
if m != nil {
|
||||
return m.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProviderInfo) GetFeatures() *ProviderInfo_Features {
|
||||
if m != nil {
|
||||
return m.Features
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// REQUIRED.
|
||||
// Represents the list of features available
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ProviderInfo_Features) Reset() { *m = ProviderInfo_Features{} }
|
||||
func (m *ProviderInfo_Features) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProviderInfo_Features) ProtoMessage() {}
|
||||
func (*ProviderInfo_Features) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_50a67fe50917e260, []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
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *ProviderInfo_Features) GetFileVersions() bool {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("cs3/storage/registry/v1beta1/resources.proto", fileDescriptor_50a67fe50917e260)
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
+286
@@ -0,0 +1,286 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// 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"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// Status represents transfer status.
|
||||
type Status int32
|
||||
|
||||
const (
|
||||
Status_STATUS_INVALID Status = 0
|
||||
// The destination could not be found.
|
||||
Status_STATUS_DESTINATION_NOT_FOUND Status = 1
|
||||
// A new data transfer
|
||||
Status_STATUS_TRANSFER_NEW Status = 2
|
||||
// The data transfer is awaiting acceptance from the destination
|
||||
Status_STATUS_TRANSFER_AWAITING_ACCEPTANCE Status = 3
|
||||
// The data transfer is accepted by the destination.
|
||||
Status_STATUS_TRANSFER_ACCEPTED Status = 4
|
||||
// The data transfer has started and not yet completed.
|
||||
Status_STATUS_TRANSFER_IN_PROGRESS Status = 5
|
||||
// The data transfer has completed.
|
||||
Status_STATUS_TRANSFER_COMPLETE Status = 6
|
||||
// The data transfer has failed.
|
||||
Status_STATUS_TRANSFER_FAILED Status = 7
|
||||
// The data transfer had been cancelled.
|
||||
Status_STATUS_TRANSFER_CANCELLED Status = 8
|
||||
// The request for cancelling the data transfer has failed.
|
||||
Status_STATUS_TRANSFER_CANCEL_FAILED Status = 9
|
||||
// The transfer has expired somewhere down the line.
|
||||
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",
|
||||
}
|
||||
|
||||
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) String() string {
|
||||
return proto.EnumName(Status_name, int32(x))
|
||||
}
|
||||
|
||||
func (Status) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e6e9f5a73c9e5a84, []int{0}
|
||||
}
|
||||
|
||||
// TxId uniquely identifies a transfer in the transfer provider namespace.
|
||||
type TxId struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *TxId) Reset() { *m = TxId{} }
|
||||
func (m *TxId) String() string { return proto.CompactTextString(m) }
|
||||
func (*TxId) ProtoMessage() {}
|
||||
func (*TxId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e6e9f5a73c9e5a84, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// TxInfo represents information about a transfer.
|
||||
type TxInfo struct {
|
||||
// REQUIRED.
|
||||
// The transfer identifier.
|
||||
Id *TxId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// REQUIRED.
|
||||
// The transfer status. Eg.: STATUS_TRANSFER_FAILED.
|
||||
// Note: the description field may provide additional information on the transfer status.
|
||||
Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=cs3.tx.v1beta1.Status" json:"status,omitempty"`
|
||||
// REQUIRED.
|
||||
// The destination (receiver of the transfer)
|
||||
Grantee *v1beta1.Grantee `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"`
|
||||
// REQUIRED.
|
||||
// Uniquely identifies a principal who initiates the transfer creation.
|
||||
Creator *v1beta11.UserId `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
|
||||
// REQUIRED.
|
||||
// Creation time of the transfer.
|
||||
Ctime *v1beta12.Timestamp `protobuf:"bytes,5,opt,name=ctime,proto3" json:"ctime,omitempty"`
|
||||
// OPTIONAL.
|
||||
// Information to describe the transfer status.
|
||||
// Eg. may contain information about a transfer failure.
|
||||
// Meant to be human-readable.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *TxInfo) Reset() { *m = TxInfo{} }
|
||||
func (m *TxInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*TxInfo) ProtoMessage() {}
|
||||
func (*TxInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e6e9f5a73c9e5a84, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TxInfo) GetStatus() Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return Status_STATUS_INVALID
|
||||
}
|
||||
|
||||
func (m *TxInfo) GetGrantee() *v1beta1.Grantee {
|
||||
if m != nil {
|
||||
return m.Grantee
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TxInfo) GetCreator() *v1beta11.UserId {
|
||||
if m != nil {
|
||||
return m.Creator
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TxInfo) GetCtime() *v1beta12.Timestamp {
|
||||
if m != nil {
|
||||
return m.Ctime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TxInfo) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TxInfo) GetShareId() *v1beta13.ShareId {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cs3/tx/v1beta1/resources.proto", fileDescriptor_e6e9f5a73c9e5a84) }
|
||||
|
||||
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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 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,
|
||||
}
|
||||
+1047
File diff suppressed because it is too large
Load Diff
+216
@@ -0,0 +1,216 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: cs3/types/v1beta1/types.proto
|
||||
|
||||
package typesv1beta1
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// Opaque represents opaque information
|
||||
// in a form on a map.
|
||||
// For example, a local filesystem can
|
||||
// use this message to include filesystem
|
||||
// extended attributes.
|
||||
type Opaque struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *Opaque) Reset() { *m = Opaque{} }
|
||||
func (m *Opaque) String() string { return proto.CompactTextString(m) }
|
||||
func (*Opaque) ProtoMessage() {}
|
||||
func (*Opaque) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_96c094046ef70f69, []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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// OpaqueEntry represents the encoded
|
||||
// opaque value.
|
||||
type OpaqueEntry struct {
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *OpaqueEntry) Reset() { *m = OpaqueEntry{} }
|
||||
func (m *OpaqueEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*OpaqueEntry) ProtoMessage() {}
|
||||
func (*OpaqueEntry) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_96c094046ef70f69, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OpaqueEntry) GetValue() []byte {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Adapted from Google google/protobuf/timestamp.proto.
|
||||
// A Timestamp represents a point in time independent of any time zone or local
|
||||
// calendar, encoded as a count of seconds and fractions of seconds at
|
||||
// nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
||||
// January 1, 1970, in the proleptic Gregorian calendar which extends the
|
||||
// Gregorian calendar backwards to year one.
|
||||
//
|
||||
// The range MUST be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
|
||||
// Restricting to this range ensures the conversion from and to [RFC
|
||||
// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
||||
type Timestamp struct {
|
||||
// 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.
|
||||
Seconds uint64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
|
||||
// Non-negative fractions of a second at nanosecond resolution. Negative
|
||||
// second values with fractions must still have non-negative nanos values
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *Timestamp) Reset() { *m = Timestamp{} }
|
||||
func (m *Timestamp) String() string { return proto.CompactTextString(m) }
|
||||
func (*Timestamp) ProtoMessage() {}
|
||||
func (*Timestamp) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_96c094046ef70f69, []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
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Timestamp) GetNanos() uint32 {
|
||||
if m != nil {
|
||||
return m.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")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("cs3/types/v1beta1/types.proto", fileDescriptor_96c094046ef70f69) }
|
||||
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user