operations

package
v0.0.0-...-d8f78ea Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: Apache-2.0 Imports: 7 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 Client

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

Client for operations API

func New

func New(transport client.Transport, formats strfmt.Registry) *Client

New creates a new operations API client.

func (*Client) GetCommits

func (a *Client) GetCommits(params GetCommitsParams) (*GetCommitsOK, error)

Returns commits for a project and repo

func (*Client) GetPullRequestActivities

func (a *Client) GetPullRequestActivities(params GetPullRequestActivitiesParams) (*GetPullRequestActivitiesOK, error)

Get activities for a pull request (comments, etc)

func (*Client) GetPullRequests

func (a *Client) GetPullRequests(params GetPullRequestsParams) (*GetPullRequestsOK, error)

Get recent pull requests.

func (*Client) SetTransport

func (a *Client) SetTransport(transport client.Transport)

SetTransport changes the transport on the client

type GetCommitsNotFound

type GetCommitsNotFound struct {
	Payload models.NotFound
}

GetCommitsNotFound

Not Found

type GetCommitsOK

type GetCommitsOK struct {
	Payload *models.CommitsResponse
}

GetCommitsOK

Success

type GetCommitsParams

type GetCommitsParams struct {

	/*Project*/
	Project string
	/*Repo*/
	Repo string
}

GetCommitsParams contains all the parameters to send to the API endpoint for the get commits operation typically these are written to a http.Request

func (*GetCommitsParams) WriteToRequest

func (o *GetCommitsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCommitsReader

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

func (*GetCommitsReader) ReadResponse

func (o *GetCommitsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type GetPullRequestActivitiesNotFound

type GetPullRequestActivitiesNotFound struct {
	Payload models.NotFound
}

GetPullRequestActivitiesNotFound

Not Found

type GetPullRequestActivitiesOK

type GetPullRequestActivitiesOK struct {
	Payload *models.PullRequestActivitiesResponse
}

GetPullRequestActivitiesOK

Success

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*/
	Project string
	/*PullRequestID*/
	PullRequestID int64
	/*Repo*/
	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

func (*GetPullRequestActivitiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPullRequestActivitiesReader

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

func (*GetPullRequestActivitiesReader) ReadResponse

func (o *GetPullRequestActivitiesReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type GetPullRequestsNotFound

type GetPullRequestsNotFound struct {
	Payload models.NotFound
}

GetPullRequestsNotFound

Not Found

type GetPullRequestsOK

type GetPullRequestsOK struct {
	Payload *models.PullRequestsResponse
}

GetPullRequestsOK

Success

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*/
	Project string
	/*Repo*/
	Repo string
	/*Role1*/
	Role1 *string
	/*Role2*/
	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*/
	Username1 *string
	/*Username2*/
	Username2 *string
}

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

func (*GetPullRequestsParams) WriteToRequest

func (o *GetPullRequestsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPullRequestsReader

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

func (*GetPullRequestsReader) ReadResponse

func (o *GetPullRequestsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type OK

type OK struct {
	Payload *models.PullRequestsResponse
}

Success

type Params

type Params struct {
	Project string

	Repo string
}

Params contains all the parameters to send to the API endpoint for the operation typically these are written to a http.Request

func (*Params) WriteToRequest

func (o *Params) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type Reader

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

func (*Reader) ReadResponse

func (o *Reader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

Jump to

Keyboard shortcuts

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