Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NoGitLabCredentialsError = errors.New("there is neither a CI_JOB_TOKEN nor GITLAB_TOKEN set." +
" Please go to your GitLab profile page and create yourself a token with at least the permission" +
" `read_api` and store it as environment variables GITLAB_TOKEN=<created_token>" +
" ; For more details refer: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html")
)
Functions ¶
func RequireValue ¶
Types ¶
type GitLabCredentials ¶
type GitLabCredentials struct {
Type GitLabCredentialsType
Token string
}
func GetGitLabCredentials ¶
func GetGitLabCredentials() (GitLabCredentials, error)
func MustGetGitLabCredentials ¶
func MustGetGitLabCredentials() GitLabCredentials
func (GitLabCredentials) BeforeRequest ¶
func (GitLabCredentials) Self ¶
func (instance GitLabCredentials) Self() mhttp.Plugin
type GitLabCredentialsType ¶
type GitLabCredentialsType string
const ( GitLabJobToken GitLabCredentialsType = "Job-Token" GitLabPrivateToken GitLabCredentialsType = "Private-Token" )
Click to show internal directories.
Click to hide internal directories.