Documentation
¶
Index ¶
- type GitlabAdapter
- func (a *GitlabAdapter) AddComment(ctx context.Context, externalID string, body string) error
- func (a *GitlabAdapter) Capabilities() adapter.AdapterCapabilities
- func (a *GitlabAdapter) Fetch(ctx context.Context, externalID string) (domain.Session, error)
- func (a *GitlabAdapter) ListSelectable(ctx context.Context, opts adapter.ListOpts) (*adapter.ListResult, error)
- func (a *GitlabAdapter) Name() string
- func (a *GitlabAdapter) OnEvent(ctx context.Context, event domain.SystemEvent) error
- func (a *GitlabAdapter) Resolve(ctx context.Context, sel adapter.Selection) (domain.Session, error)
- func (a *GitlabAdapter) UpdateState(ctx context.Context, externalID string, state domain.TrackerState) error
- func (a *GitlabAdapter) Watch(ctx context.Context, filter adapter.WorkItemFilter) (<-chan adapter.WorkItemEvent, error)
- type GitlabRepoSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitlabAdapter ¶
type GitlabAdapter struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, cfg config.GitlabConfig) (*GitlabAdapter, error)
func (*GitlabAdapter) AddComment ¶
func (*GitlabAdapter) Capabilities ¶
func (a *GitlabAdapter) Capabilities() adapter.AdapterCapabilities
func (*GitlabAdapter) ListSelectable ¶
func (a *GitlabAdapter) ListSelectable(ctx context.Context, opts adapter.ListOpts) (*adapter.ListResult, error)
func (*GitlabAdapter) Name ¶
func (a *GitlabAdapter) Name() string
func (*GitlabAdapter) OnEvent ¶
func (a *GitlabAdapter) OnEvent(ctx context.Context, event domain.SystemEvent) error
func (*GitlabAdapter) UpdateState ¶
func (a *GitlabAdapter) UpdateState(ctx context.Context, externalID string, state domain.TrackerState) error
func (*GitlabAdapter) Watch ¶
func (a *GitlabAdapter) Watch(ctx context.Context, filter adapter.WorkItemFilter) (<-chan adapter.WorkItemEvent, error)
type GitlabRepoSource ¶
type GitlabRepoSource struct {
// contains filtered or unexported fields
}
GitlabRepoSource lists the user's GitLab projects for repository selection.
func NewRepoSource ¶
func NewRepoSource(ctx context.Context, cfg config.GitlabConfig) (*GitlabRepoSource, error)
NewRepoSource creates a GitLab repo source with token resolution. If cfg.Token is empty, it falls back to the glab CLI token.
func (*GitlabRepoSource) ListRepos ¶
func (s *GitlabRepoSource) ListRepos(ctx context.Context, opts adapter.RepoListOpts) (*adapter.RepoListResult, error)
ListRepos returns a page of GitLab projects. When opts.Search is non-empty, the GitLab search API is used. Pagination is driven by the Link response header.
func (*GitlabRepoSource) Name ¶
func (s *GitlabRepoSource) Name() string
Name returns the source identifier.
Click to show internal directories.
Click to hide internal directories.