gitlab

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0, 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 Connector

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

func NewConnector

func NewConnector() *Connector

NewConnector creates a stateless connector. Each data source provides its own GitLab URL and access token in its encrypted credentials.

func (*Connector) FetchAll

func (c *Connector) FetchAll(ctx context.Context, ds *types.DataSourceConfig, _ []string) ([]types.FetchedItem, error)

func (*Connector) FetchIncremental

func (*Connector) FetchStream

FetchStream is the production sync path. It emits each supported repository file as soon as it is read, so large GitLab projects do not accumulate their contents in memory. The service prefers this method for StreamingConnector implementations; FetchAll and FetchIncremental remain compatibility methods required by the base Connector interface.

func (*Connector) ListResources

func (c *Connector) ListResources(ctx context.Context, ds *types.DataSourceConfig, parent string) ([]types.Resource, error)

func (*Connector) ResolveResourceAncestors

func (c *Connector) ResolveResourceAncestors(context.Context, *types.DataSourceConfig, []string) ([]string, error)

func (*Connector) Type

func (c *Connector) Type() string

func (*Connector) Validate

func (c *Connector) Validate(ctx context.Context, ds *types.DataSourceConfig) error

Jump to

Keyboard shortcuts

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