gitlabnet

package
v9.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParsingError = fmt.Errorf("Parsing failed")
)

Functions

func ParseJSON

func ParseJSON(hr *http.Response, response interface{}) error

Types

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

type GitlabClient

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

func GetClient

func GetClient(config *config.Config) (*GitlabClient, error)

func (*GitlabClient) DoRequest

func (c *GitlabClient) DoRequest(method, path string, data interface{}) (*http.Response, error)

func (*GitlabClient) Get

func (c *GitlabClient) Get(path string) (*http.Response, error)

func (*GitlabClient) Post

func (c *GitlabClient) Post(path string, data interface{}) (*http.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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