users

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGroupRunnerOptions added in v0.13.0

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

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

func GenerateProjectRunnerOptions added in v0.13.0

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) (*int, error)

GetUserID gets Gitlab userID by Gitlab username

Types

type RunnerClient added in v0.13.0

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

UserClient defines Gitlab User service operations

func NewRunnerClient added in v0.13.0

func NewRunnerClient(cfg clients.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 clients.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