util

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 12 Imported by: 1 module, 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

func CookieSessionValid

func CookieSessionValid(gitlabUrl string, cookieVal string)

func DetermineVersion

func DetermineVersion(gitlabUrl string, apiToken string) *gitlab.Metadata

func FetchCICDYml

func FetchCICDYml(git *gitlab.Client, pid int64) (string, error)

func GetGitlabClient

func GetGitlabClient(token string, url string) (*gitlab.Client, error)

func IterateGroupProjects

func IterateGroupProjects(client *gitlab.Client, groupID interface{}, opts *gitlab.ListGroupProjectsOptions, callback ProjectIteratorFunc) error

IterateGroupProjects loops through group projects with pagination and calls the provided callback function for each project. Returns an error if project fetching fails.

func IterateProjects

func IterateProjects(client *gitlab.Client, opts *gitlab.ListProjectsOptions, callback ProjectIteratorFunc) error

IterateProjects loops through projects with pagination and calls the provided callback function for each project. Returns an error if project fetching fails.

func RegisterNewAccount

func RegisterNewAccount(targetUrl string, username string, password string, email string)

Types

type ProjectIteratorFunc

type ProjectIteratorFunc func(project *gitlab.Project) error

ProjectIteratorFunc is a callback function type for processing each project

Jump to

Keyboard shortcuts

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