gogpat

package
v0.0.0-...-f2c5781 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(gr GitLabTokenRequest) (string, error)

CreateToken creates the token for a given gitlab instance

func NewScope

func NewScope(values url.Values, s Scope) url.Values

NewScope exports the permission for gitlab that is currently requested for the token

Types

type GitLabTokenRequest

type GitLabTokenRequest struct {
	URL       string
	Username  string
	Password  string
	Scope     Scope
	Date      string
	TokenName string
}

GitLabTokenRequest describes the token Request

type Scope

type Scope struct {
	API          bool
	ReadUser     bool
	Sudo         bool
	ReadRegistry bool
}

Scope define the scope of the personal access token a minimum of api must be set

Jump to

Keyboard shortcuts

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