Documentation ¶
Index ¶
- func GetGitLabGroup(gitLab *gitlab.Client, gitlabGroupPath string) (*gitlab.Group, error)
- func NewGitLabClient(gitlabURL string) *gitlab.Client
- func UpdateGroupVariable(gitlabClient *gitlab.Client, group *gitlab.Group, Key string, ...) error
- func UpdateVarsInGitLabGroup(gitlabClient *gitlab.Client, groupPath string, ...) error
- type GroupVariable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitLabGroup ¶
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 ¶
GroupVariable defines a GitLab group variable
Click to show internal directories.
Click to hide internal directories.