Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterLinkAPIServer(s grpc.ServiceRegistrar, srv LinkAPIServer)
- type CreatePublicShareRequest
- func (*CreatePublicShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePublicShareRequest) GetDescription() string
- func (x *CreatePublicShareRequest) GetGrant() *Grant
- func (x *CreatePublicShareRequest) GetInternal() bool
- func (x *CreatePublicShareRequest) GetNotifyUploads() bool
- func (x *CreatePublicShareRequest) GetNotifyUploadsExtraRecipients() string
- func (x *CreatePublicShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *CreatePublicShareRequest) GetResourceInfo() *v1beta11.ResourceInfo
- func (*CreatePublicShareRequest) ProtoMessage()
- func (x *CreatePublicShareRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePublicShareRequest) Reset()
- func (x *CreatePublicShareRequest) String() string
- type CreatePublicShareResponse
- func (*CreatePublicShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePublicShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *CreatePublicShareResponse) GetShare() *PublicShare
- func (x *CreatePublicShareResponse) GetStatus() *v1beta12.Status
- func (*CreatePublicShareResponse) ProtoMessage()
- func (x *CreatePublicShareResponse) ProtoReflect() protoreflect.Message
- func (x *CreatePublicShareResponse) Reset()
- func (x *CreatePublicShareResponse) String() string
- type GetPublicShareByTokenRequest
- func (*GetPublicShareByTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicShareByTokenRequest) GetAuthentication() *PublicShareAuthentication
- func (x *GetPublicShareByTokenRequest) GetOpaque() *v1beta1.Opaque
- func (x *GetPublicShareByTokenRequest) GetSign() bool
- func (x *GetPublicShareByTokenRequest) GetToken() string
- func (*GetPublicShareByTokenRequest) ProtoMessage()
- func (x *GetPublicShareByTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GetPublicShareByTokenRequest) Reset()
- func (x *GetPublicShareByTokenRequest) String() string
- type GetPublicShareByTokenResponse
- func (*GetPublicShareByTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicShareByTokenResponse) GetOpaque() *v1beta1.Opaque
- func (x *GetPublicShareByTokenResponse) GetPasswordHash() stringdeprecated
- func (x *GetPublicShareByTokenResponse) GetShare() *PublicShare
- func (x *GetPublicShareByTokenResponse) GetStatus() *v1beta12.Status
- func (*GetPublicShareByTokenResponse) ProtoMessage()
- func (x *GetPublicShareByTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GetPublicShareByTokenResponse) Reset()
- func (x *GetPublicShareByTokenResponse) String() string
- type GetPublicShareRequest
- func (*GetPublicShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *GetPublicShareRequest) GetRef() *PublicShareReference
- func (x *GetPublicShareRequest) GetSign() bool
- func (*GetPublicShareRequest) ProtoMessage()
- func (x *GetPublicShareRequest) ProtoReflect() protoreflect.Message
- func (x *GetPublicShareRequest) Reset()
- func (x *GetPublicShareRequest) String() string
- type GetPublicShareResponse
- func (*GetPublicShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *GetPublicShareResponse) GetShare() *PublicShare
- func (x *GetPublicShareResponse) GetStatus() *v1beta12.Status
- func (*GetPublicShareResponse) ProtoMessage()
- func (x *GetPublicShareResponse) ProtoReflect() protoreflect.Message
- func (x *GetPublicShareResponse) Reset()
- func (x *GetPublicShareResponse) String() string
- type Grant
- func (*Grant) Descriptor() ([]byte, []int)deprecated
- func (x *Grant) GetExpiration() *v1beta12.Timestamp
- func (x *Grant) GetPassword() string
- func (x *Grant) GetPermissions() *PublicSharePermissions
- func (*Grant) ProtoMessage()
- func (x *Grant) ProtoReflect() protoreflect.Message
- func (x *Grant) Reset()
- func (x *Grant) String() string
- type LinkAPIClient
- type LinkAPIServer
- type ListPublicSharesRequest
- func (*ListPublicSharesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublicSharesRequest) GetFilters() []*ListPublicSharesRequest_Filter
- func (x *ListPublicSharesRequest) GetOpaque() *v1beta1.Opaque
- func (x *ListPublicSharesRequest) GetPageSize() int32
- func (x *ListPublicSharesRequest) GetPageToken() string
- func (x *ListPublicSharesRequest) GetSign() bool
- func (*ListPublicSharesRequest) ProtoMessage()
- func (x *ListPublicSharesRequest) ProtoReflect() protoreflect.Message
- func (x *ListPublicSharesRequest) Reset()
- func (x *ListPublicSharesRequest) String() string
- type ListPublicSharesRequest_Filter
- func (*ListPublicSharesRequest_Filter) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublicSharesRequest_Filter) GetCreator() *v1beta13.UserId
- func (x *ListPublicSharesRequest_Filter) GetOwner() *v1beta13.UserId
- func (x *ListPublicSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId
- func (m *ListPublicSharesRequest_Filter) GetTerm() isListPublicSharesRequest_Filter_Term
- func (x *ListPublicSharesRequest_Filter) GetType() ListPublicSharesRequest_Filter_Type
- func (*ListPublicSharesRequest_Filter) ProtoMessage()
- func (x *ListPublicSharesRequest_Filter) ProtoReflect() protoreflect.Message
- func (x *ListPublicSharesRequest_Filter) Reset()
- func (x *ListPublicSharesRequest_Filter) String() string
- type ListPublicSharesRequest_Filter_Creator
- type ListPublicSharesRequest_Filter_Owner
- type ListPublicSharesRequest_Filter_ResourceId
- type ListPublicSharesRequest_Filter_Type
- func (ListPublicSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ListPublicSharesRequest_Filter_Type) Enum() *ListPublicSharesRequest_Filter_Type
- func (ListPublicSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListPublicSharesRequest_Filter_Type) Number() protoreflect.EnumNumber
- func (x ListPublicSharesRequest_Filter_Type) String() string
- func (ListPublicSharesRequest_Filter_Type) Type() protoreflect.EnumType
- type ListPublicSharesResponse
- func (*ListPublicSharesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublicSharesResponse) GetNextPageToken() string
- func (x *ListPublicSharesResponse) GetOpaque() *v1beta1.Opaque
- func (x *ListPublicSharesResponse) GetShare() []*PublicShare
- func (x *ListPublicSharesResponse) GetStatus() *v1beta12.Status
- func (*ListPublicSharesResponse) ProtoMessage()
- func (x *ListPublicSharesResponse) ProtoReflect() protoreflect.Message
- func (x *ListPublicSharesResponse) Reset()
- func (x *ListPublicSharesResponse) String() string
- type PublicShare
- func (*PublicShare) Descriptor() ([]byte, []int)deprecated
- func (x *PublicShare) GetCreator() *v1beta11.UserId
- func (x *PublicShare) GetCtime() *v1beta12.Timestamp
- func (x *PublicShare) GetDescription() string
- func (x *PublicShare) GetDisplayName() string
- func (x *PublicShare) GetExpiration() *v1beta12.Timestamp
- func (x *PublicShare) GetId() *PublicShareId
- func (x *PublicShare) GetMtime() *v1beta12.Timestamp
- func (x *PublicShare) GetNotifyUploads() bool
- func (x *PublicShare) GetNotifyUploadsExtraRecipients() string
- func (x *PublicShare) GetOwner() *v1beta11.UserId
- func (x *PublicShare) GetPasswordProtected() bool
- func (x *PublicShare) GetPermissions() *PublicSharePermissions
- func (x *PublicShare) GetQuicklink() bool
- func (x *PublicShare) GetResourceId() *v1beta1.ResourceId
- func (x *PublicShare) GetSignature() *ShareSignature
- func (x *PublicShare) GetToken() string
- func (*PublicShare) ProtoMessage()
- func (x *PublicShare) ProtoReflect() protoreflect.Message
- func (x *PublicShare) Reset()
- func (x *PublicShare) String() string
- type PublicShareAuthentication
- func (*PublicShareAuthentication) Descriptor() ([]byte, []int)deprecated
- func (x *PublicShareAuthentication) GetPassword() string
- func (x *PublicShareAuthentication) GetSignature() *ShareSignature
- func (m *PublicShareAuthentication) GetSpec() isPublicShareAuthentication_Spec
- func (*PublicShareAuthentication) ProtoMessage()
- func (x *PublicShareAuthentication) ProtoReflect() protoreflect.Message
- func (x *PublicShareAuthentication) Reset()
- func (x *PublicShareAuthentication) String() string
- type PublicShareAuthentication_Password
- type PublicShareAuthentication_Signature
- type PublicShareId
- type PublicSharePermissions
- func (*PublicSharePermissions) Descriptor() ([]byte, []int)deprecated
- func (x *PublicSharePermissions) GetPermissions() *v1beta1.ResourcePermissions
- func (*PublicSharePermissions) ProtoMessage()
- func (x *PublicSharePermissions) ProtoReflect() protoreflect.Message
- func (x *PublicSharePermissions) Reset()
- func (x *PublicSharePermissions) String() string
- type PublicShareReference
- func (*PublicShareReference) Descriptor() ([]byte, []int)deprecated
- func (x *PublicShareReference) GetId() *PublicShareId
- func (m *PublicShareReference) GetSpec() isPublicShareReference_Spec
- func (x *PublicShareReference) GetToken() string
- func (*PublicShareReference) ProtoMessage()
- func (x *PublicShareReference) ProtoReflect() protoreflect.Message
- func (x *PublicShareReference) Reset()
- func (x *PublicShareReference) String() string
- type PublicShareReference_Id
- type PublicShareReference_Token
- type RemovePublicShareRequest
- func (*RemovePublicShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemovePublicShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *RemovePublicShareRequest) GetRef() *PublicShareReference
- func (*RemovePublicShareRequest) ProtoMessage()
- func (x *RemovePublicShareRequest) ProtoReflect() protoreflect.Message
- func (x *RemovePublicShareRequest) Reset()
- func (x *RemovePublicShareRequest) String() string
- type RemovePublicShareResponse
- func (*RemovePublicShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemovePublicShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *RemovePublicShareResponse) GetStatus() *v1beta12.Status
- func (*RemovePublicShareResponse) ProtoMessage()
- func (x *RemovePublicShareResponse) ProtoReflect() protoreflect.Message
- func (x *RemovePublicShareResponse) Reset()
- func (x *RemovePublicShareResponse) String() string
- type ShareSignature
- func (*ShareSignature) Descriptor() ([]byte, []int)deprecated
- func (x *ShareSignature) GetSignature() string
- func (x *ShareSignature) GetSignatureExpiration() *v1beta12.Timestamp
- func (*ShareSignature) ProtoMessage()
- func (x *ShareSignature) ProtoReflect() protoreflect.Message
- func (x *ShareSignature) Reset()
- func (x *ShareSignature) String() string
- type UnimplementedLinkAPIServer
- func (UnimplementedLinkAPIServer) CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error)
- func (UnimplementedLinkAPIServer) GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error)
- func (UnimplementedLinkAPIServer) GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error)
- func (UnimplementedLinkAPIServer) ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error)
- func (UnimplementedLinkAPIServer) RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error)
- func (UnimplementedLinkAPIServer) UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error)
- type UnsafeLinkAPIServer
- type UpdatePublicShareRequest
- func (*UpdatePublicShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePublicShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *UpdatePublicShareRequest) GetRef() *PublicShareReference
- func (x *UpdatePublicShareRequest) GetUpdate() *UpdatePublicShareRequest_Update
- func (*UpdatePublicShareRequest) ProtoMessage()
- func (x *UpdatePublicShareRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePublicShareRequest) Reset()
- func (x *UpdatePublicShareRequest) String() string
- type UpdatePublicShareRequest_Update
- func (*UpdatePublicShareRequest_Update) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePublicShareRequest_Update) GetDescription() string
- func (x *UpdatePublicShareRequest_Update) GetDisplayName() string
- func (x *UpdatePublicShareRequest_Update) GetGrant() *Grant
- func (x *UpdatePublicShareRequest_Update) GetNotifyUploads() bool
- func (x *UpdatePublicShareRequest_Update) GetNotifyUploadsExtraRecipients() string
- func (x *UpdatePublicShareRequest_Update) GetType() UpdatePublicShareRequest_Update_Type
- func (*UpdatePublicShareRequest_Update) ProtoMessage()
- func (x *UpdatePublicShareRequest_Update) ProtoReflect() protoreflect.Message
- func (x *UpdatePublicShareRequest_Update) Reset()
- func (x *UpdatePublicShareRequest_Update) String() string
- type UpdatePublicShareRequest_Update_Type
- func (UpdatePublicShareRequest_Update_Type) Descriptor() protoreflect.EnumDescriptor
- func (x UpdatePublicShareRequest_Update_Type) Enum() *UpdatePublicShareRequest_Update_Type
- func (UpdatePublicShareRequest_Update_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdatePublicShareRequest_Update_Type) Number() protoreflect.EnumNumber
- func (x UpdatePublicShareRequest_Update_Type) String() string
- func (UpdatePublicShareRequest_Update_Type) Type() protoreflect.EnumType
- type UpdatePublicShareResponse
- func (*UpdatePublicShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePublicShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *UpdatePublicShareResponse) GetShare() *PublicShare
- func (x *UpdatePublicShareResponse) GetStatus() *v1beta12.Status
- func (*UpdatePublicShareResponse) ProtoMessage()
- func (x *UpdatePublicShareResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePublicShareResponse) Reset()
- func (x *UpdatePublicShareResponse) String() string
Constants ¶
const ()
Variables ¶
var (0: "TYPE_INVALID", 1: "TYPE_PERMISSIONS", 2: "TYPE_PASSWORD", 3: "TYPE_EXPIRATION", 4: "TYPE_DISPLAYNAME", 5: "TYPE_DESCRIPTION", 6: "TYPE_NOTIFYUPLOADS", 7: "TYPE_NOTIFYUPLOADSEXTRARECIPIENTS", } "TYPE_INVALID": 0, "TYPE_PERMISSIONS": 1, "TYPE_PASSWORD": 2, "TYPE_EXPIRATION": 3, "TYPE_DISPLAYNAME": 4, "TYPE_DESCRIPTION": 5, "TYPE_NOTIFYUPLOADS": 6, "TYPE_NOTIFYUPLOADSEXTRARECIPIENTS": 7, } )
Enum value maps for UpdatePublicShareRequest_Update_Type.
var (0: "TYPE_INVALID", 1: "TYPE_RESOURCE_ID", 2: "TYPE_OWNER", 3: "TYPE_CREATOR", } "TYPE_INVALID": 0, "TYPE_RESOURCE_ID": 1, "TYPE_OWNER": 2, "TYPE_CREATOR": 3, } )
Enum value maps for ListPublicSharesRequest_Filter_Type.
var File_cs3_sharing_link_v1beta1_link_api_proto protoreflect.FileDescriptor
var File_cs3_sharing_link_v1beta1_resources_proto protoreflect.FileDescriptor
var LinkAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cs3.sharing.link.v1beta1.LinkAPI", HandlerType: (*LinkAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreatePublicShare", Handler: _LinkAPI_CreatePublicShare_Handler, }, { MethodName: "RemovePublicShare", Handler: _LinkAPI_RemovePublicShare_Handler, }, { MethodName: "GetPublicShare", Handler: _LinkAPI_GetPublicShare_Handler, }, { MethodName: "GetPublicShareByToken", Handler: _LinkAPI_GetPublicShareByToken_Handler, }, { MethodName: "ListPublicShares", Handler: _LinkAPI_ListPublicShares_Handler, }, { MethodName: "UpdatePublicShare", Handler: _LinkAPI_UpdatePublicShare_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cs3/sharing/link/v1beta1/link_api.proto", }
LinkAPI_ServiceDesc is the grpc.ServiceDesc for LinkAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLinkAPIServer ¶
func RegisterLinkAPIServer(s grpc.ServiceRegistrar, srv LinkAPIServer)
Types ¶
type CreatePublicShareRequest ¶
type CreatePublicShareRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // The unique identifier for the shared storage resource. ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` // The restrictions to apply to the share. Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` // The description to add to the share. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // Indicates a share used for internal usage, // not exposed by a ListPublicShares. Internal bool `protobuf:"varint,5,opt,name=internal,proto3" json:"internal,omitempty"` // Whether to notify the owner of a share when a file is uploaded to it. NotifyUploads bool `protobuf:"varint,6,opt,name=notify_uploads,json=notifyUploads,proto3" json:"notify_uploads,omitempty"` // Comma-separated list of extra email addresses to notify when a file is // uploaded to the share. NotifyUploadsExtraRecipients string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreatePublicShareRequest) Descriptor
deprecated
func (*CreatePublicShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePublicShareRequest.ProtoReflect.Descriptor instead.
func (*CreatePublicShareRequest) GetDescription ¶
func (x *CreatePublicShareRequest) GetDescription() string
func (*CreatePublicShareRequest) GetGrant ¶
func (x *CreatePublicShareRequest) GetGrant() *Grant
func (*CreatePublicShareRequest) GetInternal ¶
func (x *CreatePublicShareRequest) GetInternal() bool
func (*CreatePublicShareRequest) GetNotifyUploads ¶
func (x *CreatePublicShareRequest) GetNotifyUploads() bool
func (*CreatePublicShareRequest) GetNotifyUploadsExtraRecipients ¶
func (x *CreatePublicShareRequest) GetNotifyUploadsExtraRecipients() string
func (*CreatePublicShareRequest) GetOpaque ¶
func (x *CreatePublicShareRequest) GetOpaque() *v1beta1.Opaque
func (*CreatePublicShareRequest) GetResourceInfo ¶
func (x *CreatePublicShareRequest) GetResourceInfo() *v1beta11.ResourceInfo
func (*CreatePublicShareRequest) ProtoMessage ¶
func (*CreatePublicShareRequest) ProtoMessage()
func (*CreatePublicShareRequest) ProtoReflect ¶
func (x *CreatePublicShareRequest) ProtoReflect() protoreflect.Message
func (*CreatePublicShareRequest) Reset ¶
func (x *CreatePublicShareRequest) Reset()
func (*CreatePublicShareRequest) String ¶
func (x *CreatePublicShareRequest) String() string
type CreatePublicShareResponse ¶
type CreatePublicShareResponse struct { // The response status. Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` // The created share. Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` // contains filtered or unexported fields }
func (*CreatePublicShareResponse) Descriptor
deprecated
func (*CreatePublicShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreatePublicShareResponse.ProtoReflect.Descriptor instead.
func (*CreatePublicShareResponse) GetOpaque ¶
func (x *CreatePublicShareResponse) GetOpaque() *v1beta1.Opaque
func (*CreatePublicShareResponse) GetShare ¶
func (x *CreatePublicShareResponse) GetShare() *PublicShare
func (*CreatePublicShareResponse) GetStatus ¶
func (x *CreatePublicShareResponse) GetStatus() *v1beta12.Status
func (*CreatePublicShareResponse) ProtoMessage ¶
func (*CreatePublicShareResponse) ProtoMessage()
func (*CreatePublicShareResponse) ProtoReflect ¶
func (x *CreatePublicShareResponse) ProtoReflect() protoreflect.Message
func (*CreatePublicShareResponse) Reset ¶
func (x *CreatePublicShareResponse) Reset()
func (*CreatePublicShareResponse) String ¶
func (x *CreatePublicShareResponse) String() string
type GetPublicShareByTokenRequest ¶
type GetPublicShareByTokenRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // The unlisted token to identify the public share. Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // The public link can require authentication. Authentication *PublicShareAuthentication `protobuf:"bytes,3,opt,name=authentication,proto3" json:"authentication,omitempty"` // If a signature should be included in the share. Sign bool `protobuf:"varint,4,opt,name=sign,proto3" json:"sign,omitempty"` // contains filtered or unexported fields }
func (*GetPublicShareByTokenRequest) Descriptor
deprecated
func (*GetPublicShareByTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicShareByTokenRequest.ProtoReflect.Descriptor instead.
func (*GetPublicShareByTokenRequest) GetAuthentication ¶
func (x *GetPublicShareByTokenRequest) GetAuthentication() *PublicShareAuthentication
func (*GetPublicShareByTokenRequest) GetOpaque ¶
func (x *GetPublicShareByTokenRequest) GetOpaque() *v1beta1.Opaque
func (*GetPublicShareByTokenRequest) GetSign ¶
func (x *GetPublicShareByTokenRequest) GetSign() bool
func (*GetPublicShareByTokenRequest) GetToken ¶
func (x *GetPublicShareByTokenRequest) GetToken() string
func (*GetPublicShareByTokenRequest) ProtoMessage ¶
func (*GetPublicShareByTokenRequest) ProtoMessage()
func (*GetPublicShareByTokenRequest) ProtoReflect ¶
func (x *GetPublicShareByTokenRequest) ProtoReflect() protoreflect.Message
func (*GetPublicShareByTokenRequest) Reset ¶
func (x *GetPublicShareByTokenRequest) Reset()
func (*GetPublicShareByTokenRequest) String ¶
func (x *GetPublicShareByTokenRequest) String() string
type GetPublicShareByTokenResponse ¶
type GetPublicShareByTokenResponse struct { // The response status. Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` // The share. Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` // The share password hash. // // Deprecated: Marked as deprecated in cs3/sharing/link/v1beta1/link_api.proto. PasswordHash string `protobuf:"bytes,4,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"` // contains filtered or unexported fields }
func (*GetPublicShareByTokenResponse) Descriptor
deprecated
func (*GetPublicShareByTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicShareByTokenResponse.ProtoReflect.Descriptor instead.
func (*GetPublicShareByTokenResponse) GetOpaque ¶
func (x *GetPublicShareByTokenResponse) GetOpaque() *v1beta1.Opaque
func (*GetPublicShareByTokenResponse) GetPasswordHash
deprecated
func (x *GetPublicShareByTokenResponse) GetPasswordHash() string
Deprecated: Marked as deprecated in cs3/sharing/link/v1beta1/link_api.proto.
func (*GetPublicShareByTokenResponse) GetShare ¶
func (x *GetPublicShareByTokenResponse) GetShare() *PublicShare
func (*GetPublicShareByTokenResponse) GetStatus ¶
func (x *GetPublicShareByTokenResponse) GetStatus() *v1beta12.Status
func (*GetPublicShareByTokenResponse) ProtoMessage ¶
func (*GetPublicShareByTokenResponse) ProtoMessage()
func (*GetPublicShareByTokenResponse) ProtoReflect ¶
func (x *GetPublicShareByTokenResponse) ProtoReflect() protoreflect.Message
func (*GetPublicShareByTokenResponse) Reset ¶
func (x *GetPublicShareByTokenResponse) Reset()
func (*GetPublicShareByTokenResponse) String ¶
func (x *GetPublicShareByTokenResponse) String() string
type GetPublicShareRequest ¶
type GetPublicShareRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // The reference to which the action should be performed. Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // If a signature should be included in the share. Sign bool `protobuf:"varint,3,opt,name=sign,proto3" json:"sign,omitempty"` // contains filtered or unexported fields }
func (*GetPublicShareRequest) Descriptor
deprecated
func (*GetPublicShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicShareRequest.ProtoReflect.Descriptor instead.
func (*GetPublicShareRequest) GetOpaque ¶
func (x *GetPublicShareRequest) GetOpaque() *v1beta1.Opaque
func (*GetPublicShareRequest) GetRef ¶
func (x *GetPublicShareRequest) GetRef() *PublicShareReference
func (*GetPublicShareRequest) GetSign ¶
func (x *GetPublicShareRequest) GetSign() bool
func (*GetPublicShareRequest) ProtoMessage ¶
func (*GetPublicShareRequest) ProtoMessage()
func (*GetPublicShareRequest) ProtoReflect ¶
func (x *GetPublicShareRequest) ProtoReflect() protoreflect.Message
func (*GetPublicShareRequest) Reset ¶
func (x *GetPublicShareRequest) Reset()
func (*GetPublicShareRequest) String ¶
func (x *GetPublicShareRequest) String() string
type GetPublicShareResponse ¶
type GetPublicShareResponse struct { // The response status. Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` // The share. Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` // contains filtered or unexported fields }
func (*GetPublicShareResponse) Descriptor
deprecated
func (*GetPublicShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicShareResponse.ProtoReflect.Descriptor instead.
func (*GetPublicShareResponse) GetOpaque ¶
func (x *GetPublicShareResponse) GetOpaque() *v1beta1.Opaque
func (*GetPublicShareResponse) GetShare ¶
func (x *GetPublicShareResponse) GetShare() *PublicShare
func (*GetPublicShareResponse) GetStatus ¶
func (x *GetPublicShareResponse) GetStatus() *v1beta12.Status
func (*GetPublicShareResponse) ProtoMessage ¶
func (*GetPublicShareResponse) ProtoMessage()
func (*GetPublicShareResponse) ProtoReflect ¶
func (x *GetPublicShareResponse) ProtoReflect() protoreflect.Message
func (*GetPublicShareResponse) Reset ¶
func (x *GetPublicShareResponse) Reset()
func (*GetPublicShareResponse) String ¶
func (x *GetPublicShareResponse) String() string
type Grant ¶
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"` // contains filtered or unexported fields }
Defines the restrictions for the public share.
func (*Grant) Descriptor
deprecated
func (*Grant) GetExpiration ¶
func (*Grant) GetPassword ¶
func (*Grant) GetPermissions ¶
func (x *Grant) GetPermissions() *PublicSharePermissions
func (*Grant) ProtoMessage ¶
func (*Grant) ProtoMessage()
func (*Grant) ProtoReflect ¶
func (x *Grant) ProtoReflect() protoreflect.Message
type LinkAPIClient ¶
type LinkAPIClient interface { // MUST return CODE_NOT_FOUND if the resource reference does not exist. // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of // (owner, shared_resource, grantee). // New shares MUST be created in the state SHARE_STATE_PENDING. CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...grpc.CallOption) (*CreatePublicShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...grpc.CallOption) (*RemovePublicShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...grpc.CallOption) (*GetPublicShareResponse, error) // MUST return CODE_NOT_FOUND if the share does not exist. GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*GetPublicShareByTokenResponse, error) // both as owner and creator. If a filter is specified, only // shares satisfying the filter MUST be returned. ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...grpc.CallOption) (*ListPublicSharesResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...grpc.CallOption) (*UpdatePublicShareResponse, error) }
LinkAPIClient is the client API for LinkAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLinkAPIClient ¶
func NewLinkAPIClient(cc grpc.ClientConnInterface) LinkAPIClient
type LinkAPIServer ¶
type LinkAPIServer interface { // MUST return CODE_NOT_FOUND if the resource reference does not exist. // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of // (owner, shared_resource, grantee). // New shares MUST be created in the state SHARE_STATE_PENDING. CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error) // MUST return CODE_NOT_FOUND if the share does not exist. GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error) // both as owner and creator. If a filter is specified, only // shares satisfying the filter MUST be returned. ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error) }
LinkAPIServer is the server API for LinkAPI service. All implementations should embed UnimplementedLinkAPIServer for forward compatibility
type ListPublicSharesRequest ¶
type ListPublicSharesRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // The list of filters to apply if any. Filters []*ListPublicSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // If a signature should be included in the share. Sign bool `protobuf:"varint,3,opt,name=sign,proto3" json:"sign,omitempty"` // Clients use this field to specify the maximum number of results to be returned by the server. // The server may further constrain the maximum number of results returned in a single page. // If the page_size is 0, the server will decide the number of results to be returned. // see https://cloud.google.com/apis/design/design_patterns#list_pagination PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The client uses this field to request a specific page of the list results. PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListPublicSharesRequest) Descriptor
deprecated
func (*ListPublicSharesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPublicSharesRequest.ProtoReflect.Descriptor instead.
func (*ListPublicSharesRequest) GetFilters ¶
func (x *ListPublicSharesRequest) GetFilters() []*ListPublicSharesRequest_Filter
func (*ListPublicSharesRequest) GetOpaque ¶
func (x *ListPublicSharesRequest) GetOpaque() *v1beta1.Opaque
func (*ListPublicSharesRequest) GetPageSize ¶
func (x *ListPublicSharesRequest) GetPageSize() int32
func (*ListPublicSharesRequest) GetPageToken ¶
func (x *ListPublicSharesRequest) GetPageToken() string
func (*ListPublicSharesRequest) GetSign ¶
func (x *ListPublicSharesRequest) GetSign() bool
func (*ListPublicSharesRequest) ProtoMessage ¶
func (*ListPublicSharesRequest) ProtoMessage()
func (*ListPublicSharesRequest) ProtoReflect ¶
func (x *ListPublicSharesRequest) ProtoReflect() protoreflect.Message
func (*ListPublicSharesRequest) Reset ¶
func (x *ListPublicSharesRequest) Reset()
func (*ListPublicSharesRequest) String ¶
func (x *ListPublicSharesRequest) String() string
type ListPublicSharesRequest_Filter ¶
type ListPublicSharesRequest_Filter struct { // // *ListPublicSharesRequest_Filter_ResourceId // *ListPublicSharesRequest_Filter_Owner // *ListPublicSharesRequest_Filter_Creator Term isListPublicSharesRequest_Filter_Term `protobuf_oneof:"term"` // contains filtered or unexported fields }
REQUIRED. represents a filter to apply to the request.
func (*ListPublicSharesRequest_Filter) Descriptor
deprecated
func (*ListPublicSharesRequest_Filter) Descriptor() ([]byte, []int)
Deprecated: Use ListPublicSharesRequest_Filter.ProtoReflect.Descriptor instead.
func (*ListPublicSharesRequest_Filter) GetCreator ¶
func (x *ListPublicSharesRequest_Filter) GetCreator() *v1beta13.UserId
func (*ListPublicSharesRequest_Filter) GetOwner ¶
func (x *ListPublicSharesRequest_Filter) GetOwner() *v1beta13.UserId
func (*ListPublicSharesRequest_Filter) GetResourceId ¶
func (x *ListPublicSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId
func (*ListPublicSharesRequest_Filter) GetTerm ¶
func (m *ListPublicSharesRequest_Filter) GetTerm() isListPublicSharesRequest_Filter_Term
func (*ListPublicSharesRequest_Filter) GetType ¶
func (x *ListPublicSharesRequest_Filter) GetType() ListPublicSharesRequest_Filter_Type
func (*ListPublicSharesRequest_Filter) ProtoMessage ¶
func (*ListPublicSharesRequest_Filter) ProtoMessage()
func (*ListPublicSharesRequest_Filter) ProtoReflect ¶
func (x *ListPublicSharesRequest_Filter) ProtoReflect() protoreflect.Message
func (*ListPublicSharesRequest_Filter) Reset ¶
func (x *ListPublicSharesRequest_Filter) Reset()
func (*ListPublicSharesRequest_Filter) String ¶
func (x *ListPublicSharesRequest_Filter) String() string
type ListPublicSharesRequest_Filter_Creator ¶
type ListPublicSharesRequest_Filter_Creator struct {
}type ListPublicSharesRequest_Filter_Owner ¶
type ListPublicSharesRequest_Filter_Owner struct {
}type ListPublicSharesRequest_Filter_ResourceId ¶
type ListPublicSharesRequest_Filter_ResourceId struct {
}type ListPublicSharesRequest_Filter_Type ¶
type ListPublicSharesRequest_Filter_Type int32
REQUIRED.
const ()
func (ListPublicSharesRequest_Filter_Type) Descriptor ¶
func (ListPublicSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor
func (ListPublicSharesRequest_Filter_Type) Enum ¶
func (x ListPublicSharesRequest_Filter_Type) Enum() *ListPublicSharesRequest_Filter_Type
func (ListPublicSharesRequest_Filter_Type) EnumDescriptor
deprecated
func (ListPublicSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListPublicSharesRequest_Filter_Type.Descriptor instead.
func (ListPublicSharesRequest_Filter_Type) Number ¶
func (x ListPublicSharesRequest_Filter_Type) Number() protoreflect.EnumNumber
func (ListPublicSharesRequest_Filter_Type) String ¶
func (x ListPublicSharesRequest_Filter_Type) String() string
func (ListPublicSharesRequest_Filter_Type) Type ¶
func (ListPublicSharesRequest_Filter_Type) Type() protoreflect.EnumType
type ListPublicSharesResponse ¶
type ListPublicSharesResponse struct { // The response status. Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` // The list of shares. Share []*PublicShare `protobuf:"bytes,3,rep,name=share,proto3" json:"share,omitempty"` // This field represents the pagination token to retrieve the next page of results. // If the value is "", it means no further results for the request. // see https://cloud.google.com/apis/design/design_patterns#list_pagination NextPageToken string `protobuf:"bytes,4,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListPublicSharesResponse) Descriptor
deprecated
func (*ListPublicSharesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPublicSharesResponse.ProtoReflect.Descriptor instead.
func (*ListPublicSharesResponse) GetNextPageToken ¶
func (x *ListPublicSharesResponse) GetNextPageToken() string
func (*ListPublicSharesResponse) GetOpaque ¶
func (x *ListPublicSharesResponse) GetOpaque() *v1beta1.Opaque
func (*ListPublicSharesResponse) GetShare ¶
func (x *ListPublicSharesResponse) GetShare() []*PublicShare
func (*ListPublicSharesResponse) GetStatus ¶
func (x *ListPublicSharesResponse) GetStatus() *v1beta12.Status
func (*ListPublicSharesResponse) ProtoMessage ¶
func (*ListPublicSharesResponse) ProtoMessage()
func (*ListPublicSharesResponse) ProtoReflect ¶
func (x *ListPublicSharesResponse) ProtoReflect() protoreflect.Message
func (*ListPublicSharesResponse) Reset ¶
func (x *ListPublicSharesResponse) Reset()
func (*ListPublicSharesResponse) String ¶
func (x *ListPublicSharesResponse) String() string
type PublicShare ¶
type PublicShare struct { // Opaque unique identifier of the share. Id *PublicShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The unlisted token to give public access // to the public share. Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // Unique identifier of the shared resource. ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // Permissions for the grantee to use // the resource. Permissions *PublicSharePermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` // 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"` // 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"` // Creation time of the share. Ctime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"` // Last modification time of the share. Mtime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"` // 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"` // The expiration time for the public share. Expiration *v1beta12.Timestamp `protobuf:"bytes,10,opt,name=expiration,proto3" json:"expiration,omitempty"` // 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"` // A time constrained token with which // GetPublicSharebyToken requests can be // authenticated. Signature *ShareSignature `protobuf:"bytes,12,opt,name=signature,proto3" json:"signature,omitempty"` // 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"` // Description of the share. Description string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"` // Whether to notify the owner of a share when a file is uploaded to it. NotifyUploads bool `protobuf:"varint,15,opt,name=notify_uploads,json=notifyUploads,proto3" json:"notify_uploads,omitempty"` // Comma-separated list of extra email addresses to notify when a file is // uploaded to the share. NotifyUploadsExtraRecipients string `` /* 150-byte string literal not displayed */ // contains filtered or unexported fields }
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.
func (*PublicShare) Descriptor
deprecated
func (*PublicShare) Descriptor() ([]byte, []int)
Deprecated: Use PublicShare.ProtoReflect.Descriptor instead.
func (*PublicShare) GetCreator ¶
func (x *PublicShare) GetCreator() *v1beta11.UserId
func (*PublicShare) GetCtime ¶
func (x *PublicShare) GetCtime() *v1beta12.Timestamp
func (*PublicShare) GetDescription ¶
func (x *PublicShare) GetDescription() string
func (*PublicShare) GetDisplayName ¶
func (x *PublicShare) GetDisplayName() string
func (*PublicShare) GetExpiration ¶
func (x *PublicShare) GetExpiration() *v1beta12.Timestamp
func (*PublicShare) GetId ¶
func (x *PublicShare) GetId() *PublicShareId
func (*PublicShare) GetMtime ¶
func (x *PublicShare) GetMtime() *v1beta12.Timestamp
func (*PublicShare) GetNotifyUploads ¶
func (x *PublicShare) GetNotifyUploads() bool
func (*PublicShare) GetNotifyUploadsExtraRecipients ¶
func (x *PublicShare) GetNotifyUploadsExtraRecipients() string
func (*PublicShare) GetOwner ¶
func (x *PublicShare) GetOwner() *v1beta11.UserId
func (*PublicShare) GetPasswordProtected ¶
func (x *PublicShare) GetPasswordProtected() bool
func (*PublicShare) GetPermissions ¶
func (x *PublicShare) GetPermissions() *PublicSharePermissions
func (*PublicShare) GetQuicklink ¶
func (x *PublicShare) GetQuicklink() bool
func (*PublicShare) GetResourceId ¶
func (x *PublicShare) GetResourceId() *v1beta1.ResourceId
func (*PublicShare) GetSignature ¶
func (x *PublicShare) GetSignature() *ShareSignature
func (*PublicShare) GetToken ¶
func (x *PublicShare) GetToken() string
func (*PublicShare) ProtoMessage ¶
func (*PublicShare) ProtoMessage()
func (*PublicShare) ProtoReflect ¶
func (x *PublicShare) ProtoReflect() protoreflect.Message
func (*PublicShare) Reset ¶
func (x *PublicShare) Reset()
func (*PublicShare) String ¶
func (x *PublicShare) String() string
type PublicShareAuthentication ¶
type PublicShareAuthentication struct { // // *PublicShareAuthentication_Password // *PublicShareAuthentication_Signature Spec isPublicShareAuthentication_Spec `protobuf_oneof:"spec"` // contains filtered or unexported fields }
The mechanism to authenticate a request to GetPublicShareByToken.
func (*PublicShareAuthentication) Descriptor
deprecated
func (*PublicShareAuthentication) Descriptor() ([]byte, []int)
Deprecated: Use PublicShareAuthentication.ProtoReflect.Descriptor instead.
func (*PublicShareAuthentication) GetPassword ¶
func (x *PublicShareAuthentication) GetPassword() string
func (*PublicShareAuthentication) GetSignature ¶
func (x *PublicShareAuthentication) GetSignature() *ShareSignature
func (*PublicShareAuthentication) GetSpec ¶
func (m *PublicShareAuthentication) GetSpec() isPublicShareAuthentication_Spec
func (*PublicShareAuthentication) ProtoMessage ¶
func (*PublicShareAuthentication) ProtoMessage()
func (*PublicShareAuthentication) ProtoReflect ¶
func (x *PublicShareAuthentication) ProtoReflect() protoreflect.Message
func (*PublicShareAuthentication) Reset ¶
func (x *PublicShareAuthentication) Reset()
func (*PublicShareAuthentication) String ¶
func (x *PublicShareAuthentication) String() string
type PublicShareAuthentication_Password ¶
type PublicShareAuthentication_Password struct { string `protobuf:"bytes,1,opt,name=password,proto3,oneof"` }Password
type PublicShareAuthentication_Signature ¶
type PublicShareAuthentication_Signature struct { ShareSignature `protobuf:"bytes,2,opt,name=signature,proto3,oneof"` }Signature *
type PublicShareId ¶
type PublicShareId struct { // 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"` // contains filtered or unexported fields }
A share id identifies uniquely a // share in the share provider namespace. A ShareId MUST be unique inside the share provider.
func (*PublicShareId) Descriptor
deprecated
func (*PublicShareId) Descriptor() ([]byte, []int)
Deprecated: Use PublicShareId.ProtoReflect.Descriptor instead.
func (*PublicShareId) GetOpaqueId ¶
func (x *PublicShareId) GetOpaqueId() string
func (*PublicShareId) ProtoMessage ¶
func (*PublicShareId) ProtoMessage()
func (*PublicShareId) ProtoReflect ¶
func (x *PublicShareId) ProtoReflect() protoreflect.Message
func (*PublicShareId) Reset ¶
func (x *PublicShareId) Reset()
func (*PublicShareId) String ¶
func (x *PublicShareId) String() string
type PublicSharePermissions ¶
type PublicSharePermissions struct { // contains filtered or unexported fields }
The permissions for a share.
func (*PublicSharePermissions) Descriptor
deprecated
func (*PublicSharePermissions) Descriptor() ([]byte, []int)
Deprecated: Use PublicSharePermissions.ProtoReflect.Descriptor instead.
func (*PublicSharePermissions) GetPermissions ¶
func (x *PublicSharePermissions) GetPermissions() *v1beta1.ResourcePermissions
func (*PublicSharePermissions) ProtoMessage ¶
func (*PublicSharePermissions) ProtoMessage()
func (*PublicSharePermissions) ProtoReflect ¶
func (x *PublicSharePermissions) ProtoReflect() protoreflect.Message
func (*PublicSharePermissions) Reset ¶
func (x *PublicSharePermissions) Reset()
func (*PublicSharePermissions) String ¶
func (x *PublicSharePermissions) String() string
type PublicShareReference ¶
type PublicShareReference struct { // One of the specifications MUST be specified. // // Types that are assignable to Spec: // // *PublicShareReference_Id // *PublicShareReference_Token Spec isPublicShareReference_Spec `protobuf_oneof:"spec"` // contains filtered or unexported fields }
The mechanism to identify a share in the share provider namespace.
func (*PublicShareReference) Descriptor
deprecated
func (*PublicShareReference) Descriptor() ([]byte, []int)
Deprecated: Use PublicShareReference.ProtoReflect.Descriptor instead.
func (*PublicShareReference) GetId ¶
func (x *PublicShareReference) GetId() *PublicShareId
func (*PublicShareReference) GetSpec ¶
func (m *PublicShareReference) GetSpec() isPublicShareReference_Spec
func (*PublicShareReference) GetToken ¶
func (x *PublicShareReference) GetToken() string
func (*PublicShareReference) ProtoMessage ¶
func (*PublicShareReference) ProtoMessage()
func (*PublicShareReference) ProtoReflect ¶
func (x *PublicShareReference) ProtoReflect() protoreflect.Message
func (*PublicShareReference) Reset ¶
func (x *PublicShareReference) Reset()
func (*PublicShareReference) String ¶
func (x *PublicShareReference) String() string
type PublicShareReference_Id ¶
type PublicShareReference_Id struct { PublicShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"` }Id *
type PublicShareReference_Token ¶
type PublicShareReference_Token struct { string `protobuf:"bytes,2,opt,name=token,proto3,oneof"` }Token
type RemovePublicShareRequest ¶
type RemovePublicShareRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // The reference to which the action should be performed. Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // contains filtered or unexported fields }
func (*RemovePublicShareRequest) Descriptor
deprecated
func (*RemovePublicShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemovePublicShareRequest.ProtoReflect.Descriptor instead.
func (*RemovePublicShareRequest) GetOpaque ¶
func (x *RemovePublicShareRequest) GetOpaque() *v1beta1.Opaque
func (*RemovePublicShareRequest) GetRef ¶
func (x *RemovePublicShareRequest) GetRef() *PublicShareReference
func (*RemovePublicShareRequest) ProtoMessage ¶
func (*RemovePublicShareRequest) ProtoMessage()
func (*RemovePublicShareRequest) ProtoReflect ¶
func (x *RemovePublicShareRequest) ProtoReflect() protoreflect.Message
func (*RemovePublicShareRequest) Reset ¶
func (x *RemovePublicShareRequest) Reset()
func (*RemovePublicShareRequest) String ¶
func (x *RemovePublicShareRequest) String() string
type RemovePublicShareResponse ¶
type RemovePublicShareResponse struct { // The response status. Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` // contains filtered or unexported fields }
func (*RemovePublicShareResponse) Descriptor
deprecated
func (*RemovePublicShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemovePublicShareResponse.ProtoReflect.Descriptor instead.
func (*RemovePublicShareResponse) GetOpaque ¶
func (x *RemovePublicShareResponse) GetOpaque() *v1beta1.Opaque
func (*RemovePublicShareResponse) GetStatus ¶
func (x *RemovePublicShareResponse) GetStatus() *v1beta12.Status
func (*RemovePublicShareResponse) ProtoMessage ¶
func (*RemovePublicShareResponse) ProtoMessage()
func (*RemovePublicShareResponse) ProtoReflect ¶
func (x *RemovePublicShareResponse) ProtoReflect() protoreflect.Message
func (*RemovePublicShareResponse) Reset ¶
func (x *RemovePublicShareResponse) Reset()
func (*RemovePublicShareResponse) String ¶
func (x *RemovePublicShareResponse) String() string
type ShareSignature ¶
type ShareSignature struct { // The signature value. Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // The time until the signature becomes invalid. SignatureExpiration *v1beta12.Timestamp `protobuf:"bytes,2,opt,name=signature_expiration,json=signatureExpiration,proto3" json:"signature_expiration,omitempty"` // contains filtered or unexported fields }
A time constrained token which can be used to authenticate link share requests.
func (*ShareSignature) Descriptor
deprecated
func (*ShareSignature) Descriptor() ([]byte, []int)
Deprecated: Use ShareSignature.ProtoReflect.Descriptor instead.
func (*ShareSignature) GetSignature ¶
func (x *ShareSignature) GetSignature() string
func (*ShareSignature) GetSignatureExpiration ¶
func (x *ShareSignature) GetSignatureExpiration() *v1beta12.Timestamp
func (*ShareSignature) ProtoMessage ¶
func (*ShareSignature) ProtoMessage()
func (*ShareSignature) ProtoReflect ¶
func (x *ShareSignature) ProtoReflect() protoreflect.Message
func (*ShareSignature) Reset ¶
func (x *ShareSignature) Reset()
func (*ShareSignature) String ¶
func (x *ShareSignature) String() string
type UnimplementedLinkAPIServer ¶
type UnimplementedLinkAPIServer struct { }
UnimplementedLinkAPIServer should be embedded to have forward compatible implementations.
func (UnimplementedLinkAPIServer) CreatePublicShare ¶
func (UnimplementedLinkAPIServer) CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error)
func (UnimplementedLinkAPIServer) GetPublicShare ¶
func (UnimplementedLinkAPIServer) GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error)
func (UnimplementedLinkAPIServer) GetPublicShareByToken ¶
func (UnimplementedLinkAPIServer) GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error)
func (UnimplementedLinkAPIServer) ListPublicShares ¶
func (UnimplementedLinkAPIServer) ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error)
func (UnimplementedLinkAPIServer) RemovePublicShare ¶
func (UnimplementedLinkAPIServer) RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error)
func (UnimplementedLinkAPIServer) UpdatePublicShare ¶
func (UnimplementedLinkAPIServer) UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error)
type UnsafeLinkAPIServer ¶
type UnsafeLinkAPIServer interface {
// contains filtered or unexported methods
}
UnsafeLinkAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LinkAPIServer will result in compilation errors.
type UpdatePublicShareRequest ¶
type UpdatePublicShareRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. // REQUIRED. // The reference to the public share. // contains filtered or unexported fields }
func (*UpdatePublicShareRequest) Descriptor
deprecated
func (*UpdatePublicShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePublicShareRequest.ProtoReflect.Descriptor instead.
func (*UpdatePublicShareRequest) GetOpaque ¶
func (x *UpdatePublicShareRequest) GetOpaque() *v1beta1.Opaque
func (*UpdatePublicShareRequest) GetRef ¶
func (x *UpdatePublicShareRequest) GetRef() *PublicShareReference
func (*UpdatePublicShareRequest) GetUpdate ¶
func (x *UpdatePublicShareRequest) GetUpdate() *UpdatePublicShareRequest_Update
func (*UpdatePublicShareRequest) ProtoMessage ¶
func (*UpdatePublicShareRequest) ProtoMessage()
func (*UpdatePublicShareRequest) ProtoReflect ¶
func (x *UpdatePublicShareRequest) ProtoReflect() protoreflect.Message
func (*UpdatePublicShareRequest) Reset ¶
func (x *UpdatePublicShareRequest) Reset()
func (*UpdatePublicShareRequest) String ¶
func (x *UpdatePublicShareRequest) String() string
type UpdatePublicShareRequest_Update ¶
type UpdatePublicShareRequest_Update struct { // Defines the field to update. Type UpdatePublicShareRequest_Update_Type `` /* 129-byte string literal not displayed */ // Contains the field that will be updated. Grant *Grant `protobuf:"bytes,4,opt,name=grant,proto3" json:"grant,omitempty"` // Defines the public link display name. DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Defines the public link description. Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` // Whether to notify the owner of a share when a file is uploaded to it. NotifyUploads bool `protobuf:"varint,7,opt,name=notify_uploads,json=notifyUploads,proto3" json:"notify_uploads,omitempty"` // Comma-separated list of extra email addresses to notify when a file is // uploaded to the share. NotifyUploadsExtraRecipients string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
REQUIRED.
func (*UpdatePublicShareRequest_Update) Descriptor
deprecated
func (*UpdatePublicShareRequest_Update) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePublicShareRequest_Update.ProtoReflect.Descriptor instead.
func (*UpdatePublicShareRequest_Update) GetDescription ¶
func (x *UpdatePublicShareRequest_Update) GetDescription() string
func (*UpdatePublicShareRequest_Update) GetDisplayName ¶
func (x *UpdatePublicShareRequest_Update) GetDisplayName() string
func (*UpdatePublicShareRequest_Update) GetGrant ¶
func (x *UpdatePublicShareRequest_Update) GetGrant() *Grant
func (*UpdatePublicShareRequest_Update) GetNotifyUploads ¶
func (x *UpdatePublicShareRequest_Update) GetNotifyUploads() bool
func (*UpdatePublicShareRequest_Update) GetNotifyUploadsExtraRecipients ¶
func (x *UpdatePublicShareRequest_Update) GetNotifyUploadsExtraRecipients() string
func (*UpdatePublicShareRequest_Update) GetType ¶
func (x *UpdatePublicShareRequest_Update) GetType() UpdatePublicShareRequest_Update_Type
func (*UpdatePublicShareRequest_Update) ProtoMessage ¶
func (*UpdatePublicShareRequest_Update) ProtoMessage()
func (*UpdatePublicShareRequest_Update) ProtoReflect ¶
func (x *UpdatePublicShareRequest_Update) ProtoReflect() protoreflect.Message
func (*UpdatePublicShareRequest_Update) Reset ¶
func (x *UpdatePublicShareRequest_Update) Reset()
func (*UpdatePublicShareRequest_Update) String ¶
func (x *UpdatePublicShareRequest_Update) String() string
type UpdatePublicShareRequest_Update_Type ¶
type UpdatePublicShareRequest_Update_Type int32
REQUIRED.
const ()
func (UpdatePublicShareRequest_Update_Type) Descriptor ¶
func (UpdatePublicShareRequest_Update_Type) Descriptor() protoreflect.EnumDescriptor
func (UpdatePublicShareRequest_Update_Type) Enum ¶
func (x UpdatePublicShareRequest_Update_Type) Enum() *UpdatePublicShareRequest_Update_Type
func (UpdatePublicShareRequest_Update_Type) EnumDescriptor
deprecated
func (UpdatePublicShareRequest_Update_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdatePublicShareRequest_Update_Type.Descriptor instead.
func (UpdatePublicShareRequest_Update_Type) Number ¶
func (x UpdatePublicShareRequest_Update_Type) Number() protoreflect.EnumNumber
func (UpdatePublicShareRequest_Update_Type) String ¶
func (x UpdatePublicShareRequest_Update_Type) String() string
func (UpdatePublicShareRequest_Update_Type) Type ¶
func (UpdatePublicShareRequest_Update_Type) Type() protoreflect.EnumType
type UpdatePublicShareResponse ¶
type UpdatePublicShareResponse struct { // The response status. Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` // The updated public share. Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` // contains filtered or unexported fields }
func (*UpdatePublicShareResponse) Descriptor
deprecated
func (*UpdatePublicShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePublicShareResponse.ProtoReflect.Descriptor instead.
func (*UpdatePublicShareResponse) GetOpaque ¶
func (x *UpdatePublicShareResponse) GetOpaque() *v1beta1.Opaque
func (*UpdatePublicShareResponse) GetShare ¶
func (x *UpdatePublicShareResponse) GetShare() *PublicShare
func (*UpdatePublicShareResponse) GetStatus ¶
func (x *UpdatePublicShareResponse) GetStatus() *v1beta12.Status
func (*UpdatePublicShareResponse) ProtoMessage ¶
func (*UpdatePublicShareResponse) ProtoMessage()
func (*UpdatePublicShareResponse) ProtoReflect ¶
func (x *UpdatePublicShareResponse) ProtoReflect() protoreflect.Message
func (*UpdatePublicShareResponse) Reset ¶
func (x *UpdatePublicShareResponse) Reset()
func (*UpdatePublicShareResponse) String ¶
func (x *UpdatePublicShareResponse) String() string