ocmv1beta1

package
v0.0.0-...-6b5d9df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ListOCMSharesRequest_Filter_Type_name = map[int32]string{
		0: "TYPE_INVALID",
		1: "TYPE_NO",
		2: "TYPE_RESOURCE_ID",
		3: "TYPE_OWNER",
		4: "TYPE_CREATOR",
		5: "TYPE_OWNER_PROVIDER",
		6: "TYPE_CREATOR_PROVIDER",
	}
	ListOCMSharesRequest_Filter_Type_value = map[string]int32{
		"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.

View Source
var (
	ShareState_name = map[int32]string{
		0: "SHARE_STATE_INVALID",
		1: "SHARE_STATE_PENDING",
		2: "SHARE_STATE_ACCEPTED",
		3: "SHARE_STATE_REJECTED",
	}
	ShareState_value = map[string]int32{
		"SHARE_STATE_INVALID":  0,
		"SHARE_STATE_PENDING":  1,
		"SHARE_STATE_ACCEPTED": 2,
		"SHARE_STATE_REJECTED": 3,
	}
)

Enum value maps for ShareState.

View Source
var File_cs3_sharing_ocm_v1beta1_ocm_api_proto protoreflect.FileDescriptor
View Source
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 {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// 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"`
	// REQUIRED.
	// The share grant for the share.
	Grant *ShareGrant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"`
	// REQUIRED.
	// 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 {

	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The 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 {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// 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 {

	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The share.
	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 {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// 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 (*GetReceivedOCMShareRequest) ProtoMessage

func (*GetReceivedOCMShareRequest) ProtoMessage()

func (*GetReceivedOCMShareRequest) ProtoReflect

func (*GetReceivedOCMShareRequest) Reset

func (x *GetReceivedOCMShareRequest) Reset()

func (*GetReceivedOCMShareRequest) String

func (x *GetReceivedOCMShareRequest) String() string

type GetReceivedOCMShareResponse

type GetReceivedOCMShareResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The share.
	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 (*GetReceivedOCMShareResponse) GetStatus

func (*GetReceivedOCMShareResponse) ProtoMessage

func (*GetReceivedOCMShareResponse) ProtoMessage()

func (*GetReceivedOCMShareResponse) ProtoReflect

func (*GetReceivedOCMShareResponse) Reset

func (x *GetReceivedOCMShareResponse) Reset()

func (*GetReceivedOCMShareResponse) String

func (x *GetReceivedOCMShareResponse) String() string

type ListOCMSharesRequest

type ListOCMSharesRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// OPTIONAL.
	// 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 (*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 {

	// REQUIRED.
	Type ListOCMSharesRequest_Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.ocm.v1beta1.ListOCMSharesRequest_Filter_Type" json:"type,omitempty"`
	// Types that are assignable to Term:
	//	*ListOCMSharesRequest_Filter_ResourceId
	//	*ListOCMSharesRequest_Filter_Owner
	//	*ListOCMSharesRequest_Filter_Creator
	Term isListOCMSharesRequest_Filter_Term `protobuf_oneof:"term"`
	// contains filtered or unexported fields
}

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 (*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 (*ListOCMSharesRequest_Filter) ProtoMessage

func (*ListOCMSharesRequest_Filter) ProtoMessage()

func (*ListOCMSharesRequest_Filter) ProtoReflect

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 {
	Creator *v1beta14.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"`
}

type ListOCMSharesRequest_Filter_Owner

type ListOCMSharesRequest_Filter_Owner struct {
	Owner *v1beta14.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"`
}

type ListOCMSharesRequest_Filter_ResourceId

type ListOCMSharesRequest_Filter_ResourceId struct {
	ResourceId *v1beta11.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"`
}

type ListOCMSharesRequest_Filter_Type

type ListOCMSharesRequest_Filter_Type int32

REQUIRED. The filter to apply.

const (
	ListOCMSharesRequest_Filter_TYPE_INVALID          ListOCMSharesRequest_Filter_Type = 0
	ListOCMSharesRequest_Filter_TYPE_NO               ListOCMSharesRequest_Filter_Type = 1
	ListOCMSharesRequest_Filter_TYPE_RESOURCE_ID      ListOCMSharesRequest_Filter_Type = 2
	ListOCMSharesRequest_Filter_TYPE_OWNER            ListOCMSharesRequest_Filter_Type = 3
	ListOCMSharesRequest_Filter_TYPE_CREATOR          ListOCMSharesRequest_Filter_Type = 4
	ListOCMSharesRequest_Filter_TYPE_OWNER_PROVIDER   ListOCMSharesRequest_Filter_Type = 5
	ListOCMSharesRequest_Filter_TYPE_CREATOR_PROVIDER ListOCMSharesRequest_Filter_Type = 6
)

func (ListOCMSharesRequest_Filter_Type) Descriptor

func (ListOCMSharesRequest_Filter_Type) Enum

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 (ListOCMSharesRequest_Filter_Type) String

func (ListOCMSharesRequest_Filter_Type) Type

type ListOCMSharesResponse

type ListOCMSharesResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The list of 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 {

	// OPTIONAL.
	// 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 (*ListReceivedOCMSharesRequest) ProtoMessage

func (*ListReceivedOCMSharesRequest) ProtoMessage()

func (*ListReceivedOCMSharesRequest) ProtoReflect

func (*ListReceivedOCMSharesRequest) Reset

func (x *ListReceivedOCMSharesRequest) Reset()

func (*ListReceivedOCMSharesRequest) String

type ListReceivedOCMSharesResponse

type ListReceivedOCMSharesResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The list of 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 (*ListReceivedOCMSharesResponse) GetShares

func (x *ListReceivedOCMSharesResponse) GetShares() []*ReceivedShare

func (*ListReceivedOCMSharesResponse) GetStatus

func (*ListReceivedOCMSharesResponse) ProtoMessage

func (*ListReceivedOCMSharesResponse) ProtoMessage()

func (*ListReceivedOCMSharesResponse) ProtoReflect

func (*ListReceivedOCMSharesResponse) Reset

func (x *ListReceivedOCMSharesResponse) Reset()

func (*ListReceivedOCMSharesResponse) String

type OcmAPIClient

type OcmAPIClient interface {
	// Creates a new ocm share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error)
	// List the shares the authenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error)
	// List all shares the authenticated principal has received.
	ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error)
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error)
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error)
}

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 {
	// Creates a new ocm share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreateOCMShare(context.Context, *CreateOCMShareRequest, *CreateOCMShareResponse) error
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveOCMShare(context.Context, *RemoveOCMShareRequest, *RemoveOCMShareResponse) error
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetOCMShare(context.Context, *GetOCMShareRequest, *GetOCMShareResponse) error
	// List the shares the authenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListOCMShares(context.Context, *ListOCMSharesRequest, *ListOCMSharesResponse) error
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateOCMShare(context.Context, *UpdateOCMShareRequest, *UpdateOCMShareResponse) error
	// List all shares the authenticated principal has received.
	ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest, *ListReceivedOCMSharesResponse) error
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest, *UpdateReceivedOCMShareResponse) error
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest, *GetReceivedOCMShareResponse) error
}

