gitlab

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitlabSource added in v0.0.2

func NewGitlabSource(client Client, token, fullPath, path string) source.Source

func NewPlugin

func NewPlugin(url string, needAuth bool) source.Plugin

NewPlugin constructor

func NewPluginGitlabClient

func NewPluginGitlabClient(needAuth bool, client Client) source.Plugin

NewPluginGitlabClient constructor with given gitlab client

func NewPluginGitlabTokenClient

func NewPluginGitlabTokenClient(token string, client Client) source.Plugin

NewPluginGitlabTokenClient constructor with given gitlab client

func NewPluginToken

func NewPluginToken(url, token string) source.Plugin

NewPluginToken constructor

Types

type Client

type Client interface {
	Tags(ctx context.Context, project, tag, token string) ([]byte, error)
	GoMod(ctx context.Context, project, tag, token string) ([]byte, error)
	ModuleInfo(ctx context.Context, project, token string) ([]byte, error)
	Archive(ctx context.Context, project, tag, token string) (io.ReadCloser, error)
}

Client implements access for gitlab functions needed

func NewClient

func NewClient(url string, client *http.Client) Client

NewClient returns direct gitlab client

Jump to

Keyboard shortcuts

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