Documentation
¶
Index ¶
- type GitGetGitlab
- func (gitProvider *GitGetGitlab) CreateProject(repositorySha string, baseUrl string, projectName string, namespaceID int64, ...) *gitlab.Project
- func (gitProvider *GitGetGitlab) FetchOwnerRepos(repositorySha, baseURL, groupName string, gitlabOwned bool, ...) []*gitlab.Project
- func (gitProvider *GitGetGitlab) GetProjectNamespace(repositorySha string, baseUrl string, projectNameFullPath string) (namespaceObject *gitlab.Namespace, namespaceFullPath string)
- func (gitProvider *GitGetGitlab) Init() bool
- func (gitProvider *GitGetGitlab) ProjectExists(repositorySha, baseUrl, projectName string) bool
- type GitGetGitlabI
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
}
Click to show internal directories.
Click to hide internal directories.