ocm

package
v2.46.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpload

func GetUpload(ctx context.Context, d *driver, storageRoot string, id string) (tusd.Upload, error)

func New

func New(m map[string]interface{}, _ events.Stream, _ *zerolog.Logger) (storage.FS, error)

New creates an OCM storage driver.

func NewUpload

func NewUpload(ctx context.Context, d *driver, storageRoot string, info tusd.FileInfo) (tusd.Upload, error)

Types

type BearerAuthenticator

type BearerAuthenticator struct {
	Token string
}

BearerAuthenticator represents an authenticator that adds a Bearer token to the Authorization header of HTTP requests.

func (BearerAuthenticator) Authorize

func (b BearerAuthenticator) Authorize(_ *http.Client, r *http.Request, _ string) error

Authorize adds the Bearer token to the Authorization header of the provided HTTP request.

func (BearerAuthenticator) Clone

Clone creates a new instance of the BearerAuthenticator.

func (BearerAuthenticator) Close

func (BearerAuthenticator) Close() error

Close is not implemented for the BearerAuthenticator. It always returns nil.

func (BearerAuthenticator) Verify

Verify is not implemented for the BearerAuthenticator. It always returns false and nil error.

Jump to

Keyboard shortcuts

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