Documentation ¶
Index ¶
- type CancelImportReq
- type CancelImportResponse
- type Client
- func (c Client) CancelImport(ctx context.Context, req *CancelImportReq, opt ...requests.Option) (*CancelImportResponse, error)
- func (c Client) DeleteArchiveForAuthenticatedUser(ctx context.Context, req *DeleteArchiveForAuthenticatedUserReq, ...) (*DeleteArchiveForAuthenticatedUserResponse, error)
- func (c Client) DeleteArchiveForOrg(ctx context.Context, req *DeleteArchiveForOrgReq, opt ...requests.Option) (*DeleteArchiveForOrgResponse, error)
- func (c Client) DownloadArchiveForOrg(ctx context.Context, req *DownloadArchiveForOrgReq, opt ...requests.Option) (*DownloadArchiveForOrgResponse, error)
- func (c Client) GetArchiveForAuthenticatedUser(ctx context.Context, req *GetArchiveForAuthenticatedUserReq, ...) (*GetArchiveForAuthenticatedUserResponse, error)
- func (c Client) GetCommitAuthors(ctx context.Context, req *GetCommitAuthorsReq, opt ...requests.Option) (*GetCommitAuthorsResponse, error)
- func (c Client) GetImportStatus(ctx context.Context, req *GetImportStatusReq, opt ...requests.Option) (*GetImportStatusResponse, error)
- func (c Client) GetLargeFiles(ctx context.Context, req *GetLargeFilesReq, opt ...requests.Option) (*GetLargeFilesResponse, error)
- func (c Client) GetStatusForAuthenticatedUser(ctx context.Context, req *GetStatusForAuthenticatedUserReq, ...) (*GetStatusForAuthenticatedUserResponse, error)
- func (c Client) GetStatusForOrg(ctx context.Context, req *GetStatusForOrgReq, opt ...requests.Option) (*GetStatusForOrgResponse, error)
- func (c Client) ListForAuthenticatedUser(ctx context.Context, req *ListForAuthenticatedUserReq, opt ...requests.Option) (*ListForAuthenticatedUserResponse, error)
- func (c Client) ListForOrg(ctx context.Context, req *ListForOrgReq, opt ...requests.Option) (*ListForOrgResponse, error)
- func (c Client) ListReposForOrg(ctx context.Context, req *ListReposForOrgReq, opt ...requests.Option) (*ListReposForOrgResponse, error)
- func (c Client) ListReposForUser(ctx context.Context, req *ListReposForUserReq, opt ...requests.Option) (*ListReposForUserResponse, error)
- func (c Client) MapCommitAuthor(ctx context.Context, req *MapCommitAuthorReq, opt ...requests.Option) (*MapCommitAuthorResponse, error)
- func (c Client) SetLfsPreference(ctx context.Context, req *SetLfsPreferenceReq, opt ...requests.Option) (*SetLfsPreferenceResponse, error)
- func (c Client) StartForAuthenticatedUser(ctx context.Context, req *StartForAuthenticatedUserReq, opt ...requests.Option) (*StartForAuthenticatedUserResponse, error)
- func (c Client) StartForOrg(ctx context.Context, req *StartForOrgReq, opt ...requests.Option) (*StartForOrgResponse, error)
- func (c Client) StartImport(ctx context.Context, req *StartImportReq, opt ...requests.Option) (*StartImportResponse, error)
- func (c Client) UnlockRepoForAuthenticatedUser(ctx context.Context, req *UnlockRepoForAuthenticatedUserReq, ...) (*UnlockRepoForAuthenticatedUserResponse, error)
- func (c Client) UnlockRepoForOrg(ctx context.Context, req *UnlockRepoForOrgReq, opt ...requests.Option) (*UnlockRepoForOrgResponse, error)
- func (c Client) UpdateImport(ctx context.Context, req *UpdateImportReq, opt ...requests.Option) (*UpdateImportResponse, error)
- type DeleteArchiveForAuthenticatedUserReq
- type DeleteArchiveForAuthenticatedUserResponse
- type DeleteArchiveForOrgReq
- type DeleteArchiveForOrgResponse
- type DownloadArchiveForOrgReq
- type DownloadArchiveForOrgResponse
- type GetArchiveForAuthenticatedUserReq
- type GetArchiveForAuthenticatedUserResponse
- type GetCommitAuthorsReq
- type GetCommitAuthorsResponse
- type GetImportStatusReq
- type GetImportStatusResponse
- type GetLargeFilesReq
- type GetLargeFilesResponse
- type GetStatusForAuthenticatedUserReq
- type GetStatusForAuthenticatedUserResponse
- type GetStatusForOrgReq
- type GetStatusForOrgResponse
- type ListForAuthenticatedUserReq
- type ListForAuthenticatedUserResponse
- type ListForOrgReq
- type ListForOrgResponse
- type ListReposForOrgReq
- type ListReposForOrgResponse
- type ListReposForUserReq
- type ListReposForUserResponse
- type MapCommitAuthorReq
- type MapCommitAuthorReqBody
- type MapCommitAuthorResponse
- type SetLfsPreferenceReq
- type SetLfsPreferenceReqBody
- type SetLfsPreferenceResponse
- type StartForAuthenticatedUserReq
- type StartForAuthenticatedUserReqBody
- type StartForAuthenticatedUserResponse
- type StartForOrgReq
- type StartForOrgReqBody
- type StartForOrgResponse
- type StartImportReq
- type StartImportReqBody
- type StartImportResponse
- type UnlockRepoForAuthenticatedUserReq
- type UnlockRepoForAuthenticatedUserResponse
- type UnlockRepoForOrgReq
- type UnlockRepoForOrgResponse
- type UpdateImportReq
- type UpdateImportReqBody
- type UpdateImportResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelImportReq ¶
CancelImportReq is request data for Client.CancelImport
https://developer.github.com/v3/migrations/source_imports/#cancel-an-import
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CancelImportReq) HTTPRequest ¶
func (r *CancelImportReq) 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 (*CancelImportReq) Rel ¶
func (r *CancelImportReq) Rel(link string, resp *CancelImportResponse) 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 CancelImportResponse ¶
type CancelImportResponse struct {
// contains filtered or unexported fields
}
CancelImportResponse is a response for CancelImport
https://developer.github.com/v3/migrations/source_imports/#cancel-an-import
func CancelImport ¶
func CancelImport(ctx context.Context, req *CancelImportReq, opt ...requests.Option) (*CancelImportResponse, error)
CancelImport performs requests for "migrations/cancel-import"
Cancel an import.
DELETE /repos/{owner}/{repo}/import
https://developer.github.com/v3/migrations/source_imports/#cancel-an-import
func (*CancelImportResponse) HTTPResponse ¶
func (r *CancelImportResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CancelImportResponse) ReadResponse ¶
func (r *CancelImportResponse) 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) CancelImport ¶
func (c Client) CancelImport(ctx context.Context, req *CancelImportReq, opt ...requests.Option) (*CancelImportResponse, error)
CancelImport performs requests for "migrations/cancel-import"
Cancel an import.
DELETE /repos/{owner}/{repo}/import
https://developer.github.com/v3/migrations/source_imports/#cancel-an-import
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteArchiveForAuthenticatedUser ¶
func (c Client) DeleteArchiveForAuthenticatedUser(ctx context.Context, req *DeleteArchiveForAuthenticatedUserReq, opt ...requests.Option) (*DeleteArchiveForAuthenticatedUserResponse, error)
DeleteArchiveForAuthenticatedUser performs requests for "migrations/delete-archive-for-authenticated-user"
Delete a user migration archive.
DELETE /user/migrations/{migration_id}/archive
https://developer.github.com/v3/migrations/users/#delete-a-user-migration-archive
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteArchiveForOrg ¶
func (c Client) DeleteArchiveForOrg(ctx context.Context, req *DeleteArchiveForOrgReq, opt ...requests.Option) (*DeleteArchiveForOrgResponse, error)
DeleteArchiveForOrg performs requests for "migrations/delete-archive-for-org"
Delete an organization migration archive.
DELETE /orgs/{org}/migrations/{migration_id}/archive
https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DownloadArchiveForOrg ¶
func (c Client) DownloadArchiveForOrg(ctx context.Context, req *DownloadArchiveForOrgReq, opt ...requests.Option) (*DownloadArchiveForOrgResponse, error)
DownloadArchiveForOrg performs requests for "migrations/download-archive-for-org"
Download an organization migration archive.
GET /orgs/{org}/migrations/{migration_id}/archive
https://developer.github.com/v3/migrations/orgs/#download-an-organization-migration-archive
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetArchiveForAuthenticatedUser ¶
func (c Client) GetArchiveForAuthenticatedUser(ctx context.Context, req *GetArchiveForAuthenticatedUserReq, opt ...requests.Option) (*GetArchiveForAuthenticatedUserResponse, error)
GetArchiveForAuthenticatedUser performs requests for "migrations/get-archive-for-authenticated-user"
Download a user migration archive.
GET /user/migrations/{migration_id}/archive
https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetCommitAuthors ¶
func (c Client) GetCommitAuthors(ctx context.Context, req *GetCommitAuthorsReq, opt ...requests.Option) (*GetCommitAuthorsResponse, error)
GetCommitAuthors performs requests for "migrations/get-commit-authors"
Get commit authors.
GET /repos/{owner}/{repo}/import/authors
https://developer.github.com/v3/migrations/source_imports/#get-commit-authors
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetImportStatus ¶
func (c Client) GetImportStatus(ctx context.Context, req *GetImportStatusReq, opt ...requests.Option) (*GetImportStatusResponse, error)
GetImportStatus performs requests for "migrations/get-import-status"
Get an import status.
GET /repos/{owner}/{repo}/import
https://developer.github.com/v3/migrations/source_imports/#get-an-import-status
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetLargeFiles ¶
func (c Client) GetLargeFiles(ctx context.Context, req *GetLargeFilesReq, opt ...requests.Option) (*GetLargeFilesResponse, error)
GetLargeFiles performs requests for "migrations/get-large-files"
Get large files.
GET /repos/{owner}/{repo}/import/large_files
https://developer.github.com/v3/migrations/source_imports/#get-large-files
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetStatusForAuthenticatedUser ¶
func (c Client) GetStatusForAuthenticatedUser(ctx context.Context, req *GetStatusForAuthenticatedUserReq, opt ...requests.Option) (*GetStatusForAuthenticatedUserResponse, error)
GetStatusForAuthenticatedUser performs requests for "migrations/get-status-for-authenticated-user"
Get a user migration status.
GET /user/migrations/{migration_id}
https://developer.github.com/v3/migrations/users/#get-a-user-migration-status
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetStatusForOrg ¶
func (c Client) GetStatusForOrg(ctx context.Context, req *GetStatusForOrgReq, opt ...requests.Option) (*GetStatusForOrgResponse, error)
GetStatusForOrg performs requests for "migrations/get-status-for-org"
Get an organization migration status.
GET /orgs/{org}/migrations/{migration_id}
https://developer.github.com/v3/migrations/orgs/#get-an-organization-migration-status
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListForAuthenticatedUser ¶
func (c Client) ListForAuthenticatedUser(ctx context.Context, req *ListForAuthenticatedUserReq, opt ...requests.Option) (*ListForAuthenticatedUserResponse, error)
ListForAuthenticatedUser performs requests for "migrations/list-for-authenticated-user"
List user migrations.
GET /user/migrations
https://developer.github.com/v3/migrations/users/#list-user-migrations
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListForOrg ¶
func (c Client) ListForOrg(ctx context.Context, req *ListForOrgReq, opt ...requests.Option) (*ListForOrgResponse, error)
ListForOrg performs requests for "migrations/list-for-org"
List organization migrations.
GET /orgs/{org}/migrations
https://developer.github.com/v3/migrations/orgs/#list-organization-migrations
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListReposForOrg ¶
func (c Client) ListReposForOrg(ctx context.Context, req *ListReposForOrgReq, opt ...requests.Option) (*ListReposForOrgResponse, error)
ListReposForOrg performs requests for "migrations/list-repos-for-org"
List repositories in an organization migration.
GET /orgs/{org}/migrations/{migration_id}/repositories
https://developer.github.com/v3/migrations/orgs/#list-repositories-in-an-organization-migration
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListReposForUser ¶
func (c Client) ListReposForUser(ctx context.Context, req *ListReposForUserReq, opt ...requests.Option) (*ListReposForUserResponse, error)
ListReposForUser performs requests for "migrations/list-repos-for-user"
List repositories for a user migration.
GET /user/migrations/{migration_id}/repositories
https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) MapCommitAuthor ¶
func (c Client) MapCommitAuthor(ctx context.Context, req *MapCommitAuthorReq, opt ...requests.Option) (*MapCommitAuthorResponse, error)
MapCommitAuthor performs requests for "migrations/map-commit-author"
Map a commit author.
PATCH /repos/{owner}/{repo}/import/authors/{author_id}
https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) SetLfsPreference ¶
func (c Client) SetLfsPreference(ctx context.Context, req *SetLfsPreferenceReq, opt ...requests.Option) (*SetLfsPreferenceResponse, error)
SetLfsPreference performs requests for "migrations/set-lfs-preference"
Update Git LFS preference.
PATCH /repos/{owner}/{repo}/import/lfs
https://developer.github.com/v3/migrations/source_imports/#update-git-lfs-preference
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) StartForAuthenticatedUser ¶
func (c Client) StartForAuthenticatedUser(ctx context.Context, req *StartForAuthenticatedUserReq, opt ...requests.Option) (*StartForAuthenticatedUserResponse, error)
StartForAuthenticatedUser performs requests for "migrations/start-for-authenticated-user"
Start a user migration.
POST /user/migrations
https://developer.github.com/v3/migrations/users/#start-a-user-migration
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) StartForOrg ¶
func (c Client) StartForOrg(ctx context.Context, req *StartForOrgReq, opt ...requests.Option) (*StartForOrgResponse, error)
StartForOrg performs requests for "migrations/start-for-org"
Start an organization migration.
POST /orgs/{org}/migrations
https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) StartImport ¶
func (c Client) StartImport(ctx context.Context, req *StartImportReq, opt ...requests.Option) (*StartImportResponse, error)
StartImport performs requests for "migrations/start-import"
Start an import.
PUT /repos/{owner}/{repo}/import
https://developer.github.com/v3/migrations/source_imports/#start-an-import
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UnlockRepoForAuthenticatedUser ¶
func (c Client) UnlockRepoForAuthenticatedUser(ctx context.Context, req *UnlockRepoForAuthenticatedUserReq, opt ...requests.Option) (*UnlockRepoForAuthenticatedUserResponse, error)
UnlockRepoForAuthenticatedUser performs requests for "migrations/unlock-repo-for-authenticated-user"
Unlock a user repository.
DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock
https://developer.github.com/v3/migrations/users/#unlock-a-user-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UnlockRepoForOrg ¶
func (c Client) UnlockRepoForOrg(ctx context.Context, req *UnlockRepoForOrgReq, opt ...requests.Option) (*UnlockRepoForOrgResponse, error)
UnlockRepoForOrg performs requests for "migrations/unlock-repo-for-org"
Unlock an organization repository.
DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock
https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UpdateImport ¶
func (c Client) UpdateImport(ctx context.Context, req *UpdateImportReq, opt ...requests.Option) (*UpdateImportResponse, error)
UpdateImport performs requests for "migrations/update-import"
Update an import.
PATCH /repos/{owner}/{repo}/import
https://developer.github.com/v3/migrations/source_imports/#update-an-import
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
type DeleteArchiveForAuthenticatedUserReq ¶
type DeleteArchiveForAuthenticatedUserReq struct { // migration_id parameter MigrationId int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
DeleteArchiveForAuthenticatedUserReq is request data for Client.DeleteArchiveForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#delete-a-user-migration-archive
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteArchiveForAuthenticatedUserReq) HTTPRequest ¶
func (r *DeleteArchiveForAuthenticatedUserReq) 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 (*DeleteArchiveForAuthenticatedUserReq) Rel ¶
func (r *DeleteArchiveForAuthenticatedUserReq) Rel(link string, resp *DeleteArchiveForAuthenticatedUserResponse) 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 DeleteArchiveForAuthenticatedUserResponse ¶
type DeleteArchiveForAuthenticatedUserResponse struct {
// contains filtered or unexported fields
}
DeleteArchiveForAuthenticatedUserResponse is a response for DeleteArchiveForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#delete-a-user-migration-archive
func DeleteArchiveForAuthenticatedUser ¶
func DeleteArchiveForAuthenticatedUser(ctx context.Context, req *DeleteArchiveForAuthenticatedUserReq, opt ...requests.Option) (*DeleteArchiveForAuthenticatedUserResponse, error)
DeleteArchiveForAuthenticatedUser performs requests for "migrations/delete-archive-for-authenticated-user"
Delete a user migration archive.
DELETE /user/migrations/{migration_id}/archive
https://developer.github.com/v3/migrations/users/#delete-a-user-migration-archive
func (*DeleteArchiveForAuthenticatedUserResponse) HTTPResponse ¶
func (r *DeleteArchiveForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteArchiveForAuthenticatedUserResponse) ReadResponse ¶
func (r *DeleteArchiveForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteArchiveForOrgReq ¶
type DeleteArchiveForOrgReq struct { Org string // migration_id parameter MigrationId int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
DeleteArchiveForOrgReq is request data for Client.DeleteArchiveForOrg
https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteArchiveForOrgReq) HTTPRequest ¶
func (r *DeleteArchiveForOrgReq) 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 (*DeleteArchiveForOrgReq) Rel ¶
func (r *DeleteArchiveForOrgReq) Rel(link string, resp *DeleteArchiveForOrgResponse) 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 DeleteArchiveForOrgResponse ¶
type DeleteArchiveForOrgResponse struct { Data bool // contains filtered or unexported fields }
DeleteArchiveForOrgResponse is a response for DeleteArchiveForOrg
https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive
func DeleteArchiveForOrg ¶
func DeleteArchiveForOrg(ctx context.Context, req *DeleteArchiveForOrgReq, opt ...requests.Option) (*DeleteArchiveForOrgResponse, error)
DeleteArchiveForOrg performs requests for "migrations/delete-archive-for-org"
Delete an organization migration archive.
DELETE /orgs/{org}/migrations/{migration_id}/archive
https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive
func (*DeleteArchiveForOrgResponse) HTTPResponse ¶
func (r *DeleteArchiveForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteArchiveForOrgResponse) ReadResponse ¶
func (r *DeleteArchiveForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DownloadArchiveForOrgReq ¶
type DownloadArchiveForOrgReq struct { Org string // migration_id parameter MigrationId int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
DownloadArchiveForOrgReq is request data for Client.DownloadArchiveForOrg
https://developer.github.com/v3/migrations/orgs/#download-an-organization-migration-archive
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DownloadArchiveForOrgReq) HTTPRequest ¶
func (r *DownloadArchiveForOrgReq) 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 (*DownloadArchiveForOrgReq) Rel ¶
func (r *DownloadArchiveForOrgReq) Rel(link string, resp *DownloadArchiveForOrgResponse) 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 DownloadArchiveForOrgResponse ¶
type DownloadArchiveForOrgResponse struct {
// contains filtered or unexported fields
}
DownloadArchiveForOrgResponse is a response for DownloadArchiveForOrg
https://developer.github.com/v3/migrations/orgs/#download-an-organization-migration-archive
func DownloadArchiveForOrg ¶
func DownloadArchiveForOrg(ctx context.Context, req *DownloadArchiveForOrgReq, opt ...requests.Option) (*DownloadArchiveForOrgResponse, error)
DownloadArchiveForOrg performs requests for "migrations/download-archive-for-org"
Download an organization migration archive.
GET /orgs/{org}/migrations/{migration_id}/archive
https://developer.github.com/v3/migrations/orgs/#download-an-organization-migration-archive
func (*DownloadArchiveForOrgResponse) HTTPResponse ¶
func (r *DownloadArchiveForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DownloadArchiveForOrgResponse) ReadResponse ¶
func (r *DownloadArchiveForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetArchiveForAuthenticatedUserReq ¶
type GetArchiveForAuthenticatedUserReq struct { // migration_id parameter MigrationId int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
GetArchiveForAuthenticatedUserReq is request data for Client.GetArchiveForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetArchiveForAuthenticatedUserReq) HTTPRequest ¶
func (r *GetArchiveForAuthenticatedUserReq) 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 (*GetArchiveForAuthenticatedUserReq) Rel ¶
func (r *GetArchiveForAuthenticatedUserReq) Rel(link string, resp *GetArchiveForAuthenticatedUserResponse) 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 GetArchiveForAuthenticatedUserResponse ¶
type GetArchiveForAuthenticatedUserResponse struct {
// contains filtered or unexported fields
}
GetArchiveForAuthenticatedUserResponse is a response for GetArchiveForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive
func GetArchiveForAuthenticatedUser ¶
func GetArchiveForAuthenticatedUser(ctx context.Context, req *GetArchiveForAuthenticatedUserReq, opt ...requests.Option) (*GetArchiveForAuthenticatedUserResponse, error)
GetArchiveForAuthenticatedUser performs requests for "migrations/get-archive-for-authenticated-user"
Download a user migration archive.
GET /user/migrations/{migration_id}/archive
https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive
func (*GetArchiveForAuthenticatedUserResponse) HTTPResponse ¶
func (r *GetArchiveForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetArchiveForAuthenticatedUserResponse) ReadResponse ¶
func (r *GetArchiveForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetCommitAuthorsReq ¶
type GetCommitAuthorsReq struct { Owner string Repo string /* 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 // contains filtered or unexported fields }
GetCommitAuthorsReq is request data for Client.GetCommitAuthors
https://developer.github.com/v3/migrations/source_imports/#get-commit-authors
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetCommitAuthorsReq) HTTPRequest ¶
func (r *GetCommitAuthorsReq) 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 (*GetCommitAuthorsReq) Rel ¶
func (r *GetCommitAuthorsReq) Rel(link string, resp *GetCommitAuthorsResponse) 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 GetCommitAuthorsResponse ¶
type GetCommitAuthorsResponse struct { Data []components.PorterAuthor // contains filtered or unexported fields }
GetCommitAuthorsResponse is a response for GetCommitAuthors
https://developer.github.com/v3/migrations/source_imports/#get-commit-authors
func GetCommitAuthors ¶
func GetCommitAuthors(ctx context.Context, req *GetCommitAuthorsReq, opt ...requests.Option) (*GetCommitAuthorsResponse, error)
GetCommitAuthors performs requests for "migrations/get-commit-authors"
Get commit authors.
GET /repos/{owner}/{repo}/import/authors
https://developer.github.com/v3/migrations/source_imports/#get-commit-authors
func (*GetCommitAuthorsResponse) HTTPResponse ¶
func (r *GetCommitAuthorsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetCommitAuthorsResponse) ReadResponse ¶
func (r *GetCommitAuthorsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetImportStatusReq ¶
type GetImportStatusReq struct { Owner string Repo string // contains filtered or unexported fields }
GetImportStatusReq is request data for Client.GetImportStatus
https://developer.github.com/v3/migrations/source_imports/#get-an-import-status
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetImportStatusReq) HTTPRequest ¶
func (r *GetImportStatusReq) 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 (*GetImportStatusReq) Rel ¶
func (r *GetImportStatusReq) Rel(link string, resp *GetImportStatusResponse) 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 GetImportStatusResponse ¶
type GetImportStatusResponse struct { Data components.Import // contains filtered or unexported fields }
GetImportStatusResponse is a response for GetImportStatus
https://developer.github.com/v3/migrations/source_imports/#get-an-import-status
func GetImportStatus ¶
func GetImportStatus(ctx context.Context, req *GetImportStatusReq, opt ...requests.Option) (*GetImportStatusResponse, error)
GetImportStatus performs requests for "migrations/get-import-status"
Get an import status.
GET /repos/{owner}/{repo}/import
https://developer.github.com/v3/migrations/source_imports/#get-an-import-status
func (*GetImportStatusResponse) HTTPResponse ¶
func (r *GetImportStatusResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetImportStatusResponse) ReadResponse ¶
func (r *GetImportStatusResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetLargeFilesReq ¶
GetLargeFilesReq is request data for Client.GetLargeFiles
https://developer.github.com/v3/migrations/source_imports/#get-large-files
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetLargeFilesReq) HTTPRequest ¶
func (r *GetLargeFilesReq) 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 (*GetLargeFilesReq) Rel ¶
func (r *GetLargeFilesReq) Rel(link string, resp *GetLargeFilesResponse) 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 GetLargeFilesResponse ¶
type GetLargeFilesResponse struct { Data []components.PorterLargeFile // contains filtered or unexported fields }
GetLargeFilesResponse is a response for GetLargeFiles
https://developer.github.com/v3/migrations/source_imports/#get-large-files
func GetLargeFiles ¶
func GetLargeFiles(ctx context.Context, req *GetLargeFilesReq, opt ...requests.Option) (*GetLargeFilesResponse, error)
GetLargeFiles performs requests for "migrations/get-large-files"
Get large files.
GET /repos/{owner}/{repo}/import/large_files
https://developer.github.com/v3/migrations/source_imports/#get-large-files
func (*GetLargeFilesResponse) HTTPResponse ¶
func (r *GetLargeFilesResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetLargeFilesResponse) ReadResponse ¶
func (r *GetLargeFilesResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetStatusForAuthenticatedUserReq ¶
type GetStatusForAuthenticatedUserReq struct { // migration_id parameter MigrationId int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
GetStatusForAuthenticatedUserReq is request data for Client.GetStatusForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#get-a-user-migration-status
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetStatusForAuthenticatedUserReq) HTTPRequest ¶
func (r *GetStatusForAuthenticatedUserReq) 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 (*GetStatusForAuthenticatedUserReq) Rel ¶
func (r *GetStatusForAuthenticatedUserReq) Rel(link string, resp *GetStatusForAuthenticatedUserResponse) 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 GetStatusForAuthenticatedUserResponse ¶
type GetStatusForAuthenticatedUserResponse struct { Data components.Migration // contains filtered or unexported fields }
GetStatusForAuthenticatedUserResponse is a response for GetStatusForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#get-a-user-migration-status
func GetStatusForAuthenticatedUser ¶
func GetStatusForAuthenticatedUser(ctx context.Context, req *GetStatusForAuthenticatedUserReq, opt ...requests.Option) (*GetStatusForAuthenticatedUserResponse, error)
GetStatusForAuthenticatedUser performs requests for "migrations/get-status-for-authenticated-user"
Get a user migration status.
GET /user/migrations/{migration_id}
https://developer.github.com/v3/migrations/users/#get-a-user-migration-status
func (*GetStatusForAuthenticatedUserResponse) HTTPResponse ¶
func (r *GetStatusForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetStatusForAuthenticatedUserResponse) ReadResponse ¶
func (r *GetStatusForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetStatusForOrgReq ¶
type GetStatusForOrgReq struct { Org string // migration_id parameter MigrationId int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
GetStatusForOrgReq is request data for Client.GetStatusForOrg
https://developer.github.com/v3/migrations/orgs/#get-an-organization-migration-status
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetStatusForOrgReq) HTTPRequest ¶
func (r *GetStatusForOrgReq) 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 (*GetStatusForOrgReq) Rel ¶
func (r *GetStatusForOrgReq) Rel(link string, resp *GetStatusForOrgResponse) 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 GetStatusForOrgResponse ¶
type GetStatusForOrgResponse struct { Data components.Migration // contains filtered or unexported fields }
GetStatusForOrgResponse is a response for GetStatusForOrg
https://developer.github.com/v3/migrations/orgs/#get-an-organization-migration-status
func GetStatusForOrg ¶
func GetStatusForOrg(ctx context.Context, req *GetStatusForOrgReq, opt ...requests.Option) (*GetStatusForOrgResponse, error)
GetStatusForOrg performs requests for "migrations/get-status-for-org"
Get an organization migration status.
GET /orgs/{org}/migrations/{migration_id}
https://developer.github.com/v3/migrations/orgs/#get-an-organization-migration-status
func (*GetStatusForOrgResponse) HTTPResponse ¶
func (r *GetStatusForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetStatusForOrgResponse) ReadResponse ¶
func (r *GetStatusForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListForAuthenticatedUserReq ¶
type ListForAuthenticatedUserReq struct { // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
ListForAuthenticatedUserReq is request data for Client.ListForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#list-user-migrations
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListForAuthenticatedUserReq) HTTPRequest ¶
func (r *ListForAuthenticatedUserReq) 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 (*ListForAuthenticatedUserReq) Rel ¶
func (r *ListForAuthenticatedUserReq) Rel(link string, resp *ListForAuthenticatedUserResponse) 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 ListForAuthenticatedUserResponse ¶
type ListForAuthenticatedUserResponse struct { Data []components.Migration // contains filtered or unexported fields }
ListForAuthenticatedUserResponse is a response for ListForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#list-user-migrations
func ListForAuthenticatedUser ¶
func ListForAuthenticatedUser(ctx context.Context, req *ListForAuthenticatedUserReq, opt ...requests.Option) (*ListForAuthenticatedUserResponse, error)
ListForAuthenticatedUser performs requests for "migrations/list-for-authenticated-user"
List user migrations.
GET /user/migrations
https://developer.github.com/v3/migrations/users/#list-user-migrations
func (*ListForAuthenticatedUserResponse) HTTPResponse ¶
func (r *ListForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListForAuthenticatedUserResponse) ReadResponse ¶
func (r *ListForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListForOrgReq ¶
type ListForOrgReq struct { Org string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
ListForOrgReq is request data for Client.ListForOrg
https://developer.github.com/v3/migrations/orgs/#list-organization-migrations
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListForOrgReq) HTTPRequest ¶
func (r *ListForOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListForOrgReq) Rel ¶
func (r *ListForOrgReq) Rel(link string, resp *ListForOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListForOrgResponse ¶
type ListForOrgResponse struct { Data []components.Migration // contains filtered or unexported fields }
ListForOrgResponse is a response for ListForOrg
https://developer.github.com/v3/migrations/orgs/#list-organization-migrations
func ListForOrg ¶
func ListForOrg(ctx context.Context, req *ListForOrgReq, opt ...requests.Option) (*ListForOrgResponse, error)
ListForOrg performs requests for "migrations/list-for-org"
List organization migrations.
GET /orgs/{org}/migrations
https://developer.github.com/v3/migrations/orgs/#list-organization-migrations
func (*ListForOrgResponse) HTTPResponse ¶
func (r *ListForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListForOrgResponse) ReadResponse ¶
func (r *ListForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReposForOrgReq ¶
type ListReposForOrgReq struct { Org string // migration_id parameter MigrationId int64 // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
ListReposForOrgReq is request data for Client.ListReposForOrg
https://developer.github.com/v3/migrations/orgs/#list-repositories-in-an-organization-migration
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReposForOrgReq) HTTPRequest ¶
func (r *ListReposForOrgReq) 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 (*ListReposForOrgReq) Rel ¶
func (r *ListReposForOrgReq) Rel(link string, resp *ListReposForOrgResponse) 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 ListReposForOrgResponse ¶
type ListReposForOrgResponse struct { Data []components.MinimalRepository // contains filtered or unexported fields }
ListReposForOrgResponse is a response for ListReposForOrg
https://developer.github.com/v3/migrations/orgs/#list-repositories-in-an-organization-migration
func ListReposForOrg ¶
func ListReposForOrg(ctx context.Context, req *ListReposForOrgReq, opt ...requests.Option) (*ListReposForOrgResponse, error)
ListReposForOrg performs requests for "migrations/list-repos-for-org"
List repositories in an organization migration.
GET /orgs/{org}/migrations/{migration_id}/repositories
https://developer.github.com/v3/migrations/orgs/#list-repositories-in-an-organization-migration
func (*ListReposForOrgResponse) HTTPResponse ¶
func (r *ListReposForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListReposForOrgResponse) ReadResponse ¶
func (r *ListReposForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReposForUserReq ¶
type ListReposForUserReq struct { // migration_id parameter MigrationId int64 // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
ListReposForUserReq is request data for Client.ListReposForUser
https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReposForUserReq) HTTPRequest ¶
func (r *ListReposForUserReq) 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 (*ListReposForUserReq) Rel ¶
func (r *ListReposForUserReq) Rel(link string, resp *ListReposForUserResponse) 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 ListReposForUserResponse ¶
type ListReposForUserResponse struct { Data []components.MinimalRepository // contains filtered or unexported fields }
ListReposForUserResponse is a response for ListReposForUser
https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration
func ListReposForUser ¶
func ListReposForUser(ctx context.Context, req *ListReposForUserReq, opt ...requests.Option) (*ListReposForUserResponse, error)
ListReposForUser performs requests for "migrations/list-repos-for-user"
List repositories for a user migration.
GET /user/migrations/{migration_id}/repositories
https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration
func (*ListReposForUserResponse) HTTPResponse ¶
func (r *ListReposForUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListReposForUserResponse) ReadResponse ¶
func (r *ListReposForUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type MapCommitAuthorReq ¶
type MapCommitAuthorReq struct { Owner string Repo string // author_id parameter AuthorId int64 RequestBody MapCommitAuthorReqBody // contains filtered or unexported fields }
MapCommitAuthorReq is request data for Client.MapCommitAuthor
https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*MapCommitAuthorReq) HTTPRequest ¶
func (r *MapCommitAuthorReq) 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 (*MapCommitAuthorReq) Rel ¶
func (r *MapCommitAuthorReq) Rel(link string, resp *MapCommitAuthorResponse) 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 MapCommitAuthorReqBody ¶
type MapCommitAuthorReqBody struct { // The new Git author email. Email *string `json:"email,omitempty"` // The new Git author name. Name *string `json:"name,omitempty"` RemoteId *string `json:"remote_id,omitempty"` }
MapCommitAuthorReqBody is a request body for migrations/map-commit-author
https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author
type MapCommitAuthorResponse ¶
type MapCommitAuthorResponse struct { Data components.PorterAuthor // contains filtered or unexported fields }
MapCommitAuthorResponse is a response for MapCommitAuthor
https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author
func MapCommitAuthor ¶
func MapCommitAuthor(ctx context.Context, req *MapCommitAuthorReq, opt ...requests.Option) (*MapCommitAuthorResponse, error)
MapCommitAuthor performs requests for "migrations/map-commit-author"
Map a commit author.
PATCH /repos/{owner}/{repo}/import/authors/{author_id}
https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author
func (*MapCommitAuthorResponse) HTTPResponse ¶
func (r *MapCommitAuthorResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*MapCommitAuthorResponse) ReadResponse ¶
func (r *MapCommitAuthorResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type SetLfsPreferenceReq ¶
type SetLfsPreferenceReq struct { Owner string Repo string RequestBody SetLfsPreferenceReqBody // contains filtered or unexported fields }
SetLfsPreferenceReq is request data for Client.SetLfsPreference
https://developer.github.com/v3/migrations/source_imports/#update-git-lfs-preference
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*SetLfsPreferenceReq) HTTPRequest ¶
func (r *SetLfsPreferenceReq) 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 (*SetLfsPreferenceReq) Rel ¶
func (r *SetLfsPreferenceReq) Rel(link string, resp *SetLfsPreferenceResponse) 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 SetLfsPreferenceReqBody ¶
type SetLfsPreferenceReqBody struct { /* Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). */ UseLfs *string `json:"use_lfs"` }
SetLfsPreferenceReqBody is a request body for migrations/set-lfs-preference
https://developer.github.com/v3/migrations/source_imports/#update-git-lfs-preference
type SetLfsPreferenceResponse ¶
type SetLfsPreferenceResponse struct { Data components.Import // contains filtered or unexported fields }
SetLfsPreferenceResponse is a response for SetLfsPreference
https://developer.github.com/v3/migrations/source_imports/#update-git-lfs-preference
func SetLfsPreference ¶
func SetLfsPreference(ctx context.Context, req *SetLfsPreferenceReq, opt ...requests.Option) (*SetLfsPreferenceResponse, error)
SetLfsPreference performs requests for "migrations/set-lfs-preference"
Update Git LFS preference.
PATCH /repos/{owner}/{repo}/import/lfs
https://developer.github.com/v3/migrations/source_imports/#update-git-lfs-preference
func (*SetLfsPreferenceResponse) HTTPResponse ¶
func (r *SetLfsPreferenceResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*SetLfsPreferenceResponse) ReadResponse ¶
func (r *SetLfsPreferenceResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type StartForAuthenticatedUserReq ¶
type StartForAuthenticatedUserReq struct { RequestBody StartForAuthenticatedUserReqBody // contains filtered or unexported fields }
StartForAuthenticatedUserReq is request data for Client.StartForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#start-a-user-migration
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*StartForAuthenticatedUserReq) HTTPRequest ¶
func (r *StartForAuthenticatedUserReq) 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 (*StartForAuthenticatedUserReq) Rel ¶
func (r *StartForAuthenticatedUserReq) Rel(link string, resp *StartForAuthenticatedUserResponse) 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 StartForAuthenticatedUserReqBody ¶
type StartForAuthenticatedUserReqBody struct { // Exclude attributes from the API response to improve performance Exclude []string `json:"exclude,omitempty"` // Do not include attachments in the migration ExcludeAttachments *bool `json:"exclude_attachments,omitempty"` // Lock the repositories being migrated at the start of the migration LockRepositories *bool `json:"lock_repositories,omitempty"` Repositories []string `json:"repositories"` }
StartForAuthenticatedUserReqBody is a request body for migrations/start-for-authenticated-user
https://developer.github.com/v3/migrations/users/#start-a-user-migration
type StartForAuthenticatedUserResponse ¶
type StartForAuthenticatedUserResponse struct { Data components.Migration // contains filtered or unexported fields }
StartForAuthenticatedUserResponse is a response for StartForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#start-a-user-migration
func StartForAuthenticatedUser ¶
func StartForAuthenticatedUser(ctx context.Context, req *StartForAuthenticatedUserReq, opt ...requests.Option) (*StartForAuthenticatedUserResponse, error)
StartForAuthenticatedUser performs requests for "migrations/start-for-authenticated-user"
Start a user migration.
POST /user/migrations
https://developer.github.com/v3/migrations/users/#start-a-user-migration
func (*StartForAuthenticatedUserResponse) HTTPResponse ¶
func (r *StartForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*StartForAuthenticatedUserResponse) ReadResponse ¶
func (r *StartForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type StartForOrgReq ¶
type StartForOrgReq struct { Org string RequestBody StartForOrgReqBody // contains filtered or unexported fields }
StartForOrgReq is request data for Client.StartForOrg
https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*StartForOrgReq) HTTPRequest ¶
func (r *StartForOrgReq) 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 (*StartForOrgReq) Rel ¶
func (r *StartForOrgReq) Rel(link string, resp *StartForOrgResponse) 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 StartForOrgReqBody ¶
type StartForOrgReqBody struct { Exclude []string `json:"exclude,omitempty"` // Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). ExcludeAttachments *bool `json:"exclude_attachments,omitempty"` // Indicates whether repositories should be locked (to prevent manipulation) while migrating data. LockRepositories *bool `json:"lock_repositories,omitempty"` // A list of arrays indicating which repositories should be migrated. Repositories []string `json:"repositories"` }
StartForOrgReqBody is a request body for migrations/start-for-org
https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration
type StartForOrgResponse ¶
type StartForOrgResponse struct { Data components.Migration // contains filtered or unexported fields }
StartForOrgResponse is a response for StartForOrg
https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration
func StartForOrg ¶
func StartForOrg(ctx context.Context, req *StartForOrgReq, opt ...requests.Option) (*StartForOrgResponse, error)
StartForOrg performs requests for "migrations/start-for-org"
Start an organization migration.
POST /orgs/{org}/migrations
https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration
func (*StartForOrgResponse) HTTPResponse ¶
func (r *StartForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*StartForOrgResponse) ReadResponse ¶
func (r *StartForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type StartImportReq ¶
type StartImportReq struct { Owner string Repo string RequestBody StartImportReqBody // contains filtered or unexported fields }
StartImportReq is request data for Client.StartImport
https://developer.github.com/v3/migrations/source_imports/#start-an-import
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*StartImportReq) HTTPRequest ¶
func (r *StartImportReq) 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 (*StartImportReq) Rel ¶
func (r *StartImportReq) Rel(link string, resp *StartImportResponse) 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 StartImportReqBody ¶
type StartImportReqBody struct { // For a tfvc import, the name of the project that is being imported. TfvcProject *string `json:"tfvc_project,omitempty"` /* The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. */ Vcs *string `json:"vcs,omitempty"` // If authentication is required, the password to provide to `vcs_url`. VcsPassword *string `json:"vcs_password,omitempty"` // The URL of the originating repository. VcsUrl *string `json:"vcs_url"` // If authentication is required, the username to provide to `vcs_url`. VcsUsername *string `json:"vcs_username,omitempty"` }
StartImportReqBody is a request body for migrations/start-import
https://developer.github.com/v3/migrations/source_imports/#start-an-import
type StartImportResponse ¶
type StartImportResponse struct { Data components.Import // contains filtered or unexported fields }
StartImportResponse is a response for StartImport
https://developer.github.com/v3/migrations/source_imports/#start-an-import
func StartImport ¶
func StartImport(ctx context.Context, req *StartImportReq, opt ...requests.Option) (*StartImportResponse, error)
StartImport performs requests for "migrations/start-import"
Start an import.
PUT /repos/{owner}/{repo}/import
https://developer.github.com/v3/migrations/source_imports/#start-an-import
func (*StartImportResponse) HTTPResponse ¶
func (r *StartImportResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*StartImportResponse) ReadResponse ¶
func (r *StartImportResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UnlockRepoForAuthenticatedUserReq ¶
type UnlockRepoForAuthenticatedUserReq struct { // migration_id parameter MigrationId int64 // repo_name parameter RepoName string // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
UnlockRepoForAuthenticatedUserReq is request data for Client.UnlockRepoForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#unlock-a-user-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UnlockRepoForAuthenticatedUserReq) HTTPRequest ¶
func (r *UnlockRepoForAuthenticatedUserReq) 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 (*UnlockRepoForAuthenticatedUserReq) Rel ¶
func (r *UnlockRepoForAuthenticatedUserReq) Rel(link string, resp *UnlockRepoForAuthenticatedUserResponse) 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 UnlockRepoForAuthenticatedUserResponse ¶
type UnlockRepoForAuthenticatedUserResponse struct {
// contains filtered or unexported fields
}
UnlockRepoForAuthenticatedUserResponse is a response for UnlockRepoForAuthenticatedUser
https://developer.github.com/v3/migrations/users/#unlock-a-user-repository
func UnlockRepoForAuthenticatedUser ¶
func UnlockRepoForAuthenticatedUser(ctx context.Context, req *UnlockRepoForAuthenticatedUserReq, opt ...requests.Option) (*UnlockRepoForAuthenticatedUserResponse, error)
UnlockRepoForAuthenticatedUser performs requests for "migrations/unlock-repo-for-authenticated-user"
Unlock a user repository.
DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock
https://developer.github.com/v3/migrations/users/#unlock-a-user-repository
func (*UnlockRepoForAuthenticatedUserResponse) HTTPResponse ¶
func (r *UnlockRepoForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UnlockRepoForAuthenticatedUserResponse) ReadResponse ¶
func (r *UnlockRepoForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UnlockRepoForOrgReq ¶
type UnlockRepoForOrgReq struct { Org string // migration_id parameter MigrationId int64 // repo_name parameter RepoName string // To access the Migrations API, you must set this to true. WyandottePreview bool // contains filtered or unexported fields }
UnlockRepoForOrgReq is request data for Client.UnlockRepoForOrg
https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UnlockRepoForOrgReq) HTTPRequest ¶
func (r *UnlockRepoForOrgReq) 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 (*UnlockRepoForOrgReq) Rel ¶
func (r *UnlockRepoForOrgReq) Rel(link string, resp *UnlockRepoForOrgResponse) 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 UnlockRepoForOrgResponse ¶
type UnlockRepoForOrgResponse struct { Data bool // contains filtered or unexported fields }
UnlockRepoForOrgResponse is a response for UnlockRepoForOrg
https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository
func UnlockRepoForOrg ¶
func UnlockRepoForOrg(ctx context.Context, req *UnlockRepoForOrgReq, opt ...requests.Option) (*UnlockRepoForOrgResponse, error)
UnlockRepoForOrg performs requests for "migrations/unlock-repo-for-org"
Unlock an organization repository.
DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock
https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository
func (*UnlockRepoForOrgResponse) HTTPResponse ¶
func (r *UnlockRepoForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UnlockRepoForOrgResponse) ReadResponse ¶
func (r *UnlockRepoForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UpdateImportReq ¶
type UpdateImportReq struct { Owner string Repo string RequestBody UpdateImportReqBody // contains filtered or unexported fields }
UpdateImportReq is request data for Client.UpdateImport
https://developer.github.com/v3/migrations/source_imports/#update-an-import
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UpdateImportReq) HTTPRequest ¶
func (r *UpdateImportReq) 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 (*UpdateImportReq) Rel ¶
func (r *UpdateImportReq) Rel(link string, resp *UpdateImportResponse) 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 UpdateImportReqBody ¶
type UpdateImportReqBody struct { TfvcProject *string `json:"tfvc_project,omitempty"` Vcs *string `json:"vcs,omitempty"` // The password to provide to the originating repository. VcsPassword *string `json:"vcs_password,omitempty"` // The username to provide to the originating repository. VcsUsername *string `json:"vcs_username,omitempty"` }
UpdateImportReqBody is a request body for migrations/update-import
https://developer.github.com/v3/migrations/source_imports/#update-an-import
type UpdateImportResponse ¶
type UpdateImportResponse struct { Data components.Import // contains filtered or unexported fields }
UpdateImportResponse is a response for UpdateImport
https://developer.github.com/v3/migrations/source_imports/#update-an-import
func UpdateImport ¶
func UpdateImport(ctx context.Context, req *UpdateImportReq, opt ...requests.Option) (*UpdateImportResponse, error)
UpdateImport performs requests for "migrations/update-import"
Update an import.
PATCH /repos/{owner}/{repo}/import
https://developer.github.com/v3/migrations/source_imports/#update-an-import
func (*UpdateImportResponse) HTTPResponse ¶
func (r *UpdateImportResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UpdateImportResponse) ReadResponse ¶
func (r *UpdateImportResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.