gitlab

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GITLAB_API_KEY          = "gitlab_api_key"
	GITLAB_GRAHPQL_ENDPOINT = "gitlab_graphql_endpoint"
)

Functions

func GetRepositories

func GetRepositories(ctx context.Context, gLab *gitutils.GitService, pagedSearch *GitLabPagedSearch) (projects []GitLabProject, loc GitLabCursorLocation, err error)

Types

type GitLabCursorLocation added in v0.0.4

type GitLabCursorLocation struct {
	EndCursor   string
	HasNextPage bool
}

type GitLabPagedSearch added in v0.0.4

type GitLabPagedSearch struct {
	ServiceID  string
	PageSize   int
	First      int //(first: n, ...) in the query
	NextCursor string
}

type GitLabProject

type GitLabProject struct {
	Name          string
	Description   string
	ID            string
	Archived      bool
	HttpUrlToRepo string
	Repository    struct {
		BranchNames []string
	}
	Group struct {
		ID          string
		Name        string
		Description string
	}
}

func GetGitLabRepositoryStatus added in v0.9.2

func GetGitLabRepositoryStatus(ctx context.Context, gLab *gitutils.GitService, repo *projects.Repository) (project GitLabProject, err error)

type GitLabProjectSearchResult added in v0.0.3

type GitLabProjectSearchResult struct {
	InstanceID             string
	Projects               []GitLabProject
	EndCursor              string
	HasNextPage            bool
	RemainingProjectsCount int64 //how many projects remain after this qeury cursor
}

Jump to

Keyboard shortcuts

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