Documentation ¶
Index ¶
- Variables
- func RegisterOcmAPIHandler(s server.Server, hdlr OcmAPIHandler, opts ...server.HandlerOption) error
- func RegisterOcmAPIServer(s *grpc.Server, srv OcmAPIServer)
- type CreateOCMShareRequest
- func (*CreateOCMShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOCMShareRequest) GetGrant() *ShareGrant
- func (x *CreateOCMShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *CreateOCMShareRequest) GetRecipientMeshProvider() *v1beta12.ProviderInfo
- func (x *CreateOCMShareRequest) GetResourceId() *v1beta11.ResourceId
- func (*CreateOCMShareRequest) ProtoMessage()
- func (x *CreateOCMShareRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOCMShareRequest) Reset()
- func (x *CreateOCMShareRequest) String() string
- type CreateOCMShareResponse
- func (*CreateOCMShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOCMShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *CreateOCMShareResponse) GetShare() *Share
- func (x *CreateOCMShareResponse) GetStatus() *v1beta13.Status
- func (*CreateOCMShareResponse) ProtoMessage()
- func (x *CreateOCMShareResponse) ProtoReflect() protoreflect.Message
- func (x *CreateOCMShareResponse) Reset()
- func (x *CreateOCMShareResponse) String() string
- type GetOCMShareRequest
- func (*GetOCMShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOCMShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *GetOCMShareRequest) GetRef() *ShareReference
- func (*GetOCMShareRequest) ProtoMessage()
- func (x *GetOCMShareRequest) ProtoReflect() protoreflect.Message
- func (x *GetOCMShareRequest) Reset()
- func (x *GetOCMShareRequest) String() string
- type GetOCMShareResponse
- func (*GetOCMShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOCMShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *GetOCMShareResponse) GetShare() *Share
- func (x *GetOCMShareResponse) GetStatus() *v1beta13.Status
- func (*GetOCMShareResponse) ProtoMessage()
- func (x *GetOCMShareResponse) ProtoReflect() protoreflect.Message
- func (x *GetOCMShareResponse) Reset()
- func (x *GetOCMShareResponse) String() string
- type GetReceivedOCMShareRequest
- func (*GetReceivedOCMShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *GetReceivedOCMShareRequest) GetRef() *ShareReference
- func (*GetReceivedOCMShareRequest) ProtoMessage()
- func (x *GetReceivedOCMShareRequest) ProtoReflect() protoreflect.Message
- func (x *GetReceivedOCMShareRequest) Reset()
- func (x *GetReceivedOCMShareRequest) String() string
- type GetReceivedOCMShareResponse
- func (*GetReceivedOCMShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *GetReceivedOCMShareResponse) GetShare() *ReceivedShare
- func (x *GetReceivedOCMShareResponse) GetStatus() *v1beta13.Status
- func (*GetReceivedOCMShareResponse) ProtoMessage()
- func (x *GetReceivedOCMShareResponse) ProtoReflect() protoreflect.Message
- func (x *GetReceivedOCMShareResponse) Reset()
- func (x *GetReceivedOCMShareResponse) String() string
- type ListOCMSharesRequest
- func (*ListOCMSharesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOCMSharesRequest) GetFilters() []*ListOCMSharesRequest_Filter
- func (x *ListOCMSharesRequest) GetOpaque() *v1beta1.Opaque
- func (*ListOCMSharesRequest) ProtoMessage()
- func (x *ListOCMSharesRequest) ProtoReflect() protoreflect.Message
- func (x *ListOCMSharesRequest) Reset()
- func (x *ListOCMSharesRequest) String() string
- type ListOCMSharesRequest_Filter
- func (*ListOCMSharesRequest_Filter) Descriptor() ([]byte, []int)deprecated
- func (x *ListOCMSharesRequest_Filter) GetCreator() *v1beta14.UserId
- func (x *ListOCMSharesRequest_Filter) GetOwner() *v1beta14.UserId
- func (x *ListOCMSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId
- func (m *ListOCMSharesRequest_Filter) GetTerm() isListOCMSharesRequest_Filter_Term
- func (x *ListOCMSharesRequest_Filter) GetType() ListOCMSharesRequest_Filter_Type
- func (*ListOCMSharesRequest_Filter) ProtoMessage()
- func (x *ListOCMSharesRequest_Filter) ProtoReflect() protoreflect.Message
- func (x *ListOCMSharesRequest_Filter) Reset()
- func (x *ListOCMSharesRequest_Filter) String() string
- type ListOCMSharesRequest_Filter_Creator
- type ListOCMSharesRequest_Filter_Owner
- type ListOCMSharesRequest_Filter_ResourceId
- type ListOCMSharesRequest_Filter_Type
- func (ListOCMSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ListOCMSharesRequest_Filter_Type) Enum() *ListOCMSharesRequest_Filter_Type
- func (ListOCMSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListOCMSharesRequest_Filter_Type) Number() protoreflect.EnumNumber
- func (x ListOCMSharesRequest_Filter_Type) String() string
- func (ListOCMSharesRequest_Filter_Type) Type() protoreflect.EnumType
- type ListOCMSharesResponse
- func (*ListOCMSharesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOCMSharesResponse) GetOpaque() *v1beta1.Opaque
- func (x *ListOCMSharesResponse) GetShares() []*Share
- func (x *ListOCMSharesResponse) GetStatus() *v1beta13.Status
- func (*ListOCMSharesResponse) ProtoMessage()
- func (x *ListOCMSharesResponse) ProtoReflect() protoreflect.Message
- func (x *ListOCMSharesResponse) Reset()
- func (x *ListOCMSharesResponse) String() string
- type ListReceivedOCMSharesRequest
- func (*ListReceivedOCMSharesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListReceivedOCMSharesRequest) GetOpaque() *v1beta1.Opaque
- func (*ListReceivedOCMSharesRequest) ProtoMessage()
- func (x *ListReceivedOCMSharesRequest) ProtoReflect() protoreflect.Message
- func (x *ListReceivedOCMSharesRequest) Reset()
- func (x *ListReceivedOCMSharesRequest) String() string
- type ListReceivedOCMSharesResponse
- func (*ListReceivedOCMSharesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListReceivedOCMSharesResponse) GetOpaque() *v1beta1.Opaque
- func (x *ListReceivedOCMSharesResponse) GetShares() []*ReceivedShare
- func (x *ListReceivedOCMSharesResponse) GetStatus() *v1beta13.Status
- func (*ListReceivedOCMSharesResponse) ProtoMessage()
- func (x *ListReceivedOCMSharesResponse) ProtoReflect() protoreflect.Message
- func (x *ListReceivedOCMSharesResponse) Reset()
- func (x *ListReceivedOCMSharesResponse) String() string
- type OcmAPIClient
- type OcmAPIHandler
- type OcmAPIServer
- type OcmAPIService
- type ReceivedShare
- func (*ReceivedShare) Descriptor() ([]byte, []int)deprecated
- func (x *ReceivedShare) GetShare() *Share
- func (x *ReceivedShare) GetState() ShareState
- func (*ReceivedShare) ProtoMessage()
- func (x *ReceivedShare) ProtoReflect() protoreflect.Message
- func (x *ReceivedShare) Reset()
- func (x *ReceivedShare) String() string
- type RemoveOCMShareRequest
- func (*RemoveOCMShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveOCMShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *RemoveOCMShareRequest) GetRef() *ShareReference
- func (*RemoveOCMShareRequest) ProtoMessage()
- func (x *RemoveOCMShareRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveOCMShareRequest) Reset()
- func (x *RemoveOCMShareRequest) String() string
- type RemoveOCMShareResponse
- func (*RemoveOCMShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveOCMShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *RemoveOCMShareResponse) GetStatus() *v1beta13.Status
- func (*RemoveOCMShareResponse) ProtoMessage()
- func (x *RemoveOCMShareResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveOCMShareResponse) Reset()
- func (x *RemoveOCMShareResponse) String() string
- type Share
- func (*Share) Descriptor() ([]byte, []int)deprecated
- func (x *Share) GetCreator() *v1beta11.UserId
- func (x *Share) GetCtime() *v1beta12.Timestamp
- func (x *Share) GetGrantee() *v1beta1.Grantee
- func (x *Share) GetId() *ShareId
- func (x *Share) GetMtime() *v1beta12.Timestamp
- func (x *Share) GetOwner() *v1beta11.UserId
- func (x *Share) GetPermissions() *SharePermissions
- func (x *Share) GetResourceId() *v1beta1.ResourceId
- func (*Share) ProtoMessage()
- func (x *Share) ProtoReflect() protoreflect.Message
- func (x *Share) Reset()
- func (x *Share) String() string
- type ShareGrant
- func (*ShareGrant) Descriptor() ([]byte, []int)deprecated
- func (x *ShareGrant) GetGrantee() *v1beta1.Grantee
- func (x *ShareGrant) GetPermissions() *SharePermissions
- func (*ShareGrant) ProtoMessage()
- func (x *ShareGrant) ProtoReflect() protoreflect.Message
- func (x *ShareGrant) Reset()
- func (x *ShareGrant) String() string
- type ShareId
- type ShareKey
- func (*ShareKey) Descriptor() ([]byte, []int)deprecated
- func (x *ShareKey) GetGrantee() *v1beta1.Grantee
- func (x *ShareKey) GetOwner() *v1beta11.UserId
- func (x *ShareKey) GetResourceId() *v1beta1.ResourceId
- func (*ShareKey) ProtoMessage()
- func (x *ShareKey) ProtoReflect() protoreflect.Message
- func (x *ShareKey) Reset()
- func (x *ShareKey) String() string
- type SharePermissions
- func (*SharePermissions) Descriptor() ([]byte, []int)deprecated
- func (x *SharePermissions) GetPermissions() *v1beta1.ResourcePermissions
- func (x *SharePermissions) GetReshare() bool
- func (*SharePermissions) ProtoMessage()
- func (x *SharePermissions) ProtoReflect() protoreflect.Message
- func (x *SharePermissions) Reset()
- func (x *SharePermissions) String() string
- type ShareReference
- func (*ShareReference) Descriptor() ([]byte, []int)deprecated
- func (x *ShareReference) GetId() *ShareId
- func (x *ShareReference) GetKey() *ShareKey
- func (m *ShareReference) GetSpec() isShareReference_Spec
- func (*ShareReference) ProtoMessage()
- func (x *ShareReference) ProtoReflect() protoreflect.Message
- func (x *ShareReference) Reset()
- func (x *ShareReference) String() string
- type ShareReference_Id
- type ShareReference_Key
- type ShareState
- type UnimplementedOcmAPIServer
- func (*UnimplementedOcmAPIServer) CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error)
- func (*UnimplementedOcmAPIServer) GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error)
- func (*UnimplementedOcmAPIServer) GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error)
- func (*UnimplementedOcmAPIServer) ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error)
- func (*UnimplementedOcmAPIServer) ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error)
- func (*UnimplementedOcmAPIServer) RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error)
- func (*UnimplementedOcmAPIServer) UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error)
- func (*UnimplementedOcmAPIServer) UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error)
- type UpdateOCMShareRequest
- func (*UpdateOCMShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOCMShareRequest) GetField() *UpdateOCMShareRequest_UpdateField
- func (x *UpdateOCMShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *UpdateOCMShareRequest) GetRef() *ShareReference
- func (*UpdateOCMShareRequest) ProtoMessage()
- func (x *UpdateOCMShareRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateOCMShareRequest) Reset()
- func (x *UpdateOCMShareRequest) String() string
- type UpdateOCMShareRequest_UpdateField
- func (*UpdateOCMShareRequest_UpdateField) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOCMShareRequest_UpdateField) GetDisplayName() string
- func (m *UpdateOCMShareRequest_UpdateField) GetField() isUpdateOCMShareRequest_UpdateField_Field
- func (x *UpdateOCMShareRequest_UpdateField) GetPermissions() *SharePermissions
- func (*UpdateOCMShareRequest_UpdateField) ProtoMessage()
- func (x *UpdateOCMShareRequest_UpdateField) ProtoReflect() protoreflect.Message
- func (x *UpdateOCMShareRequest_UpdateField) Reset()
- func (x *UpdateOCMShareRequest_UpdateField) String() string
- type UpdateOCMShareRequest_UpdateField_DisplayName
- type UpdateOCMShareRequest_UpdateField_Permissions
- type UpdateOCMShareResponse
- func (*UpdateOCMShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOCMShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *UpdateOCMShareResponse) GetStatus() *v1beta13.Status
- func (*UpdateOCMShareResponse) ProtoMessage()
- func (x *UpdateOCMShareResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateOCMShareResponse) Reset()
- func (x *UpdateOCMShareResponse) String() string
- type UpdateReceivedOCMShareRequest
- func (*UpdateReceivedOCMShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReceivedOCMShareRequest) GetField() *UpdateReceivedOCMShareRequest_UpdateField
- func (x *UpdateReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque
- func (x *UpdateReceivedOCMShareRequest) GetRef() *ShareReference
- func (*UpdateReceivedOCMShareRequest) ProtoMessage()
- func (x *UpdateReceivedOCMShareRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateReceivedOCMShareRequest) Reset()
- func (x *UpdateReceivedOCMShareRequest) String() string
- type UpdateReceivedOCMShareRequest_UpdateField
- func (*UpdateReceivedOCMShareRequest_UpdateField) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReceivedOCMShareRequest_UpdateField) GetDisplayName() string
- func (m *UpdateReceivedOCMShareRequest_UpdateField) GetField() isUpdateReceivedOCMShareRequest_UpdateField_Field
- func (x *UpdateReceivedOCMShareRequest_UpdateField) GetState() ShareState
- func (*UpdateReceivedOCMShareRequest_UpdateField) ProtoMessage()
- func (x *UpdateReceivedOCMShareRequest_UpdateField) ProtoReflect() protoreflect.Message
- func (x *UpdateReceivedOCMShareRequest_UpdateField) Reset()
- func (x *UpdateReceivedOCMShareRequest_UpdateField) String() string
- type UpdateReceivedOCMShareRequest_UpdateField_DisplayName
- type UpdateReceivedOCMShareRequest_UpdateField_State
- type UpdateReceivedOCMShareResponse
- func (*UpdateReceivedOCMShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque
- func (x *UpdateReceivedOCMShareResponse) GetStatus() *v1beta13.Status
- func (*UpdateReceivedOCMShareResponse) ProtoMessage()
- func (x *UpdateReceivedOCMShareResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateReceivedOCMShareResponse) Reset()
- func (x *UpdateReceivedOCMShareResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var (0: "TYPE_INVALID", 1: "TYPE_NO", 2: "TYPE_RESOURCE_ID", 3: "TYPE_OWNER", 4: "TYPE_CREATOR", 5: "TYPE_OWNER_PROVIDER", 6: "TYPE_CREATOR_PROVIDER", } "TYPE_INVALID": 0, "TYPE_NO": 1, "TYPE_RESOURCE_ID": 2, "TYPE_OWNER": 3, "TYPE_CREATOR": 4, "TYPE_OWNER_PROVIDER": 5, "TYPE_CREATOR_PROVIDER": 6, } )
Enum value maps for ListOCMSharesRequest_Filter_Type.
var (0: "SHARE_STATE_INVALID", 1: "SHARE_STATE_PENDING", 2: "SHARE_STATE_ACCEPTED", 3: "SHARE_STATE_REJECTED", } "SHARE_STATE_INVALID": 0, "SHARE_STATE_PENDING": 1, "SHARE_STATE_ACCEPTED": 2, "SHARE_STATE_REJECTED": 3, } )
Enum value maps for ShareState.
var File_cs3_sharing_ocm_v1beta1_ocm_api_proto protoreflect.FileDescriptor
var File_cs3_sharing_ocm_v1beta1_resources_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOcmAPIHandler ¶
func RegisterOcmAPIHandler(s server.Server, hdlr OcmAPIHandler, opts ...server.HandlerOption) error
func RegisterOcmAPIServer ¶
func RegisterOcmAPIServer(s *grpc.Server, srv OcmAPIServer)
Types ¶
type CreateOCMShareRequest ¶
type CreateOCMShareRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // The unique identifier for the shared storage resource. ResourceId *v1beta11.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // The share grant for the share. Grant *ShareGrant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` // The details of the recipient user's mesh provider. RecipientMeshProvider *v1beta12.ProviderInfo `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateOCMShareRequest) Descriptor
deprecated
func (*CreateOCMShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOCMShareRequest.ProtoReflect.Descriptor instead.
func (*CreateOCMShareRequest) GetGrant ¶
func (x *CreateOCMShareRequest) GetGrant() *ShareGrant
func (*CreateOCMShareRequest) GetOpaque ¶
func (x *CreateOCMShareRequest) GetOpaque() *v1beta1.Opaque
func (*CreateOCMShareRequest) GetRecipientMeshProvider ¶
func (x *CreateOCMShareRequest) GetRecipientMeshProvider() *v1beta12.ProviderInfo
func (*CreateOCMShareRequest) GetResourceId ¶
func (x *CreateOCMShareRequest) GetResourceId() *v1beta11.ResourceId
func (*CreateOCMShareRequest) ProtoMessage ¶
func (*CreateOCMShareRequest) ProtoMessage()
func (*CreateOCMShareRequest) ProtoReflect ¶
func (x *CreateOCMShareRequest) ProtoReflect() protoreflect.Message
func (*CreateOCMShareRequest) Reset ¶
func (x *CreateOCMShareRequest) Reset()
func (*CreateOCMShareRequest) String ¶
func (x *CreateOCMShareRequest) String() string
type CreateOCMShareResponse ¶
type CreateOCMShareResponse struct { // The response status. Status *v1beta13.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 *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` // contains filtered or unexported fields }
func (*CreateOCMShareResponse) Descriptor
deprecated
func (*CreateOCMShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateOCMShareResponse.ProtoReflect.Descriptor instead.
func (*CreateOCMShareResponse) GetOpaque ¶
func (x *CreateOCMShareResponse) GetOpaque() *v1beta1.Opaque
func (*CreateOCMShareResponse) GetShare ¶
func (x *CreateOCMShareResponse) GetShare() *Share
func (*CreateOCMShareResponse) GetStatus ¶
func (x *CreateOCMShareResponse) GetStatus() *v1beta13.Status
func (*CreateOCMShareResponse) ProtoMessage ¶
func (*CreateOCMShareResponse) ProtoMessage()
func (*CreateOCMShareResponse) ProtoReflect ¶
func (x *CreateOCMShareResponse) ProtoReflect() protoreflect.Message
func (*CreateOCMShareResponse) Reset ¶
func (x *CreateOCMShareResponse) Reset()
func (*CreateOCMShareResponse) String ¶
func (x *CreateOCMShareResponse) String() string
type GetOCMShareRequest ¶
type GetOCMShareRequest 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 *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // contains filtered or unexported fields }
func (*GetOCMShareRequest) Descriptor
deprecated
func (*GetOCMShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOCMShareRequest.ProtoReflect.Descriptor instead.
func (*GetOCMShareRequest) GetOpaque ¶
func (x *GetOCMShareRequest) GetOpaque() *v1beta1.Opaque
func (*GetOCMShareRequest) GetRef ¶
func (x *GetOCMShareRequest) GetRef() *ShareReference
func (*GetOCMShareRequest) ProtoMessage ¶
func (*GetOCMShareRequest) ProtoMessage()
func (*GetOCMShareRequest) ProtoReflect ¶
func (x *GetOCMShareRequest) ProtoReflect() protoreflect.Message
func (*GetOCMShareRequest) Reset ¶
func (x *GetOCMShareRequest) Reset()
func (*GetOCMShareRequest) String ¶
func (x *GetOCMShareRequest) String() string
type GetOCMShareResponse ¶
type GetOCMShareResponse struct { // The response status. Status *v1beta13.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 *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` // contains filtered or unexported fields }
func (*GetOCMShareResponse) Descriptor
deprecated
func (*GetOCMShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOCMShareResponse.ProtoReflect.Descriptor instead.
func (*GetOCMShareResponse) GetOpaque ¶
func (x *GetOCMShareResponse) GetOpaque() *v1beta1.Opaque
func (*GetOCMShareResponse) GetShare ¶
func (x *GetOCMShareResponse) GetShare() *Share
func (*GetOCMShareResponse) GetStatus ¶
func (x *GetOCMShareResponse) GetStatus() *v1beta13.Status
func (*GetOCMShareResponse) ProtoMessage ¶
func (*GetOCMShareResponse) ProtoMessage()
func (*GetOCMShareResponse) ProtoReflect ¶
func (x *GetOCMShareResponse) ProtoReflect() protoreflect.Message
func (*GetOCMShareResponse) Reset ¶
func (x *GetOCMShareResponse) Reset()
func (*GetOCMShareResponse) String ¶
func (x *GetOCMShareResponse) String() string
type GetReceivedOCMShareRequest ¶
type GetReceivedOCMShareRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // The reference of the received share. Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // contains filtered or unexported fields }
func (*GetReceivedOCMShareRequest) Descriptor
deprecated
func (*GetReceivedOCMShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReceivedOCMShareRequest.ProtoReflect.Descriptor instead.
func (*GetReceivedOCMShareRequest) GetOpaque ¶
func (x *GetReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque
func (*GetReceivedOCMShareRequest) GetRef ¶
func (x *GetReceivedOCMShareRequest) GetRef() *ShareReference
func (*GetReceivedOCMShareRequest) ProtoMessage ¶
func (*GetReceivedOCMShareRequest) ProtoMessage()
func (*GetReceivedOCMShareRequest) ProtoReflect ¶
func (x *GetReceivedOCMShareRequest) ProtoReflect() protoreflect.Message
func (*GetReceivedOCMShareRequest) Reset ¶
func (x *GetReceivedOCMShareRequest) Reset()
func (*GetReceivedOCMShareRequest) String ¶
func (x *GetReceivedOCMShareRequest) String() string
type GetReceivedOCMShareResponse ¶
type GetReceivedOCMShareResponse struct { // The response status. Status *v1beta13.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 *ReceivedShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` // contains filtered or unexported fields }
func (*GetReceivedOCMShareResponse) Descriptor
deprecated
func (*GetReceivedOCMShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReceivedOCMShareResponse.ProtoReflect.Descriptor instead.
func (*GetReceivedOCMShareResponse) GetOpaque ¶
func (x *GetReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque
func (*GetReceivedOCMShareResponse) GetShare ¶
func (x *GetReceivedOCMShareResponse) GetShare() *ReceivedShare
func (*GetReceivedOCMShareResponse) GetStatus ¶
func (x *GetReceivedOCMShareResponse) GetStatus() *v1beta13.Status
func (*GetReceivedOCMShareResponse) ProtoMessage ¶
func (*GetReceivedOCMShareResponse) ProtoMessage()
func (*GetReceivedOCMShareResponse) ProtoReflect ¶
func (x *GetReceivedOCMShareResponse) ProtoReflect() protoreflect.Message
func (*GetReceivedOCMShareResponse) Reset ¶
func (x *GetReceivedOCMShareResponse) Reset()
func (*GetReceivedOCMShareResponse) String ¶
func (x *GetReceivedOCMShareResponse) String() string
type ListOCMSharesRequest ¶
type ListOCMSharesRequest 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 []*ListOCMSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // contains filtered or unexported fields }
func (*ListOCMSharesRequest) Descriptor
deprecated
func (*ListOCMSharesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOCMSharesRequest.ProtoReflect.Descriptor instead.
func (*ListOCMSharesRequest) GetFilters ¶
func (x *ListOCMSharesRequest) GetFilters() []*ListOCMSharesRequest_Filter
func (*ListOCMSharesRequest) GetOpaque ¶
func (x *ListOCMSharesRequest) GetOpaque() *v1beta1.Opaque
func (*ListOCMSharesRequest) ProtoMessage ¶
func (*ListOCMSharesRequest) ProtoMessage()
func (*ListOCMSharesRequest) ProtoReflect ¶
func (x *ListOCMSharesRequest) ProtoReflect() protoreflect.Message
func (*ListOCMSharesRequest) Reset ¶
func (x *ListOCMSharesRequest) Reset()
func (*ListOCMSharesRequest) String ¶
func (x *ListOCMSharesRequest) String() string
type ListOCMSharesRequest_Filter ¶
type ListOCMSharesRequest_Filter struct { ListOCMSharesRequest_Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.ocm.v1beta1.ListOCMSharesRequest_Filter_Type" json:"type,omitempty"` // *ListOCMSharesRequest_Filter_ResourceId // *ListOCMSharesRequest_Filter_Owner // *ListOCMSharesRequest_Filter_Creator Term isListOCMSharesRequest_Filter_Term `protobuf_oneof:"term"` // contains filtered or unexported fields }Type
REQUIRED. represents a filter to apply to the request.
func (*ListOCMSharesRequest_Filter) Descriptor
deprecated
func (*ListOCMSharesRequest_Filter) Descriptor() ([]byte, []int)
Deprecated: Use ListOCMSharesRequest_Filter.ProtoReflect.Descriptor instead.
func (*ListOCMSharesRequest_Filter) GetCreator ¶
func (x *ListOCMSharesRequest_Filter) GetCreator() *v1beta14.UserId
func (*ListOCMSharesRequest_Filter) GetOwner ¶
func (x *ListOCMSharesRequest_Filter) GetOwner() *v1beta14.UserId
func (*ListOCMSharesRequest_Filter) GetResourceId ¶
func (x *ListOCMSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId
func (*ListOCMSharesRequest_Filter) GetTerm ¶
func (m *ListOCMSharesRequest_Filter) GetTerm() isListOCMSharesRequest_Filter_Term
func (*ListOCMSharesRequest_Filter) GetType ¶
func (x *ListOCMSharesRequest_Filter) GetType() ListOCMSharesRequest_Filter_Type
func (*ListOCMSharesRequest_Filter) ProtoMessage ¶
func (*ListOCMSharesRequest_Filter) ProtoMessage()
func (*ListOCMSharesRequest_Filter) ProtoReflect ¶
func (x *ListOCMSharesRequest_Filter) ProtoReflect() protoreflect.Message
func (*ListOCMSharesRequest_Filter) Reset ¶
func (x *ListOCMSharesRequest_Filter) Reset()
func (*ListOCMSharesRequest_Filter) String ¶
func (x *ListOCMSharesRequest_Filter) String() string
type ListOCMSharesRequest_Filter_Creator ¶
type ListOCMSharesRequest_Filter_Creator struct {
}type ListOCMSharesRequest_Filter_Owner ¶
type ListOCMSharesRequest_Filter_Owner struct {
}type ListOCMSharesRequest_Filter_ResourceId ¶
type ListOCMSharesRequest_Filter_ResourceId struct {
}type ListOCMSharesRequest_Filter_Type ¶
type ListOCMSharesRequest_Filter_Type int32
REQUIRED. The filter to apply.
const ()
func (ListOCMSharesRequest_Filter_Type) Descriptor ¶
func (ListOCMSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor
func (ListOCMSharesRequest_Filter_Type) Enum ¶
func (x ListOCMSharesRequest_Filter_Type) Enum() *ListOCMSharesRequest_Filter_Type
func (ListOCMSharesRequest_Filter_Type) EnumDescriptor
deprecated
func (ListOCMSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListOCMSharesRequest_Filter_Type.Descriptor instead.
func (ListOCMSharesRequest_Filter_Type) Number ¶
func (x ListOCMSharesRequest_Filter_Type) Number() protoreflect.EnumNumber
func (ListOCMSharesRequest_Filter_Type) String ¶
func (x ListOCMSharesRequest_Filter_Type) String() string
func (ListOCMSharesRequest_Filter_Type) Type ¶
func (ListOCMSharesRequest_Filter_Type) Type() protoreflect.EnumType
type ListOCMSharesResponse ¶
type ListOCMSharesResponse struct { // The response status. Status *v1beta13.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. Shares []*Share `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` // contains filtered or unexported fields }
func (*ListOCMSharesResponse) Descriptor
deprecated
func (*ListOCMSharesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOCMSharesResponse.ProtoReflect.Descriptor instead.
func (*ListOCMSharesResponse) GetOpaque ¶
func (x *ListOCMSharesResponse) GetOpaque() *v1beta1.Opaque
func (*ListOCMSharesResponse) GetShares ¶
func (x *ListOCMSharesResponse) GetShares() []*Share
func (*ListOCMSharesResponse) GetStatus ¶
func (x *ListOCMSharesResponse) GetStatus() *v1beta13.Status
func (*ListOCMSharesResponse) ProtoMessage ¶
func (*ListOCMSharesResponse) ProtoMessage()
func (*ListOCMSharesResponse) ProtoReflect ¶
func (x *ListOCMSharesResponse) ProtoReflect() protoreflect.Message
func (*ListOCMSharesResponse) Reset ¶
func (x *ListOCMSharesResponse) Reset()
func (*ListOCMSharesResponse) String ¶
func (x *ListOCMSharesResponse) String() string
type ListReceivedOCMSharesRequest ¶
type ListReceivedOCMSharesRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // contains filtered or unexported fields }
func (*ListReceivedOCMSharesRequest) Descriptor
deprecated
func (*ListReceivedOCMSharesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReceivedOCMSharesRequest.ProtoReflect.Descriptor instead.
func (*ListReceivedOCMSharesRequest) GetOpaque ¶
func (x *ListReceivedOCMSharesRequest) GetOpaque() *v1beta1.Opaque
func (*ListReceivedOCMSharesRequest) ProtoMessage ¶
func (*ListReceivedOCMSharesRequest) ProtoMessage()
func (*ListReceivedOCMSharesRequest) ProtoReflect ¶
func (x *ListReceivedOCMSharesRequest) ProtoReflect() protoreflect.Message
func (*ListReceivedOCMSharesRequest) Reset ¶
func (x *ListReceivedOCMSharesRequest) Reset()
func (*ListReceivedOCMSharesRequest) String ¶
func (x *ListReceivedOCMSharesRequest) String() string
type ListReceivedOCMSharesResponse ¶
type ListReceivedOCMSharesResponse struct { // The response status. Status *v1beta13.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 received shares. Shares []*ReceivedShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` // contains filtered or unexported fields }
func (*ListReceivedOCMSharesResponse) Descriptor
deprecated
func (*ListReceivedOCMSharesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListReceivedOCMSharesResponse.ProtoReflect.Descriptor instead.
func (*ListReceivedOCMSharesResponse) GetOpaque ¶
func (x *ListReceivedOCMSharesResponse) GetOpaque() *v1beta1.Opaque
func (*ListReceivedOCMSharesResponse) GetShares ¶
func (x *ListReceivedOCMSharesResponse) GetShares() []*ReceivedShare
func (*ListReceivedOCMSharesResponse) GetStatus ¶
func (x *ListReceivedOCMSharesResponse) GetStatus() *v1beta13.Status
func (*ListReceivedOCMSharesResponse) ProtoMessage ¶
func (*ListReceivedOCMSharesResponse) ProtoMessage()
func (*ListReceivedOCMSharesResponse) ProtoReflect ¶
func (x *ListReceivedOCMSharesResponse) ProtoReflect() protoreflect.Message
func (*ListReceivedOCMSharesResponse) Reset ¶
func (x *ListReceivedOCMSharesResponse) Reset()
func (*ListReceivedOCMSharesResponse) String ¶
func (x *ListReceivedOCMSharesResponse) String() string
type OcmAPIClient ¶
type OcmAPIClient 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. CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error) // both as owner and creator. If a filter is specified, only // shares satisfying the filter MUST be returned. ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error) // MUST return CODE_NOT_FOUND if the received share reference does not exist. GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error) }
OcmAPIClient is the client API for OcmAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOcmAPIClient ¶
func NewOcmAPIClient(cc grpc.ClientConnInterface) OcmAPIClient
type OcmAPIHandler ¶
type OcmAPIHandler 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. CreateOCMShare(context.Context, *CreateOCMShareRequest, *CreateOCMShareResponse) error // MUST return CODE_NOT_FOUND if the share reference does not exist. RemoveOCMShare(context.Context, *RemoveOCMShareRequest, *RemoveOCMShareResponse) error // MUST return CODE_NOT_FOUND if the share reference does not exist. GetOCMShare(context.Context, *GetOCMShareRequest, *GetOCMShareResponse) error // both as owner and creator. If a filter is specified, only // shares satisfying the filter MUST be returned. ListOCMShares(context.Context, *ListOCMSharesRequest, *ListOCMSharesResponse) error // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdateOCMShare(context.Context, *UpdateOCMShareRequest, *UpdateOCMShareResponse) error ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest, *ListReceivedOCMSharesResponse) error // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest, *UpdateReceivedOCMShareResponse) error // MUST return CODE_NOT_FOUND if the received share reference does not exist. GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest, *GetReceivedOCMShareResponse) error }
type OcmAPIServer ¶
type OcmAPIServer 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. CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error) // both as owner and creator. If a filter is specified, only // shares satisfying the filter MUST be returned. ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error) ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error) // MUST return CODE_NOT_FOUND if the received share reference does not exist. GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error) }
OcmAPIServer is the server API for OcmAPI service.
type OcmAPIService ¶
type OcmAPIService 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. CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...client.CallOption) (*CreateOCMShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...client.CallOption) (*RemoveOCMShareResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...client.CallOption) (*GetOCMShareResponse, error) // both as owner and creator. If a filter is specified, only // shares satisfying the filter MUST be returned. ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...client.CallOption) (*ListOCMSharesResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...client.CallOption) (*UpdateOCMShareResponse, error) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...client.CallOption) (*ListReceivedOCMSharesResponse, error) // MUST return CODE_NOT_FOUND if the share reference does not exist. UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*UpdateReceivedOCMShareResponse, error) // MUST return CODE_NOT_FOUND if the received share reference does not exist. GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...client.CallOption) (*GetReceivedOCMShareResponse, error) }
func NewOcmAPIService ¶
func NewOcmAPIService(name string, c client.Client) OcmAPIService
type ReceivedShare ¶
type ReceivedShare struct { Share `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"` // The state of the share. State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.ocm.v1beta1.ShareState" json:"state,omitempty"` // contains filtered or unexported fields }Share *
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 path in case the share will be mounted in a path in a storage provider.
func (*ReceivedShare) Descriptor
deprecated
func (*ReceivedShare) Descriptor() ([]byte, []int)
Deprecated: Use ReceivedShare.ProtoReflect.Descriptor instead.
func (*ReceivedShare) GetShare ¶
func (x *ReceivedShare) GetShare() *Share
func (*ReceivedShare) GetState ¶
func (x *ReceivedShare) GetState() ShareState
func (*ReceivedShare) ProtoMessage ¶
func (*ReceivedShare) ProtoMessage()
func (*ReceivedShare) ProtoReflect ¶
func (x *ReceivedShare) ProtoReflect() protoreflect.Message
func (*ReceivedShare) Reset ¶
func (x *ReceivedShare) Reset()
func (*ReceivedShare) String ¶
func (x *ReceivedShare) String() string
type RemoveOCMShareRequest ¶
type RemoveOCMShareRequest 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 *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // contains filtered or unexported fields }
func (*RemoveOCMShareRequest) Descriptor
deprecated
func (*RemoveOCMShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveOCMShareRequest.ProtoReflect.Descriptor instead.
func (*RemoveOCMShareRequest) GetOpaque ¶
func (x *RemoveOCMShareRequest) GetOpaque() *v1beta1.Opaque
func (*RemoveOCMShareRequest) GetRef ¶
func (x *RemoveOCMShareRequest) GetRef() *ShareReference
func (*RemoveOCMShareRequest) ProtoMessage ¶
func (*RemoveOCMShareRequest) ProtoMessage()
func (*RemoveOCMShareRequest) ProtoReflect ¶
func (x *RemoveOCMShareRequest) ProtoReflect() protoreflect.Message
func (*RemoveOCMShareRequest) Reset ¶
func (x *RemoveOCMShareRequest) Reset()
func (*RemoveOCMShareRequest) String ¶
func (x *RemoveOCMShareRequest) String() string
type RemoveOCMShareResponse ¶
type RemoveOCMShareResponse struct { // The response status. Status *v1beta13.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 (*RemoveOCMShareResponse) Descriptor
deprecated
func (*RemoveOCMShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveOCMShareResponse.ProtoReflect.Descriptor instead.
func (*RemoveOCMShareResponse) GetOpaque ¶
func (x *RemoveOCMShareResponse) GetOpaque() *v1beta1.Opaque
func (*RemoveOCMShareResponse) GetStatus ¶
func (x *RemoveOCMShareResponse) GetStatus() *v1beta13.Status
func (*RemoveOCMShareResponse) ProtoMessage ¶
func (*RemoveOCMShareResponse) ProtoMessage()
func (*RemoveOCMShareResponse) ProtoReflect ¶
func (x *RemoveOCMShareResponse) ProtoReflect() protoreflect.Message
func (*RemoveOCMShareResponse) Reset ¶
func (x *RemoveOCMShareResponse) Reset()
func (*RemoveOCMShareResponse) String ¶
func (x *RemoveOCMShareResponse) String() string
type Share ¶
type Share struct { // Opaque unique identifier of the share. Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier of the shared resource. ResourceId *v1beta1.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // Permissions for the grantee to use // the resource. Permissions *SharePermissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"` // The receiver of the share, like a user, group ... Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,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"` // contains filtered or unexported fields }
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.
func (*Share) Descriptor
deprecated
func (*Share) GetCreator ¶
func (*Share) GetGrantee ¶
func (*Share) GetPermissions ¶
func (x *Share) GetPermissions() *SharePermissions
func (*Share) GetResourceId ¶
func (x *Share) GetResourceId() *v1beta1.ResourceId
func (*Share) ProtoMessage ¶
func (*Share) ProtoMessage()
func (*Share) ProtoReflect ¶
func (x *Share) ProtoReflect() protoreflect.Message
type ShareGrant ¶
type ShareGrant struct { // The grantee of the grant. Grantee *v1beta1.Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` // The share permissions for the grant. Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
A share grant specifies the share permissions for a grantee.
func (*ShareGrant) Descriptor
deprecated
func (*ShareGrant) Descriptor() ([]byte, []int)
Deprecated: Use ShareGrant.ProtoReflect.Descriptor instead.
func (*ShareGrant) GetGrantee ¶
func (x *ShareGrant) GetGrantee() *v1beta1.Grantee
func (*ShareGrant) GetPermissions ¶
func (x *ShareGrant) GetPermissions() *SharePermissions
func (*ShareGrant) ProtoMessage ¶
func (*ShareGrant) ProtoMessage()
func (*ShareGrant) ProtoReflect ¶
func (x *ShareGrant) ProtoReflect() protoreflect.Message
func (*ShareGrant) Reset ¶
func (x *ShareGrant) Reset()
func (*ShareGrant) String ¶
func (x *ShareGrant) String() string
type ShareId ¶
type ShareId 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 (*ShareId) Descriptor
deprecated
func (*ShareId) GetOpaqueId ¶
func (*ShareId) ProtoMessage ¶
func (*ShareId) ProtoMessage()
func (*ShareId) ProtoReflect ¶
func (x *ShareId) ProtoReflect() protoreflect.Message
type ShareKey ¶
type ShareKey struct { v1beta11.UserId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` // contains filtered or unexported fields }Owner *
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")
func (*ShareKey) Descriptor
deprecated
func (*ShareKey) GetGrantee ¶
func (*ShareKey) GetResourceId ¶
func (x *ShareKey) GetResourceId() *v1beta1.ResourceId
func (*ShareKey) ProtoMessage ¶
func (*ShareKey) ProtoMessage()
func (*ShareKey) ProtoReflect ¶
func (x *ShareKey) ProtoReflect() protoreflect.Message
type SharePermissions ¶
type SharePermissions struct { // contains filtered or unexported fields }
The permissions for a share.
func (*SharePermissions) Descriptor
deprecated
func (*SharePermissions) Descriptor() ([]byte, []int)
Deprecated: Use SharePermissions.ProtoReflect.Descriptor instead.
func (*SharePermissions) GetPermissions ¶
func (x *SharePermissions) GetPermissions() *v1beta1.ResourcePermissions
func (*SharePermissions) GetReshare ¶
func (x *SharePermissions) GetReshare() bool
func (*SharePermissions) ProtoMessage ¶
func (*SharePermissions) ProtoMessage()
func (*SharePermissions) ProtoReflect ¶
func (x *SharePermissions) ProtoReflect() protoreflect.Message
func (*SharePermissions) Reset ¶
func (x *SharePermissions) Reset()
func (*SharePermissions) String ¶
func (x *SharePermissions) String() string
type ShareReference ¶
type ShareReference struct { // One of the specifications MUST be specified. // // Types that are assignable to Spec: // *ShareReference_Id // *ShareReference_Key Spec isShareReference_Spec `protobuf_oneof:"spec"` // contains filtered or unexported fields }
The mechanism to identify a share in the share provider namespace.
func (*ShareReference) Descriptor
deprecated
func (*ShareReference) Descriptor() ([]byte, []int)
Deprecated: Use ShareReference.ProtoReflect.Descriptor instead.
func (*ShareReference) GetId ¶
func (x *ShareReference) GetId() *ShareId
func (*ShareReference) GetKey ¶
func (x *ShareReference) GetKey() *ShareKey
func (*ShareReference) GetSpec ¶
func (m *ShareReference) GetSpec() isShareReference_Spec
func (*ShareReference) ProtoMessage ¶
func (*ShareReference) ProtoMessage()
func (*ShareReference) ProtoReflect ¶
func (x *ShareReference) ProtoReflect() protoreflect.Message
func (*ShareReference) Reset ¶
func (x *ShareReference) Reset()
func (*ShareReference) String ¶
func (x *ShareReference) String() string
type ShareReference_Id ¶
type ShareReference_Id struct { ShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"` }Id *
type ShareReference_Key ¶
type ShareReference_Key struct { // make the share unique. Key *ShareKey `protobuf:"bytes,2,opt,name=key,proto3,oneof"` }
type ShareState ¶
type ShareState int32
The state of the share.
const ( ShareState = 0 // This state means the share is pending to be accepted or rejected // by the recipient of the share. ShareState_SHARE_STATE_PENDING ShareState = 1 ShareState_SHARE_STATE_ACCEPTED ShareState = 2 // Do not means the share is removed, the recipient MAY // change the state to accepted or pending. ShareState_SHARE_STATE_REJECTED ShareState = 3 )ShareState_SHARE_STATE_INVALID
func (ShareState) Descriptor ¶
func (ShareState) Descriptor() protoreflect.EnumDescriptor
func (ShareState) Enum ¶
func (x ShareState) Enum() *ShareState
func (ShareState) EnumDescriptor
deprecated
func (ShareState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ShareState.Descriptor instead.
func (ShareState) Number ¶
func (x ShareState) Number() protoreflect.EnumNumber
func (ShareState) String ¶
func (x ShareState) String() string
func (ShareState) Type ¶
func (ShareState) Type() protoreflect.EnumType
type UnimplementedOcmAPIServer ¶
type UnimplementedOcmAPIServer struct { }
UnimplementedOcmAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedOcmAPIServer) CreateOCMShare ¶
func (*UnimplementedOcmAPIServer) CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error)
func (*UnimplementedOcmAPIServer) GetOCMShare ¶
func (*UnimplementedOcmAPIServer) GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error)
func (*UnimplementedOcmAPIServer) GetReceivedOCMShare ¶
func (*UnimplementedOcmAPIServer) GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error)
func (*UnimplementedOcmAPIServer) ListOCMShares ¶
func (*UnimplementedOcmAPIServer) ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error)
func (*UnimplementedOcmAPIServer) ListReceivedOCMShares ¶
func (*UnimplementedOcmAPIServer) ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error)
func (*UnimplementedOcmAPIServer) RemoveOCMShare ¶
func (*UnimplementedOcmAPIServer) RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error)
func (*UnimplementedOcmAPIServer) UpdateOCMShare ¶
func (*UnimplementedOcmAPIServer) UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error)
func (*UnimplementedOcmAPIServer) UpdateReceivedOCMShare ¶
func (*UnimplementedOcmAPIServer) UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error)
type UpdateOCMShareRequest ¶
type UpdateOCMShareRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. // REQUIRED. // contains filtered or unexported fields }
func (*UpdateOCMShareRequest) Descriptor
deprecated
func (*UpdateOCMShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOCMShareRequest.ProtoReflect.Descriptor instead.
func (*UpdateOCMShareRequest) GetField ¶
func (x *UpdateOCMShareRequest) GetField() *UpdateOCMShareRequest_UpdateField
func (*UpdateOCMShareRequest) GetOpaque ¶
func (x *UpdateOCMShareRequest) GetOpaque() *v1beta1.Opaque
func (*UpdateOCMShareRequest) GetRef ¶
func (x *UpdateOCMShareRequest) GetRef() *ShareReference
func (*UpdateOCMShareRequest) ProtoMessage ¶
func (*UpdateOCMShareRequest) ProtoMessage()
func (*UpdateOCMShareRequest) ProtoReflect ¶
func (x *UpdateOCMShareRequest) ProtoReflect() protoreflect.Message
func (*UpdateOCMShareRequest) Reset ¶
func (x *UpdateOCMShareRequest) Reset()
func (*UpdateOCMShareRequest) String ¶
func (x *UpdateOCMShareRequest) String() string
type UpdateOCMShareRequest_UpdateField ¶
type UpdateOCMShareRequest_UpdateField struct { // // Types that are assignable to Field: // *UpdateOCMShareRequest_UpdateField_Permissions // *UpdateOCMShareRequest_UpdateField_DisplayName Field isUpdateOCMShareRequest_UpdateField_Field `protobuf_oneof:"field"` // contains filtered or unexported fields }
REQUIRED.
func (*UpdateOCMShareRequest_UpdateField) Descriptor
deprecated
func (*UpdateOCMShareRequest_UpdateField) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOCMShareRequest_UpdateField.ProtoReflect.Descriptor instead.
func (*UpdateOCMShareRequest_UpdateField) GetDisplayName ¶
func (x *UpdateOCMShareRequest_UpdateField) GetDisplayName() string
func (*UpdateOCMShareRequest_UpdateField) GetField ¶
func (m *UpdateOCMShareRequest_UpdateField) GetField() isUpdateOCMShareRequest_UpdateField_Field
func (*UpdateOCMShareRequest_UpdateField) GetPermissions ¶
func (x *UpdateOCMShareRequest_UpdateField) GetPermissions() *SharePermissions
func (*UpdateOCMShareRequest_UpdateField) ProtoMessage ¶
func (*UpdateOCMShareRequest_UpdateField) ProtoMessage()
func (*UpdateOCMShareRequest_UpdateField) ProtoReflect ¶
func (x *UpdateOCMShareRequest_UpdateField) ProtoReflect() protoreflect.Message
func (*UpdateOCMShareRequest_UpdateField) Reset ¶
func (x *UpdateOCMShareRequest_UpdateField) Reset()
func (*UpdateOCMShareRequest_UpdateField) String ¶
func (x *UpdateOCMShareRequest_UpdateField) String() string
type UpdateOCMShareRequest_UpdateField_DisplayName ¶
type UpdateOCMShareRequest_UpdateField_DisplayName struct { string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3,oneof"` }DisplayName
type UpdateOCMShareRequest_UpdateField_Permissions ¶
type UpdateOCMShareRequest_UpdateField_Permissions struct { SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3,oneof"` }Permissions *
type UpdateOCMShareResponse ¶
type UpdateOCMShareResponse struct { // The response status. Status *v1beta13.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 (*UpdateOCMShareResponse) Descriptor
deprecated
func (*UpdateOCMShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOCMShareResponse.ProtoReflect.Descriptor instead.
func (*UpdateOCMShareResponse) GetOpaque ¶
func (x *UpdateOCMShareResponse) GetOpaque() *v1beta1.Opaque
func (*UpdateOCMShareResponse) GetStatus ¶
func (x *UpdateOCMShareResponse) GetStatus() *v1beta13.Status
func (*UpdateOCMShareResponse) ProtoMessage ¶
func (*UpdateOCMShareResponse) ProtoMessage()
func (*UpdateOCMShareResponse) ProtoReflect ¶
func (x *UpdateOCMShareResponse) ProtoReflect() protoreflect.Message
func (*UpdateOCMShareResponse) Reset ¶
func (x *UpdateOCMShareResponse) Reset()
func (*UpdateOCMShareResponse) String ¶
func (x *UpdateOCMShareResponse) String() string
type UpdateReceivedOCMShareRequest ¶
type UpdateReceivedOCMShareRequest struct { // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. // contains filtered or unexported fields }
TODO(labkode): clean up display_name ? we'll use storage links for that.
func (*UpdateReceivedOCMShareRequest) Descriptor
deprecated
func (*UpdateReceivedOCMShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReceivedOCMShareRequest.ProtoReflect.Descriptor instead.
func (*UpdateReceivedOCMShareRequest) GetField ¶
func (x *UpdateReceivedOCMShareRequest) GetField() *UpdateReceivedOCMShareRequest_UpdateField
func (*UpdateReceivedOCMShareRequest) GetOpaque ¶
func (x *UpdateReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque
func (*UpdateReceivedOCMShareRequest) GetRef ¶
func (x *UpdateReceivedOCMShareRequest) GetRef() *ShareReference
func (*UpdateReceivedOCMShareRequest) ProtoMessage ¶
func (*UpdateReceivedOCMShareRequest) ProtoMessage()
func (*UpdateReceivedOCMShareRequest) ProtoReflect ¶
func (x *UpdateReceivedOCMShareRequest) ProtoReflect() protoreflect.Message
func (*UpdateReceivedOCMShareRequest) Reset ¶
func (x *UpdateReceivedOCMShareRequest) Reset()
func (*UpdateReceivedOCMShareRequest) String ¶
func (x *UpdateReceivedOCMShareRequest) String() string
type UpdateReceivedOCMShareRequest_UpdateField ¶
type UpdateReceivedOCMShareRequest_UpdateField struct { // // Types that are assignable to Field: // *UpdateReceivedOCMShareRequest_UpdateField_DisplayName // *UpdateReceivedOCMShareRequest_UpdateField_State Field isUpdateReceivedOCMShareRequest_UpdateField_Field `protobuf_oneof:"field"` // contains filtered or unexported fields }
REQUIRED.
func (*UpdateReceivedOCMShareRequest_UpdateField) Descriptor
deprecated
func (*UpdateReceivedOCMShareRequest_UpdateField) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReceivedOCMShareRequest_UpdateField.ProtoReflect.Descriptor instead.
func (*UpdateReceivedOCMShareRequest_UpdateField) GetDisplayName ¶
func (x *UpdateReceivedOCMShareRequest_UpdateField) GetDisplayName() string
func (*UpdateReceivedOCMShareRequest_UpdateField) GetField ¶
func (m *UpdateReceivedOCMShareRequest_UpdateField) GetField() isUpdateReceivedOCMShareRequest_UpdateField_Field
func (*UpdateReceivedOCMShareRequest_UpdateField) GetState ¶
func (x *UpdateReceivedOCMShareRequest_UpdateField) GetState() ShareState
func (*UpdateReceivedOCMShareRequest_UpdateField) ProtoMessage ¶
func (*UpdateReceivedOCMShareRequest_UpdateField) ProtoMessage()
func (*UpdateReceivedOCMShareRequest_UpdateField) ProtoReflect ¶
func (x *UpdateReceivedOCMShareRequest_UpdateField) ProtoReflect() protoreflect.Message
func (*UpdateReceivedOCMShareRequest_UpdateField) Reset ¶
func (x *UpdateReceivedOCMShareRequest_UpdateField) Reset()
func (*UpdateReceivedOCMShareRequest_UpdateField) String ¶
func (x *UpdateReceivedOCMShareRequest_UpdateField) String() string
type UpdateReceivedOCMShareRequest_UpdateField_DisplayName ¶
type UpdateReceivedOCMShareRequest_UpdateField_DisplayName struct { string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3,oneof"` }DisplayName
type UpdateReceivedOCMShareRequest_UpdateField_State ¶
type UpdateReceivedOCMShareRequest_UpdateField_State struct { ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.ocm.v1beta1.ShareState,oneof"` }State
type UpdateReceivedOCMShareResponse ¶
type UpdateReceivedOCMShareResponse struct { // The response status. Status *v1beta13.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 (*UpdateReceivedOCMShareResponse) Descriptor
deprecated
func (*UpdateReceivedOCMShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReceivedOCMShareResponse.ProtoReflect.Descriptor instead.
func (*UpdateReceivedOCMShareResponse) GetOpaque ¶
func (x *UpdateReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque
func (*UpdateReceivedOCMShareResponse) GetStatus ¶
func (x *UpdateReceivedOCMShareResponse) GetStatus() *v1beta13.Status
func (*UpdateReceivedOCMShareResponse) ProtoMessage ¶
func (*UpdateReceivedOCMShareResponse) ProtoMessage()
func (*UpdateReceivedOCMShareResponse) ProtoReflect ¶
func (x *UpdateReceivedOCMShareResponse) ProtoReflect() protoreflect.Message
func (*UpdateReceivedOCMShareResponse) Reset ¶
func (x *UpdateReceivedOCMShareResponse) Reset()
func (*UpdateReceivedOCMShareResponse) String ¶
func (x *UpdateReceivedOCMShareResponse) String() string