projects

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCollaboratorReq

type AddCollaboratorReq struct {
	ProjectId   int64
	Username    string
	RequestBody AddCollaboratorReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

AddCollaboratorReq is request data for Client.AddCollaborator

https://developer.github.com/v3/projects/collaborators/#add-project-collaborator

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*AddCollaboratorReq) HTTPRequest

func (r *AddCollaboratorReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*AddCollaboratorReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type AddCollaboratorReqBody

type AddCollaboratorReqBody struct {

	// The permission to grant the collaborator.
	Permission *string `json:"permission,omitempty"`
}

AddCollaboratorReqBody is a request body for projects/add-collaborator

https://developer.github.com/v3/projects/collaborators/#add-project-collaborator

type AddCollaboratorResponse

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

AddCollaboratorResponse is a response for AddCollaborator

https://developer.github.com/v3/projects/collaborators/#add-project-collaborator

func AddCollaborator

func AddCollaborator(ctx context.Context, req *AddCollaboratorReq, opt ...requests.Option) (*AddCollaboratorResponse, error)

AddCollaborator performs requests for "projects/add-collaborator"

Add project collaborator.

PUT /projects/{project_id}/collaborators/{username}

https://developer.github.com/v3/projects/collaborators/#add-project-collaborator

func (*AddCollaboratorResponse) HTTPResponse

func (r *AddCollaboratorResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*AddCollaboratorResponse) ReadResponse

func (r *AddCollaboratorResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type Client

type Client []requests.Option

Client is a set of options to apply to requests

func NewClient

func NewClient(opt ...requests.Option) Client

NewClient returns a new Client

func (Client) AddCollaborator

func (c Client) AddCollaborator(ctx context.Context, req *AddCollaboratorReq, opt ...requests.Option) (*AddCollaboratorResponse, error)

AddCollaborator performs requests for "projects/add-collaborator"

Add project collaborator.

PUT /projects/{project_id}/collaborators/{username}

https://developer.github.com/v3/projects/collaborators/#add-project-collaborator

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) CreateCard

func (c Client) CreateCard(ctx context.Context, req *CreateCardReq, opt ...requests.Option) (*CreateCardResponse, error)

CreateCard performs requests for "projects/create-card"

Create a project card.

POST /projects/columns/{column_id}/cards

https://developer.github.com/v3/projects/cards/#create-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) CreateColumn

func (c Client) CreateColumn(ctx context.Context, req *CreateColumnReq, opt ...requests.Option) (*CreateColumnResponse, error)

CreateColumn performs requests for "projects/create-column"

Create a project column.

POST /projects/{project_id}/columns

https://developer.github.com/v3/projects/columns/#create-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) CreateForAuthenticatedUser

func (c Client) CreateForAuthenticatedUser(ctx context.Context, req *CreateForAuthenticatedUserReq, opt ...requests.Option) (*CreateForAuthenticatedUserResponse, error)

CreateForAuthenticatedUser performs requests for "projects/create-for-authenticated-user"

Create a user project.

POST /user/projects

https://developer.github.com/v3/projects/#create-a-user-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) CreateForOrg

func (c Client) CreateForOrg(ctx context.Context, req *CreateForOrgReq, opt ...requests.Option) (*CreateForOrgResponse, error)

CreateForOrg performs requests for "projects/create-for-org"

Create an organization project.

POST /orgs/{org}/projects

https://developer.github.com/v3/projects/#create-an-organization-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) CreateForRepo

func (c Client) CreateForRepo(ctx context.Context, req *CreateForRepoReq, opt ...requests.Option) (*CreateForRepoResponse, error)

CreateForRepo performs requests for "projects/create-for-repo"

Create a repository project.

POST /repos/{owner}/{repo}/projects

https://developer.github.com/v3/projects/#create-a-repository-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) Delete

func (c Client) Delete(ctx context.Context, req *DeleteReq, opt ...requests.Option) (*DeleteResponse, error)

Delete performs requests for "projects/delete"

Delete a project.

DELETE /projects/{project_id}

https://developer.github.com/v3/projects/#delete-a-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) DeleteCard

func (c Client) DeleteCard(ctx context.Context, req *DeleteCardReq, opt ...requests.Option) (*DeleteCardResponse, error)

DeleteCard performs requests for "projects/delete-card"

Delete a project card.

DELETE /projects/columns/cards/{card_id}

https://developer.github.com/v3/projects/cards/#delete-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) DeleteColumn

func (c Client) DeleteColumn(ctx context.Context, req *DeleteColumnReq, opt ...requests.Option) (*DeleteColumnResponse, error)

DeleteColumn performs requests for "projects/delete-column"

Delete a project column.

DELETE /projects/columns/{column_id}

https://developer.github.com/v3/projects/columns/#delete-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) Get

func (c Client) Get(ctx context.Context, req *GetReq, opt ...requests.Option) (*GetResponse, error)

Get performs requests for "projects/get"

Get a project.

GET /projects/{project_id}

https://developer.github.com/v3/projects/#get-a-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetCard

func (c Client) GetCard(ctx context.Context, req *GetCardReq, opt ...requests.Option) (*GetCardResponse, error)

GetCard performs requests for "projects/get-card"

Get a project card.

GET /projects/columns/cards/{card_id}

https://developer.github.com/v3/projects/cards/#get-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetColumn

func (c Client) GetColumn(ctx context.Context, req *GetColumnReq, opt ...requests.Option) (*GetColumnResponse, error)

GetColumn performs requests for "projects/get-column"

Get a project column.

GET /projects/columns/{column_id}

https://developer.github.com/v3/projects/columns/#get-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetPermissionForUser

func (c Client) GetPermissionForUser(ctx context.Context, req *GetPermissionForUserReq, opt ...requests.Option) (*GetPermissionForUserResponse, error)

GetPermissionForUser performs requests for "projects/get-permission-for-user"

Get project permission for a user.

GET /projects/{project_id}/collaborators/{username}/permission

https://developer.github.com/v3/projects/collaborators/#get-project-permission-for-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListCards

func (c Client) ListCards(ctx context.Context, req *ListCardsReq, opt ...requests.Option) (*ListCardsResponse, error)

ListCards performs requests for "projects/list-cards"

List project cards.

GET /projects/columns/{column_id}/cards

https://developer.github.com/v3/projects/cards/#list-project-cards

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListCollaborators

func (c Client) ListCollaborators(ctx context.Context, req *ListCollaboratorsReq, opt ...requests.Option) (*ListCollaboratorsResponse, error)

ListCollaborators performs requests for "projects/list-collaborators"

List project collaborators.

GET /projects/{project_id}/collaborators

https://developer.github.com/v3/projects/collaborators/#list-project-collaborators

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListColumns

func (c Client) ListColumns(ctx context.Context, req *ListColumnsReq, opt ...requests.Option) (*ListColumnsResponse, error)

ListColumns performs requests for "projects/list-columns"

List project columns.

GET /projects/{project_id}/columns

https://developer.github.com/v3/projects/columns/#list-project-columns

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListForOrg

func (c Client) ListForOrg(ctx context.Context, req *ListForOrgReq, opt ...requests.Option) (*ListForOrgResponse, error)

ListForOrg performs requests for "projects/list-for-org"

List organization projects.

GET /orgs/{org}/projects

https://developer.github.com/v3/projects/#list-organization-projects

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListForRepo

func (c Client) ListForRepo(ctx context.Context, req *ListForRepoReq, opt ...requests.Option) (*ListForRepoResponse, error)

ListForRepo performs requests for "projects/list-for-repo"

List repository projects.

GET /repos/{owner}/{repo}/projects

https://developer.github.com/v3/projects/#list-repository-projects

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListForUser

func (c Client) ListForUser(ctx context.Context, req *ListForUserReq, opt ...requests.Option) (*ListForUserResponse, error)

ListForUser performs requests for "projects/list-for-user"

List user projects.

GET /users/{username}/projects

https://developer.github.com/v3/projects/#list-user-projects

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) MoveCard

