Documentation ¶
Index ¶
- func NewNamespaceAddingDownloader[TNamespace NamespaceAddingNamespace[TReference], TReference any](base object.Downloader[TReference], namespace TNamespace) object.Downloader[object.LocalReference]
- func NewNamespaceRemovingDownloader[TReference NamespaceRemovingReference](base object.Downloader[object.LocalReference]) object.Downloader[TReference]
- func NewNamespaceRemovingUploader[TReference NamespaceRemovingReference, TLease any](base object.Uploader[object.LocalReference, TLease]) object.Uploader[TReference, TLease]
- type NamespaceAddingNamespace
- type NamespaceRemovingReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNamespaceAddingDownloader ¶
func NewNamespaceAddingDownloader[TNamespace NamespaceAddingNamespace[TReference], TReference any](base object.Downloader[TReference], namespace TNamespace) object.Downloader[object.LocalReference]
func NewNamespaceRemovingDownloader ¶
func NewNamespaceRemovingDownloader[TReference NamespaceRemovingReference](base object.Downloader[object.LocalReference]) object.Downloader[TReference]
NewNamespaceRemovingDownloader creates a decorator for Downloader that converts references provided to DownloadObject() to LocalReferences. This is useful if the storage backend is oblivious of namespaces (e.g., local disk based storage).
func NewNamespaceRemovingUploader ¶
func NewNamespaceRemovingUploader[TReference NamespaceRemovingReference, TLease any](base object.Uploader[object.LocalReference, TLease]) object.Uploader[TReference, TLease]
NewNamespaceRemovingDownloader creates a decorator for Uploader that converts references provided to UploadObject() to LocalReferences. This is useful if the storage backend is oblivious of namespaces (e.g., local disk based storage).
Types ¶
type NamespaceAddingNamespace ¶
type NamespaceAddingNamespace[T any] interface { WithLocalReference(reference object.LocalReference) T }
type NamespaceRemovingReference ¶
type NamespaceRemovingReference interface {
GetLocalReference() object.LocalReference
}
Click to show internal directories.
Click to hide internal directories.