gitlab

package
v0.0.0-...-17add77 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2018 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Thanker

type Thanker struct {
	// contains filtered or unexported fields
}

Thanker is a light Gitlab API HTTP client capable of starring a repository.

func New

func New(token string) Thanker

New creates a new thanker for Gitlab with the apiToken set.

func (Thanker) Auth

func (t Thanker) Auth() error

Auth checks whether thanker's apiToken is a valid one for Gitlab.

func (Thanker) CanThank

func (t Thanker) CanThank(r discover.Repository) bool

CanThank reports, whether Gitlab thanker is capable of thanking to repository r, by checking package prefix.

func (Thanker) Thank

func (t Thanker) Thank(r discover.Repository) error

Thank stars a repository as a user with thanker's apiToken on Gitlab.

Jump to

Keyboard shortcuts

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