namespaced

package
v0.0.0-...-d93761d Latest Latest
Warning

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

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

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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