lfs

package
v1.24.7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 31 Imported by: 2

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 added in v1.24.7

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 added in v1.24.7

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

Jump to

Keyboard shortcuts

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