handlers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchObjectActionResponse

type BatchObjectActionResponse struct {
	Href      string            `json:"href"`
	HeadHref  string            `json:"head_href,omitempty"`
	Header    map[string]string `json:"header,omitempty"`
	ExpiresIn int               `json:"expires_in,omitempty"`
	ExpiresAt time.Time         `json:"expires_at,omitempty"`
}

BatchObjectActionResponse is the action item of a BatchObjectResponse

type BatchObjectErrorResponse added in v0.2.0

type BatchObjectErrorResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type BatchObjectResponse

type BatchObjectResponse struct {
	OID           string                                `json:"oid"`
	Size          int64                                 `json:"size"`
	Actions       map[string]*BatchObjectActionResponse `json:"actions,omitempty"`
	Error         *BatchObjectErrorResponse             `json:"error,omitempty"`
	Authenticated bool                                  `json:"authenticated,omitempty"`
}

BatchObjectResponse is the object item of a BatchResponse

type BatchRequest

type BatchRequest struct {
	Operation string                 `json:"operation"`
	Objects   []*BatchObjectResponse `json:"objects"`
	Transfers []string               `json:"transfers"`
	Ref       map[string]string      `json:"ref"`
	HashAlgo  string                 `json:"hash_algo"`
}

type BatchResponse

type BatchResponse struct {
	Transfer string                 `json:"transfer,omitempty"`
	Objects  []*BatchObjectResponse `json:"objects"`
}

BatchResponse represents a batch response payload.

https://github.com/git-lfs/git-lfs/blob/master/docs/api/batch.md#successful-responses

type HealthHandler

type HealthHandler struct{}

func (HealthHandler) Get

func (h HealthHandler) Get(c *gin.Context)

type LFSHandler

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

func NewLFSHandler

func NewLFSHandler(ctx context.Context, cfg *config.Config) (*LFSHandler, error)

func (*LFSHandler) GetManifest added in v0.4.0

func (l *LFSHandler) GetManifest(c *gin.Context)

func (*LFSHandler) PostBatch

func (l *LFSHandler) PostBatch(c *gin.Context)

func (*LFSHandler) Shutdown added in v0.4.0

func (l *LFSHandler) Shutdown(ctx context.Context)

Jump to

Keyboard shortcuts

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