package
Version:
v14.39.0
Opens a new window with list of versions in this module.
Published: Aug 15, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package lfsauthenticate provides functionality for authenticating Large File Storage (LFS) requests
Client represents a client for LFS authentication
NewClient creates a new LFS authentication client
Authenticate performs authentication for LFS requests
type Request struct {
Operation string `json:"operation"`
Repo string `json:"project"`
KeyID string `json:"key_id,omitempty"`
UserID string `json:"user_id,omitempty"`
}
Request represents a request for LFS authentication
type Response struct {
Username string `json:"username"`
LfsToken string `json:"lfs_token"`
RepoPath string `json:"repository_http_path"`
ExpiresIn int `json:"expires_in"`
}
Response represents a response from LFS authentication
Source Files
¶
Click to show internal directories.
Click to hide internal directories.