leasemarshaling

package
v0.0.0-...-20d847b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLeaseMarshalingUploader

func NewLeaseMarshalingUploader[TReference, TLease any](base object.Uploader[TReference, TLease], marshaler LeaseMarshaler[TLease]) object.Uploader[TReference, []byte]

NewLeaseMarshalingUploader creates a decorator for object.Uploader that converts leases in the format of byte slices from/to the native representation of the storage backend. This is typically needed if a storage backend is exposed via the network.

Types

type LeaseMarshaler

type LeaseMarshaler[TLease any] interface {
	MarshalLease(lease TLease, dst []byte) []byte
	UnmarshalLease(src []byte) (TLease, error)
}

type LeaseMarshalerForTesting

type LeaseMarshalerForTesting LeaseMarshaler[any]

Jump to

Keyboard shortcuts

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