gatewayv1beta1

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: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_cs3_gateway_v1beta1_gateway_api_proto protoreflect.FileDescriptor

Functions

func RegisterGatewayAPIHandler

func RegisterGatewayAPIHandler(s server.Server, hdlr GatewayAPIHandler, opts ...server.HandlerOption) error

func RegisterGatewayAPIServer

func RegisterGatewayAPIServer(s *grpc.Server, srv GatewayAPIServer)

Types

type AuthenticateRequest

type AuthenticateRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The type of authentication to use.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// OPTIONAL.
	// The id of the client.
	// For basic authentication with username and password
	// both client_id and client_secret are expected to be filled.
	// However, for example, for OIDC only a token is necessary.
	ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// OPTIONAL.
	// The secret of the client.
	ClientSecret string `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateRequest) Descriptor deprecated

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

Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.

func (*AuthenticateRequest) GetClientId

func (x *AuthenticateRequest) GetClientId() string

func (*AuthenticateRequest) GetClientSecret

func (x *AuthenticateRequest) GetClientSecret() string

func (*AuthenticateRequest) GetOpaque

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

func (*AuthenticateRequest) GetType

func (x *AuthenticateRequest) GetType() string

func (*AuthenticateRequest) ProtoMessage

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) ProtoReflect

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

func (*AuthenticateRequest) Reset

func (x *AuthenticateRequest) Reset()

func (*AuthenticateRequest) String

func (x *AuthenticateRequest) String() string

type AuthenticateResponse

type AuthenticateResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The access token.
	Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// REQUIRED.
	// The user.
	User *v1beta12.User `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateResponse) Descriptor deprecated

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

Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.

func (*AuthenticateResponse) GetOpaque

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

func (*AuthenticateResponse) GetStatus

func (x *AuthenticateResponse) GetStatus() *v1beta11.Status

func (*AuthenticateResponse) GetToken

func (x *AuthenticateResponse) GetToken() string

func (*AuthenticateResponse) GetUser

func (x *AuthenticateResponse) GetUser() *v1beta12.User

func (*AuthenticateResponse) ProtoMessage

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) ProtoReflect

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

func (*AuthenticateResponse) Reset

func (x *AuthenticateResponse) Reset()

func (*AuthenticateResponse) String

func (x *AuthenticateResponse) String() string

type GatewayAPIClient

