ocm

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: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpload added in v2.18.0

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 added in v2.18.0

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

Types

type BearerAuthenticator added in v2.18.0

type BearerAuthenticator struct {
	Token string
}

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

func (BearerAuthenticator) Authorize added in v2.18.0

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 added in v2.18.0

Clone creates a new instance of the BearerAuthenticator.

func (BearerAuthenticator) Close added in v2.18.0

func (BearerAuthenticator) Close() error

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

func (BearerAuthenticator) Verify added in v2.18.0

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