type OcmAPIServer

type OcmAPIServer interface {
	// Creates a new ocm share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error)
	// List the shares the authenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error)
	// List all shares the authenticated principal has received.
	ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error)
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error)
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error)
}

OcmAPIServer is the server API for OcmAPI service.

type OcmAPIService

type OcmAPIService interface {
	// Creates a new ocm share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...client.CallOption) (*CreateOCMShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...client.CallOption) (*RemoveOCMShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...client.CallOption) (*GetOCMShareResponse, error)
	// List the shares the authenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...client.CallOption) (*ListOCMSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...client.CallOption) (*UpdateOCMShareResponse, error)
	// List all shares the authenticated principal has received.
	ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...client.CallOption) (*ListReceivedOCMSharesResponse, error)
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*UpdateReceivedOCMShareResponse, error)
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...client.CallOption) (*GetReceivedOCMShareResponse, error)
}

func NewOcmAPIService

func NewOcmAPIService(name string, c client.Client) OcmAPIService

type ReceivedShare

type ReceivedShare struct {

	// REQUIRED.
	Share *Share `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	// REQUIRED.
	// The state of the share.
	State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.ocm.v1beta1.ShareState" json:"state,omitempty"`
	// contains filtered or unexported fields
}

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 {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// 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 (*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 {

	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// 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 {

	// REQUIRED.
	// Opaque unique identifier of the share.
	Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// REQUIRED.
	// Unique identifier of the shared resource.
	ResourceId *v1beta1.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// REQUIRED.
	// Permissions for the grantee to use
	// the resource.
	Permissions *SharePermissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"`
	// REQUIRED.
	// The receiver of the share, like a user, group ...
	Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// REQUIRED.
	// Uniquely identifies the owner of the share
	// (the resource owner at the time of creating the share).
	// In case the ownership of the underlying resource changes
	// the share owner field MAY change to reflect the change of ownsership.
	Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	// REQUIRED.
	// Uniquely identifies a principal who initiates the share creation.
	// A creator can create shares on behalf of the owner (because of re-sharing,
	// because belonging to special groups, ...).
	// Creator and owner often result in being the same principal.
	Creator *v1beta11.UserId `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"`
	// REQUIRED.
	// Creation time of the share.
	Ctime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"`
	// REQUIRED.
	// Last modification time of the share.
	Mtime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"`
	// 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) Descriptor() ([]byte, []int)

Deprecated: Use Share.ProtoReflect.Descriptor instead.

func (*Share) GetCreator

func (x *Share) GetCreator() *v1beta11.UserId

func (*Share) GetCtime

func (x *Share) GetCtime() *v1beta12.Timestamp

func (*Share) GetGrantee

func (x *Share) GetGrantee() *v1beta1.Grantee

func (*Share) GetId

func (x *Share) GetId() *ShareId

func (*Share) GetMtime

func (x *Share) GetMtime() *v1beta12.Timestamp

func (*Share) GetOwner

func (x *Share) GetOwner() *v1beta11.UserId

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

func (*Share) Reset

func (x *Share) Reset()

func (*Share) String

func (x *Share) String() string

type ShareGrant

type ShareGrant struct {

	// REQUIRED.
	// The grantee of the grant.
	Grantee *v1beta1.Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// REQUIRED.
	// The share permissions for the grant.
	Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"`
	// 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 {

	// REQUIRED.
	// The internal id used by service implementor to
	// uniquely identity the share in the internal
	// implementation of the service.
	OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"`
	// 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) Descriptor() ([]byte, []int)

Deprecated: Use ShareId.ProtoReflect.Descriptor instead.

func (*ShareId) GetOpaqueId

func (x *ShareId) GetOpaqueId() string

func (*ShareId) ProtoMessage

func (*ShareId) ProtoMessage()

func (*ShareId) ProtoReflect

func (x *ShareId) ProtoReflect() protoreflect.Message

func (*ShareId) Reset

func (x *ShareId) Reset()

func (*ShareId) String

func (x *ShareId) String() string

type ShareKey

type ShareKey struct {

	// REQUIRED.
	Owner *v1beta11.UserId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// REQUIRED.
	ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// REQUIRED.
	Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// contains filtered or unexported fields
}

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) Descriptor() ([]byte, []int)

Deprecated: Use ShareKey.ProtoReflect.Descriptor instead.

func (*ShareKey) GetGrantee

func (x *ShareKey) GetGrantee() *v1beta1.Grantee

func (*ShareKey) GetOwner

func (x *ShareKey) GetOwner() *v1beta11.UserId

func (*ShareKey) GetResourceId

func (x *ShareKey) GetResourceId() *v1beta1.ResourceId

func (*ShareKey) ProtoMessage

func (*ShareKey) ProtoMessage()

func (*ShareKey) ProtoReflect

func (x *ShareKey) ProtoReflect() protoreflect.Message

func (*ShareKey) Reset

func (x *ShareKey) Reset()

func (*ShareKey) String

func (x *ShareKey) String() string

type SharePermissions

type SharePermissions struct {
	Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"`
	Reshare     bool                         `protobuf:"varint,2,opt,name=reshare,proto3" json:"reshare,omitempty"`
	// 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 {

	// REQUIRED.
	// 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 {
	// The id of the share.
	Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}

type ShareReference_Key

type ShareReference_Key struct {
	// The combination of fields that
	// 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 (
	// The share is no longer valid, for example, the share expired.
	ShareState_SHARE_STATE_INVALID ShareState = 0
	// New shares MUST be created in the SHARE_STATE_PENDING state.
	// This state means the share is pending to be accepted or rejected
	// by the recipient of the share.
	ShareState_SHARE_STATE_PENDING ShareState = 1
	// The recipient of the share has accepted the share.
	ShareState_SHARE_STATE_ACCEPTED ShareState = 2
	// The recipient of the share has rejected the share.
	// Do not means the share is removed, the recipient MAY
	// change the state to accepted or pending.
	ShareState_SHARE_STATE_REJECTED ShareState = 3
)

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

type UnimplementedOcmAPIServer

type UnimplementedOcmAPIServer struct {
}

UnimplementedOcmAPIServer can be embedded to have forward compatible implementations.

func (*UnimplementedOcmAPIServer) CreateOCMShare

func (*UnimplementedOcmAPIServer) GetOCMShare

func (*UnimplementedOcmAPIServer) ListOCMShares

func (*UnimplementedOcmAPIServer) RemoveOCMShare

func (*UnimplementedOcmAPIServer) UpdateOCMShare

type UpdateOCMShareRequest

type UpdateOCMShareRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED.
	// REQUIRED.
	Ref   *ShareReference                    `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	Field *UpdateOCMShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOCMShareRequest) Descriptor deprecated

func (*UpdateOCMShareRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateOCMShareRequest.ProtoReflect.Descriptor instead.

func (*UpdateOCMShareRequest) GetField

func (*UpdateOCMShareRequest) GetOpaque

func (x *UpdateOCMShareRequest) GetOpaque() *v1beta1.Opaque

func (*UpdateOCMShareRequest) GetRef

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 {

	// One of the update fields MUST be specified.
	//
	// 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 (*UpdateOCMShareRequest_UpdateField) ProtoMessage

func (*UpdateOCMShareRequest_UpdateField) ProtoMessage()

func (*UpdateOCMShareRequest_UpdateField) ProtoReflect

func (*UpdateOCMShareRequest_UpdateField) Reset

func (*UpdateOCMShareRequest_UpdateField) String

type UpdateOCMShareRequest_UpdateField_DisplayName

type UpdateOCMShareRequest_UpdateField_DisplayName struct {
	// Update the display name.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3,oneof"`
}

