Help us shape the future of Go! Take the 2026 Go Developer Survey

users

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGroupRunnerOptions

func GenerateGroupRunnerOptions(p *groupsv1alpha1.RunnerParameters) *gitlab.CreateUserRunnerOptions

GenerateGroupRunnerOptions generates user runner creation options for a runner linked to a group

func GenerateInstanceRunnerOptions added in v0.16.0

func GenerateInstanceRunnerOptions(p *instancev1alpha1.RunnerParameters) *gitlab.CreateUserRunnerOptions

GenerateInstanceRunnerOptions generates user runner creation options for a runner linked to the instance

func GenerateProjectRunnerOptions

func GenerateProjectRunnerOptions(p *projectsv1alpha1.RunnerParameters) *gitlab.CreateUserRunnerOptions

GenerateProjectRunnerOptions generates user runner creation options for a runner linked to a project

func GetUserID

func GetUserID(git UserClient, username string) (*int64, error)

GetUserID gets Gitlab userID by Gitlab username

Types

type RunnerClient

type RunnerClient interface {
	CreateUserRunner(opts *gitlab.CreateUserRunnerOptions, options ...gitlab.RequestOptionFunc) (*gitlab.UserRunner, *gitlab.Response, error)
}

RunnerClient defines Gitlab User service operations

func NewRunnerClient

func NewRunnerClient(cfg common.Config) RunnerClient

NewRunnerClient returns a new Gitlab User service

type UserClient

type UserClient interface {
	ListUsers(opt *gitlab.ListUsersOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.User, *gitlab.Response, error)
}

UserClient defines Gitlab User service operations

func NewUserClient

func NewUserClient(cfg common.Config) UserClient

NewUserClient returns a new Gitlab User service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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