requestsresponses

package
v0.0.0-...-8814989 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	OperationName string
	Response      interface{}
	Code          int
}

APIError wraps an error model and captures the status code

func NewAPIError

func NewAPIError(opName string, response interface{}, code int) APIError

NewAPIError creates a new API error

func (APIError) Error

func (a APIError) Error() string

type GetPullRequestActivitiesOK

type GetPullRequestActivitiesOK struct {
	Payload *models.PullRequestActivitiesResponse
}

type GetPullRequestActivitiesParams

type GetPullRequestActivitiesParams struct {
	/*Limit
	  Probably defaults to 25. It is a best practice to check the limit attribute on the response to see what limit has been applied.
	*/
	Limit         *int64
	Project       string
	PullRequestID int64
	Repo          string
}

GetPullRequestActivitiesParams contains all the parameters to send to the API endpoint for the get pull request activities operation typically these are written to a http.Request

type GetPullRequestsOK

type GetPullRequestsOK struct {
	Payload *models.PullRequestsResponse
}

type GetPullRequestsParams

type GetPullRequestsParams struct {
	/*Limit
	  Probably defaults to 25. It is a best practice to check the limit attribute on the response to see what limit has been applied.
	*/
	Limit *int64
	/*Order
	  NEWEST is as in newest first.
	*/
	Order   *string
	Project string
	Repo    string
	Role1   *string
	Role2   *string
	/*Start
	  The count of the result to start with, inclusive (I think).
	*/
	Start *int64
	/*State
	  You probably want to include this in, and probably as ALL to see everything (which you won't by default).
	*/
	State     *string
	Username1 *string
	Username2 *string
}

Jump to

Keyboard shortcuts

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