Help us shape the future of Go! Take the 2026 Go Developer Survey

lfs

package
v3.1.38 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchHandler

func BatchHandler(ctx *context.Context)

BatchHandler provides the batch api

func CheckAcceptMediaType

func CheckAcceptMediaType(ctx *context.Context)

CheckAcceptMediaType checks if the client accepts the LFS media type.

func DownloadHandler

func DownloadHandler(ctx *context.Context)

DownloadHandler gets the content from the content store

func GetLFSAuthTokenWithBearer

func GetLFSAuthTokenWithBearer(opts AuthTokenOptions) (string, error)

func GetListLockHandler

func GetListLockHandler(ctx *context.Context)

GetListLockHandler list locks

func PostLockHandler

func PostLockHandler(ctx *context.Context)

PostLockHandler create lock

func UnLockHandler

func UnLockHandler(ctx *context.Context)

UnLockHandler delete locks

func UploadHandler

func UploadHandler(ctx *context.Context)

UploadHandler receives data from the client and puts it into the content store

func VerifyHandler

func VerifyHandler(ctx *context.Context)

VerifyHandler verify oid and its size from the content store

func VerifyLockHandler

func VerifyLockHandler(ctx *context.Context)

VerifyLockHandler list locks for verification

Types

type AuthTokenOptions

type AuthTokenOptions struct {
	Op     string
	UserID int64
	RepoID int64
}

type Claims

type Claims struct {
	RepoID int64
	Op     string
	UserID int64
	jwt.RegisteredClaims
}

Claims is a JWT Token Claims

Source Files

  • locks.go
  • server.go

Jump to

Keyboard shortcuts

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