gitlabclient

package
v0.0.0-...-e7e7cf4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: EUPL-1.2 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitLabGroup

func GetGitLabGroup(gitLab *gitlab.Client, gitlabGroupPath string) (*gitlab.Group, error)

GetGitLabGroup gets a group in GitLab GitLab search does not support groupnames with 2 chars, so we cannot use the search option Search strategy: find the root group and traverse the tree with ListSubgroups()

func NewGitLabClient

func NewGitLabClient(gitlabURL string) *gitlab.Client

NewGitLabClient initalizes a new gitlab.Client and connects to GitLab

func UpdateGroupVariable

func UpdateGroupVariable(gitlabClient *gitlab.Client, group *gitlab.Group, Key string, groupVar GroupVariable) error

UpdateGroupVariable creates or updates an environment variable in a GitLab Group

func UpdateVarsInGitLabGroup

func UpdateVarsInGitLabGroup(gitlabClient *gitlab.Client, groupPath string, groupVars map[string]GroupVariable) error

UpdateVarsInGitLabGroup updates environment vars in GitLab group

Types

type GroupVariable

type GroupVariable struct {
	Value  string `json:"value"`
	Masked bool   `json:"masked"`
}

GroupVariable defines a GitLab group variable

Jump to

Keyboard shortcuts

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