Documentation
¶
Index ¶
- func AccessLevelHelpText() string
- func AccessLevelName(level gitlab.AccessLevelValue) string
- func CookieSessionValid(gitlabUrl string, cookieVal string)
- func DetermineVersion(gitlabUrl string, apiToken string) *gitlab.Metadata
- func FetchCICDYml(git *gitlab.Client, pid int64) (string, error)
- func GetGitlabClient(token string, url string) (*gitlab.Client, error)
- func IterateGroupProjects(client *gitlab.Client, groupID interface{}, ...) error
- func IterateProjects(client *gitlab.Client, opts *gitlab.ListProjectsOptions, ...) error
- func ListAllUsers(git *gitlab.Client) ([]*gitlab.User, *gitlab.Response, error)
- func ParseAccessLevel(value string) (gitlab.AccessLevelValue, error)
- func RegisterNewAccount(targetUrl string, username string, password string, email string)
- type ProjectIteratorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLevelHelpText ¶ added in v0.67.0
func AccessLevelHelpText() string
AccessLevelHelpText describes the supported named and numeric access levels.
func AccessLevelName ¶ added in v0.59.0
func AccessLevelName(level gitlab.AccessLevelValue) string
AccessLevelName returns the human-readable name for a GitLab access level value.
func CookieSessionValid ¶
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 ListAllUsers ¶ added in v0.67.0
ListAllUsers pages through /api/v4/users and returns all users found. It returns the last API response on error to allow callers to inspect HTTP status codes.
func ParseAccessLevel ¶ added in v0.67.0
func ParseAccessLevel(value string) (gitlab.AccessLevelValue, error)
ParseAccessLevel converts a user-facing access level string into a GitLab access level value. It accepts documented names such as "developer" or "security-manager" and also numeric values.
Types ¶
type ProjectIteratorFunc ¶
ProjectIteratorFunc is a callback function type for processing each project