Categorygithub.com/sirkon/gitlab
modulepackage
0.0.5
Repository: https://github.com/sirkon/gitlab.git
Documentation: pkg.go.dev

# README

GITLAB API library

This library is aimed for cooperative access of many users to a single gitlab instance.

Usage

package main

import (
	"context"
	"log"
	
	"github.com/sirkon/gitlab"
)

func main() {
	access := gitlab.NewAPIAccess(nil, "gitlab.com/api/v4")
	client := access.Client("user-token")
	
	tags, err := client.Tags(context.Background(), "user/project", "")
	if err != nil {
		log.Fatal(err)
	}
	
	log.Printf("%#v", tags)
}

# Packages

No description provided by the author

# Functions

NewAPIAccess creates an access point to gitlab API instance httpClient can be nil, http.DefaultClient will be used if it is url must be a full path to gitlab API, e.g.

# Interfaces

APIAccess spawns API clients for a given user.
Client an implementation of gitlab API access for a given user.