Documentation
¶
Overview ¶
Package gitlab implements the read-only Source for GitLab.com and self-managed GitLab. Auth is a read-scoped access token (project, group, or personal). It has no mutating operations.
Index ¶
- type Options
- type Source
- func (s *Source) CloneURL(_ context.Context, r source.Repo) (string, error)
- func (s *Source) FetchMetadata(ctx context.Context, r source.Repo) ([]byte, error)
- func (s *Source) GitAuthHeader(_ context.Context) (string, error)
- func (s *Source) ListRepos(ctx context.Context, f source.Filter) ([]source.Repo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
BaseURL string // empty = gitlab.com; self-managed: https://gitlab.example.com
Token string // read-scoped access token
}
Options configures the GitLab source.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is a read-only GitLab backend.
func (*Source) FetchMetadata ¶
FetchMetadata dumps per-resource project metadata as gitdr.meta/v1 JSON.
func (*Source) GitAuthHeader ¶
GitAuthHeader returns the token as Basic auth (username oauth2) for git over HTTPS, injected into git via env so it never hits argv.
Click to show internal directories.
Click to hide internal directories.