type GatewayAPIClient interface {
	// Authenticates a user.
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
	// WhoAmI returns the information for a user.
	WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error)
	// Creates a new resource of type container.
	// MUST return CODE_PRECONDITION_FAILED if the container
	// cannot be created at the specified reference.
	CreateContainer(ctx context.Context, in *v1beta13.CreateContainerRequest, opts ...grpc.CallOption) (*v1beta13.CreateContainerResponse, error)
	// Deletes a resource.
	// If a resource specifies the non-empty container (directory, ...),
	// then the entire directory is deleted recursively.
	// If a resource specifies a reference or symlink type, only the reference is removed (not the target).
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	Delete(ctx context.Context, in *v1beta13.DeleteRequest, opts ...grpc.CallOption) (*v1beta13.DeleteResponse, error)
	// Returns the path reference for
	// the provided resource id reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist
	GetPath(ctx context.Context, in *v1beta13.GetPathRequest, opts ...grpc.CallOption) (*v1beta13.GetPathResponse, error)
	// Returns the quota available under the provided
	// reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist
	// MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits.
	GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*v1beta13.GetQuotaResponse, error)
	// Initiates the download of a file using an
	// out-of-band data transfer mechanism.
	InitiateFileDownload(ctx context.Context, in *v1beta13.InitiateFileDownloadRequest, opts ...grpc.CallOption) (*InitiateFileDownloadResponse, error)
	// Initiates the upload of a file using an
	// out-of-band data transfer mechanism.
	InitiateFileUpload(ctx context.Context, in *v1beta13.InitiateFileUploadRequest, opts ...grpc.CallOption) (*InitiateFileUploadResponse, error)
	// Returns a stream of resource informations
	// for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exists.
	ListContainerStream(ctx context.Context, in *v1beta13.ListContainerStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListContainerStreamClient, error)
	// Returns a list of resource information
	// for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exists.
	ListContainer(ctx context.Context, in *v1beta13.ListContainerRequest, opts ...grpc.CallOption) (*v1beta13.ListContainerResponse, error)
	// Returns a list of the versions for a resource of
	// type file at the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	// MUST return CODE_OK and MUST return an empty list if no versions are available.
	// TODO: What code if resource not of type file?
	ListFileVersions(ctx context.Context, in *v1beta13.ListFileVersionsRequest, opts ...grpc.CallOption) (*v1beta13.ListFileVersionsResponse, error)
	// Returns a stream of recycle items for this storage provider.
	ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListRecycleStreamClient, error)
	// Returns a list of recycle items for this storage provider.
	// MUST return CODE_OK and MUST return an empty list if no recycle items are available.
	ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...grpc.CallOption) (*v1beta13.ListRecycleResponse, error)
	// Moves a resource from one reference to another.
	// MUST return CODE_NOT_FOUND if any of the references do not exist.
	// MUST return CODE_PRECONDITION_FAILED if the source reference
	// cannot be moved to the destination reference.
	Move(ctx context.Context, in *v1beta13.MoveRequest, opts ...grpc.CallOption) (*v1beta13.MoveResponse, error)
	// Permanently removes a recycle item from the recycle.
	// This operation is irrevocable.
	// MUST return CODE_NOT_FOUND if the recycle item id does not exist.
	PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...grpc.CallOption) (*v1beta13.PurgeRecycleResponse, error)
	// Restores a file version for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	// MUST return CODE_NOT_FOUND if the version does not exist.
	RestoreFileVersion(ctx context.Context, in *v1beta13.RestoreFileVersionRequest, opts ...grpc.CallOption) (*v1beta13.RestoreFileVersionResponse, error)
	// Restores a recycle item from the recycle.
	// MUST return CODE_NOT_FOUND if the recycle item id does not exist.
	// MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty
	// and the recycle item cannot be restored to the restore_path.
	RestoreRecycleItem(ctx context.Context, in *v1beta13.RestoreRecycleItemRequest, opts ...grpc.CallOption) (*v1beta13.RestoreRecycleItemResponse, error)
	// Returns the resource information at the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	Stat(ctx context.Context, in *v1beta13.StatRequest, opts ...grpc.CallOption) (*v1beta13.StatResponse, error)
	// Sets arbitrary metadata into a storage resource.
	// Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo.
	SetArbitraryMetadata(ctx context.Context, in *v1beta13.SetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.SetArbitraryMetadataResponse, error)
	// Unsets arbitrary metdata into a storage resource.
	// Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo.
	UnsetArbitraryMetadata(ctx context.Context, in *v1beta13.UnsetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.UnsetArbitraryMetadataResponse, error)
	// Creates the home directory for a user.
	CreateHome(ctx context.Context, in *v1beta13.CreateHomeRequest, opts ...grpc.CallOption) (*v1beta13.CreateHomeResponse, error)
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreateShare(ctx context.Context, in *v1beta14.CreateShareRequest, opts ...grpc.CallOption) (*v1beta14.CreateShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveShare(ctx context.Context, in *v1beta14.RemoveShareRequest, opts ...grpc.CallOption) (*v1beta14.RemoveShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetShare(ctx context.Context, in *v1beta14.GetShareRequest, opts ...grpc.CallOption) (*v1beta14.GetShareResponse, error)
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListShares(ctx context.Context, in *v1beta14.ListSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateShare(ctx context.Context, in *v1beta14.UpdateShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateShareResponse, error)
	// List all shares the authproviderenticated principal has received.
	ListReceivedShares(ctx context.Context, in *v1beta14.ListReceivedSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListReceivedSharesResponse, error)
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedShare(ctx context.Context, in *v1beta14.UpdateReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateReceivedShareResponse, error)
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedShare(ctx context.Context, in *v1beta14.GetReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.GetReceivedShareResponse, error)
	// Maps the key-value pair.
	SetKey(ctx context.Context, in *v1beta15.SetKeyRequest, opts ...grpc.CallOption) (*v1beta15.SetKeyResponse, error)
	// Returns the value associated with the
	// requested key.
	GetKey(ctx context.Context, in *v1beta15.GetKeyRequest, opts ...grpc.CallOption) (*v1beta15.GetKeyResponse, error)
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreatePublicShare(ctx context.Context, in *v1beta16.CreatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.CreatePublicShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemovePublicShare(ctx context.Context, in *v1beta16.RemovePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.RemovePublicShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetPublicShare(ctx context.Context, in *v1beta16.GetPublicShareRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareResponse, error)
	// Gets share information for a single share by its unlisted token.
	// MUST return CODE_NOT_FOUND if the share does not exist.
	GetPublicShareByToken(ctx context.Context, in *v1beta16.GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareByTokenResponse, error)
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListPublicShares(ctx context.Context, in *v1beta16.ListPublicSharesRequest, opts ...grpc.CallOption) (*v1beta16.ListPublicSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdatePublicShare(ctx context.Context, in *v1beta16.UpdatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.UpdatePublicShareResponse, error)
	// 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 *v1beta17.CreateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.CreateOCMShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveOCMShare(ctx context.Context, in *v1beta17.RemoveOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.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 *v1beta17.GetOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetOCMShareResponse, error)
	// List the shares the authproviderenticated 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 *v1beta17.ListOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.ListOCMSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateOCMShare(ctx context.Context, in *v1beta17.UpdateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.UpdateOCMShareResponse, error)
	// List all shares the authproviderenticated principal has received.
	ListReceivedOCMShares(ctx context.Context, in *v1beta17.ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.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 *v1beta17.UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.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 *v1beta17.GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetReceivedOCMShareResponse, error)
	// Returns the app providers that are capable of handling this resource info.
	// MUST return CODE_NOT_FOUND if no providers are available.
	GetAppProviders(ctx context.Context, in *v1beta18.GetAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.GetAppProvidersResponse, error)
	// Returns a list of the available app providers known by this registry.
	ListAppProviders(ctx context.Context, in *v1beta18.ListAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.ListAppProvidersResponse, error)
	// Gets the information about an user by its user id.
	GetUser(ctx context.Context, in *v1beta12.GetUserRequest, opts ...grpc.CallOption) (*v1beta12.GetUserResponse, error)
	// Gets the groups of a user.
	GetUserGroups(ctx context.Context, in *v1beta12.GetUserGroupsRequest, opts ...grpc.CallOption) (*v1beta12.GetUserGroupsResponse, error)
	// Tells if the user is in a certain group.
	IsInGroup(ctx context.Context, in *v1beta12.IsInGroupRequest, opts ...grpc.CallOption) (*v1beta12.IsInGroupResponse, error)
	// Finds users by any attribute of the user?
	// TODO(labkode): to define the filters that make more sense.
	FindUsers(ctx context.Context, in *v1beta12.FindUsersRequest, opts ...grpc.CallOption) (*v1beta12.FindUsersResponse, error)
	// Returns a list of the available auth providers known by this registry.
	ListAuthProviders(ctx context.Context, in *v1beta19.ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error)
	// Returns the home path for the given authenticated user.
	// When a user has access to multiple storage providers, one of them is the home.
	GetHome(ctx context.Context, in *v1beta13.GetHomeRequest, opts ...grpc.CallOption) (*v1beta13.GetHomeResponse, error)
	// Generates a new token for the user with a validity of 24 hours.
	GenerateInviteToken(ctx context.Context, in *v1beta110.GenerateInviteTokenRequest, opts ...grpc.CallOption) (*v1beta110.GenerateInviteTokenResponse, error)
	// Forwards a received invite to the sync'n'share system provider.
	ForwardInvite(ctx context.Context, in *v1beta110.ForwardInviteRequest, opts ...grpc.CallOption) (*v1beta110.ForwardInviteResponse, error)
	// Completes an invitation acceptance.
	AcceptInvite(ctx context.Context, in *v1beta110.AcceptInviteRequest, opts ...grpc.CallOption) (*v1beta110.AcceptInviteResponse, error)
	// Retrieves details about a remote user who has accepted an invite to share.
	GetRemoteUser(ctx context.Context, in *v1beta110.GetRemoteUserRequest, opts ...grpc.CallOption) (*v1beta110.GetRemoteUserResponse, error)
	// Check if a given system provider is registered in the mesh or not.
	// MUST return CODE_UNAUTHENTICATED if the system is not registered
	IsProviderAllowed(ctx context.Context, in *v1beta111.IsProviderAllowedRequest, opts ...grpc.CallOption) (*v1beta111.IsProviderAllowedResponse, error)
	// Get the information of the provider identified by a specific domain.
	// MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist.
	GetInfoByDomain(ctx context.Context, in *v1beta111.GetInfoByDomainRequest, opts ...grpc.CallOption) (*v1beta111.GetInfoByDomainResponse, error)
	// Get the information of all the providers registered in the mesh.
	ListAllProviders(ctx context.Context, in *v1beta111.ListAllProvidersRequest, opts ...grpc.CallOption) (*v1beta111.ListAllProvidersResponse, error)
	// Creates a new ocm share.
	CreateOCMCoreShare(ctx context.Context, in *v1beta112.CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*v1beta112.CreateOCMCoreShareResponse, error)
}

GatewayAPIClient is the client API for GatewayAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGatewayAPIClient

func NewGatewayAPIClient(cc grpc.ClientConnInterface) GatewayAPIClient

type GatewayAPIHandler

type GatewayAPIHandler interface {
	// Authenticates a user.
	Authenticate(context.Context, *AuthenticateRequest, *AuthenticateResponse) error
	// WhoAmI returns the information for a user.
	WhoAmI(context.Context, *WhoAmIRequest, *WhoAmIResponse) error
	// Creates a new resource of type container.
	// MUST return CODE_PRECONDITION_FAILED if the container
	// cannot be created at the specified reference.
	CreateContainer(context.Context, *v1beta1.CreateContainerRequest, *v1beta1.CreateContainerResponse) error
	// Deletes a resource.
	// If a resource specifies the non-empty container (directory, ...),
	// then the entire directory is deleted recursively.
	// If a resource specifies a reference or symlink type, only the reference is removed (not the target).
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	Delete(context.Context, *v1beta1.DeleteRequest, *v1beta1.DeleteResponse) error
	// Returns the path reference for
	// the provided resource id reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist
	GetPath(context.Context, *v1beta1.GetPathRequest, *v1beta1.GetPathResponse) error
	// Returns the quota available under the provided
	// reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist
	// MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits.
	GetQuota(context.Context, *GetQuotaRequest, *v1beta1.GetQuotaResponse) error
	// Initiates the download of a file using an
	// out-of-band data transfer mechanism.
	InitiateFileDownload(context.Context, *v1beta1.InitiateFileDownloadRequest, *InitiateFileDownloadResponse) error
	// Initiates the upload of a file using an
	// out-of-band data transfer mechanism.
	InitiateFileUpload(context.Context, *v1beta1.InitiateFileUploadRequest, *InitiateFileUploadResponse) error
	// Returns a stream of resource informations
	// for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exists.
	ListContainerStream(context.Context, *v1beta1.ListContainerStreamRequest, GatewayAPI_ListContainerStreamStream) error
	// Returns a list of resource information
	// for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exists.
	ListContainer(context.Context, *v1beta1.ListContainerRequest, *v1beta1.ListContainerResponse) error
	// Returns a list of the versions for a resource of
	// type file at the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	// MUST return CODE_OK and MUST return an empty list if no versions are available.
	// TODO: What code if resource not of type file?
	ListFileVersions(context.Context, *v1beta1.ListFileVersionsRequest, *v1beta1.ListFileVersionsResponse) error
	// Returns a stream of recycle items for this storage provider.
	ListRecycleStream(context.Context, *ListRecycleStreamRequest, GatewayAPI_ListRecycleStreamStream) error
	// Returns a list of recycle items for this storage provider.
	// MUST return CODE_OK and MUST return an empty list if no recycle items are available.
	ListRecycle(context.Context, *ListRecycleRequest, *v1beta1.ListRecycleResponse) error
	// Moves a resource from one reference to another.
	// MUST return CODE_NOT_FOUND if any of the references do not exist.
	// MUST return CODE_PRECONDITION_FAILED if the source reference
	// cannot be moved to the destination reference.
	Move(context.Context, *v1beta1.MoveRequest, *v1beta1.MoveResponse) error
	// Permanently removes a recycle item from the recycle.
	// This operation is irrevocable.
	// MUST return CODE_NOT_FOUND if the recycle item id does not exist.
	PurgeRecycle(context.Context, *PurgeRecycleRequest, *v1beta1.PurgeRecycleResponse) error
	// Restores a file version for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	// MUST return CODE_NOT_FOUND if the version does not exist.
	RestoreFileVersion(context.Context, *v1beta1.RestoreFileVersionRequest, *v1beta1.RestoreFileVersionResponse) error
	// Restores a recycle item from the recycle.
	// MUST return CODE_NOT_FOUND if the recycle item id does not exist.
	// MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty
	// and the recycle item cannot be restored to the restore_path.
	RestoreRecycleItem(context.Context, *v1beta1.RestoreRecycleItemRequest, *v1beta1.RestoreRecycleItemResponse) error
	// Returns the resource information at the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	Stat(context.Context, *v1beta1.StatRequest, *v1beta1.StatResponse) error
	// Sets arbitrary metadata into a storage resource.
	// Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo.
	SetArbitraryMetadata(context.Context, *v1beta1.SetArbitraryMetadataRequest, *v1beta1.SetArbitraryMetadataResponse) error
	// Unsets arbitrary metdata into a storage resource.
	// Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo.
	UnsetArbitraryMetadata(context.Context, *v1beta1.UnsetArbitraryMetadataRequest, *v1beta1.UnsetArbitraryMetadataResponse) error
	// Creates the home directory for a user.
	CreateHome(context.Context, *v1beta1.CreateHomeRequest, *v1beta1.CreateHomeResponse) error
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreateShare(context.Context, *v1beta11.CreateShareRequest, *v1beta11.CreateShareResponse) error
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveShare(context.Context, *v1beta11.RemoveShareRequest, *v1beta11.RemoveShareResponse) error
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetShare(context.Context, *v1beta11.GetShareRequest, *v1beta11.GetShareResponse) error
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListShares(context.Context, *v1beta11.ListSharesRequest, *v1beta11.ListSharesResponse) error
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateShare(context.Context, *v1beta11.UpdateShareRequest, *v1beta11.UpdateShareResponse) error
	// List all shares the authproviderenticated principal has received.
	ListReceivedShares(context.Context, *v1beta11.ListReceivedSharesRequest, *v1beta11.ListReceivedSharesResponse) error
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedShare(context.Context, *v1beta11.UpdateReceivedShareRequest, *v1beta11.UpdateReceivedShareResponse) error
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedShare(context.Context, *v1beta11.GetReceivedShareRequest, *v1beta11.GetReceivedShareResponse) error
	// Maps the key-value pair.
	SetKey(context.Context, *v1beta12.SetKeyRequest, *v1beta12.SetKeyResponse) error
	// Returns the value associated with the
	// requested key.
	GetKey(context.Context, *v1beta12.GetKeyRequest, *v1beta12.GetKeyResponse) error
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreatePublicShare(context.Context, *v1beta13.CreatePublicShareRequest, *v1beta13.CreatePublicShareResponse) error
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemovePublicShare(context.Context, *v1beta13.RemovePublicShareRequest, *v1beta13.RemovePublicShareResponse) error
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetPublicShare(context.Context, *v1beta13.GetPublicShareRequest, *v1beta13.GetPublicShareResponse) error
	// Gets share information for a single share by its unlisted token.
	// MUST return CODE_NOT_FOUND if the share does not exist.
	GetPublicShareByToken(context.Context, *v1beta13.GetPublicShareByTokenRequest, *v1beta13.GetPublicShareByTokenResponse) error
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListPublicShares(context.Context, *v1beta13.ListPublicSharesRequest, *v1beta13.ListPublicSharesResponse) error
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdatePublicShare(context.Context, *v1beta13.UpdatePublicShareRequest, *v1beta13.UpdatePublicShareResponse) error
	// 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, *v1beta14.CreateOCMShareRequest, *v1beta14.CreateOCMShareResponse) error
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveOCMShare(context.Context, *v1beta14.RemoveOCMShareRequest, *v1beta14.RemoveOCMShareResponse) error
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetOCMShare(context.Context, *v1beta14.GetOCMShareRequest, *v1beta14.GetOCMShareResponse) error
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListOCMShares(context.Context, *v1beta14.ListOCMSharesRequest, *v1beta14.ListOCMSharesResponse) error
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateOCMShare(context.Context, *v1beta14.UpdateOCMShareRequest, *v1beta14.UpdateOCMShareResponse) error
	// List all shares the authproviderenticated principal has received.
	ListReceivedOCMShares(context.Context, *v1beta14.ListReceivedOCMSharesRequest, *v1beta14.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, *v1beta14.UpdateReceivedOCMShareRequest, *v1beta14.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, *v1beta14.GetReceivedOCMShareRequest, *v1beta14.GetReceivedOCMShareResponse) error
	// Returns the app providers that are capable of handling this resource info.
	// MUST return CODE_NOT_FOUND if no providers are available.
	GetAppProviders(context.Context, *v1beta15.GetAppProvidersRequest, *v1beta15.GetAppProvidersResponse) error
	// Returns a list of the available app providers known by this registry.
	ListAppProviders(context.Context, *v1beta15.ListAppProvidersRequest, *v1beta15.ListAppProvidersResponse) error
	// Gets the information about an user by its user id.
	GetUser(context.Context, *v1beta16.GetUserRequest, *v1beta16.GetUserResponse) error
	// Gets the groups of a user.
	GetUserGroups(context.Context, *v1beta16.GetUserGroupsRequest, *v1beta16.GetUserGroupsResponse) error
	// Tells if the user is in a certain group.
	IsInGroup(context.Context, *v1beta16.IsInGroupRequest, *v1beta16.IsInGroupResponse) error
	// Finds users by any attribute of the user?
	// TODO(labkode): to define the filters that make more sense.
	FindUsers(context.Context, *v1beta16.FindUsersRequest, *v1beta16.FindUsersResponse) error
	// Returns a list of the available auth providers known by this registry.
	ListAuthProviders(context.Context, *v1beta17.ListAuthProvidersRequest, *ListAuthProvidersResponse) error
	// Returns the home path for the given authenticated user.
	// When a user has access to multiple storage providers, one of them is the home.
	GetHome(context.Context, *v1beta1.GetHomeRequest, *v1beta1.GetHomeResponse) error
	// Generates a new token for the user with a validity of 24 hours.
	GenerateInviteToken(context.Context, *v1beta18.GenerateInviteTokenRequest, *v1beta18.GenerateInviteTokenResponse) error
	// Forwards a received invite to the sync'n'share system provider.
	ForwardInvite(context.Context, *v1beta18.ForwardInviteRequest, *v1beta18.ForwardInviteResponse) error
	// Completes an invitation acceptance.
	AcceptInvite(context.Context, *v1beta18.AcceptInviteRequest, *v1beta18.AcceptInviteResponse) error
	// Retrieves details about a remote user who has accepted an invite to share.
	GetRemoteUser(context.Context, *v1beta18.GetRemoteUserRequest, *v1beta18.GetRemoteUserResponse) error
	// Check if a given system provider is registered in the mesh or not.
	// MUST return CODE_UNAUTHENTICATED if the system is not registered
	IsProviderAllowed(context.Context, *v1beta19.IsProviderAllowedRequest, *v1beta19.IsProviderAllowedResponse) error
	// Get the information of the provider identified by a specific domain.
	// MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist.
	GetInfoByDomain(context.Context, *v1beta19.GetInfoByDomainRequest, *v1beta19.GetInfoByDomainResponse) error
	// Get the information of all the providers registered in the mesh.
	ListAllProviders(context.Context, *v1beta19.ListAllProvidersRequest, *v1beta19.ListAllProvidersResponse) error
	// Creates a new ocm share.
	CreateOCMCoreShare(context.Context, *v1beta110.CreateOCMCoreShareRequest, *v1beta110.CreateOCMCoreShareResponse) error
}

type GatewayAPIServer

type GatewayAPIServer interface {
	// Authenticates a user.
	Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
	// WhoAmI returns the information for a user.
	WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error)
	// Creates a new resource of type container.
	// MUST return CODE_PRECONDITION_FAILED if the container
	// cannot be created at the specified reference.
	CreateContainer(context.Context, *v1beta13.CreateContainerRequest) (*v1beta13.CreateContainerResponse, error)
	// Deletes a resource.
	// If a resource specifies the non-empty container (directory, ...),
	// then the entire directory is deleted recursively.
	// If a resource specifies a reference or symlink type, only the reference is removed (not the target).
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	Delete(context.Context, *v1beta13.DeleteRequest) (*v1beta13.DeleteResponse, error)
	// Returns the path reference for
	// the provided resource id reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist
	GetPath(context.Context, *v1beta13.GetPathRequest) (*v1beta13.GetPathResponse, error)
	// Returns the quota available under the provided
	// reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist
	// MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits.
	GetQuota(context.Context, *GetQuotaRequest) (*v1beta13.GetQuotaResponse, error)
	// Initiates the download of a file using an
	// out-of-band data transfer mechanism.
	InitiateFileDownload(context.Context, *v1beta13.InitiateFileDownloadRequest) (*InitiateFileDownloadResponse, error)
	// Initiates the upload of a file using an
	// out-of-band data transfer mechanism.
	InitiateFileUpload(context.Context, *v1beta13.InitiateFileUploadRequest) (*InitiateFileUploadResponse, error)
	// Returns a stream of resource informations
	// for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exists.
	ListContainerStream(*v1beta13.ListContainerStreamRequest, GatewayAPI_ListContainerStreamServer) error
	// Returns a list of resource information
	// for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exists.
	ListContainer(context.Context, *v1beta13.ListContainerRequest) (*v1beta13.ListContainerResponse, error)
	// Returns a list of the versions for a resource of
	// type file at the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	// MUST return CODE_OK and MUST return an empty list if no versions are available.
	// TODO: What code if resource not of type file?
	ListFileVersions(context.Context, *v1beta13.ListFileVersionsRequest) (*v1beta13.ListFileVersionsResponse, error)
	// Returns a stream of recycle items for this storage provider.
	ListRecycleStream(*ListRecycleStreamRequest, GatewayAPI_ListRecycleStreamServer) error
	// Returns a list of recycle items for this storage provider.
	// MUST return CODE_OK and MUST return an empty list if no recycle items are available.
	ListRecycle(context.Context, *ListRecycleRequest) (*v1beta13.ListRecycleResponse, error)
	// Moves a resource from one reference to another.
	// MUST return CODE_NOT_FOUND if any of the references do not exist.
	// MUST return CODE_PRECONDITION_FAILED if the source reference
	// cannot be moved to the destination reference.
	Move(context.Context, *v1beta13.MoveRequest) (*v1beta13.MoveResponse, error)
	// Permanently removes a recycle item from the recycle.
	// This operation is irrevocable.
	// MUST return CODE_NOT_FOUND if the recycle item id does not exist.
	PurgeRecycle(context.Context, *PurgeRecycleRequest) (*v1beta13.PurgeRecycleResponse, error)
	// Restores a file version for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	// MUST return CODE_NOT_FOUND if the version does not exist.
	RestoreFileVersion(context.Context, *v1beta13.RestoreFileVersionRequest) (*v1beta13.RestoreFileVersionResponse, error)
	// Restores a recycle item from the recycle.
	// MUST return CODE_NOT_FOUND if the recycle item id does not exist.
	// MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty
	// and the recycle item cannot be restored to the restore_path.
	RestoreRecycleItem(context.Context, *v1beta13.RestoreRecycleItemRequest) (*v1beta13.RestoreRecycleItemResponse, error)
	// Returns the resource information at the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	Stat(context.Context, *v1beta13.StatRequest) (*v1beta13.StatResponse, error)
	// Sets arbitrary metadata into a storage resource.
	// Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo.
	SetArbitraryMetadata(context.Context, *v1beta13.SetArbitraryMetadataRequest) (*v1beta13.SetArbitraryMetadataResponse, error)
	// Unsets arbitrary metdata into a storage resource.
	// Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo.
	UnsetArbitraryMetadata(context.Context, *v1beta13.UnsetArbitraryMetadataRequest) (*v1beta13.UnsetArbitraryMetadataResponse, error)
	// Creates the home directory for a user.
	CreateHome(context.Context, *v1beta13.CreateHomeRequest) (*v1beta13.CreateHomeResponse, error)
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreateShare(context.Context, *v1beta14.CreateShareRequest) (*v1beta14.CreateShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveShare(context.Context, *v1beta14.RemoveShareRequest) (*v1beta14.RemoveShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetShare(context.Context, *v1beta14.GetShareRequest) (*v1beta14.GetShareResponse, error)
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListShares(context.Context, *v1beta14.ListSharesRequest) (*v1beta14.ListSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateShare(context.Context, *v1beta14.UpdateShareRequest) (*v1beta14.UpdateShareResponse, error)
	// List all shares the authproviderenticated principal has received.
	ListReceivedShares(context.Context, *v1beta14.ListReceivedSharesRequest) (*v1beta14.ListReceivedSharesResponse, error)
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedShare(context.Context, *v1beta14.UpdateReceivedShareRequest) (*v1beta14.UpdateReceivedShareResponse, error)
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedShare(context.Context, *v1beta14.GetReceivedShareRequest) (*v1beta14.GetReceivedShareResponse, error)
	// Maps the key-value pair.
	SetKey(context.Context, *v1beta15.SetKeyRequest) (*v1beta15.SetKeyResponse, error)
	// Returns the value associated with the
	// requested key.
	GetKey(context.Context, *v1beta15.GetKeyRequest) (*v1beta15.GetKeyResponse, error)
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreatePublicShare(context.Context, *v1beta16.CreatePublicShareRequest) (*v1beta16.CreatePublicShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemovePublicShare(context.Context, *v1beta16.RemovePublicShareRequest) (*v1beta16.RemovePublicShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetPublicShare(context.Context, *v1beta16.GetPublicShareRequest) (*v1beta16.GetPublicShareResponse, error)
	// Gets share information for a single share by its unlisted token.
	// MUST return CODE_NOT_FOUND if the share does not exist.
	GetPublicShareByToken(context.Context, *v1beta16.GetPublicShareByTokenRequest) (*v1beta16.GetPublicShareByTokenResponse, error)
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListPublicShares(context.Context, *v1beta16.ListPublicSharesRequest) (*v1beta16.ListPublicSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdatePublicShare(context.Context, *v1beta16.UpdatePublicShareRequest) (*v1beta16.UpdatePublicShareResponse, error)
	// 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, *v1beta17.CreateOCMShareRequest) (*v1beta17.CreateOCMShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveOCMShare(context.Context, *v1beta17.RemoveOCMShareRequest) (*v1beta17.RemoveOCMShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetOCMShare(context.Context, *v1beta17.GetOCMShareRequest) (*v1beta17.GetOCMShareResponse, error)
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListOCMShares(context.Context, *v1beta17.ListOCMSharesRequest) (*v1beta17.ListOCMSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateOCMShare(context.Context, *v1beta17.UpdateOCMShareRequest) (*v1beta17.UpdateOCMShareResponse, error)
	// List all shares the authproviderenticated principal has received.
	ListReceivedOCMShares(context.Context, *v1beta17.ListReceivedOCMSharesRequest) (*v1beta17.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, *v1beta17.UpdateReceivedOCMShareRequest) (*v1beta17.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, *v1beta17.GetReceivedOCMShareRequest) (*v1beta17.GetReceivedOCMShareResponse, error)
	// Returns the app providers that are capable of handling this resource info.
	// MUST return CODE_NOT_FOUND if no providers are available.
	GetAppProviders(context.Context, *v1beta18.GetAppProvidersRequest) (*v1beta18.GetAppProvidersResponse, error)
	// Returns a list of the available app providers known by this registry.
	ListAppProviders(context.Context, *v1beta18.ListAppProvidersRequest) (*v1beta18.ListAppProvidersResponse, error)
	// Gets the information about an user by its user id.
	GetUser(context.Context, *v1beta12.GetUserRequest) (*v1beta12.GetUserResponse, error)
	// Gets the groups of a user.
	GetUserGroups(context.Context, *v1beta12.GetUserGroupsRequest) (*v1beta12.GetUserGroupsResponse, error)
	// Tells if the user is in a certain group.
	IsInGroup(context.Context, *v1beta12.IsInGroupRequest) (*v1beta12.IsInGroupResponse, error)
	// Finds users by any attribute of the user?
	// TODO(labkode): to define the filters that make more sense.
	FindUsers(context.Context, *v1beta12.FindUsersRequest) (*v1beta12.FindUsersResponse, error)
	// Returns a list of the available auth providers known by this registry.
	ListAuthProviders(context.Context, *v1beta19.ListAuthProvidersRequest) (*ListAuthProvidersResponse, error)
	// Returns the home path for the given authenticated user.
	// When a user has access to multiple storage providers, one of them is the home.
	GetHome(context.Context, *v1beta13.GetHomeRequest) (*v1beta13.GetHomeResponse, error)
	// Generates a new token for the user with a validity of 24 hours.
	GenerateInviteToken(context.Context, *v1beta110.GenerateInviteTokenRequest) (*v1beta110.GenerateInviteTokenResponse, error)
	// Forwards a received invite to the sync'n'share system provider.
	ForwardInvite(context.Context, *v1beta110.ForwardInviteRequest) (*v1beta110.ForwardInviteResponse, error)
	// Completes an invitation acceptance.
	AcceptInvite(context.Context, *v1beta110.AcceptInviteRequest) (*v1beta110.AcceptInviteResponse, error)
	// Retrieves details about a remote user who has accepted an invite to share.
	GetRemoteUser(context.Context, *v1beta110.GetRemoteUserRequest) (*v1beta110.GetRemoteUserResponse, error)
	// Check if a given system provider is registered in the mesh or not.
	// MUST return CODE_UNAUTHENTICATED if the system is not registered
	IsProviderAllowed(context.Context, *v1beta111.IsProviderAllowedRequest) (*v1beta111.IsProviderAllowedResponse, error)
	// Get the information of the provider identified by a specific domain.
	// MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist.
	GetInfoByDomain(context.Context, *v1beta111.GetInfoByDomainRequest) (*v1beta111.GetInfoByDomainResponse, error)
	// Get the information of all the providers registered in the mesh.
	ListAllProviders(context.Context, *v1beta111.ListAllProvidersRequest) (*v1beta111.ListAllProvidersResponse, error)
	// Creates a new ocm share.
	CreateOCMCoreShare(context.Context, *v1beta112.CreateOCMCoreShareRequest) (*v1beta112.CreateOCMCoreShareResponse, error)
}

GatewayAPIServer is the server API for GatewayAPI service.

type GatewayAPIService

type GatewayAPIService interface {
	// Authenticates a user.
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...client.CallOption) (*AuthenticateResponse, error)
	// WhoAmI returns the information for a user.
	WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...client.CallOption) (*WhoAmIResponse, error)
	// Creates a new resource of type container.
	// MUST return CODE_PRECONDITION_FAILED if the container
	// cannot be created at the specified reference.
	CreateContainer(ctx context.Context, in *v1beta1.CreateContainerRequest, opts ...client.CallOption) (*v1beta1.CreateContainerResponse, error)
	// Deletes a resource.
	// If a resource specifies the non-empty container (directory, ...),
	// then the entire directory is deleted recursively.
	// If a resource specifies a reference or symlink type, only the reference is removed (not the target).
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	Delete(ctx context.Context, in *v1beta1.DeleteRequest, opts ...client.CallOption) (*v1beta1.DeleteResponse, error)
	// Returns the path reference for
	// the provided resource id reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist
	GetPath(ctx context.Context, in *v1beta1.GetPathRequest, opts ...client.CallOption) (*v1beta1.GetPathResponse, error)
	// Returns the quota available under the provided
	// reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist
	// MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits.
	GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...client.CallOption) (*v1beta1.GetQuotaResponse, error)
	// Initiates the download of a file using an
	// out-of-band data transfer mechanism.
	InitiateFileDownload(ctx context.Context, in *v1beta1.InitiateFileDownloadRequest, opts ...client.CallOption) (*InitiateFileDownloadResponse, error)
	// Initiates the upload of a file using an
	// out-of-band data transfer mechanism.
	InitiateFileUpload(ctx context.Context, in *v1beta1.InitiateFileUploadRequest, opts ...client.CallOption) (*InitiateFileUploadResponse, error)
	// Returns a stream of resource informations
	// for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exists.
	ListContainerStream(ctx context.Context, in *v1beta1.ListContainerStreamRequest, opts ...client.CallOption) (GatewayAPI_ListContainerStreamService, error)
	// Returns a list of resource information
	// for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exists.
	ListContainer(ctx context.Context, in *v1beta1.ListContainerRequest, opts ...client.CallOption) (*v1beta1.ListContainerResponse, error)
	// Returns a list of the versions for a resource of
	// type file at the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	// MUST return CODE_OK and MUST return an empty list if no versions are available.
	// TODO: What code if resource not of type file?
	ListFileVersions(ctx context.Context, in *v1beta1.ListFileVersionsRequest, opts ...client.CallOption) (*v1beta1.ListFileVersionsResponse, error)
	// Returns a stream of recycle items for this storage provider.
	ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...client.CallOption) (GatewayAPI_ListRecycleStreamService, error)
	// Returns a list of recycle items for this storage provider.
	// MUST return CODE_OK and MUST return an empty list if no recycle items are available.
	ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...client.CallOption) (*v1beta1.ListRecycleResponse, error)
	// Moves a resource from one reference to another.
	// MUST return CODE_NOT_FOUND if any of the references do not exist.
	// MUST return CODE_PRECONDITION_FAILED if the source reference
	// cannot be moved to the destination reference.
	Move(ctx context.Context, in *v1beta1.MoveRequest, opts ...client.CallOption) (*v1beta1.MoveResponse, error)
	// Permanently removes a recycle item from the recycle.
	// This operation is irrevocable.
	// MUST return CODE_NOT_FOUND if the recycle item id does not exist.
	PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...client.CallOption) (*v1beta1.PurgeRecycleResponse, error)
	// Restores a file version for the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	// MUST return CODE_NOT_FOUND if the version does not exist.
	RestoreFileVersion(ctx context.Context, in *v1beta1.RestoreFileVersionRequest, opts ...client.CallOption) (*v1beta1.RestoreFileVersionResponse, error)
	// Restores a recycle item from the recycle.
	// MUST return CODE_NOT_FOUND if the recycle item id does not exist.
	// MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty
	// and the recycle item cannot be restored to the restore_path.
	RestoreRecycleItem(ctx context.Context, in *v1beta1.RestoreRecycleItemRequest, opts ...client.CallOption) (*v1beta1.RestoreRecycleItemResponse, error)
	// Returns the resource information at the provided reference.
	// MUST return CODE_NOT_FOUND if the reference does not exist.
	Stat(ctx context.Context, in *v1beta1.StatRequest, opts ...client.CallOption) (*v1beta1.StatResponse, error)
	// Sets arbitrary metadata into a storage resource.
	// Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo.
	SetArbitraryMetadata(ctx context.Context, in *v1beta1.SetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.SetArbitraryMetadataResponse, error)
	// Unsets arbitrary metdata into a storage resource.
	// Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo.
	UnsetArbitraryMetadata(ctx context.Context, in *v1beta1.UnsetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.UnsetArbitraryMetadataResponse, error)
	// Creates the home directory for a user.
	CreateHome(ctx context.Context, in *v1beta1.CreateHomeRequest, opts ...client.CallOption) (*v1beta1.CreateHomeResponse, error)
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreateShare(ctx context.Context, in *v1beta11.CreateShareRequest, opts ...client.CallOption) (*v1beta11.CreateShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveShare(ctx context.Context, in *v1beta11.RemoveShareRequest, opts ...client.CallOption) (*v1beta11.RemoveShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetShare(ctx context.Context, in *v1beta11.GetShareRequest, opts ...client.CallOption) (*v1beta11.GetShareResponse, error)
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListShares(ctx context.Context, in *v1beta11.ListSharesRequest, opts ...client.CallOption) (*v1beta11.ListSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateShare(ctx context.Context, in *v1beta11.UpdateShareRequest, opts ...client.CallOption) (*v1beta11.UpdateShareResponse, error)
	// List all shares the authproviderenticated principal has received.
	ListReceivedShares(ctx context.Context, in *v1beta11.ListReceivedSharesRequest, opts ...client.CallOption) (*v1beta11.ListReceivedSharesResponse, error)
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedShare(ctx context.Context, in *v1beta11.UpdateReceivedShareRequest, opts ...client.CallOption) (*v1beta11.UpdateReceivedShareResponse, error)
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedShare(ctx context.Context, in *v1beta11.GetReceivedShareRequest, opts ...client.CallOption) (*v1beta11.GetReceivedShareResponse, error)
	// Maps the key-value pair.
	SetKey(ctx context.Context, in *v1beta12.SetKeyRequest, opts ...client.CallOption) (*v1beta12.SetKeyResponse, error)
	// Returns the value associated with the
	// requested key.
	GetKey(ctx context.Context, in *v1beta12.GetKeyRequest, opts ...client.CallOption) (*v1beta12.GetKeyResponse, error)
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreatePublicShare(ctx context.Context, in *v1beta13.CreatePublicShareRequest, opts ...client.CallOption) (*v1beta13.CreatePublicShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemovePublicShare(ctx context.Context, in *v1beta13.RemovePublicShareRequest, opts ...client.CallOption) (*v1beta13.RemovePublicShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetPublicShare(ctx context.Context, in *v1beta13.GetPublicShareRequest, opts ...client.CallOption) (*v1beta13.GetPublicShareResponse, error)
	// Gets share information for a single share by its unlisted token.
	// MUST return CODE_NOT_FOUND if the share does not exist.
	GetPublicShareByToken(ctx context.Context, in *v1beta13.GetPublicShareByTokenRequest, opts ...client.CallOption) (*v1beta13.GetPublicShareByTokenResponse, error)
	// List the shares the authproviderenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListPublicShares(ctx context.Context, in *v1beta13.ListPublicSharesRequest, opts ...client.CallOption) (*v1beta13.ListPublicSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdatePublicShare(ctx context.Context, in *v1beta13.UpdatePublicShareRequest, opts ...client.CallOption) (*v1beta13.UpdatePublicShareResponse, error)
	// 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 *v1beta14.CreateOCMShareRequest, opts ...client.CallOption) (*v1beta14.CreateOCMShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemoveOCMShare(ctx context.Context, in *v1beta14.RemoveOCMShareRequest, opts ...client.CallOption) (*v1beta14.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 *v1beta14.GetOCMShareRequest, opts ...client.CallOption) (*v1beta14.GetOCMShareResponse, error)
	// List the shares the authproviderenticated 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 *v1beta14.ListOCMSharesRequest, opts ...client.CallOption) (*v1beta14.ListOCMSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateOCMShare(ctx context.Context, in *v1beta14.UpdateOCMShareRequest, opts ...client.CallOption) (*v1beta14.UpdateOCMShareResponse, error)
	// List all shares the authproviderenticated principal has received.
	ListReceivedOCMShares(ctx context.Context, in *v1beta14.ListReceivedOCMSharesRequest, opts ...client.CallOption) (*v1beta14.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 *v1beta14.UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta14.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 *v1beta14.GetReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta14.GetReceivedOCMShareResponse, error)
	// Returns the app providers that are capable of handling this resource info.
	// MUST return CODE_NOT_FOUND if no providers are available.
	GetAppProviders(ctx context.Context, in *v1beta15.GetAppProvidersRequest, opts ...client.CallOption) (*v1beta15.GetAppProvidersResponse, error)
	// Returns a list of the available app providers known by this registry.
	ListAppProviders(ctx context.Context, in *v1beta15.ListAppProvidersRequest, opts ...client.CallOption) (*v1beta15.ListAppProvidersResponse, error)
	// Gets the information about an user by its user id.
	GetUser(ctx context.Context, in *v1beta16.GetUserRequest, opts ...client.CallOption) (*v1beta16.GetUserResponse, error)
	// Gets the groups of a user.
	GetUserGroups(ctx context.Context, in *v1beta16.GetUserGroupsRequest, opts ...client.CallOption) (*v1beta16.GetUserGroupsResponse, error)
	// Tells if the user is in a certain group.
	IsInGroup(ctx context.Context, in *v1beta16.IsInGroupRequest, opts ...client.CallOption) (*v1beta16.IsInGroupResponse, error)
	// Finds users by any attribute of the user?
	// TODO(labkode): to define the filters that make more sense.
	FindUsers(ctx context.Context, in *v1beta16.FindUsersRequest, opts ...client.CallOption) (*v1beta16.FindUsersResponse, error)
	// Returns a list of the available auth providers known by this registry.
	ListAuthProviders(ctx context.Context, in *v1beta17.ListAuthProvidersRequest, opts ...client.CallOption) (*ListAuthProvidersResponse, error)
	// Returns the home path for the given authenticated user.
	// When a user has access to multiple storage providers, one of them is the home.
	GetHome(ctx context.Context, in *v1beta1.GetHomeRequest, opts ...client.CallOption) (*v1beta1.GetHomeResponse, error)
	// Generates a new token for the user with a validity of 24 hours.
	GenerateInviteToken(ctx context.Context, in *v1beta18.GenerateInviteTokenRequest, opts ...client.CallOption) (*v1beta18.GenerateInviteTokenResponse, error)
	// Forwards a received invite to the sync'n'share system provider.
	ForwardInvite(ctx context.Context, in *v1beta18.ForwardInviteRequest, opts ...client.CallOption) (*v1beta18.ForwardInviteResponse, error)
	// Completes an invitation acceptance.
	AcceptInvite(ctx context.Context, in *v1beta18.AcceptInviteRequest, opts ...client.CallOption) (*v1beta18.AcceptInviteResponse, error)
	// Retrieves details about a remote user who has accepted an invite to share.
	GetRemoteUser(ctx context.Context, in *v1beta18.GetRemoteUserRequest, opts ...client.CallOption) (*v1beta18.GetRemoteUserResponse, error)
	// Check if a given system provider is registered in the mesh or not.
	// MUST return CODE_UNAUTHENTICATED if the system is not registered
	IsProviderAllowed(ctx context.Context, in *v1beta19.IsProviderAllowedRequest, opts ...client.CallOption) (*v1beta19.IsProviderAllowedResponse, error)
	// Get the information of the provider identified by a specific domain.
	// MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist.
	GetInfoByDomain(ctx context.Context, in *v1beta19.GetInfoByDomainRequest, opts ...client.CallOption) (*v1beta19.GetInfoByDomainResponse, error)
	// Get the information of all the providers registered in the mesh.
	ListAllProviders(ctx context.Context, in *v1beta19.ListAllProvidersRequest, opts ...client.CallOption) (*v1beta19.ListAllProvidersResponse, error)
	// Creates a new ocm share.
	CreateOCMCoreShare(ctx context.Context, in *v1beta110.CreateOCMCoreShareRequest, opts ...client.CallOption) (*v1beta110.CreateOCMCoreShareResponse, error)
}

func NewGatewayAPIService

func NewGatewayAPIService(name string, c client.Client) GatewayAPIService

type GatewayAPI_ListContainerStreamClient

type GatewayAPI_ListContainerStreamClient interface {
	Recv() (*v1beta13.ListContainerStreamResponse, error)
	grpc.ClientStream
}

type GatewayAPI_ListContainerStreamServer

type GatewayAPI_ListContainerStreamServer interface {
	Send(*v1beta13.ListContainerStreamResponse) error
	grpc.ServerStream
}

type GatewayAPI_ListContainerStreamService

type GatewayAPI_ListContainerStreamService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*v1beta1.ListContainerStreamResponse, error)
}

type GatewayAPI_ListContainerStreamStream

type GatewayAPI_ListContainerStreamStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*v1beta1.ListContainerStreamResponse) error
}

type GatewayAPI_ListRecycleStreamClient

type GatewayAPI_ListRecycleStreamClient interface {
	Recv() (*v1beta13.ListRecycleStreamResponse, error)
	grpc.ClientStream
}

type GatewayAPI_ListRecycleStreamServer

type GatewayAPI_ListRecycleStreamServer interface {
	Send(*v1beta13.ListRecycleStreamResponse) error
	grpc.ServerStream
}

type GatewayAPI_ListRecycleStreamService

type GatewayAPI_ListRecycleStreamService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*v1beta1.ListRecycleStreamResponse, error)
}

type GatewayAPI_ListRecycleStreamStream

type GatewayAPI_ListRecycleStreamStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*v1beta1.ListRecycleStreamResponse) error
}

type GetQuotaRequest

type GetQuotaRequest 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 *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

func (*GetQuotaRequest) Descriptor deprecated

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

Deprecated: Use GetQuotaRequest.ProtoReflect.Descriptor instead.

func (*GetQuotaRequest) GetOpaque

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

func (*GetQuotaRequest) GetRef

func (x *GetQuotaRequest) GetRef() *v1beta13.Reference

func (*GetQuotaRequest) ProtoMessage

func (*GetQuotaRequest) ProtoMessage()

func (*GetQuotaRequest) ProtoReflect

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

func (*GetQuotaRequest) Reset

func (x *GetQuotaRequest) Reset()

func (*GetQuotaRequest) String

func (x *GetQuotaRequest) String() string

type InitiateFileDownloadResponse

type InitiateFileDownloadResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The endpoint where to downooad the data.
	// The value MUST be a Uniform Resource Identifier (URI)
	// as specified in RFC 3986.
	DownloadEndpoint string `protobuf:"bytes,3,opt,name=download_endpoint,json=downloadEndpoint,proto3" json:"download_endpoint,omitempty"`
	// REQUIRED.
	// Tells to the gateway if the client should be exposed directly to the download_endpoint.
	Expose bool `protobuf:"varint,5,opt,name=expose,proto3" json:"expose,omitempty"`
	// OPTIONAL.
	// A token that MUST be validated by the data gateway for the upload.
	// Only makes sense for uploads passing through the data gateway.
	Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*InitiateFileDownloadResponse) Descriptor deprecated

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

Deprecated: Use InitiateFileDownloadResponse.ProtoReflect.Descriptor instead.

func (*InitiateFileDownloadResponse) GetDownloadEndpoint

func (x *InitiateFileDownloadResponse) GetDownloadEndpoint() string

func (*InitiateFileDownloadResponse) GetExpose

func (x *InitiateFileDownloadResponse) GetExpose() bool

func (*InitiateFileDownloadResponse) GetOpaque

func (*InitiateFileDownloadResponse) GetStatus

func (*InitiateFileDownloadResponse) GetToken

func (x *InitiateFileDownloadResponse) GetToken() string

func (*InitiateFileDownloadResponse) ProtoMessage

func (*InitiateFileDownloadResponse) ProtoMessage()

func (*InitiateFileDownloadResponse) ProtoReflect

func (*InitiateFileDownloadResponse) Reset

func (x *InitiateFileDownloadResponse) Reset()

func (*InitiateFileDownloadResponse) String

type InitiateFileUploadResponse

type InitiateFileUploadResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The endpoint where to upload the data.
	// The value MUST be a Uniform Resource Identifier (URI)
	// as specified in RFC 3986.
	UploadEndpoint string `protobuf:"bytes,3,opt,name=upload_endpoint,json=uploadEndpoint,proto3" json:"upload_endpoint,omitempty"`
	// REQUIRED.
	// List of available checksums
	// the client can use when sending
	// the file.
	AvailableChecksums []*v1beta13.ResourceChecksumPriority `protobuf:"bytes,4,rep,name=available_checksums,json=availableChecksums,proto3" json:"available_checksums,omitempty"`
	// OPTIONAL.
	// A token that MUST be validated by the data gateway for the upload.
	// Only makes sense for uploads passing through the data gateway.
	Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*InitiateFileUploadResponse) Descriptor deprecated

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

