gitlab

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitGetGitlab added in v0.0.14

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

func (*GitGetGitlab) CreateProject added in v0.0.14

func (gitProvider *GitGetGitlab) CreateProject(
	repositorySha string,
	baseUrl string,
	projectName string,
	namespaceID int64,
	mirrorVisibilityMode string,
	sourceURL string,
) *gitlab.Project

CreateProject - Create new code repository

func (*GitGetGitlab) FetchOwnerRepos added in v0.0.14

func (gitProvider *GitGetGitlab) FetchOwnerRepos(
	repositorySha, baseURL, groupName string,
	gitlabOwned bool,
	gitlabVisibility, gitlabMinAccessLevel string,
) []*gitlab.Project

FetchOwnerRepos - fetches all repositories for the specified gitlab path

func (*GitGetGitlab) GetProjectNamespace added in v0.0.14

func (gitProvider *GitGetGitlab) GetProjectNamespace(
	repositorySha string,
	baseUrl string,
	projectNameFullPath string,
) (namespaceObject *gitlab.Namespace, namespaceFullPath string)

GetProjectNamespace - return Project Namespace and namespace full path

func (*GitGetGitlab) Init added in v0.0.14

func (gitProvider *GitGetGitlab) Init() bool

func (*GitGetGitlab) ProjectExists added in v0.0.14

func (gitProvider *GitGetGitlab) ProjectExists(repositorySha, baseUrl, projectName string) bool

ProjectExists checks if project exists and returns boolean if API call is successful

type GitGetGitlabI added in v0.0.14

type GitGetGitlabI interface {
	Init() bool

	ProjectExists(
		repositorySha string,
		baseUrl string,
		projectName string,
	) bool
	GetProjectNamespace(
		repositorySha string,
		baseUrl string,
		projectNameFullPath string,
	) (*gitlab.Namespace, string)

	CreateProject(
		repositorySha string,
		baseUrl string,
		projectName string,
		namespaceID int64,
		mirrorVisibilityMode string,
		sourceURL string,
	) *gitlab.Project

	FetchOwnerRepos(
		repositorySha, baseURL, groupName string,
		gitlabOwned bool,
		gitlabVisibility, gitlabMinAccessLevel string,
	) []*gitlab.Project
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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