lfs

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LFSRequestMiddleware added in v0.2.0

func LFSRequestMiddleware(opts Options) lfsapi.StrictMiddlewareFunc

func RegisterLFSRoutes

func RegisterLFSRoutes(router fiber.Router, om *core.ObjectManager, opts ...Options)

func ResetLFSLimitersForTest added in v0.2.0

func ResetLFSLimitersForTest()

func ValidateLFSRequestHeaders added in v0.2.0

func ValidateLFSRequestHeaders(c fiber.Ctx, requireAccept bool, requireContentType bool) bool

func WriteLFSError added in v0.2.0

func WriteLFSError(c fiber.Ctx, status int, message string, challenge bool) error

Types

type LFSServer added in v0.2.0

type LFSServer struct {
	// contains filtered or unexported fields
}

func NewLFSServer added in v0.2.0

func NewLFSServer(om *core.ObjectManager, opts Options) *LFSServer

func (*LFSServer) LfsBatch added in v0.2.0

func (*LFSServer) LfsStageMetadata added in v0.2.0

func (*LFSServer) LfsUploadProxy added in v0.2.0

func (*LFSServer) LfsVerify added in v0.2.0

type Options

type Options struct {
	MaxBatchObjects              int
	MaxBatchBodyBytes            int64
	RequestLimitPerMinute        int
	BandwidthLimitBytesPerMinute int64
}

func DefaultOptions

func DefaultOptions() Options

Jump to

Keyboard shortcuts

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