Documentation
¶
Overview ¶
Package gitlabnet provides client utilities for interacting with GitLab's internal API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
func GetClient(config *config.Config) (*client.GitlabNetClient, error)
GetClient creates and returns a new GitlabNetClient configured with the provided settings.
Types ¶
type GlID ¶ added in v14.50.0
type GlID struct {
// contains filtered or unexported fields
}
GlID represents a parsed GitLab gl_id identifier. Use UserID() or DeployTokenID() to extract the typed value.
func ParseGlID ¶ added in v14.50.0
ParseGlID parses a GitLab gl_id string into its typed representation.
Known gl_id formats (see https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/gl_id.rb):
- "user-<N>" → UserID() returns (N, true)
- "deploy-token-<N>" → DeployTokenID() returns (N, true)
Returns an error for unrecognized or malformed formats.
func (*GlID) DeployTokenID ¶ added in v14.50.0
DeployTokenID returns the numeric deploy token ID and true if the gl_id represents a deploy token.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package accessverifier provides functionality for verifying access to GitLab resources
|
Package accessverifier provides functionality for verifying access to GitLab resources |
|
Package authorizedcerts implements functions for authorizing users with ssh certificates
|
Package authorizedcerts implements functions for authorizing users with ssh certificates |
|
Package authorizedkeys provides functionality for interacting with authorized keys.
|
Package authorizedkeys provides functionality for interacting with authorized keys. |
|
Package discover provides functionality for discovering GitLab users
|
Package discover provides functionality for discovering GitLab users |
|
Package git provides functionality for interacting with Git repositories.
|
Package git provides functionality for interacting with Git repositories. |
|
Package gitauditevent handles Git audit events for GitLab.
|
Package gitauditevent handles Git audit events for GitLab. |
|
Package healthcheck implements a HTTP client to request healthcheck endpoint
|
Package healthcheck implements a HTTP client to request healthcheck endpoint |
|
Package lfsauthenticate provides functionality for authenticating Large File Storage (LFS) requests
|
Package lfsauthenticate provides functionality for authenticating Large File Storage (LFS) requests |
|
Package lfstransfer provides functionality for handling LFS (Large File Storage) transfers.
|
Package lfstransfer provides functionality for handling LFS (Large File Storage) transfers. |
|
Package personalaccesstoken provides functionality for managing personal access tokens
|
Package personalaccesstoken provides functionality for managing personal access tokens |
|
Package twofactorrecover provides functionality for interacting with GitLab Two-Factor Authentication recovery codes
|
Package twofactorrecover provides functionality for interacting with GitLab Two-Factor Authentication recovery codes |
|
Package twofactorverify provides functionality for verifying two-factor authentication in GitLab.
|
Package twofactorverify provides functionality for verifying two-factor authentication in GitLab. |
Click to show internal directories.
Click to hide internal directories.