Deprecated: Use InitiateFileUploadResponse.ProtoReflect.Descriptor instead.

func (*InitiateFileUploadResponse) GetAvailableChecksums

func (x *InitiateFileUploadResponse) GetAvailableChecksums() []*v1beta13.ResourceChecksumPriority

func (*InitiateFileUploadResponse) GetOpaque

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

func (*InitiateFileUploadResponse) GetStatus

func (x *InitiateFileUploadResponse) GetStatus() *v1beta11.Status

func (*InitiateFileUploadResponse) GetToken

func (x *InitiateFileUploadResponse) GetToken() string

func (*InitiateFileUploadResponse) GetUploadEndpoint

func (x *InitiateFileUploadResponse) GetUploadEndpoint() string

func (*InitiateFileUploadResponse) ProtoMessage

func (*InitiateFileUploadResponse) ProtoMessage()

func (*InitiateFileUploadResponse) ProtoReflect

func (*InitiateFileUploadResponse) Reset

func (x *InitiateFileUploadResponse) Reset()

func (*InitiateFileUploadResponse) String

func (x *InitiateFileUploadResponse) String() string

type ListAuthProvidersResponse

type ListAuthProvidersResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The list of auth types.
	// TODO(labkode): maybe add description?
	Types []string `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAuthProvidersResponse) Descriptor deprecated

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

Deprecated: Use ListAuthProvidersResponse.ProtoReflect.Descriptor instead.

func (*ListAuthProvidersResponse) GetOpaque

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

func (*ListAuthProvidersResponse) GetStatus

func (x *ListAuthProvidersResponse) GetStatus() *v1beta11.Status

func (*ListAuthProvidersResponse) GetTypes

func (x *ListAuthProvidersResponse) GetTypes() []string

func (*ListAuthProvidersResponse) ProtoMessage

func (*ListAuthProvidersResponse) ProtoMessage()

func (*ListAuthProvidersResponse) ProtoReflect

func (*ListAuthProvidersResponse) Reset

func (x *ListAuthProvidersResponse) Reset()

func (*ListAuthProvidersResponse) String

func (x *ListAuthProvidersResponse) String() string

type ListRecycleRequest

type ListRecycleRequest 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 *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// OPTIONAL.
	// SHOULD be specified.
	// The start time range to query for recycle items.
	// The value is the Unix Epoch timestamp in seconds.
	FromTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"`
	// OPTIONAL.
	// SHOULD be specified.
	// The end time range to query for recycle items.
	// The value is Unix Epoch timestamp in seconds.
	ToTs *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRecycleRequest) Descriptor deprecated

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