type UpdateOCMShareRequest_UpdateField_Permissions

type UpdateOCMShareRequest_UpdateField_Permissions struct {
	// Update the permissions.
	Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3,oneof"`
}

type UpdateOCMShareResponse

type UpdateOCMShareResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// 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 {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	Ref   *ShareReference                            `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	Field *UpdateReceivedOCMShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
	// 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 (*UpdateReceivedOCMShareRequest) GetOpaque

func (*UpdateReceivedOCMShareRequest) GetRef

func (*UpdateReceivedOCMShareRequest) ProtoMessage

func (*UpdateReceivedOCMShareRequest) ProtoMessage()

func (*UpdateReceivedOCMShareRequest) ProtoReflect

func (*UpdateReceivedOCMShareRequest) Reset

func (x *UpdateReceivedOCMShareRequest) Reset()

func (*UpdateReceivedOCMShareRequest) String

type UpdateReceivedOCMShareRequest_UpdateField

type UpdateReceivedOCMShareRequest_UpdateField struct {

	// One of the update fields MUST be specified.
	//
	// 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 (*UpdateReceivedOCMShareRequest_UpdateField) GetField

func (m *UpdateReceivedOCMShareRequest_UpdateField) GetField() isUpdateReceivedOCMShareRequest_UpdateField_Field

func (*UpdateReceivedOCMShareRequest_UpdateField) GetState

func (*UpdateReceivedOCMShareRequest_UpdateField) ProtoMessage

func (*UpdateReceivedOCMShareRequest_UpdateField) ProtoReflect

func (*UpdateReceivedOCMShareRequest_UpdateField) Reset

func (*UpdateReceivedOCMShareRequest_UpdateField) String

type UpdateReceivedOCMShareRequest_UpdateField_DisplayName

type UpdateReceivedOCMShareRequest_UpdateField_DisplayName struct {
	// Update the display name.
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3,oneof"`
}

type UpdateReceivedOCMShareRequest_UpdateField_State

type UpdateReceivedOCMShareRequest_UpdateField_State struct {
	// Update the share state
	State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.ocm.v1beta1.ShareState,oneof"`
}

type UpdateReceivedOCMShareResponse

type UpdateReceivedOCMShareResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReceivedOCMShareResponse) Descriptor deprecated

func (*UpdateReceivedOCMShareResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateReceivedOCMShareResponse.ProtoReflect.Descriptor instead.

func (*UpdateReceivedOCMShareResponse) GetOpaque

func (*UpdateReceivedOCMShareResponse) GetStatus

func (*UpdateReceivedOCMShareResponse) ProtoMessage

func (*UpdateReceivedOCMShareResponse) ProtoMessage()

func (*UpdateReceivedOCMShareResponse) ProtoReflect

func (*UpdateReceivedOCMShareResponse) Reset

func (x *UpdateReceivedOCMShareResponse) Reset()

func (*UpdateReceivedOCMShareResponse) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL