Documentation ¶
Index ¶
- type CheckRepoIsStarredByAuthenticatedUserReq
- type CheckRepoIsStarredByAuthenticatedUserResponse
- type Client
- func (c Client) CheckRepoIsStarredByAuthenticatedUser(ctx context.Context, req *CheckRepoIsStarredByAuthenticatedUserReq, ...) (*CheckRepoIsStarredByAuthenticatedUserResponse, error)
- func (c Client) DeleteRepoSubscription(ctx context.Context, req *DeleteRepoSubscriptionReq, opt ...requests.Option) (*DeleteRepoSubscriptionResponse, error)
- func (c Client) DeleteThreadSubscription(ctx context.Context, req *DeleteThreadSubscriptionReq, opt ...requests.Option) (*DeleteThreadSubscriptionResponse, error)
- func (c Client) GetFeeds(ctx context.Context, req *GetFeedsReq, opt ...requests.Option) (*GetFeedsResponse, error)
- func (c Client) GetRepoSubscription(ctx context.Context, req *GetRepoSubscriptionReq, opt ...requests.Option) (*GetRepoSubscriptionResponse, error)
- func (c Client) GetThread(ctx context.Context, req *GetThreadReq, opt ...requests.Option) (*GetThreadResponse, error)
- func (c Client) GetThreadSubscriptionForAuthenticatedUser(ctx context.Context, req *GetThreadSubscriptionForAuthenticatedUserReq, ...) (*GetThreadSubscriptionForAuthenticatedUserResponse, error)
- func (c Client) ListEventsForAuthenticatedUser(ctx context.Context, req *ListEventsForAuthenticatedUserReq, ...) (*ListEventsForAuthenticatedUserResponse, error)
- func (c Client) ListNotificationsForAuthenticatedUser(ctx context.Context, req *ListNotificationsForAuthenticatedUserReq, ...) (*ListNotificationsForAuthenticatedUserResponse, error)
- func (c Client) ListOrgEventsForAuthenticatedUser(ctx context.Context, req *ListOrgEventsForAuthenticatedUserReq, ...) (*ListOrgEventsForAuthenticatedUserResponse, error)
- func (c Client) ListPublicEvents(ctx context.Context, req *ListPublicEventsReq, opt ...requests.Option) (*ListPublicEventsResponse, error)
- func (c Client) ListPublicEventsForRepoNetwork(ctx context.Context, req *ListPublicEventsForRepoNetworkReq, ...) (*ListPublicEventsForRepoNetworkResponse, error)
- func (c Client) ListPublicEventsForUser(ctx context.Context, req *ListPublicEventsForUserReq, opt ...requests.Option) (*ListPublicEventsForUserResponse, error)
- func (c Client) ListPublicOrgEvents(ctx context.Context, req *ListPublicOrgEventsReq, opt ...requests.Option) (*ListPublicOrgEventsResponse, error)
- func (c Client) ListReceivedEventsForUser(ctx context.Context, req *ListReceivedEventsForUserReq, opt ...requests.Option) (*ListReceivedEventsForUserResponse, error)
- func (c Client) ListReceivedPublicEventsForUser(ctx context.Context, req *ListReceivedPublicEventsForUserReq, ...) (*ListReceivedPublicEventsForUserResponse, error)
- func (c Client) ListRepoEvents(ctx context.Context, req *ListRepoEventsReq, opt ...requests.Option) (*ListRepoEventsResponse, error)
- func (c Client) ListRepoNotificationsForAuthenticatedUser(ctx context.Context, req *ListRepoNotificationsForAuthenticatedUserReq, ...) (*ListRepoNotificationsForAuthenticatedUserResponse, error)
- func (c Client) ListReposStarredByAuthenticatedUser(ctx context.Context, req *ListReposStarredByAuthenticatedUserReq, ...) (*ListReposStarredByAuthenticatedUserResponse, error)
- func (c Client) ListReposStarredByUser(ctx context.Context, req *ListReposStarredByUserReq, opt ...requests.Option) (*ListReposStarredByUserResponse, error)
- func (c Client) ListReposWatchedByUser(ctx context.Context, req *ListReposWatchedByUserReq, opt ...requests.Option) (*ListReposWatchedByUserResponse, error)
- func (c Client) ListStargazersForRepo(ctx context.Context, req *ListStargazersForRepoReq, opt ...requests.Option) (*ListStargazersForRepoResponse, error)
- func (c Client) ListWatchedReposForAuthenticatedUser(ctx context.Context, req *ListWatchedReposForAuthenticatedUserReq, ...) (*ListWatchedReposForAuthenticatedUserResponse, error)
- func (c Client) ListWatchersForRepo(ctx context.Context, req *ListWatchersForRepoReq, opt ...requests.Option) (*ListWatchersForRepoResponse, error)
- func (c Client) MarkNotificationsAsRead(ctx context.Context, req *MarkNotificationsAsReadReq, opt ...requests.Option) (*MarkNotificationsAsReadResponse, error)
- func (c Client) MarkRepoNotificationsAsRead(ctx context.Context, req *MarkRepoNotificationsAsReadReq, ...) (*MarkRepoNotificationsAsReadResponse, error)
- func (c Client) MarkThreadAsRead(ctx context.Context, req *MarkThreadAsReadReq, opt ...requests.Option) (*MarkThreadAsReadResponse, error)
- func (c Client) SetRepoSubscription(ctx context.Context, req *SetRepoSubscriptionReq, opt ...requests.Option) (*SetRepoSubscriptionResponse, error)
- func (c Client) SetThreadSubscription(ctx context.Context, req *SetThreadSubscriptionReq, opt ...requests.Option) (*SetThreadSubscriptionResponse, error)
- func (c Client) StarRepoForAuthenticatedUser(ctx context.Context, req *StarRepoForAuthenticatedUserReq, ...) (*StarRepoForAuthenticatedUserResponse, error)
- func (c Client) UnstarRepoForAuthenticatedUser(ctx context.Context, req *UnstarRepoForAuthenticatedUserReq, ...) (*UnstarRepoForAuthenticatedUserResponse, error)
- type DeleteRepoSubscriptionReq
- type DeleteRepoSubscriptionResponse
- type DeleteThreadSubscriptionReq
- type DeleteThreadSubscriptionResponse
- type GetFeedsReq
- type GetFeedsResponse
- type GetRepoSubscriptionReq
- type GetRepoSubscriptionResponse
- type GetThreadReq
- type GetThreadResponse
- type GetThreadSubscriptionForAuthenticatedUserReq
- type GetThreadSubscriptionForAuthenticatedUserResponse
- type ListEventsForAuthenticatedUserReq
- type ListEventsForAuthenticatedUserResponse
- type ListNotificationsForAuthenticatedUserReq
- type ListNotificationsForAuthenticatedUserResponse
- type ListOrgEventsForAuthenticatedUserReq
- type ListOrgEventsForAuthenticatedUserResponse
- type ListPublicEventsForRepoNetworkReq
- type ListPublicEventsForRepoNetworkResponse
- type ListPublicEventsForUserReq
- type ListPublicEventsForUserResponse
- type ListPublicEventsReq
- type ListPublicEventsResponse
- type ListPublicOrgEventsReq
- type ListPublicOrgEventsResponse
- type ListReceivedEventsForUserReq
- type ListReceivedEventsForUserResponse
- type ListReceivedPublicEventsForUserReq
- type ListReceivedPublicEventsForUserResponse
- type ListRepoEventsReq
- type ListRepoEventsResponse
- type ListRepoNotificationsForAuthenticatedUserReq
- type ListRepoNotificationsForAuthenticatedUserResponse
- type ListReposStarredByAuthenticatedUserReq
- type ListReposStarredByAuthenticatedUserResponse
- type ListReposStarredByUserReq
- type ListReposStarredByUserResponse
- type ListReposWatchedByUserReq
- type ListReposWatchedByUserResponse
- type ListStargazersForRepoReq
- type ListStargazersForRepoResponse
- type ListWatchedReposForAuthenticatedUserReq
- type ListWatchedReposForAuthenticatedUserResponse
- type ListWatchersForRepoReq
- type ListWatchersForRepoResponse
- type MarkNotificationsAsReadReq
- type MarkNotificationsAsReadReqBody
- type MarkNotificationsAsReadResponse
- type MarkNotificationsAsReadResponseBody
- type MarkRepoNotificationsAsReadReq
- type MarkRepoNotificationsAsReadReqBody
- type MarkRepoNotificationsAsReadResponse
- type MarkThreadAsReadReq
- type MarkThreadAsReadResponse
- type SetRepoSubscriptionReq
- type SetRepoSubscriptionReqBody
- type SetRepoSubscriptionResponse
- type SetThreadSubscriptionReq
- type SetThreadSubscriptionReqBody
- type SetThreadSubscriptionResponse
- type StarRepoForAuthenticatedUserReq
- type StarRepoForAuthenticatedUserResponse
- type UnstarRepoForAuthenticatedUserReq
- type UnstarRepoForAuthenticatedUserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckRepoIsStarredByAuthenticatedUserReq ¶
type CheckRepoIsStarredByAuthenticatedUserReq struct { Owner string Repo string // contains filtered or unexported fields }
CheckRepoIsStarredByAuthenticatedUserReq is request data for Client.CheckRepoIsStarredByAuthenticatedUser
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CheckRepoIsStarredByAuthenticatedUserReq) HTTPRequest ¶
func (r *CheckRepoIsStarredByAuthenticatedUserReq) 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 (*CheckRepoIsStarredByAuthenticatedUserReq) Rel ¶
func (r *CheckRepoIsStarredByAuthenticatedUserReq) Rel(link string, resp *CheckRepoIsStarredByAuthenticatedUserResponse) 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 CheckRepoIsStarredByAuthenticatedUserResponse ¶
type CheckRepoIsStarredByAuthenticatedUserResponse struct {
// contains filtered or unexported fields
}
CheckRepoIsStarredByAuthenticatedUserResponse is a response for CheckRepoIsStarredByAuthenticatedUser
func CheckRepoIsStarredByAuthenticatedUser ¶
func CheckRepoIsStarredByAuthenticatedUser(ctx context.Context, req *CheckRepoIsStarredByAuthenticatedUserReq, opt ...requests.Option) (*CheckRepoIsStarredByAuthenticatedUserResponse, error)
CheckRepoIsStarredByAuthenticatedUser performs requests for "activity/check-repo-is-starred-by-authenticated-user"
Check if a repository is starred by the authenticated user.
GET /user/starred/{owner}/{repo}
func (*CheckRepoIsStarredByAuthenticatedUserResponse) HTTPResponse ¶
func (r *CheckRepoIsStarredByAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CheckRepoIsStarredByAuthenticatedUserResponse) ReadResponse ¶
func (r *CheckRepoIsStarredByAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type Client ¶
Client is a set of options to apply to requests
func (Client) CheckRepoIsStarredByAuthenticatedUser ¶
func (c Client) CheckRepoIsStarredByAuthenticatedUser(ctx context.Context, req *CheckRepoIsStarredByAuthenticatedUserReq, opt ...requests.Option) (*CheckRepoIsStarredByAuthenticatedUserResponse, error)
CheckRepoIsStarredByAuthenticatedUser performs requests for "activity/check-repo-is-starred-by-authenticated-user"
Check if a repository is starred by the authenticated user.
GET /user/starred/{owner}/{repo}
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteRepoSubscription ¶
func (c Client) DeleteRepoSubscription(ctx context.Context, req *DeleteRepoSubscriptionReq, opt ...requests.Option) (*DeleteRepoSubscriptionResponse, error)
DeleteRepoSubscription performs requests for "activity/delete-repo-subscription"
Delete a repository subscription.
DELETE /repos/{owner}/{repo}/subscription
https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteThreadSubscription ¶
func (c Client) DeleteThreadSubscription(ctx context.Context, req *DeleteThreadSubscriptionReq, opt ...requests.Option) (*DeleteThreadSubscriptionResponse, error)
DeleteThreadSubscription performs requests for "activity/delete-thread-subscription"
Delete a thread subscription.
DELETE /notifications/threads/{thread_id}/subscription
https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetFeeds ¶
func (c Client) GetFeeds(ctx context.Context, req *GetFeedsReq, opt ...requests.Option) (*GetFeedsResponse, error)
GetFeeds performs requests for "activity/get-feeds"
Get feeds.
GET /feeds
https://developer.github.com/v3/activity/feeds/#get-feeds
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetRepoSubscription ¶
func (c Client) GetRepoSubscription(ctx context.Context, req *GetRepoSubscriptionReq, opt ...requests.Option) (*GetRepoSubscriptionResponse, error)
GetRepoSubscription performs requests for "activity/get-repo-subscription"
Get a repository subscription.
GET /repos/{owner}/{repo}/subscription
https://developer.github.com/v3/activity/watching/#get-a-repository-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetThread ¶
func (c Client) GetThread(ctx context.Context, req *GetThreadReq, opt ...requests.Option) (*GetThreadResponse, error)
GetThread performs requests for "activity/get-thread"
Get a thread.
GET /notifications/threads/{thread_id}
https://developer.github.com/v3/activity/notifications/#get-a-thread
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetThreadSubscriptionForAuthenticatedUser ¶
func (c Client) GetThreadSubscriptionForAuthenticatedUser(ctx context.Context, req *GetThreadSubscriptionForAuthenticatedUserReq, opt ...requests.Option) (*GetThreadSubscriptionForAuthenticatedUserResponse, error)
GetThreadSubscriptionForAuthenticatedUser performs requests for "activity/get-thread-subscription-for-authenticated-user"
Get a thread subscription for the authenticated user.
GET /notifications/threads/{thread_id}/subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListEventsForAuthenticatedUser ¶
func (c Client) ListEventsForAuthenticatedUser(ctx context.Context, req *ListEventsForAuthenticatedUserReq, opt ...requests.Option) (*ListEventsForAuthenticatedUserResponse, error)
ListEventsForAuthenticatedUser performs requests for "activity/list-events-for-authenticated-user"
List events for the authenticated user.
GET /users/{username}/events
https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListNotificationsForAuthenticatedUser ¶
func (c Client) ListNotificationsForAuthenticatedUser(ctx context.Context, req *ListNotificationsForAuthenticatedUserReq, opt ...requests.Option) (*ListNotificationsForAuthenticatedUserResponse, error)
ListNotificationsForAuthenticatedUser performs requests for "activity/list-notifications-for-authenticated-user"
List notifications for the authenticated user.
GET /notifications
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListOrgEventsForAuthenticatedUser ¶
func (c Client) ListOrgEventsForAuthenticatedUser(ctx context.Context, req *ListOrgEventsForAuthenticatedUserReq, opt ...requests.Option) (*ListOrgEventsForAuthenticatedUserResponse, error)
ListOrgEventsForAuthenticatedUser performs requests for "activity/list-org-events-for-authenticated-user"
List organization events for the authenticated user.
GET /users/{username}/events/orgs/{org}
https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListPublicEvents ¶
func (c Client) ListPublicEvents(ctx context.Context, req *ListPublicEventsReq, opt ...requests.Option) (*ListPublicEventsResponse, error)
ListPublicEvents performs requests for "activity/list-public-events"
List public events.
GET /events
https://developer.github.com/v3/activity/events/#list-public-events
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListPublicEventsForRepoNetwork ¶
func (c Client) ListPublicEventsForRepoNetwork(ctx context.Context, req *ListPublicEventsForRepoNetworkReq, opt ...requests.Option) (*ListPublicEventsForRepoNetworkResponse, error)
ListPublicEventsForRepoNetwork performs requests for "activity/list-public-events-for-repo-network"
List public events for a network of repositories.
GET /networks/{owner}/{repo}/events
https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListPublicEventsForUser ¶
func (c Client) ListPublicEventsForUser(ctx context.Context, req *ListPublicEventsForUserReq, opt ...requests.Option) (*ListPublicEventsForUserResponse, error)
ListPublicEventsForUser performs requests for "activity/list-public-events-for-user"
List public events for a user.
GET /users/{username}/events/public
https://developer.github.com/v3/activity/events/#list-public-events-for-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListPublicOrgEvents ¶
func (c Client) ListPublicOrgEvents(ctx context.Context, req *ListPublicOrgEventsReq, opt ...requests.Option) (*ListPublicOrgEventsResponse, error)
ListPublicOrgEvents performs requests for "activity/list-public-org-events"
List public organization events.
GET /orgs/{org}/events
https://developer.github.com/v3/activity/events/#list-public-organization-events
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListReceivedEventsForUser ¶
func (c Client) ListReceivedEventsForUser(ctx context.Context, req *ListReceivedEventsForUserReq, opt ...requests.Option) (*ListReceivedEventsForUserResponse, error)
ListReceivedEventsForUser performs requests for "activity/list-received-events-for-user"
List events received by the authenticated user.
GET /users/{username}/received_events
https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListReceivedPublicEventsForUser ¶
func (c Client) ListReceivedPublicEventsForUser(ctx context.Context, req *ListReceivedPublicEventsForUserReq, opt ...requests.Option) (*ListReceivedPublicEventsForUserResponse, error)
ListReceivedPublicEventsForUser performs requests for "activity/list-received-public-events-for-user"
List public events received by a user.
GET /users/{username}/received_events/public
https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListRepoEvents ¶
func (c Client) ListRepoEvents(ctx context.Context, req *ListRepoEventsReq, opt ...requests.Option) (*ListRepoEventsResponse, error)
ListRepoEvents performs requests for "activity/list-repo-events"
List repository events.
GET /repos/{owner}/{repo}/events
https://developer.github.com/v3/activity/events/#list-repository-events
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListRepoNotificationsForAuthenticatedUser ¶
func (c Client) ListRepoNotificationsForAuthenticatedUser(ctx context.Context, req *ListRepoNotificationsForAuthenticatedUserReq, opt ...requests.Option) (*ListRepoNotificationsForAuthenticatedUserResponse, error)
ListRepoNotificationsForAuthenticatedUser performs requests for "activity/list-repo-notifications-for-authenticated-user"
List repository notifications for the authenticated user.
GET /repos/{owner}/{repo}/notifications
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListReposStarredByAuthenticatedUser ¶
func (c Client) ListReposStarredByAuthenticatedUser(ctx context.Context, req *ListReposStarredByAuthenticatedUserReq, opt ...requests.Option) (*ListReposStarredByAuthenticatedUserResponse, error)
ListReposStarredByAuthenticatedUser performs requests for "activity/list-repos-starred-by-authenticated-user"
List repositories starred by the authenticated user.
GET /user/starred
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListReposStarredByUser ¶
func (c Client) ListReposStarredByUser(ctx context.Context, req *ListReposStarredByUserReq, opt ...requests.Option) (*ListReposStarredByUserResponse, error)
ListReposStarredByUser performs requests for "activity/list-repos-starred-by-user"
List repositories starred by a user.
GET /users/{username}/starred
https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListReposWatchedByUser ¶
func (c Client) ListReposWatchedByUser(ctx context.Context, req *ListReposWatchedByUserReq, opt ...requests.Option) (*ListReposWatchedByUserResponse, error)
ListReposWatchedByUser performs requests for "activity/list-repos-watched-by-user"
List repositories watched by a user.
GET /users/{username}/subscriptions
https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListStargazersForRepo ¶
func (c Client) ListStargazersForRepo(ctx context.Context, req *ListStargazersForRepoReq, opt ...requests.Option) (*ListStargazersForRepoResponse, error)
ListStargazersForRepo performs requests for "activity/list-stargazers-for-repo"
List stargazers.
GET /repos/{owner}/{repo}/stargazers
https://developer.github.com/v3/activity/starring/#list-stargazers
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListWatchedReposForAuthenticatedUser ¶
func (c Client) ListWatchedReposForAuthenticatedUser(ctx context.Context, req *ListWatchedReposForAuthenticatedUserReq, opt ...requests.Option) (*ListWatchedReposForAuthenticatedUserResponse, error)
ListWatchedReposForAuthenticatedUser performs requests for "activity/list-watched-repos-for-authenticated-user"
List repositories watched by the authenticated user.
GET /user/subscriptions
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListWatchersForRepo ¶
func (c Client) ListWatchersForRepo(ctx context.Context, req *ListWatchersForRepoReq, opt ...requests.Option) (*ListWatchersForRepoResponse, error)
ListWatchersForRepo performs requests for "activity/list-watchers-for-repo"
List watchers.
GET /repos/{owner}/{repo}/subscribers
https://developer.github.com/v3/activity/watching/#list-watchers
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) MarkNotificationsAsRead ¶
func (c Client) MarkNotificationsAsRead(ctx context.Context, req *MarkNotificationsAsReadReq, opt ...requests.Option) (*MarkNotificationsAsReadResponse, error)
MarkNotificationsAsRead performs requests for "activity/mark-notifications-as-read"
Mark notifications as read.
PUT /notifications
https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) MarkRepoNotificationsAsRead ¶
func (c Client) MarkRepoNotificationsAsRead(ctx context.Context, req *MarkRepoNotificationsAsReadReq, opt ...requests.Option) (*MarkRepoNotificationsAsReadResponse, error)
MarkRepoNotificationsAsRead performs requests for "activity/mark-repo-notifications-as-read"
Mark repository notifications as read.
PUT /repos/{owner}/{repo}/notifications
https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) MarkThreadAsRead ¶
func (c Client) MarkThreadAsRead(ctx context.Context, req *MarkThreadAsReadReq, opt ...requests.Option) (*MarkThreadAsReadResponse, error)
MarkThreadAsRead performs requests for "activity/mark-thread-as-read"
Mark a thread as read.
PATCH /notifications/threads/{thread_id}
https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) SetRepoSubscription ¶
func (c Client) SetRepoSubscription(ctx context.Context, req *SetRepoSubscriptionReq, opt ...requests.Option) (*SetRepoSubscriptionResponse, error)
SetRepoSubscription performs requests for "activity/set-repo-subscription"
Set a repository subscription.
PUT /repos/{owner}/{repo}/subscription
https://developer.github.com/v3/activity/watching/#set-a-repository-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) SetThreadSubscription ¶
func (c Client) SetThreadSubscription(ctx context.Context, req *SetThreadSubscriptionReq, opt ...requests.Option) (*SetThreadSubscriptionResponse, error)
SetThreadSubscription performs requests for "activity/set-thread-subscription"
Set a thread subscription.
PUT /notifications/threads/{thread_id}/subscription
https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) StarRepoForAuthenticatedUser ¶
func (c Client) StarRepoForAuthenticatedUser(ctx context.Context, req *StarRepoForAuthenticatedUserReq, opt ...requests.Option) (*StarRepoForAuthenticatedUserResponse, error)
StarRepoForAuthenticatedUser performs requests for "activity/star-repo-for-authenticated-user"
Star a repository for the authenticated user.
PUT /user/starred/{owner}/{repo}
https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UnstarRepoForAuthenticatedUser ¶
func (c Client) UnstarRepoForAuthenticatedUser(ctx context.Context, req *UnstarRepoForAuthenticatedUserReq, opt ...requests.Option) (*UnstarRepoForAuthenticatedUserResponse, error)
UnstarRepoForAuthenticatedUser performs requests for "activity/unstar-repo-for-authenticated-user"
Unstar a repository for the authenticated user.
DELETE /user/starred/{owner}/{repo}
https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
type DeleteRepoSubscriptionReq ¶
type DeleteRepoSubscriptionReq struct { Owner string Repo string // contains filtered or unexported fields }
DeleteRepoSubscriptionReq is request data for Client.DeleteRepoSubscription
https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteRepoSubscriptionReq) HTTPRequest ¶
func (r *DeleteRepoSubscriptionReq) 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 (*DeleteRepoSubscriptionReq) Rel ¶
func (r *DeleteRepoSubscriptionReq) Rel(link string, resp *DeleteRepoSubscriptionResponse) 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 DeleteRepoSubscriptionResponse ¶
type DeleteRepoSubscriptionResponse struct {
// contains filtered or unexported fields
}
DeleteRepoSubscriptionResponse is a response for DeleteRepoSubscription
https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription
func DeleteRepoSubscription ¶
func DeleteRepoSubscription(ctx context.Context, req *DeleteRepoSubscriptionReq, opt ...requests.Option) (*DeleteRepoSubscriptionResponse, error)
DeleteRepoSubscription performs requests for "activity/delete-repo-subscription"
Delete a repository subscription.
DELETE /repos/{owner}/{repo}/subscription
https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription
func (*DeleteRepoSubscriptionResponse) HTTPResponse ¶
func (r *DeleteRepoSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteRepoSubscriptionResponse) ReadResponse ¶
func (r *DeleteRepoSubscriptionResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteThreadSubscriptionReq ¶
type DeleteThreadSubscriptionReq struct { // thread_id parameter ThreadId int64 // contains filtered or unexported fields }
DeleteThreadSubscriptionReq is request data for Client.DeleteThreadSubscription
https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteThreadSubscriptionReq) HTTPRequest ¶
func (r *DeleteThreadSubscriptionReq) 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 (*DeleteThreadSubscriptionReq) Rel ¶
func (r *DeleteThreadSubscriptionReq) Rel(link string, resp *DeleteThreadSubscriptionResponse) 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 DeleteThreadSubscriptionResponse ¶
type DeleteThreadSubscriptionResponse struct {
// contains filtered or unexported fields
}
DeleteThreadSubscriptionResponse is a response for DeleteThreadSubscription
https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
func DeleteThreadSubscription ¶
func DeleteThreadSubscription(ctx context.Context, req *DeleteThreadSubscriptionReq, opt ...requests.Option) (*DeleteThreadSubscriptionResponse, error)
DeleteThreadSubscription performs requests for "activity/delete-thread-subscription"
Delete a thread subscription.
DELETE /notifications/threads/{thread_id}/subscription
https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
func (*DeleteThreadSubscriptionResponse) HTTPResponse ¶
func (r *DeleteThreadSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteThreadSubscriptionResponse) ReadResponse ¶
func (r *DeleteThreadSubscriptionResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetFeedsReq ¶
type GetFeedsReq struct {
// contains filtered or unexported fields
}
GetFeedsReq is request data for Client.GetFeeds
https://developer.github.com/v3/activity/feeds/#get-feeds
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetFeedsReq) HTTPRequest ¶
func (r *GetFeedsReq) 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 (*GetFeedsReq) Rel ¶
func (r *GetFeedsReq) Rel(link string, resp *GetFeedsResponse) 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 GetFeedsResponse ¶
type GetFeedsResponse struct { Data components.Feed // contains filtered or unexported fields }
GetFeedsResponse is a response for GetFeeds
https://developer.github.com/v3/activity/feeds/#get-feeds
func GetFeeds ¶
func GetFeeds(ctx context.Context, req *GetFeedsReq, opt ...requests.Option) (*GetFeedsResponse, error)
GetFeeds performs requests for "activity/get-feeds"
Get feeds.
GET /feeds
func (*GetFeedsResponse) HTTPResponse ¶
func (r *GetFeedsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetFeedsResponse) ReadResponse ¶
func (r *GetFeedsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetRepoSubscriptionReq ¶
type GetRepoSubscriptionReq struct { Owner string Repo string // contains filtered or unexported fields }
GetRepoSubscriptionReq is request data for Client.GetRepoSubscription
https://developer.github.com/v3/activity/watching/#get-a-repository-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetRepoSubscriptionReq) HTTPRequest ¶
func (r *GetRepoSubscriptionReq) 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 (*GetRepoSubscriptionReq) Rel ¶
func (r *GetRepoSubscriptionReq) Rel(link string, resp *GetRepoSubscriptionResponse) 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 GetRepoSubscriptionResponse ¶
type GetRepoSubscriptionResponse struct { Data components.RepositorySubscription // contains filtered or unexported fields }
GetRepoSubscriptionResponse is a response for GetRepoSubscription
https://developer.github.com/v3/activity/watching/#get-a-repository-subscription
func GetRepoSubscription ¶
func GetRepoSubscription(ctx context.Context, req *GetRepoSubscriptionReq, opt ...requests.Option) (*GetRepoSubscriptionResponse, error)
GetRepoSubscription performs requests for "activity/get-repo-subscription"
Get a repository subscription.
GET /repos/{owner}/{repo}/subscription
https://developer.github.com/v3/activity/watching/#get-a-repository-subscription
func (*GetRepoSubscriptionResponse) HTTPResponse ¶
func (r *GetRepoSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetRepoSubscriptionResponse) ReadResponse ¶
func (r *GetRepoSubscriptionResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetThreadReq ¶
type GetThreadReq struct { // thread_id parameter ThreadId int64 // contains filtered or unexported fields }
GetThreadReq is request data for Client.GetThread
https://developer.github.com/v3/activity/notifications/#get-a-thread
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetThreadReq) HTTPRequest ¶
func (r *GetThreadReq) 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 (*GetThreadReq) Rel ¶
func (r *GetThreadReq) Rel(link string, resp *GetThreadResponse) 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 GetThreadResponse ¶
type GetThreadResponse struct { Data components.Thread // contains filtered or unexported fields }
GetThreadResponse is a response for GetThread
https://developer.github.com/v3/activity/notifications/#get-a-thread
func GetThread ¶
func GetThread(ctx context.Context, req *GetThreadReq, opt ...requests.Option) (*GetThreadResponse, error)
GetThread performs requests for "activity/get-thread"
Get a thread.
GET /notifications/threads/{thread_id}
https://developer.github.com/v3/activity/notifications/#get-a-thread
func (*GetThreadResponse) HTTPResponse ¶
func (r *GetThreadResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetThreadResponse) ReadResponse ¶
func (r *GetThreadResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetThreadSubscriptionForAuthenticatedUserReq ¶
type GetThreadSubscriptionForAuthenticatedUserReq struct { // thread_id parameter ThreadId int64 // contains filtered or unexported fields }
GetThreadSubscriptionForAuthenticatedUserReq is request data for Client.GetThreadSubscriptionForAuthenticatedUser
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetThreadSubscriptionForAuthenticatedUserReq) HTTPRequest ¶
func (r *GetThreadSubscriptionForAuthenticatedUserReq) 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 (*GetThreadSubscriptionForAuthenticatedUserReq) Rel ¶
func (r *GetThreadSubscriptionForAuthenticatedUserReq) Rel(link string, resp *GetThreadSubscriptionForAuthenticatedUserResponse) 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 GetThreadSubscriptionForAuthenticatedUserResponse ¶
type GetThreadSubscriptionForAuthenticatedUserResponse struct { Data components.ThreadSubscription // contains filtered or unexported fields }
GetThreadSubscriptionForAuthenticatedUserResponse is a response for GetThreadSubscriptionForAuthenticatedUser
func GetThreadSubscriptionForAuthenticatedUser ¶
func GetThreadSubscriptionForAuthenticatedUser(ctx context.Context, req *GetThreadSubscriptionForAuthenticatedUserReq, opt ...requests.Option) (*GetThreadSubscriptionForAuthenticatedUserResponse, error)
GetThreadSubscriptionForAuthenticatedUser performs requests for "activity/get-thread-subscription-for-authenticated-user"
Get a thread subscription for the authenticated user.
GET /notifications/threads/{thread_id}/subscription
func (*GetThreadSubscriptionForAuthenticatedUserResponse) HTTPResponse ¶
func (r *GetThreadSubscriptionForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetThreadSubscriptionForAuthenticatedUserResponse) ReadResponse ¶
func (r *GetThreadSubscriptionForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListEventsForAuthenticatedUserReq ¶
type ListEventsForAuthenticatedUserReq struct { Username string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListEventsForAuthenticatedUserReq is request data for Client.ListEventsForAuthenticatedUser
https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListEventsForAuthenticatedUserReq) HTTPRequest ¶
func (r *ListEventsForAuthenticatedUserReq) 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 (*ListEventsForAuthenticatedUserReq) Rel ¶
func (r *ListEventsForAuthenticatedUserReq) Rel(link string, resp *ListEventsForAuthenticatedUserResponse) 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 ListEventsForAuthenticatedUserResponse ¶
type ListEventsForAuthenticatedUserResponse struct { Data []components.Event // contains filtered or unexported fields }
ListEventsForAuthenticatedUserResponse is a response for ListEventsForAuthenticatedUser
https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user
func ListEventsForAuthenticatedUser ¶
func ListEventsForAuthenticatedUser(ctx context.Context, req *ListEventsForAuthenticatedUserReq, opt ...requests.Option) (*ListEventsForAuthenticatedUserResponse, error)
ListEventsForAuthenticatedUser performs requests for "activity/list-events-for-authenticated-user"
List events for the authenticated user.
GET /users/{username}/events
https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user
func (*ListEventsForAuthenticatedUserResponse) HTTPResponse ¶
func (r *ListEventsForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListEventsForAuthenticatedUserResponse) ReadResponse ¶
func (r *ListEventsForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListNotificationsForAuthenticatedUserReq ¶
type ListNotificationsForAuthenticatedUserReq struct { // If `true`, show notifications marked as read. All *bool /* If `true`, only shows notifications in which the user is directly participating or mentioned. */ Participating *bool /* Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */ Since *string /* Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */ Before *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListNotificationsForAuthenticatedUserReq is request data for Client.ListNotificationsForAuthenticatedUser
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListNotificationsForAuthenticatedUserReq) HTTPRequest ¶
func (r *ListNotificationsForAuthenticatedUserReq) 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 (*ListNotificationsForAuthenticatedUserReq) Rel ¶
func (r *ListNotificationsForAuthenticatedUserReq) Rel(link string, resp *ListNotificationsForAuthenticatedUserResponse) 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 ListNotificationsForAuthenticatedUserResponse ¶
type ListNotificationsForAuthenticatedUserResponse struct { Data []components.Thread // contains filtered or unexported fields }
ListNotificationsForAuthenticatedUserResponse is a response for ListNotificationsForAuthenticatedUser
func ListNotificationsForAuthenticatedUser ¶
func ListNotificationsForAuthenticatedUser(ctx context.Context, req *ListNotificationsForAuthenticatedUserReq, opt ...requests.Option) (*ListNotificationsForAuthenticatedUserResponse, error)
ListNotificationsForAuthenticatedUser performs requests for "activity/list-notifications-for-authenticated-user"
List notifications for the authenticated user.
GET /notifications
func (*ListNotificationsForAuthenticatedUserResponse) HTTPResponse ¶
func (r *ListNotificationsForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListNotificationsForAuthenticatedUserResponse) ReadResponse ¶
func (r *ListNotificationsForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListOrgEventsForAuthenticatedUserReq ¶
type ListOrgEventsForAuthenticatedUserReq struct { Username string Org string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListOrgEventsForAuthenticatedUserReq is request data for Client.ListOrgEventsForAuthenticatedUser
https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListOrgEventsForAuthenticatedUserReq) HTTPRequest ¶
func (r *ListOrgEventsForAuthenticatedUserReq) 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 (*ListOrgEventsForAuthenticatedUserReq) Rel ¶
func (r *ListOrgEventsForAuthenticatedUserReq) Rel(link string, resp *ListOrgEventsForAuthenticatedUserResponse) 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 ListOrgEventsForAuthenticatedUserResponse ¶
type ListOrgEventsForAuthenticatedUserResponse struct { Data []components.Event // contains filtered or unexported fields }
ListOrgEventsForAuthenticatedUserResponse is a response for ListOrgEventsForAuthenticatedUser
https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user
func ListOrgEventsForAuthenticatedUser ¶
func ListOrgEventsForAuthenticatedUser(ctx context.Context, req *ListOrgEventsForAuthenticatedUserReq, opt ...requests.Option) (*ListOrgEventsForAuthenticatedUserResponse, error)
ListOrgEventsForAuthenticatedUser performs requests for "activity/list-org-events-for-authenticated-user"
List organization events for the authenticated user.
GET /users/{username}/events/orgs/{org}
https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user
func (*ListOrgEventsForAuthenticatedUserResponse) HTTPResponse ¶
func (r *ListOrgEventsForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListOrgEventsForAuthenticatedUserResponse) ReadResponse ¶
func (r *ListOrgEventsForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListPublicEventsForRepoNetworkReq ¶
type ListPublicEventsForRepoNetworkReq struct { Owner string Repo string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListPublicEventsForRepoNetworkReq is request data for Client.ListPublicEventsForRepoNetwork
https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListPublicEventsForRepoNetworkReq) HTTPRequest ¶
func (r *ListPublicEventsForRepoNetworkReq) 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 (*ListPublicEventsForRepoNetworkReq) Rel ¶
func (r *ListPublicEventsForRepoNetworkReq) Rel(link string, resp *ListPublicEventsForRepoNetworkResponse) 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 ListPublicEventsForRepoNetworkResponse ¶
type ListPublicEventsForRepoNetworkResponse struct { Data []components.Event // contains filtered or unexported fields }
ListPublicEventsForRepoNetworkResponse is a response for ListPublicEventsForRepoNetwork
https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories
func ListPublicEventsForRepoNetwork ¶
func ListPublicEventsForRepoNetwork(ctx context.Context, req *ListPublicEventsForRepoNetworkReq, opt ...requests.Option) (*ListPublicEventsForRepoNetworkResponse, error)
ListPublicEventsForRepoNetwork performs requests for "activity/list-public-events-for-repo-network"
List public events for a network of repositories.
GET /networks/{owner}/{repo}/events
https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories
func (*ListPublicEventsForRepoNetworkResponse) HTTPResponse ¶
func (r *ListPublicEventsForRepoNetworkResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListPublicEventsForRepoNetworkResponse) ReadResponse ¶
func (r *ListPublicEventsForRepoNetworkResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListPublicEventsForUserReq ¶
type ListPublicEventsForUserReq struct { Username string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListPublicEventsForUserReq is request data for Client.ListPublicEventsForUser
https://developer.github.com/v3/activity/events/#list-public-events-for-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListPublicEventsForUserReq) HTTPRequest ¶
func (r *ListPublicEventsForUserReq) 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 (*ListPublicEventsForUserReq) Rel ¶
func (r *ListPublicEventsForUserReq) Rel(link string, resp *ListPublicEventsForUserResponse) 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 ListPublicEventsForUserResponse ¶
type ListPublicEventsForUserResponse struct { Data []components.Event // contains filtered or unexported fields }
ListPublicEventsForUserResponse is a response for ListPublicEventsForUser
https://developer.github.com/v3/activity/events/#list-public-events-for-a-user
func ListPublicEventsForUser ¶
func ListPublicEventsForUser(ctx context.Context, req *ListPublicEventsForUserReq, opt ...requests.Option) (*ListPublicEventsForUserResponse, error)
ListPublicEventsForUser performs requests for "activity/list-public-events-for-user"
List public events for a user.
GET /users/{username}/events/public
https://developer.github.com/v3/activity/events/#list-public-events-for-a-user
func (*ListPublicEventsForUserResponse) HTTPResponse ¶
func (r *ListPublicEventsForUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListPublicEventsForUserResponse) ReadResponse ¶
func (r *ListPublicEventsForUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListPublicEventsReq ¶
type ListPublicEventsReq struct { // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListPublicEventsReq is request data for Client.ListPublicEvents
https://developer.github.com/v3/activity/events/#list-public-events
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListPublicEventsReq) HTTPRequest ¶
func (r *ListPublicEventsReq) 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 (*ListPublicEventsReq) Rel ¶
func (r *ListPublicEventsReq) Rel(link string, resp *ListPublicEventsResponse) 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 ListPublicEventsResponse ¶
type ListPublicEventsResponse struct { Data []components.Event // contains filtered or unexported fields }
ListPublicEventsResponse is a response for ListPublicEvents
https://developer.github.com/v3/activity/events/#list-public-events
func ListPublicEvents ¶
func ListPublicEvents(ctx context.Context, req *ListPublicEventsReq, opt ...requests.Option) (*ListPublicEventsResponse, error)
ListPublicEvents performs requests for "activity/list-public-events"
List public events.
GET /events
https://developer.github.com/v3/activity/events/#list-public-events
func (*ListPublicEventsResponse) HTTPResponse ¶
func (r *ListPublicEventsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListPublicEventsResponse) ReadResponse ¶
func (r *ListPublicEventsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListPublicOrgEventsReq ¶
type ListPublicOrgEventsReq struct { Org string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListPublicOrgEventsReq is request data for Client.ListPublicOrgEvents
https://developer.github.com/v3/activity/events/#list-public-organization-events
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListPublicOrgEventsReq) HTTPRequest ¶
func (r *ListPublicOrgEventsReq) 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 (*ListPublicOrgEventsReq) Rel ¶
func (r *ListPublicOrgEventsReq) Rel(link string, resp *ListPublicOrgEventsResponse) 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 ListPublicOrgEventsResponse ¶
type ListPublicOrgEventsResponse struct { Data []components.Event // contains filtered or unexported fields }
ListPublicOrgEventsResponse is a response for ListPublicOrgEvents
https://developer.github.com/v3/activity/events/#list-public-organization-events
func ListPublicOrgEvents ¶
func ListPublicOrgEvents(ctx context.Context, req *ListPublicOrgEventsReq, opt ...requests.Option) (*ListPublicOrgEventsResponse, error)
ListPublicOrgEvents performs requests for "activity/list-public-org-events"
List public organization events.
GET /orgs/{org}/events
https://developer.github.com/v3/activity/events/#list-public-organization-events
func (*ListPublicOrgEventsResponse) HTTPResponse ¶
func (r *ListPublicOrgEventsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListPublicOrgEventsResponse) ReadResponse ¶
func (r *ListPublicOrgEventsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReceivedEventsForUserReq ¶
type ListReceivedEventsForUserReq struct { Username string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListReceivedEventsForUserReq is request data for Client.ListReceivedEventsForUser
https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReceivedEventsForUserReq) HTTPRequest ¶
func (r *ListReceivedEventsForUserReq) 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 (*ListReceivedEventsForUserReq) Rel ¶
func (r *ListReceivedEventsForUserReq) Rel(link string, resp *ListReceivedEventsForUserResponse) 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 ListReceivedEventsForUserResponse ¶
type ListReceivedEventsForUserResponse struct { Data []components.Event // contains filtered or unexported fields }
ListReceivedEventsForUserResponse is a response for ListReceivedEventsForUser
https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user
func ListReceivedEventsForUser ¶
func ListReceivedEventsForUser(ctx context.Context, req *ListReceivedEventsForUserReq, opt ...requests.Option) (*ListReceivedEventsForUserResponse, error)
ListReceivedEventsForUser performs requests for "activity/list-received-events-for-user"
List events received by the authenticated user.
GET /users/{username}/received_events
https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user
func (*ListReceivedEventsForUserResponse) HTTPResponse ¶
func (r *ListReceivedEventsForUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListReceivedEventsForUserResponse) ReadResponse ¶
func (r *ListReceivedEventsForUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReceivedPublicEventsForUserReq ¶
type ListReceivedPublicEventsForUserReq struct { Username string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListReceivedPublicEventsForUserReq is request data for Client.ListReceivedPublicEventsForUser
https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReceivedPublicEventsForUserReq) HTTPRequest ¶
func (r *ListReceivedPublicEventsForUserReq) 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 (*ListReceivedPublicEventsForUserReq) Rel ¶
func (r *ListReceivedPublicEventsForUserReq) Rel(link string, resp *ListReceivedPublicEventsForUserResponse) 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 ListReceivedPublicEventsForUserResponse ¶
type ListReceivedPublicEventsForUserResponse struct { Data []components.Event // contains filtered or unexported fields }
ListReceivedPublicEventsForUserResponse is a response for ListReceivedPublicEventsForUser
https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user
func ListReceivedPublicEventsForUser ¶
func ListReceivedPublicEventsForUser(ctx context.Context, req *ListReceivedPublicEventsForUserReq, opt ...requests.Option) (*ListReceivedPublicEventsForUserResponse, error)
ListReceivedPublicEventsForUser performs requests for "activity/list-received-public-events-for-user"
List public events received by a user.
GET /users/{username}/received_events/public
https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user
func (*ListReceivedPublicEventsForUserResponse) HTTPResponse ¶
func (r *ListReceivedPublicEventsForUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListReceivedPublicEventsForUserResponse) ReadResponse ¶
func (r *ListReceivedPublicEventsForUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListRepoEventsReq ¶
type ListRepoEventsReq struct { Owner string Repo string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListRepoEventsReq is request data for Client.ListRepoEvents
https://developer.github.com/v3/activity/events/#list-repository-events
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListRepoEventsReq) HTTPRequest ¶
func (r *ListRepoEventsReq) 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 (*ListRepoEventsReq) Rel ¶
func (r *ListRepoEventsReq) Rel(link string, resp *ListRepoEventsResponse) 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 ListRepoEventsResponse ¶
type ListRepoEventsResponse struct { Data []components.Event // contains filtered or unexported fields }
ListRepoEventsResponse is a response for ListRepoEvents
https://developer.github.com/v3/activity/events/#list-repository-events
func ListRepoEvents ¶
func ListRepoEvents(ctx context.Context, req *ListRepoEventsReq, opt ...requests.Option) (*ListRepoEventsResponse, error)
ListRepoEvents performs requests for "activity/list-repo-events"
List repository events.
GET /repos/{owner}/{repo}/events
https://developer.github.com/v3/activity/events/#list-repository-events
func (*ListRepoEventsResponse) HTTPResponse ¶
func (r *ListRepoEventsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListRepoEventsResponse) ReadResponse ¶
func (r *ListRepoEventsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListRepoNotificationsForAuthenticatedUserReq ¶
type ListRepoNotificationsForAuthenticatedUserReq struct { Owner string Repo string // If `true`, show notifications marked as read. All *bool /* If `true`, only shows notifications in which the user is directly participating or mentioned. */ Participating *bool /* Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */ Since *string /* Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */ Before *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListRepoNotificationsForAuthenticatedUserReq is request data for Client.ListRepoNotificationsForAuthenticatedUser
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListRepoNotificationsForAuthenticatedUserReq) HTTPRequest ¶
func (r *ListRepoNotificationsForAuthenticatedUserReq) 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 (*ListRepoNotificationsForAuthenticatedUserReq) Rel ¶
func (r *ListRepoNotificationsForAuthenticatedUserReq) Rel(link string, resp *ListRepoNotificationsForAuthenticatedUserResponse) 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 ListRepoNotificationsForAuthenticatedUserResponse ¶
type ListRepoNotificationsForAuthenticatedUserResponse struct { Data []components.Thread // contains filtered or unexported fields }
ListRepoNotificationsForAuthenticatedUserResponse is a response for ListRepoNotificationsForAuthenticatedUser
func ListRepoNotificationsForAuthenticatedUser ¶
func ListRepoNotificationsForAuthenticatedUser(ctx context.Context, req *ListRepoNotificationsForAuthenticatedUserReq, opt ...requests.Option) (*ListRepoNotificationsForAuthenticatedUserResponse, error)
ListRepoNotificationsForAuthenticatedUser performs requests for "activity/list-repo-notifications-for-authenticated-user"
List repository notifications for the authenticated user.
GET /repos/{owner}/{repo}/notifications
func (*ListRepoNotificationsForAuthenticatedUserResponse) HTTPResponse ¶
func (r *ListRepoNotificationsForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListRepoNotificationsForAuthenticatedUserResponse) ReadResponse ¶
func (r *ListRepoNotificationsForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReposStarredByAuthenticatedUserReq ¶
type ListReposStarredByAuthenticatedUserReq struct { /* One of `created` (when the repository was starred) or `updated` (when it was last pushed to). */ Sort *string // One of `asc` (ascending) or `desc` (descending). Direction *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListReposStarredByAuthenticatedUserReq is request data for Client.ListReposStarredByAuthenticatedUser
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReposStarredByAuthenticatedUserReq) HTTPRequest ¶
func (r *ListReposStarredByAuthenticatedUserReq) 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 (*ListReposStarredByAuthenticatedUserReq) Rel ¶
func (r *ListReposStarredByAuthenticatedUserReq) Rel(link string, resp *ListReposStarredByAuthenticatedUserResponse) 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 ListReposStarredByAuthenticatedUserResponse ¶
type ListReposStarredByAuthenticatedUserResponse struct { Data []components.StarredRepository // contains filtered or unexported fields }
ListReposStarredByAuthenticatedUserResponse is a response for ListReposStarredByAuthenticatedUser
func ListReposStarredByAuthenticatedUser ¶
func ListReposStarredByAuthenticatedUser(ctx context.Context, req *ListReposStarredByAuthenticatedUserReq, opt ...requests.Option) (*ListReposStarredByAuthenticatedUserResponse, error)
ListReposStarredByAuthenticatedUser performs requests for "activity/list-repos-starred-by-authenticated-user"
List repositories starred by the authenticated user.
GET /user/starred
func (*ListReposStarredByAuthenticatedUserResponse) HTTPResponse ¶
func (r *ListReposStarredByAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListReposStarredByAuthenticatedUserResponse) ReadResponse ¶
func (r *ListReposStarredByAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReposStarredByUserReq ¶
type ListReposStarredByUserReq struct { Username string /* One of `created` (when the repository was starred) or `updated` (when it was last pushed to). */ Sort *string // One of `asc` (ascending) or `desc` (descending). Direction *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListReposStarredByUserReq is request data for Client.ListReposStarredByUser
https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReposStarredByUserReq) HTTPRequest ¶
func (r *ListReposStarredByUserReq) 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 (*ListReposStarredByUserReq) Rel ¶
func (r *ListReposStarredByUserReq) Rel(link string, resp *ListReposStarredByUserResponse) 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 ListReposStarredByUserResponse ¶
type ListReposStarredByUserResponse struct { Data []components.StarredRepository // contains filtered or unexported fields }
ListReposStarredByUserResponse is a response for ListReposStarredByUser
https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user
func ListReposStarredByUser ¶
func ListReposStarredByUser(ctx context.Context, req *ListReposStarredByUserReq, opt ...requests.Option) (*ListReposStarredByUserResponse, error)
ListReposStarredByUser performs requests for "activity/list-repos-starred-by-user"
List repositories starred by a user.
GET /users/{username}/starred
https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user
func (*ListReposStarredByUserResponse) HTTPResponse ¶
func (r *ListReposStarredByUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListReposStarredByUserResponse) ReadResponse ¶
func (r *ListReposStarredByUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReposWatchedByUserReq ¶
type ListReposWatchedByUserReq struct { Username string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListReposWatchedByUserReq is request data for Client.ListReposWatchedByUser
https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReposWatchedByUserReq) HTTPRequest ¶
func (r *ListReposWatchedByUserReq) 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 (*ListReposWatchedByUserReq) Rel ¶
func (r *ListReposWatchedByUserReq) Rel(link string, resp *ListReposWatchedByUserResponse) 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 ListReposWatchedByUserResponse ¶
type ListReposWatchedByUserResponse struct { Data []components.MinimalRepository // contains filtered or unexported fields }
ListReposWatchedByUserResponse is a response for ListReposWatchedByUser
https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user
func ListReposWatchedByUser ¶
func ListReposWatchedByUser(ctx context.Context, req *ListReposWatchedByUserReq, opt ...requests.Option) (*ListReposWatchedByUserResponse, error)
ListReposWatchedByUser performs requests for "activity/list-repos-watched-by-user"
List repositories watched by a user.
GET /users/{username}/subscriptions
https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user
func (*ListReposWatchedByUserResponse) HTTPResponse ¶
func (r *ListReposWatchedByUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListReposWatchedByUserResponse) ReadResponse ¶
func (r *ListReposWatchedByUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListStargazersForRepoReq ¶
type ListStargazersForRepoReq struct { Owner string Repo string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListStargazersForRepoReq is request data for Client.ListStargazersForRepo
https://developer.github.com/v3/activity/starring/#list-stargazers
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListStargazersForRepoReq) HTTPRequest ¶
func (r *ListStargazersForRepoReq) 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 (*ListStargazersForRepoReq) Rel ¶
func (r *ListStargazersForRepoReq) Rel(link string, resp *ListStargazersForRepoResponse) 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 ListStargazersForRepoResponse ¶
type ListStargazersForRepoResponse struct { Data []components.Stargazer // contains filtered or unexported fields }
ListStargazersForRepoResponse is a response for ListStargazersForRepo
https://developer.github.com/v3/activity/starring/#list-stargazers
func ListStargazersForRepo ¶
func ListStargazersForRepo(ctx context.Context, req *ListStargazersForRepoReq, opt ...requests.Option) (*ListStargazersForRepoResponse, error)
ListStargazersForRepo performs requests for "activity/list-stargazers-for-repo"
List stargazers.
GET /repos/{owner}/{repo}/stargazers
https://developer.github.com/v3/activity/starring/#list-stargazers
func (*ListStargazersForRepoResponse) HTTPResponse ¶
func (r *ListStargazersForRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListStargazersForRepoResponse) ReadResponse ¶
func (r *ListStargazersForRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListWatchedReposForAuthenticatedUserReq ¶
type ListWatchedReposForAuthenticatedUserReq struct { // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListWatchedReposForAuthenticatedUserReq is request data for Client.ListWatchedReposForAuthenticatedUser
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListWatchedReposForAuthenticatedUserReq) HTTPRequest ¶
func (r *ListWatchedReposForAuthenticatedUserReq) 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 (*ListWatchedReposForAuthenticatedUserReq) Rel ¶
func (r *ListWatchedReposForAuthenticatedUserReq) Rel(link string, resp *ListWatchedReposForAuthenticatedUserResponse) 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 ListWatchedReposForAuthenticatedUserResponse ¶
type ListWatchedReposForAuthenticatedUserResponse struct { Data []components.MinimalRepository // contains filtered or unexported fields }
ListWatchedReposForAuthenticatedUserResponse is a response for ListWatchedReposForAuthenticatedUser
func ListWatchedReposForAuthenticatedUser ¶
func ListWatchedReposForAuthenticatedUser(ctx context.Context, req *ListWatchedReposForAuthenticatedUserReq, opt ...requests.Option) (*ListWatchedReposForAuthenticatedUserResponse, error)
ListWatchedReposForAuthenticatedUser performs requests for "activity/list-watched-repos-for-authenticated-user"
List repositories watched by the authenticated user.
GET /user/subscriptions
func (*ListWatchedReposForAuthenticatedUserResponse) HTTPResponse ¶
func (r *ListWatchedReposForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListWatchedReposForAuthenticatedUserResponse) ReadResponse ¶
func (r *ListWatchedReposForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListWatchersForRepoReq ¶
type ListWatchersForRepoReq struct { Owner string Repo string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListWatchersForRepoReq is request data for Client.ListWatchersForRepo
https://developer.github.com/v3/activity/watching/#list-watchers
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListWatchersForRepoReq) HTTPRequest ¶
func (r *ListWatchersForRepoReq) 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 (*ListWatchersForRepoReq) Rel ¶
func (r *ListWatchersForRepoReq) Rel(link string, resp *ListWatchersForRepoResponse) 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 ListWatchersForRepoResponse ¶
type ListWatchersForRepoResponse struct { Data []components.SimpleUser // contains filtered or unexported fields }
ListWatchersForRepoResponse is a response for ListWatchersForRepo
https://developer.github.com/v3/activity/watching/#list-watchers
func ListWatchersForRepo ¶
func ListWatchersForRepo(ctx context.Context, req *ListWatchersForRepoReq, opt ...requests.Option) (*ListWatchersForRepoResponse, error)
ListWatchersForRepo performs requests for "activity/list-watchers-for-repo"
List watchers.
GET /repos/{owner}/{repo}/subscribers
https://developer.github.com/v3/activity/watching/#list-watchers
func (*ListWatchersForRepoResponse) HTTPResponse ¶
func (r *ListWatchersForRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListWatchersForRepoResponse) ReadResponse ¶
func (r *ListWatchersForRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type MarkNotificationsAsReadReq ¶
type MarkNotificationsAsReadReq struct { RequestBody MarkNotificationsAsReadReqBody // contains filtered or unexported fields }
MarkNotificationsAsReadReq is request data for Client.MarkNotificationsAsRead
https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*MarkNotificationsAsReadReq) HTTPRequest ¶
func (r *MarkNotificationsAsReadReq) 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 (*MarkNotificationsAsReadReq) Rel ¶
func (r *MarkNotificationsAsReadReq) Rel(link string, resp *MarkNotificationsAsReadResponse) 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 MarkNotificationsAsReadReqBody ¶
type MarkNotificationsAsReadReqBody struct { // Describes the last point that notifications were checked. LastReadAt *string `json:"last_read_at,omitempty"` // Whether the notification has been read. Read *bool `json:"read,omitempty"` }
MarkNotificationsAsReadReqBody is a request body for activity/mark-notifications-as-read
https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read
type MarkNotificationsAsReadResponse ¶
type MarkNotificationsAsReadResponse struct { Data MarkNotificationsAsReadResponseBody // contains filtered or unexported fields }
MarkNotificationsAsReadResponse is a response for MarkNotificationsAsRead
https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read
func MarkNotificationsAsRead ¶
func MarkNotificationsAsRead(ctx context.Context, req *MarkNotificationsAsReadReq, opt ...requests.Option) (*MarkNotificationsAsReadResponse, error)
MarkNotificationsAsRead performs requests for "activity/mark-notifications-as-read"
Mark notifications as read.
PUT /notifications
https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read
func (*MarkNotificationsAsReadResponse) HTTPResponse ¶
func (r *MarkNotificationsAsReadResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*MarkNotificationsAsReadResponse) ReadResponse ¶
func (r *MarkNotificationsAsReadResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type MarkNotificationsAsReadResponseBody ¶
type MarkNotificationsAsReadResponseBody struct {
Message string `json:"message,omitempty"`
}
MarkNotificationsAsReadResponseBody is a response body for MarkNotificationsAsRead
https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read
type MarkRepoNotificationsAsReadReq ¶
type MarkRepoNotificationsAsReadReq struct { Owner string Repo string RequestBody MarkRepoNotificationsAsReadReqBody // contains filtered or unexported fields }
MarkRepoNotificationsAsReadReq is request data for Client.MarkRepoNotificationsAsRead
https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*MarkRepoNotificationsAsReadReq) HTTPRequest ¶
func (r *MarkRepoNotificationsAsReadReq) 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 (*MarkRepoNotificationsAsReadReq) Rel ¶
func (r *MarkRepoNotificationsAsReadReq) Rel(link string, resp *MarkRepoNotificationsAsReadResponse) 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 MarkRepoNotificationsAsReadReqBody ¶
type MarkRepoNotificationsAsReadReqBody struct { /* Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. */ LastReadAt *string `json:"last_read_at,omitempty"` }
MarkRepoNotificationsAsReadReqBody is a request body for activity/mark-repo-notifications-as-read
https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read
type MarkRepoNotificationsAsReadResponse ¶
type MarkRepoNotificationsAsReadResponse struct {
// contains filtered or unexported fields
}
MarkRepoNotificationsAsReadResponse is a response for MarkRepoNotificationsAsRead
https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read
func MarkRepoNotificationsAsRead ¶
func MarkRepoNotificationsAsRead(ctx context.Context, req *MarkRepoNotificationsAsReadReq, opt ...requests.Option) (*MarkRepoNotificationsAsReadResponse, error)
MarkRepoNotificationsAsRead performs requests for "activity/mark-repo-notifications-as-read"
Mark repository notifications as read.
PUT /repos/{owner}/{repo}/notifications
https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read
func (*MarkRepoNotificationsAsReadResponse) HTTPResponse ¶
func (r *MarkRepoNotificationsAsReadResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*MarkRepoNotificationsAsReadResponse) ReadResponse ¶
func (r *MarkRepoNotificationsAsReadResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type MarkThreadAsReadReq ¶
type MarkThreadAsReadReq struct { // thread_id parameter ThreadId int64 // contains filtered or unexported fields }
MarkThreadAsReadReq is request data for Client.MarkThreadAsRead
https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*MarkThreadAsReadReq) HTTPRequest ¶
func (r *MarkThreadAsReadReq) 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 (*MarkThreadAsReadReq) Rel ¶
func (r *MarkThreadAsReadReq) Rel(link string, resp *MarkThreadAsReadResponse) 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 MarkThreadAsReadResponse ¶
type MarkThreadAsReadResponse struct {
// contains filtered or unexported fields
}
MarkThreadAsReadResponse is a response for MarkThreadAsRead
https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read
func MarkThreadAsRead ¶
func MarkThreadAsRead(ctx context.Context, req *MarkThreadAsReadReq, opt ...requests.Option) (*MarkThreadAsReadResponse, error)
MarkThreadAsRead performs requests for "activity/mark-thread-as-read"
Mark a thread as read.
PATCH /notifications/threads/{thread_id}
https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read
func (*MarkThreadAsReadResponse) HTTPResponse ¶
func (r *MarkThreadAsReadResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*MarkThreadAsReadResponse) ReadResponse ¶
func (r *MarkThreadAsReadResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type SetRepoSubscriptionReq ¶
type SetRepoSubscriptionReq struct { Owner string Repo string RequestBody SetRepoSubscriptionReqBody // contains filtered or unexported fields }
SetRepoSubscriptionReq is request data for Client.SetRepoSubscription
https://developer.github.com/v3/activity/watching/#set-a-repository-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*SetRepoSubscriptionReq) HTTPRequest ¶
func (r *SetRepoSubscriptionReq) 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 (*SetRepoSubscriptionReq) Rel ¶
func (r *SetRepoSubscriptionReq) Rel(link string, resp *SetRepoSubscriptionResponse) 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 SetRepoSubscriptionReqBody ¶
type SetRepoSubscriptionReqBody struct { // Determines if all notifications should be blocked from this repository. Ignored *bool `json:"ignored,omitempty"` // Determines if notifications should be received from this repository. Subscribed *bool `json:"subscribed,omitempty"` }
SetRepoSubscriptionReqBody is a request body for activity/set-repo-subscription
https://developer.github.com/v3/activity/watching/#set-a-repository-subscription
type SetRepoSubscriptionResponse ¶
type SetRepoSubscriptionResponse struct { Data components.RepositorySubscription // contains filtered or unexported fields }
SetRepoSubscriptionResponse is a response for SetRepoSubscription
https://developer.github.com/v3/activity/watching/#set-a-repository-subscription
func SetRepoSubscription ¶
func SetRepoSubscription(ctx context.Context, req *SetRepoSubscriptionReq, opt ...requests.Option) (*SetRepoSubscriptionResponse, error)
SetRepoSubscription performs requests for "activity/set-repo-subscription"
Set a repository subscription.
PUT /repos/{owner}/{repo}/subscription
https://developer.github.com/v3/activity/watching/#set-a-repository-subscription
func (*SetRepoSubscriptionResponse) HTTPResponse ¶
func (r *SetRepoSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*SetRepoSubscriptionResponse) ReadResponse ¶
func (r *SetRepoSubscriptionResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type SetThreadSubscriptionReq ¶
type SetThreadSubscriptionReq struct { // thread_id parameter ThreadId int64 RequestBody SetThreadSubscriptionReqBody // contains filtered or unexported fields }
SetThreadSubscriptionReq is request data for Client.SetThreadSubscription
https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*SetThreadSubscriptionReq) HTTPRequest ¶
func (r *SetThreadSubscriptionReq) 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 (*SetThreadSubscriptionReq) Rel ¶
func (r *SetThreadSubscriptionReq) Rel(link string, resp *SetThreadSubscriptionResponse) 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 SetThreadSubscriptionReqBody ¶
type SetThreadSubscriptionReqBody struct { // Whether to block all notifications from a thread. Ignored *bool `json:"ignored,omitempty"` }
SetThreadSubscriptionReqBody is a request body for activity/set-thread-subscription
https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription
type SetThreadSubscriptionResponse ¶
type SetThreadSubscriptionResponse struct { Data components.ThreadSubscription // contains filtered or unexported fields }
SetThreadSubscriptionResponse is a response for SetThreadSubscription
https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription
func SetThreadSubscription ¶
func SetThreadSubscription(ctx context.Context, req *SetThreadSubscriptionReq, opt ...requests.Option) (*SetThreadSubscriptionResponse, error)
SetThreadSubscription performs requests for "activity/set-thread-subscription"
Set a thread subscription.
PUT /notifications/threads/{thread_id}/subscription
https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription
func (*SetThreadSubscriptionResponse) HTTPResponse ¶
func (r *SetThreadSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*SetThreadSubscriptionResponse) ReadResponse ¶
func (r *SetThreadSubscriptionResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type StarRepoForAuthenticatedUserReq ¶
type StarRepoForAuthenticatedUserReq struct { Owner string Repo string // contains filtered or unexported fields }
StarRepoForAuthenticatedUserReq is request data for Client.StarRepoForAuthenticatedUser
https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*StarRepoForAuthenticatedUserReq) HTTPRequest ¶
func (r *StarRepoForAuthenticatedUserReq) 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 (*StarRepoForAuthenticatedUserReq) Rel ¶
func (r *StarRepoForAuthenticatedUserReq) Rel(link string, resp *StarRepoForAuthenticatedUserResponse) 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 StarRepoForAuthenticatedUserResponse ¶
type StarRepoForAuthenticatedUserResponse struct {
// contains filtered or unexported fields
}
StarRepoForAuthenticatedUserResponse is a response for StarRepoForAuthenticatedUser
https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user
func StarRepoForAuthenticatedUser ¶
func StarRepoForAuthenticatedUser(ctx context.Context, req *StarRepoForAuthenticatedUserReq, opt ...requests.Option) (*StarRepoForAuthenticatedUserResponse, error)
StarRepoForAuthenticatedUser performs requests for "activity/star-repo-for-authenticated-user"
Star a repository for the authenticated user.
PUT /user/starred/{owner}/{repo}
https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user
func (*StarRepoForAuthenticatedUserResponse) HTTPResponse ¶
func (r *StarRepoForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*StarRepoForAuthenticatedUserResponse) ReadResponse ¶
func (r *StarRepoForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UnstarRepoForAuthenticatedUserReq ¶
type UnstarRepoForAuthenticatedUserReq struct { Owner string Repo string // contains filtered or unexported fields }
UnstarRepoForAuthenticatedUserReq is request data for Client.UnstarRepoForAuthenticatedUser
https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UnstarRepoForAuthenticatedUserReq) HTTPRequest ¶
func (r *UnstarRepoForAuthenticatedUserReq) 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 (*UnstarRepoForAuthenticatedUserReq) Rel ¶
func (r *UnstarRepoForAuthenticatedUserReq) Rel(link string, resp *UnstarRepoForAuthenticatedUserResponse) 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 UnstarRepoForAuthenticatedUserResponse ¶
type UnstarRepoForAuthenticatedUserResponse struct {
// contains filtered or unexported fields
}
UnstarRepoForAuthenticatedUserResponse is a response for UnstarRepoForAuthenticatedUser
https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user
func UnstarRepoForAuthenticatedUser ¶
func UnstarRepoForAuthenticatedUser(ctx context.Context, req *UnstarRepoForAuthenticatedUserReq, opt ...requests.Option) (*UnstarRepoForAuthenticatedUserResponse, error)
UnstarRepoForAuthenticatedUser performs requests for "activity/unstar-repo-for-authenticated-user"
Unstar a repository for the authenticated user.
DELETE /user/starred/{owner}/{repo}
https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user
func (*UnstarRepoForAuthenticatedUserResponse) HTTPResponse ¶
func (r *UnstarRepoForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UnstarRepoForAuthenticatedUserResponse) ReadResponse ¶
func (r *UnstarRepoForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.