Deprecated: Use ListRecycleRequest.ProtoReflect.Descriptor instead.

func (*ListRecycleRequest) GetFromTs

func (x *ListRecycleRequest) GetFromTs() *v1beta1.Timestamp

func (*ListRecycleRequest) GetOpaque

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

func (*ListRecycleRequest) GetRef

func (x *ListRecycleRequest) GetRef() *v1beta13.Reference

func (*ListRecycleRequest) GetToTs

func (x *ListRecycleRequest) GetToTs() *v1beta1.Timestamp

func (*ListRecycleRequest) ProtoMessage

func (*ListRecycleRequest) ProtoMessage()

func (*ListRecycleRequest) ProtoReflect

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

func (*ListRecycleRequest) Reset

func (x *ListRecycleRequest) Reset()

func (*ListRecycleRequest) String

func (x *ListRecycleRequest) String() string

type ListRecycleStreamRequest

type ListRecycleStreamRequest 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 *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// OPTIONAL.
	// SHOULD be specified.
	// The start time range to query for recycle items.
	// The value is the Unix Epoch timestamp in seconds.
	FromTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"`
	// OPTIONAL.
	// SHOULD be specified.
	// The end time range to query for recycle items.
	// The value is Unix Epoch timestamp in seconds.
	ToTs *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRecycleStreamRequest) Descriptor deprecated

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

