ocm

package
v2.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 40 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) (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 {
	// contains filtered or unexported fields
}

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