gitlab

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 int,
	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) (*gitlab.Namespace, 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 string, baseUrl string, 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 int,
		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