Deprecated: Use ListRecycleStreamRequest.ProtoReflect.Descriptor instead.

func (*ListRecycleStreamRequest) GetFromTs

func (x *ListRecycleStreamRequest) GetFromTs() *v1beta1.Timestamp

func (*ListRecycleStreamRequest) GetOpaque

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

func (*ListRecycleStreamRequest) GetRef

func (*ListRecycleStreamRequest) GetToTs

func (*ListRecycleStreamRequest) ProtoMessage

func (*ListRecycleStreamRequest) ProtoMessage()

func (*ListRecycleStreamRequest) ProtoReflect

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

func (*ListRecycleStreamRequest) Reset

func (x *ListRecycleStreamRequest) Reset()

func (*ListRecycleStreamRequest) String

func (x *ListRecycleStreamRequest) String() string

type PurgeRecycleRequest

type PurgeRecycleRequest 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 *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

func (*PurgeRecycleRequest) Descriptor deprecated

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

Deprecated: Use PurgeRecycleRequest.ProtoReflect.Descriptor instead.

func (*PurgeRecycleRequest) GetOpaque

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

func (*PurgeRecycleRequest) GetRef

func (x *PurgeRecycleRequest) GetRef() *v1beta13.Reference

func (*PurgeRecycleRequest) ProtoMessage

