spacelookup

package
v2.26.7 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookUpStorageSpaceByID

func LookUpStorageSpaceByID(ctx context.Context, client gateway.GatewayAPIClient, spaceID string) (*storageProvider.StorageSpace, *rpc.Status, error)

LookUpStorageSpaceByID find a space by ID

func LookUpStorageSpaceForPath

func LookUpStorageSpaceForPath(ctx context.Context, selector pool.Selectable[gateway.GatewayAPIClient], path string) (*storageProvider.StorageSpace, *rpc.Status, error)

LookUpStorageSpaceForPath returns: the storage spaces responsible for a path the status and error for the lookup

func LookUpStorageSpacesForPathWithChildren

func LookUpStorageSpacesForPathWithChildren(ctx context.Context, client gateway.GatewayAPIClient, path string) ([]*storageProvider.StorageSpace, *rpc.Status, error)

LookUpStorageSpacesForPathWithChildren returns: the list of storage spaces responsible for a path the status and error for the lookup

func LookupReferenceForPath

func LookupReferenceForPath(ctx context.Context, selector pool.Selectable[gateway.GatewayAPIClient], path string) (*storageProvider.Reference, *rpc.Status, error)

LookupReferenceForPath returns: a reference with root and relative path the status and error for the lookup

func MakeRelativeReference

func MakeRelativeReference(space *storageProvider.StorageSpace, relativePath string, spacesDavRequest bool) *storageProvider.Reference

MakeRelativeReference returns a relative reference for the given space and path

func MakeStorageSpaceReference added in v2.6.1

func MakeStorageSpaceReference(spaceID string, relativePath string) (storageProvider.Reference, error)

MakeStorageSpaceReference find a space by id and returns a relative reference

Types

This section is empty.

Jump to

Keyboard shortcuts

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