Documentation ¶
Overview ¶
Copyright 2017 by Christian Hüning (christianhuening@googlemail.com).
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const UserStateBlocked = "blocked"
Variables ¶
This section is empty.
Functions ¶
func SetupK8sIntegrationForGitlabProject ¶
func SetupK8sIntegrationForGitlabProject(projectId, namespace, token string)
func TranslateIntAccessLevels ¶
From: https://docs.gitlab.com/ee/api/members.html 10 => Guest access 20 => Reporter access 30 => Developer access 40 => Maintainer access 50 => Owner access # Only valid for groups
Types ¶
type ErrorMessage ¶
type ErrorMessage struct {
Message Msg
}
type GitlabContent ¶
type GitlabContent struct { Groups []GitlabGroup Projects []GitlabProject Users []GitlabUser }
func GetFullGitlabContent ¶
func GetFullGitlabContent() (*GitlabContent, error)
type GitlabGroup ¶
func GetAllGroups ¶
func GetAllGroups(gitlabGroups []GitlabGroup, url string) ([]GitlabGroup, error)
type GitlabProject ¶
type GitlabProject struct { Id int PathWithNameSpace string `json:"path_with_namespace"` Members []Member Links Links `json:"_links"` Namespace Namespace `json:"namespace"` Path string `json:"path"` }
func GetAllProjects ¶
func GetAllProjects(gitlabProjects []GitlabProject, url string) ([]GitlabProject, error)
type GitlabUser ¶
func GetAllUsers ¶
func GetAllUsers(gitlabUsers []GitlabUser, url string) ([]GitlabUser, error)