func (*PurgeRecycleRequest) ProtoMessage()

func (*PurgeRecycleRequest) ProtoReflect

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

func (*PurgeRecycleRequest) Reset

func (x *PurgeRecycleRequest) Reset()

func (*PurgeRecycleRequest) String

func (x *PurgeRecycleRequest) String() string

type UnimplementedGatewayAPIServer

type UnimplementedGatewayAPIServer struct {
}

UnimplementedGatewayAPIServer can be embedded to have forward compatible implementations.

func (*UnimplementedGatewayAPIServer) Authenticate

func (*UnimplementedGatewayAPIServer) CreateHome

func (*UnimplementedGatewayAPIServer) CreateShare

func (*UnimplementedGatewayAPIServer) Delete

func (*UnimplementedGatewayAPIServer) FindUsers

func (*UnimplementedGatewayAPIServer) GetHome

func (*UnimplementedGatewayAPIServer) GetKey

func (*UnimplementedGatewayAPIServer) GetOCMShare

func (*UnimplementedGatewayAPIServer) GetPath

func (*UnimplementedGatewayAPIServer) GetQuota

func (*UnimplementedGatewayAPIServer) GetShare

func (*UnimplementedGatewayAPIServer) GetUser

func (*UnimplementedGatewayAPIServer) IsInGroup