func (c Client) MoveCard(ctx context.Context, req *MoveCardReq, opt ...requests.Option) (*MoveCardResponse, error)

MoveCard performs requests for "projects/move-card"

Move a project card.

POST /projects/columns/cards/{card_id}/moves

https://developer.github.com/v3/projects/cards/#move-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) MoveColumn

func (c Client) MoveColumn(ctx context.Context, req *MoveColumnReq, opt ...requests.Option) (*MoveColumnResponse, error)

MoveColumn performs requests for "projects/move-column"

Move a project column.

POST /projects/columns/{column_id}/moves

https://developer.github.com/v3/projects/columns/#move-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) RemoveCollaborator

func (c Client) RemoveCollaborator(ctx context.Context, req *RemoveCollaboratorReq, opt ...requests.Option) (*RemoveCollaboratorResponse, error)

RemoveCollaborator performs requests for "projects/remove-collaborator"

Remove user as a collaborator.

DELETE /projects/{project_id}/collaborators/{username}

https://developer.github.com/v3/projects/collaborators/#remove-project-collaborator

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) Update

func (c Client) Update(ctx context.Context, req *UpdateReq, opt ...requests.Option) (*UpdateResponse, error)

Update performs requests for "projects/update"

Update a project.

PATCH /projects/{project_id}

https://developer.github.com/v3/projects/#update-a-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) UpdateCard

func (c Client) UpdateCard(ctx context.Context, req *UpdateCardReq, opt ...requests.Option) (*UpdateCardResponse, error)

UpdateCard performs requests for "projects/update-card"

Update an existing project card.

PATCH /projects/columns/cards/{card_id}

https://developer.github.com/v3/projects/cards/#update-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) UpdateColumn

func (c Client) UpdateColumn(ctx context.Context, req *UpdateColumnReq, opt ...requests.Option) (*UpdateColumnResponse, error)

UpdateColumn performs requests for "projects/update-column"

Update an existing project column.

PATCH /projects/columns/{column_id}

https://developer.github.com/v3/projects/columns/#update-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

type CreateCardReq

