gitlab

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(gitlabURL, gitlabToken, githubToken string) (*Client, error)

func (*Client) CreateMirror

func (c *Client) CreateMirror(repo manifest.Repo) (mirror.MirrorResult, error)

CreateMirror creates a project on GitLab by importing from the GitHub clone URL. On free-tier GitLab this performs a one-time import; on Premium it sets up pull mirroring.

func (*Client) EnsureNamespace

func (c *Client) EnsureNamespace(name string) (bool, error)

EnsureNamespace ensures the group (namespace) exists on GitLab. Returns true if created, false if it already existed.

Jump to

Keyboard shortcuts

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