func (*UnimplementedGatewayAPIServer) ListRecycle

func (*UnimplementedGatewayAPIServer) ListRecycleStream

func (*UnimplementedGatewayAPIServer) ListShares

func (*UnimplementedGatewayAPIServer) Move

func (*UnimplementedGatewayAPIServer) PurgeRecycle

func (*UnimplementedGatewayAPIServer) RemoveShare

func (*UnimplementedGatewayAPIServer) SetKey

func (*UnimplementedGatewayAPIServer) Stat

func (*UnimplementedGatewayAPIServer) UpdateShare

func (*UnimplementedGatewayAPIServer) WhoAmI

type WhoAmIRequest

type WhoAmIRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The access token.
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*WhoAmIRequest) Descriptor deprecated

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

Deprecated: Use WhoAmIRequest.ProtoReflect.Descriptor instead.

func (*WhoAmIRequest) GetOpaque

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

func (*WhoAmIRequest) GetToken

func (x *WhoAmIRequest) GetToken() string

func (*WhoAmIRequest) ProtoMessage

func (*WhoAmIRequest) ProtoMessage()

func (*WhoAmIRequest) ProtoReflect

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

func (*WhoAmIRequest) Reset

func (x *WhoAmIRequest) Reset()

func (*WhoAmIRequest) String

func (x *WhoAmIRequest) String() string

type WhoAmIResponse

type WhoAmIResponse struct {

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

func (*WhoAmIResponse) Descriptor deprecated

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

Deprecated: Use WhoAmIResponse.ProtoReflect.Descriptor instead.

func (*WhoAmIResponse) GetOpaque

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

func (*WhoAmIResponse) GetStatus

func (x *WhoAmIResponse) GetStatus() *v1beta11.Status

func (*WhoAmIResponse) GetUser

func (x *WhoAmIResponse) GetUser() *v1beta12.User

func (*WhoAmIResponse) ProtoMessage

func (*WhoAmIResponse) ProtoMessage()

func (*WhoAmIResponse) ProtoReflect

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

func (*WhoAmIResponse) Reset

func (x *WhoAmIResponse) Reset()

func (*WhoAmIResponse) String

func (x *WhoAmIResponse) String() string

Jump to

Keyboard shortcuts

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