type CreateCardReq struct {

	// column_id parameter
	ColumnId    int64
	RequestBody CreateCardReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

CreateCardReq is request data for Client.CreateCard

https://developer.github.com/v3/projects/cards/#create-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CreateCardReq) HTTPRequest

func (r *CreateCardReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateCardReq) Rel

func (r *CreateCardReq) Rel(link string, resp *CreateCardResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CreateCardReqBody

type CreateCardReqBody struct {

	// The unique identifier of the content associated with the card
	ContentId *int64 `json:"content_id"`

	// The piece of content associated with the card
	ContentType *string `json:"content_type"`
}

CreateCardReqBody is a request body for projects/create-card

https://developer.github.com/v3/projects/cards/#create-a-project-card

type CreateCardResponse

type CreateCardResponse struct {
	Data components.ProjectCard
	// contains filtered or unexported fields
}

CreateCardResponse is a response for CreateCard

https://developer.github.com/v3/projects/cards/#create-a-project-card

func CreateCard

func CreateCard(ctx context.Context, req *CreateCardReq, opt ...requests.Option) (*CreateCardResponse, error)

CreateCard performs requests for "projects/create-card"

Create a project card.

POST /projects/columns/{column_id}/cards

https://developer.github.com/v3/projects/cards/#create-a-project-card

func (*CreateCardResponse) HTTPResponse

func (r *CreateCardResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*CreateCardResponse) ReadResponse

func (r *CreateCardResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type CreateColumnReq

type CreateColumnReq struct {
	ProjectId   int64
	RequestBody CreateColumnReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

CreateColumnReq is request data for Client.CreateColumn

https://developer.github.com/v3/projects/columns/#create-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CreateColumnReq) HTTPRequest

func (r *CreateColumnReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateColumnReq) Rel

func (r *CreateColumnReq) Rel(link string, resp *CreateColumnResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CreateColumnReqBody

type CreateColumnReqBody struct {

	// Name of the project column
	Name *string `json:"name"`
}

CreateColumnReqBody is a request body for projects/create-column

https://developer.github.com/v3/projects/columns/#create-a-project-column

type CreateColumnResponse

type CreateColumnResponse struct {
	Data components.ProjectColumn
	// contains filtered or unexported fields
}

CreateColumnResponse is a response for CreateColumn

https://developer.github.com/v3/projects/columns/#create-a-project-column

func CreateColumn

func CreateColumn(ctx context.Context, req *CreateColumnReq, opt ...requests.Option) (*CreateColumnResponse, error)

CreateColumn performs requests for "projects/create-column"

Create a project column.

POST /projects/{project_id}/columns

https://developer.github.com/v3/projects/columns/#create-a-project-column

func (*CreateColumnResponse) HTTPResponse

func (r *CreateColumnResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*CreateColumnResponse) ReadResponse

func (r *CreateColumnResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type CreateForAuthenticatedUserReq

type CreateForAuthenticatedUserReq struct {
	RequestBody CreateForAuthenticatedUserReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

CreateForAuthenticatedUserReq is request data for Client.CreateForAuthenticatedUser

https://developer.github.com/v3/projects/#create-a-user-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CreateForAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CreateForAuthenticatedUserReqBody

type CreateForAuthenticatedUserReqBody struct {

	// Body of the project
	Body *string `json:"body,omitempty"`

	// Name of the project
	Name *string `json:"name"`
}

CreateForAuthenticatedUserReqBody is a request body for projects/create-for-authenticated-user

https://developer.github.com/v3/projects/#create-a-user-project

type CreateForAuthenticatedUserResponse

type CreateForAuthenticatedUserResponse struct {
	Data components.Project
	// contains filtered or unexported fields
}

CreateForAuthenticatedUserResponse is a response for CreateForAuthenticatedUser

https://developer.github.com/v3/projects/#create-a-user-project

func CreateForAuthenticatedUser

CreateForAuthenticatedUser performs requests for "projects/create-for-authenticated-user"

Create a user project.

POST /user/projects

https://developer.github.com/v3/projects/#create-a-user-project

func (*CreateForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CreateForAuthenticatedUserResponse) ReadResponse

func (r *CreateForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type CreateForOrgReq

type CreateForOrgReq struct {
	Org         string
	RequestBody CreateForOrgReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

CreateForOrgReq is request data for Client.CreateForOrg

https://developer.github.com/v3/projects/#create-an-organization-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CreateForOrgReq) HTTPRequest

func (r *CreateForOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateForOrgReq) Rel

func (r *CreateForOrgReq) Rel(link string, resp *CreateForOrgResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CreateForOrgReqBody

type CreateForOrgReqBody struct {

	// The description of the project.
	Body *string `json:"body,omitempty"`

	// The name of the project.
	Name *string `json:"name"`
}

CreateForOrgReqBody is a request body for projects/create-for-org

https://developer.github.com/v3/projects/#create-an-organization-project

type CreateForOrgResponse

type CreateForOrgResponse struct {
	Data components.Project
	// contains filtered or unexported fields
}

CreateForOrgResponse is a response for CreateForOrg

https://developer.github.com/v3/projects/#create-an-organization-project

func CreateForOrg

func CreateForOrg(ctx context.Context, req *CreateForOrgReq, opt ...requests.Option) (*CreateForOrgResponse, error)

CreateForOrg performs requests for "projects/create-for-org"

Create an organization project.

POST /orgs/{org}/projects

https://developer.github.com/v3/projects/#create-an-organization-project

func (*CreateForOrgResponse) HTTPResponse

func (r *CreateForOrgResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*CreateForOrgResponse) ReadResponse

func (r *CreateForOrgResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type CreateForRepoReq

type CreateForRepoReq struct {
	Owner       string
	Repo        string
	RequestBody CreateForRepoReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

CreateForRepoReq is request data for Client.CreateForRepo

https://developer.github.com/v3/projects/#create-a-repository-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CreateForRepoReq) HTTPRequest

func (r *CreateForRepoReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateForRepoReq) Rel

func (r *CreateForRepoReq) Rel(link string, resp *CreateForRepoResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CreateForRepoReqBody

type CreateForRepoReqBody struct {

	// The description of the project.
	Body *string `json:"body,omitempty"`

	// The name of the project.
	Name *string `json:"name"`
}

CreateForRepoReqBody is a request body for projects/create-for-repo

https://developer.github.com/v3/projects/#create-a-repository-project

type CreateForRepoResponse

type CreateForRepoResponse struct {
	Data components.Project
	// contains filtered or unexported fields
}

CreateForRepoResponse is a response for CreateForRepo

https://developer.github.com/v3/projects/#create-a-repository-project

func CreateForRepo

func CreateForRepo(ctx context.Context, req *CreateForRepoReq, opt ...requests.Option) (*CreateForRepoResponse, error)

CreateForRepo performs requests for "projects/create-for-repo"

Create a repository project.

POST /repos/{owner}/{repo}/projects

https://developer.github.com/v3/projects/#create-a-repository-project

func (*CreateForRepoResponse) HTTPResponse

func (r *CreateForRepoResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*CreateForRepoResponse) ReadResponse

func (r *CreateForRepoResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type DeleteCardReq

type DeleteCardReq struct {

	// card_id parameter
	CardId int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

DeleteCardReq is request data for Client.DeleteCard

https://developer.github.com/v3/projects/cards/#delete-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*DeleteCardReq) HTTPRequest

func (r *DeleteCardReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteCardReq) Rel

func (r *DeleteCardReq) Rel(link string, resp *DeleteCardResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type DeleteCardResponse

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

DeleteCardResponse is a response for DeleteCard

https://developer.github.com/v3/projects/cards/#delete-a-project-card

func DeleteCard

func DeleteCard(ctx context.Context, req *DeleteCardReq, opt ...requests.Option) (*DeleteCardResponse, error)

DeleteCard performs requests for "projects/delete-card"

Delete a project card.

DELETE /projects/columns/cards/{card_id}

https://developer.github.com/v3/projects/cards/#delete-a-project-card

func (*DeleteCardResponse) HTTPResponse

func (r *DeleteCardResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*DeleteCardResponse) ReadResponse

func (r *DeleteCardResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type DeleteColumnReq

type DeleteColumnReq struct {

	// column_id parameter
	ColumnId int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

DeleteColumnReq is request data for Client.DeleteColumn

https://developer.github.com/v3/projects/columns/#delete-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*DeleteColumnReq) HTTPRequest

func (r *DeleteColumnReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteColumnReq) Rel

func (r *DeleteColumnReq) Rel(link string, resp *DeleteColumnResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type DeleteColumnResponse

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

DeleteColumnResponse is a response for DeleteColumn

https://developer.github.com/v3/projects/columns/#delete-a-project-column

func DeleteColumn

func DeleteColumn(ctx context.Context, req *DeleteColumnReq, opt ...requests.Option) (*DeleteColumnResponse, error)

DeleteColumn performs requests for "projects/delete-column"

Delete a project column.

DELETE /projects/columns/{column_id}

https://developer.github.com/v3/projects/columns/#delete-a-project-column

func (*DeleteColumnResponse) HTTPResponse

func (r *DeleteColumnResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*DeleteColumnResponse) ReadResponse

func (r *DeleteColumnResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type DeleteReq

type DeleteReq struct {
	ProjectId int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

DeleteReq is request data for Client.Delete

https://developer.github.com/v3/projects/#delete-a-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*DeleteReq) HTTPRequest

func (r *DeleteReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteReq) Rel

func (r *DeleteReq) Rel(link string, resp *DeleteResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type DeleteResponse

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

DeleteResponse is a response for Delete

https://developer.github.com/v3/projects/#delete-a-project

func Delete

func Delete(ctx context.Context, req *DeleteReq, opt ...requests.Option) (*DeleteResponse, error)

Delete performs requests for "projects/delete"

Delete a project.

DELETE /projects/{project_id}

https://developer.github.com/v3/projects/#delete-a-project

func (*DeleteResponse) HTTPResponse

func (r *DeleteResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*DeleteResponse) ReadResponse

func (r *DeleteResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetCardReq

type GetCardReq struct {

	// card_id parameter
	CardId int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

GetCardReq is request data for Client.GetCard

https://developer.github.com/v3/projects/cards/#get-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetCardReq) HTTPRequest

func (r *GetCardReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetCardReq) Rel

func (r *GetCardReq) Rel(link string, resp *GetCardResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetCardResponse

type GetCardResponse struct {
	Data components.ProjectCard
	// contains filtered or unexported fields
}

GetCardResponse is a response for GetCard

https://developer.github.com/v3/projects/cards/#get-a-project-card

func GetCard

func GetCard(ctx context.Context, req *GetCardReq, opt ...requests.Option) (*GetCardResponse, error)

GetCard performs requests for "projects/get-card"

Get a project card.

GET /projects/columns/cards/{card_id}

https://developer.github.com/v3/projects/cards/#get-a-project-card

func (*GetCardResponse) HTTPResponse

func (r *GetCardResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetCardResponse) ReadResponse

func (r *GetCardResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetColumnReq

type GetColumnReq struct {

	// column_id parameter
	ColumnId int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

GetColumnReq is request data for Client.GetColumn

https://developer.github.com/v3/projects/columns/#get-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetColumnReq) HTTPRequest

func (r *GetColumnReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetColumnReq) Rel

func (r *GetColumnReq) Rel(link string, resp *GetColumnResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetColumnResponse

type GetColumnResponse struct {
	Data components.ProjectColumn
	// contains filtered or unexported fields
}

GetColumnResponse is a response for GetColumn

https://developer.github.com/v3/projects/columns/#get-a-project-column

func GetColumn

func GetColumn(ctx context.Context, req *GetColumnReq, opt ...requests.Option) (*GetColumnResponse, error)

GetColumn performs requests for "projects/get-column"

Get a project column.

GET /projects/columns/{column_id}

https://developer.github.com/v3/projects/columns/#get-a-project-column

func (*GetColumnResponse) HTTPResponse

func (r *GetColumnResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetColumnResponse) ReadResponse

func (r *GetColumnResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetPermissionForUserReq

type GetPermissionForUserReq struct {
	ProjectId int64
	Username  string

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

GetPermissionForUserReq is request data for Client.GetPermissionForUser

https://developer.github.com/v3/projects/collaborators/#get-project-permission-for-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetPermissionForUserReq) HTTPRequest

func (r *GetPermissionForUserReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetPermissionForUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetPermissionForUserResponse

type GetPermissionForUserResponse struct {
	Data components.RepositoryCollaboratorPermission
	// contains filtered or unexported fields
}

GetPermissionForUserResponse is a response for GetPermissionForUser

https://developer.github.com/v3/projects/collaborators/#get-project-permission-for-a-user

func GetPermissionForUser

func GetPermissionForUser(ctx context.Context, req *GetPermissionForUserReq, opt ...requests.Option) (*GetPermissionForUserResponse, error)

GetPermissionForUser performs requests for "projects/get-permission-for-user"

Get project permission for a user.

GET /projects/{project_id}/collaborators/{username}/permission

https://developer.github.com/v3/projects/collaborators/#get-project-permission-for-a-user

func (*GetPermissionForUserResponse) HTTPResponse

func (r *GetPermissionForUserResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetPermissionForUserResponse) ReadResponse

func (r *GetPermissionForUserResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetReq

type GetReq struct {
	ProjectId int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

GetReq is request data for Client.Get

https://developer.github.com/v3/projects/#get-a-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetReq) HTTPRequest

func (r *GetReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetReq) Rel

func (r *GetReq) Rel(link string, resp *GetResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetResponse

type GetResponse struct {
	Data components.Project
	// contains filtered or unexported fields
}

GetResponse is a response for Get

https://developer.github.com/v3/projects/#get-a-project

func Get

func Get(ctx context.Context, req *GetReq, opt ...requests.Option) (*GetResponse, error)

Get performs requests for "projects/get"

Get a project.

GET /projects/{project_id}

https://developer.github.com/v3/projects/#get-a-project

func (*GetResponse) HTTPResponse

func (r *GetResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetResponse) ReadResponse

func (r *GetResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListCardsReq

type ListCardsReq struct {

	// column_id parameter
	ColumnId int64

	/*
		Filters the project cards that are returned by the card's state. Can be one of
		`all`,`archived`, or `not_archived`.
	*/
	ArchivedState *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

ListCardsReq is request data for Client.ListCards

https://developer.github.com/v3/projects/cards/#list-project-cards

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListCardsReq) HTTPRequest

func (r *ListCardsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListCardsReq) Rel

func (r *ListCardsReq) Rel(link string, resp *ListCardsResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListCardsResponse

type ListCardsResponse struct {
	Data []components.ProjectCard
	// contains filtered or unexported fields
}

ListCardsResponse is a response for ListCards

https://developer.github.com/v3/projects/cards/#list-project-cards

func ListCards

func ListCards(ctx context.Context, req *ListCardsReq, opt ...requests.Option) (*ListCardsResponse, error)

ListCards performs requests for "projects/list-cards"

List project cards.

GET /projects/columns/{column_id}/cards

https://developer.github.com/v3/projects/cards/#list-project-cards

func (*ListCardsResponse) HTTPResponse

func (r *ListCardsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListCardsResponse) ReadResponse

func (r *ListCardsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListCollaboratorsReq

type ListCollaboratorsReq struct {
	ProjectId int64

	/*
		Filters the collaborators by their affiliation. Can be one of:
		\* `outside`: Outside collaborators of a project that are not a member of the
		project's organization.
		\* `direct`: Collaborators with permissions to a project, regardless of
		organization membership status.
		\* `all`: All collaborators the authenticated user can see.
	*/
	Affiliation *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

ListCollaboratorsReq is request data for Client.ListCollaborators

https://developer.github.com/v3/projects/collaborators/#list-project-collaborators

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListCollaboratorsReq) HTTPRequest

func (r *ListCollaboratorsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListCollaboratorsReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListCollaboratorsResponse

type ListCollaboratorsResponse struct {
	Data []components.SimpleUser
	// contains filtered or unexported fields
}

ListCollaboratorsResponse is a response for ListCollaborators

https://developer.github.com/v3/projects/collaborators/#list-project-collaborators

func ListCollaborators

func ListCollaborators(ctx context.Context, req *ListCollaboratorsReq, opt ...requests.Option) (*ListCollaboratorsResponse, error)

ListCollaborators performs requests for "projects/list-collaborators"

List project collaborators.

GET /projects/{project_id}/collaborators

https://developer.github.com/v3/projects/collaborators/#list-project-collaborators

func (*ListCollaboratorsResponse) HTTPResponse

func (r *ListCollaboratorsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListCollaboratorsResponse) ReadResponse

func (r *ListCollaboratorsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListColumnsReq

type ListColumnsReq struct {
	ProjectId int64

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

ListColumnsReq is request data for Client.ListColumns

https://developer.github.com/v3/projects/columns/#list-project-columns

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListColumnsReq) HTTPRequest

func (r *ListColumnsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListColumnsReq) Rel

func (r *ListColumnsReq) Rel(link string, resp *ListColumnsResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListColumnsResponse

type ListColumnsResponse struct {
	Data []components.ProjectColumn
	// contains filtered or unexported fields
}

ListColumnsResponse is a response for ListColumns

https://developer.github.com/v3/projects/columns/#list-project-columns

func ListColumns

func ListColumns(ctx context.Context, req *ListColumnsReq, opt ...requests.Option) (*ListColumnsResponse, error)

ListColumns performs requests for "projects/list-columns"

List project columns.

GET /projects/{project_id}/columns

https://developer.github.com/v3/projects/columns/#list-project-columns

func (*ListColumnsResponse) HTTPResponse

func (r *ListColumnsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListColumnsResponse) ReadResponse

func (r *ListColumnsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListForOrgReq

type ListForOrgReq struct {
	Org string

	/*
		Indicates the state of the projects to return. Can be either `open`, `closed`,
		or `all`.
	*/
	State *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

ListForOrgReq is request data for Client.ListForOrg

https://developer.github.com/v3/projects/#list-organization-projects

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListForOrgReq) HTTPRequest

func (r *ListForOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListForOrgReq) Rel

func (r *ListForOrgReq) Rel(link string, resp *ListForOrgResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListForOrgResponse

type ListForOrgResponse struct {
	Data []components.Project
	// contains filtered or unexported fields
}

ListForOrgResponse is a response for ListForOrg

https://developer.github.com/v3/projects/#list-organization-projects

func ListForOrg

func ListForOrg(ctx context.Context, req *ListForOrgReq, opt ...requests.Option) (*ListForOrgResponse, error)

ListForOrg performs requests for "projects/list-for-org"

List organization projects.

GET /orgs/{org}/projects

https://developer.github.com/v3/projects/#list-organization-projects

func (*ListForOrgResponse) HTTPResponse

func (r *ListForOrgResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListForOrgResponse) ReadResponse

func (r *ListForOrgResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListForRepoReq

type ListForRepoReq struct {
	Owner string
	Repo  string

	/*
		Indicates the state of the projects to return. Can be either `open`, `closed`,
		or `all`.
	*/
	State *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

ListForRepoReq is request data for Client.ListForRepo

https://developer.github.com/v3/projects/#list-repository-projects

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListForRepoReq) HTTPRequest

func (r *ListForRepoReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListForRepoReq) Rel

func (r *ListForRepoReq) Rel(link string, resp *ListForRepoResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListForRepoResponse

type ListForRepoResponse struct {
	Data []components.Project
	// contains filtered or unexported fields
}

ListForRepoResponse is a response for ListForRepo

https://developer.github.com/v3/projects/#list-repository-projects

func ListForRepo

func ListForRepo(ctx context.Context, req *ListForRepoReq, opt ...requests.Option) (*ListForRepoResponse, error)

ListForRepo performs requests for "projects/list-for-repo"

List repository projects.

GET /repos/{owner}/{repo}/projects

https://developer.github.com/v3/projects/#list-repository-projects

func (*ListForRepoResponse) HTTPResponse

func (r *ListForRepoResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListForRepoResponse) ReadResponse

func (r *ListForRepoResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListForUserReq

type ListForUserReq struct {
	Username string

	/*
		Indicates the state of the projects to return. Can be either `open`, `closed`,
		or `all`.
	*/
	State *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

ListForUserReq is request data for Client.ListForUser

https://developer.github.com/v3/projects/#list-user-projects

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListForUserReq) HTTPRequest

func (r *ListForUserReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListForUserReq) Rel

func (r *ListForUserReq) Rel(link string, resp *ListForUserResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListForUserResponse

type ListForUserResponse struct {
	Data []components.Project
	// contains filtered or unexported fields
}

ListForUserResponse is a response for ListForUser

https://developer.github.com/v3/projects/#list-user-projects

func ListForUser

func ListForUser(ctx context.Context, req *ListForUserReq, opt ...requests.Option) (*ListForUserResponse, error)

ListForUser performs requests for "projects/list-for-user"

List user projects.

GET /users/{username}/projects

https://developer.github.com/v3/projects/#list-user-projects

func (*ListForUserResponse) HTTPResponse

func (r *ListForUserResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListForUserResponse) ReadResponse

func (r *ListForUserResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type MoveCardReq

type MoveCardReq struct {

	// card_id parameter
	CardId      int64
	RequestBody MoveCardReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

MoveCardReq is request data for Client.MoveCard

https://developer.github.com/v3/projects/cards/#move-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*MoveCardReq) HTTPRequest

func (r *MoveCardReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*MoveCardReq) Rel

func (r *MoveCardReq) Rel(link string, resp *MoveCardResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type MoveCardReqBody

type MoveCardReqBody struct {

	// The unique identifier of the column the card should be moved to
	ColumnId *int64 `json:"column_id,omitempty"`

	// The position of the card in a column
	Position *string `json:"position"`
}

MoveCardReqBody is a request body for projects/move-card

https://developer.github.com/v3/projects/cards/#move-a-project-card

type MoveCardResponse

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

MoveCardResponse is a response for MoveCard

https://developer.github.com/v3/projects/cards/#move-a-project-card

func MoveCard

func MoveCard(ctx context.Context, req *MoveCardReq, opt ...requests.Option) (*MoveCardResponse, error)

MoveCard performs requests for "projects/move-card"

Move a project card.

POST /projects/columns/cards/{card_id}/moves

https://developer.github.com/v3/projects/cards/#move-a-project-card

func (*MoveCardResponse) HTTPResponse

func (r *MoveCardResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*MoveCardResponse) ReadResponse

func (r *MoveCardResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type MoveColumnReq

type MoveColumnReq struct {

	// column_id parameter
	ColumnId    int64
	RequestBody MoveColumnReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

MoveColumnReq is request data for Client.MoveColumn

https://developer.github.com/v3/projects/columns/#move-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*MoveColumnReq) HTTPRequest

func (r *MoveColumnReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*MoveColumnReq) Rel

func (r *MoveColumnReq) Rel(link string, resp *MoveColumnResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type MoveColumnReqBody

type MoveColumnReqBody struct {

	// The position of the column in a project
	Position *string `json:"position"`
}

MoveColumnReqBody is a request body for projects/move-column

https://developer.github.com/v3/projects/columns/#move-a-project-column

type MoveColumnResponse

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

MoveColumnResponse is a response for MoveColumn

https://developer.github.com/v3/projects/columns/#move-a-project-column

func MoveColumn

func MoveColumn(ctx context.Context, req *MoveColumnReq, opt ...requests.Option) (*MoveColumnResponse, error)

MoveColumn performs requests for "projects/move-column"

Move a project column.

POST /projects/columns/{column_id}/moves

https://developer.github.com/v3/projects/columns/#move-a-project-column

func (*MoveColumnResponse) HTTPResponse

func (r *MoveColumnResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*MoveColumnResponse) ReadResponse

func (r *MoveColumnResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type RemoveCollaboratorReq

type RemoveCollaboratorReq struct {
	ProjectId int64
	Username  string

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

RemoveCollaboratorReq is request data for Client.RemoveCollaborator

https://developer.github.com/v3/projects/collaborators/#remove-project-collaborator

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*RemoveCollaboratorReq) HTTPRequest

func (r *RemoveCollaboratorReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*RemoveCollaboratorReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type RemoveCollaboratorResponse

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

RemoveCollaboratorResponse is a response for RemoveCollaborator

https://developer.github.com/v3/projects/collaborators/#remove-project-collaborator

func RemoveCollaborator

func RemoveCollaborator(ctx context.Context, req *RemoveCollaboratorReq, opt ...requests.Option) (*RemoveCollaboratorResponse, error)

RemoveCollaborator performs requests for "projects/remove-collaborator"

Remove user as a collaborator.

DELETE /projects/{project_id}/collaborators/{username}

https://developer.github.com/v3/projects/collaborators/#remove-project-collaborator

func (*RemoveCollaboratorResponse) HTTPResponse

func (r *RemoveCollaboratorResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*RemoveCollaboratorResponse) ReadResponse

func (r *RemoveCollaboratorResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type UpdateCardReq

type UpdateCardReq struct {

	// card_id parameter
	CardId      int64
	RequestBody UpdateCardReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

UpdateCardReq is request data for Client.UpdateCard

https://developer.github.com/v3/projects/cards/#update-a-project-card

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*UpdateCardReq) HTTPRequest

func (r *UpdateCardReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UpdateCardReq) Rel

func (r *UpdateCardReq) Rel(link string, resp *UpdateCardResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type UpdateCardReqBody

type UpdateCardReqBody struct {

	// Whether or not the card is archived
	Archived *bool `json:"archived,omitempty"`

	// The project card's note
	Note *string `json:"note,omitempty"`
}

UpdateCardReqBody is a request body for projects/update-card

https://developer.github.com/v3/projects/cards/#update-a-project-card

type UpdateCardResponse

type UpdateCardResponse struct {
	Data components.ProjectCard
	// contains filtered or unexported fields
}

UpdateCardResponse is a response for UpdateCard

https://developer.github.com/v3/projects/cards/#update-a-project-card

func UpdateCard

func UpdateCard(ctx context.Context, req *UpdateCardReq, opt ...requests.Option) (*UpdateCardResponse, error)

UpdateCard performs requests for "projects/update-card"

Update an existing project card.

PATCH /projects/columns/cards/{card_id}

https://developer.github.com/v3/projects/cards/#update-a-project-card

func (*UpdateCardResponse) HTTPResponse

func (r *UpdateCardResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*UpdateCardResponse) ReadResponse

func (r *UpdateCardResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type UpdateColumnReq

type UpdateColumnReq struct {

	// column_id parameter
	ColumnId    int64
	RequestBody UpdateColumnReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

UpdateColumnReq is request data for Client.UpdateColumn

https://developer.github.com/v3/projects/columns/#update-a-project-column

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*UpdateColumnReq) HTTPRequest

func (r *UpdateColumnReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UpdateColumnReq) Rel

func (r *UpdateColumnReq) Rel(link string, resp *UpdateColumnResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type UpdateColumnReqBody

type UpdateColumnReqBody struct {

	// Name of the project column
	Name *string `json:"name"`
}

UpdateColumnReqBody is a request body for projects/update-column

https://developer.github.com/v3/projects/columns/#update-a-project-column

type UpdateColumnResponse

type UpdateColumnResponse struct {
	Data components.ProjectColumn
	// contains filtered or unexported fields
}

UpdateColumnResponse is a response for UpdateColumn

https://developer.github.com/v3/projects/columns/#update-a-project-column

func UpdateColumn

func UpdateColumn(ctx context.Context, req *UpdateColumnReq, opt ...requests.Option) (*UpdateColumnResponse, error)

UpdateColumn performs requests for "projects/update-column"

Update an existing project column.

PATCH /projects/columns/{column_id}

https://developer.github.com/v3/projects/columns/#update-a-project-column

func (*UpdateColumnResponse) HTTPResponse

func (r *UpdateColumnResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*UpdateColumnResponse) ReadResponse

func (r *UpdateColumnResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type UpdateReq

type UpdateReq struct {
	ProjectId   int64
	RequestBody UpdateReqBody

	/*
		The Projects API is currently available for developers to preview. During the
		preview period, the API may change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api)
		for full details. To access the API during the preview period, you must set this
		to true.
	*/
	InertiaPreview bool
	// contains filtered or unexported fields
}

UpdateReq is request data for Client.Update

https://developer.github.com/v3/projects/#update-a-project

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*UpdateReq) HTTPRequest

func (r *UpdateReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UpdateReq) Rel

func (r *UpdateReq) Rel(link string, resp *UpdateResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type UpdateReqBody

type UpdateReqBody struct {

	// Body of the project
	Body *string `json:"body,omitempty"`

	// Name of the project
	Name *string `json:"name,omitempty"`

	// The baseline permission that all organization members have on this project
	OrganizationPermission *string `json:"organization_permission,omitempty"`

	// Whether or not this project can be seen by everyone.
	Private *bool `json:"private,omitempty"`

	// State of the project; either 'open' or 'closed'
	State *string `json:"state,omitempty"`
}

UpdateReqBody is a request body for projects/update

https://developer.github.com/v3/projects/#update-a-project

type UpdateResponse

type UpdateResponse struct {
	Data components.Project
	// contains filtered or unexported fields
}

UpdateResponse is a response for Update

https://developer.github.com/v3/projects/#update-a-project

func Update

func Update(ctx context.Context, req *UpdateReq, opt ...requests.Option) (*UpdateResponse, error)

Update performs requests for "projects/update"

Update a project.

PATCH /projects/{project_id}

https://developer.github.com/v3/projects/#update-a-project

func (*UpdateResponse) HTTPResponse

func (r *UpdateResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*UpdateResponse) ReadResponse

func (r *UpdateResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

Jump to

Keyboard shortcuts

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