Documentation ¶
Index ¶
- type AddSelectedRepoToOrgSecretReq
- type AddSelectedRepoToOrgSecretResponse
- type CancelWorkflowRunReq
- type CancelWorkflowRunResponse
- type Client
- func (c Client) AddSelectedRepoToOrgSecret(ctx context.Context, req *AddSelectedRepoToOrgSecretReq, ...) (*AddSelectedRepoToOrgSecretResponse, error)
- func (c Client) CancelWorkflowRun(ctx context.Context, req *CancelWorkflowRunReq, opt ...requests.Option) (*CancelWorkflowRunResponse, error)
- func (c Client) CreateOrUpdateOrgSecret(ctx context.Context, req *CreateOrUpdateOrgSecretReq, opt ...requests.Option) (*CreateOrUpdateOrgSecretResponse, error)
- func (c Client) CreateOrUpdateRepoSecret(ctx context.Context, req *CreateOrUpdateRepoSecretReq, opt ...requests.Option) (*CreateOrUpdateRepoSecretResponse, error)
- func (c Client) CreateRegistrationTokenForOrg(ctx context.Context, req *CreateRegistrationTokenForOrgReq, ...) (*CreateRegistrationTokenForOrgResponse, error)
- func (c Client) CreateRegistrationTokenForRepo(ctx context.Context, req *CreateRegistrationTokenForRepoReq, ...) (*CreateRegistrationTokenForRepoResponse, error)
- func (c Client) CreateRemoveTokenForOrg(ctx context.Context, req *CreateRemoveTokenForOrgReq, opt ...requests.Option) (*CreateRemoveTokenForOrgResponse, error)
- func (c Client) CreateRemoveTokenForRepo(ctx context.Context, req *CreateRemoveTokenForRepoReq, opt ...requests.Option) (*CreateRemoveTokenForRepoResponse, error)
- func (c Client) CreateWorkflowDispatch(ctx context.Context, req *CreateWorkflowDispatchReq, opt ...requests.Option) (*CreateWorkflowDispatchResponse, error)
- func (c Client) DeleteArtifact(ctx context.Context, req *DeleteArtifactReq, opt ...requests.Option) (*DeleteArtifactResponse, error)
- func (c Client) DeleteOrgSecret(ctx context.Context, req *DeleteOrgSecretReq, opt ...requests.Option) (*DeleteOrgSecretResponse, error)
- func (c Client) DeleteRepoSecret(ctx context.Context, req *DeleteRepoSecretReq, opt ...requests.Option) (*DeleteRepoSecretResponse, error)
- func (c Client) DeleteSelfHostedRunnerFromOrg(ctx context.Context, req *DeleteSelfHostedRunnerFromOrgReq, ...) (*DeleteSelfHostedRunnerFromOrgResponse, error)
- func (c Client) DeleteSelfHostedRunnerFromRepo(ctx context.Context, req *DeleteSelfHostedRunnerFromRepoReq, ...) (*DeleteSelfHostedRunnerFromRepoResponse, error)
- func (c Client) DeleteWorkflowRun(ctx context.Context, req *DeleteWorkflowRunReq, opt ...requests.Option) (*DeleteWorkflowRunResponse, error)
- func (c Client) DeleteWorkflowRunLogs(ctx context.Context, req *DeleteWorkflowRunLogsReq, opt ...requests.Option) (*DeleteWorkflowRunLogsResponse, error)
- func (c Client) DownloadArtifact(ctx context.Context, req *DownloadArtifactReq, opt ...requests.Option) (*DownloadArtifactResponse, error)
- func (c Client) DownloadJobLogsForWorkflowRun(ctx context.Context, req *DownloadJobLogsForWorkflowRunReq, ...) (*DownloadJobLogsForWorkflowRunResponse, error)
- func (c Client) DownloadWorkflowRunLogs(ctx context.Context, req *DownloadWorkflowRunLogsReq, opt ...requests.Option) (*DownloadWorkflowRunLogsResponse, error)
- func (c Client) GetArtifact(ctx context.Context, req *GetArtifactReq, opt ...requests.Option) (*GetArtifactResponse, error)
- func (c Client) GetJobForWorkflowRun(ctx context.Context, req *GetJobForWorkflowRunReq, opt ...requests.Option) (*GetJobForWorkflowRunResponse, error)
- func (c Client) GetOrgPublicKey(ctx context.Context, req *GetOrgPublicKeyReq, opt ...requests.Option) (*GetOrgPublicKeyResponse, error)
- func (c Client) GetOrgSecret(ctx context.Context, req *GetOrgSecretReq, opt ...requests.Option) (*GetOrgSecretResponse, error)
- func (c Client) GetRepoPublicKey(ctx context.Context, req *GetRepoPublicKeyReq, opt ...requests.Option) (*GetRepoPublicKeyResponse, error)
- func (c Client) GetRepoSecret(ctx context.Context, req *GetRepoSecretReq, opt ...requests.Option) (*GetRepoSecretResponse, error)
- func (c Client) GetSelfHostedRunnerForOrg(ctx context.Context, req *GetSelfHostedRunnerForOrgReq, opt ...requests.Option) (*GetSelfHostedRunnerForOrgResponse, error)
- func (c Client) GetSelfHostedRunnerForRepo(ctx context.Context, req *GetSelfHostedRunnerForRepoReq, ...) (*GetSelfHostedRunnerForRepoResponse, error)
- func (c Client) GetWorkflow(ctx context.Context, req *GetWorkflowReq, opt ...requests.Option) (*GetWorkflowResponse, error)
- func (c Client) GetWorkflowRun(ctx context.Context, req *GetWorkflowRunReq, opt ...requests.Option) (*GetWorkflowRunResponse, error)
- func (c Client) GetWorkflowRunUsage(ctx context.Context, req *GetWorkflowRunUsageReq, opt ...requests.Option) (*GetWorkflowRunUsageResponse, error)
- func (c Client) GetWorkflowUsage(ctx context.Context, req *GetWorkflowUsageReq, opt ...requests.Option) (*GetWorkflowUsageResponse, error)
- func (c Client) ListArtifactsForRepo(ctx context.Context, req *ListArtifactsForRepoReq, opt ...requests.Option) (*ListArtifactsForRepoResponse, error)
- func (c Client) ListJobsForWorkflowRun(ctx context.Context, req *ListJobsForWorkflowRunReq, opt ...requests.Option) (*ListJobsForWorkflowRunResponse, error)
- func (c Client) ListOrgSecrets(ctx context.Context, req *ListOrgSecretsReq, opt ...requests.Option) (*ListOrgSecretsResponse, error)
- func (c Client) ListRepoSecrets(ctx context.Context, req *ListRepoSecretsReq, opt ...requests.Option) (*ListRepoSecretsResponse, error)
- func (c Client) ListRepoWorkflows(ctx context.Context, req *ListRepoWorkflowsReq, opt ...requests.Option) (*ListRepoWorkflowsResponse, error)
- func (c Client) ListRunnerApplicationsForOrg(ctx context.Context, req *ListRunnerApplicationsForOrgReq, ...) (*ListRunnerApplicationsForOrgResponse, error)
- func (c Client) ListRunnerApplicationsForRepo(ctx context.Context, req *ListRunnerApplicationsForRepoReq, ...) (*ListRunnerApplicationsForRepoResponse, error)
- func (c Client) ListSelectedReposForOrgSecret(ctx context.Context, req *ListSelectedReposForOrgSecretReq, ...) (*ListSelectedReposForOrgSecretResponse, error)
- func (c Client) ListSelfHostedRunnersForOrg(ctx context.Context, req *ListSelfHostedRunnersForOrgReq, ...) (*ListSelfHostedRunnersForOrgResponse, error)
- func (c Client) ListSelfHostedRunnersForRepo(ctx context.Context, req *ListSelfHostedRunnersForRepoReq, ...) (*ListSelfHostedRunnersForRepoResponse, error)
- func (c Client) ListWorkflowRunArtifacts(ctx context.Context, req *ListWorkflowRunArtifactsReq, opt ...requests.Option) (*ListWorkflowRunArtifactsResponse, error)
- func (c Client) ListWorkflowRuns(ctx context.Context, req *ListWorkflowRunsReq, opt ...requests.Option) (*ListWorkflowRunsResponse, error)
- func (c Client) ListWorkflowRunsForRepo(ctx context.Context, req *ListWorkflowRunsForRepoReq, opt ...requests.Option) (*ListWorkflowRunsForRepoResponse, error)
- func (c Client) ReRunWorkflow(ctx context.Context, req *ReRunWorkflowReq, opt ...requests.Option) (*ReRunWorkflowResponse, error)
- func (c Client) RemoveSelectedRepoFromOrgSecret(ctx context.Context, req *RemoveSelectedRepoFromOrgSecretReq, ...) (*RemoveSelectedRepoFromOrgSecretResponse, error)
- func (c Client) SetSelectedReposForOrgSecret(ctx context.Context, req *SetSelectedReposForOrgSecretReq, ...) (*SetSelectedReposForOrgSecretResponse, error)
- type CreateOrUpdateOrgSecretReq
- type CreateOrUpdateOrgSecretReqBody
- type CreateOrUpdateOrgSecretResponse
- type CreateOrUpdateRepoSecretReq
- type CreateOrUpdateRepoSecretReqBody
- type CreateOrUpdateRepoSecretResponse
- type CreateRegistrationTokenForOrgReq
- type CreateRegistrationTokenForOrgResponse
- type CreateRegistrationTokenForRepoReq
- type CreateRegistrationTokenForRepoResponse
- type CreateRemoveTokenForOrgReq
- type CreateRemoveTokenForOrgResponse
- type CreateRemoveTokenForRepoReq
- type CreateRemoveTokenForRepoResponse
- type CreateWorkflowDispatchReq
- type CreateWorkflowDispatchReqBody
- type CreateWorkflowDispatchResponse
- type DeleteArtifactReq
- type DeleteArtifactResponse
- type DeleteOrgSecretReq
- type DeleteOrgSecretResponse
- type DeleteRepoSecretReq
- type DeleteRepoSecretResponse
- type DeleteSelfHostedRunnerFromOrgReq
- type DeleteSelfHostedRunnerFromOrgResponse
- type DeleteSelfHostedRunnerFromRepoReq
- type DeleteSelfHostedRunnerFromRepoResponse
- type DeleteWorkflowRunLogsReq
- type DeleteWorkflowRunLogsResponse
- type DeleteWorkflowRunReq
- type DeleteWorkflowRunResponse
- type DownloadArtifactReq
- type DownloadArtifactResponse
- type DownloadJobLogsForWorkflowRunReq
- type DownloadJobLogsForWorkflowRunResponse
- type DownloadWorkflowRunLogsReq
- type DownloadWorkflowRunLogsResponse
- type GetArtifactReq
- type GetArtifactResponse
- type GetJobForWorkflowRunReq
- type GetJobForWorkflowRunResponse
- type GetOrgPublicKeyReq
- type GetOrgPublicKeyResponse
- type GetOrgSecretReq
- type GetOrgSecretResponse
- type GetRepoPublicKeyReq
- type GetRepoPublicKeyResponse
- type GetRepoSecretReq
- type GetRepoSecretResponse
- type GetSelfHostedRunnerForOrgReq
- type GetSelfHostedRunnerForOrgResponse
- type GetSelfHostedRunnerForRepoReq
- type GetSelfHostedRunnerForRepoResponse
- type GetWorkflowReq
- type GetWorkflowResponse
- type GetWorkflowRunReq
- type GetWorkflowRunResponse
- type GetWorkflowRunUsageReq
- type GetWorkflowRunUsageResponse
- type GetWorkflowUsageReq
- type GetWorkflowUsageResponse
- type ListArtifactsForRepoReq
- type ListArtifactsForRepoResponse
- type ListArtifactsForRepoResponseBody
- type ListJobsForWorkflowRunReq
- type ListJobsForWorkflowRunResponse
- type ListJobsForWorkflowRunResponseBody
- type ListOrgSecretsReq
- type ListOrgSecretsResponse
- type ListOrgSecretsResponseBody
- type ListRepoSecretsReq
- type ListRepoSecretsResponse
- type ListRepoSecretsResponseBody
- type ListRepoWorkflowsReq
- type ListRepoWorkflowsResponse
- type ListRepoWorkflowsResponseBody
- type ListRunnerApplicationsForOrgReq
- type ListRunnerApplicationsForOrgResponse
- type ListRunnerApplicationsForRepoReq
- type ListRunnerApplicationsForRepoResponse
- type ListSelectedReposForOrgSecretReq
- type ListSelectedReposForOrgSecretResponse
- type ListSelectedReposForOrgSecretResponseBody
- type ListSelfHostedRunnersForOrgReq
- type ListSelfHostedRunnersForOrgResponse
- type ListSelfHostedRunnersForOrgResponseBody
- type ListSelfHostedRunnersForRepoReq
- type ListSelfHostedRunnersForRepoResponse
- type ListSelfHostedRunnersForRepoResponseBody
- type ListWorkflowRunArtifactsReq
- type ListWorkflowRunArtifactsResponse
- type ListWorkflowRunArtifactsResponseBody
- type ListWorkflowRunsForRepoReq
- type ListWorkflowRunsForRepoResponse
- type ListWorkflowRunsForRepoResponseBody
- type ListWorkflowRunsReq
- type ListWorkflowRunsResponse
- type ListWorkflowRunsResponseBody
- type ReRunWorkflowReq
- type ReRunWorkflowResponse
- type RemoveSelectedRepoFromOrgSecretReq
- type RemoveSelectedRepoFromOrgSecretResponse
- type SetSelectedReposForOrgSecretReq
- type SetSelectedReposForOrgSecretReqBody
- type SetSelectedReposForOrgSecretResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSelectedRepoToOrgSecretReq ¶
type AddSelectedRepoToOrgSecretReq struct { Org string // secret_name parameter SecretName string // repository_id parameter RepositoryId int64 // contains filtered or unexported fields }
AddSelectedRepoToOrgSecretReq is request data for Client.AddSelectedRepoToOrgSecret
https://developer.github.com/v3/actions/secrets/#add-selected-repository-to-an-organization-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*AddSelectedRepoToOrgSecretReq) HTTPRequest ¶
func (r *AddSelectedRepoToOrgSecretReq) 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 (*AddSelectedRepoToOrgSecretReq) Rel ¶
func (r *AddSelectedRepoToOrgSecretReq) Rel(link string, resp *AddSelectedRepoToOrgSecretResponse) 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 AddSelectedRepoToOrgSecretResponse ¶
type AddSelectedRepoToOrgSecretResponse struct {
// contains filtered or unexported fields
}
AddSelectedRepoToOrgSecretResponse is a response for AddSelectedRepoToOrgSecret
https://developer.github.com/v3/actions/secrets/#add-selected-repository-to-an-organization-secret
func AddSelectedRepoToOrgSecret ¶
func AddSelectedRepoToOrgSecret(ctx context.Context, req *AddSelectedRepoToOrgSecretReq, opt ...requests.Option) (*AddSelectedRepoToOrgSecretResponse, error)
AddSelectedRepoToOrgSecret performs requests for "actions/add-selected-repo-to-org-secret"
Add selected repository to an organization secret.
PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
https://developer.github.com/v3/actions/secrets/#add-selected-repository-to-an-organization-secret
func (*AddSelectedRepoToOrgSecretResponse) HTTPResponse ¶
func (r *AddSelectedRepoToOrgSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*AddSelectedRepoToOrgSecretResponse) ReadResponse ¶
func (r *AddSelectedRepoToOrgSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CancelWorkflowRunReq ¶
type CancelWorkflowRunReq struct { Owner string Repo string RunId int64 // contains filtered or unexported fields }
CancelWorkflowRunReq is request data for Client.CancelWorkflowRun
https://developer.github.com/v3/actions/workflow-runs/#cancel-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CancelWorkflowRunReq) HTTPRequest ¶
func (r *CancelWorkflowRunReq) 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 (*CancelWorkflowRunReq) Rel ¶
func (r *CancelWorkflowRunReq) Rel(link string, resp *CancelWorkflowRunResponse) 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 CancelWorkflowRunResponse ¶
type CancelWorkflowRunResponse struct {
// contains filtered or unexported fields
}
CancelWorkflowRunResponse is a response for CancelWorkflowRun
https://developer.github.com/v3/actions/workflow-runs/#cancel-a-workflow-run
func CancelWorkflowRun ¶
func CancelWorkflowRun(ctx context.Context, req *CancelWorkflowRunReq, opt ...requests.Option) (*CancelWorkflowRunResponse, error)
CancelWorkflowRun performs requests for "actions/cancel-workflow-run"
Cancel a workflow run.
POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel
https://developer.github.com/v3/actions/workflow-runs/#cancel-a-workflow-run
func (*CancelWorkflowRunResponse) HTTPResponse ¶
func (r *CancelWorkflowRunResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CancelWorkflowRunResponse) ReadResponse ¶
func (r *CancelWorkflowRunResponse) 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) AddSelectedRepoToOrgSecret ¶
func (c Client) AddSelectedRepoToOrgSecret(ctx context.Context, req *AddSelectedRepoToOrgSecretReq, opt ...requests.Option) (*AddSelectedRepoToOrgSecretResponse, error)
AddSelectedRepoToOrgSecret performs requests for "actions/add-selected-repo-to-org-secret"
Add selected repository to an organization secret.
PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
https://developer.github.com/v3/actions/secrets/#add-selected-repository-to-an-organization-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CancelWorkflowRun ¶
func (c Client) CancelWorkflowRun(ctx context.Context, req *CancelWorkflowRunReq, opt ...requests.Option) (*CancelWorkflowRunResponse, error)
CancelWorkflowRun performs requests for "actions/cancel-workflow-run"
Cancel a workflow run.
POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel
https://developer.github.com/v3/actions/workflow-runs/#cancel-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateOrUpdateOrgSecret ¶
func (c Client) CreateOrUpdateOrgSecret(ctx context.Context, req *CreateOrUpdateOrgSecretReq, opt ...requests.Option) (*CreateOrUpdateOrgSecretResponse, error)
CreateOrUpdateOrgSecret performs requests for "actions/create-or-update-org-secret"
Create or update an organization secret.
PUT /orgs/{org}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#create-or-update-an-organization-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateOrUpdateRepoSecret ¶
func (c Client) CreateOrUpdateRepoSecret(ctx context.Context, req *CreateOrUpdateRepoSecretReq, opt ...requests.Option) (*CreateOrUpdateRepoSecretResponse, error)
CreateOrUpdateRepoSecret performs requests for "actions/create-or-update-repo-secret"
Create or update a repository secret.
PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#create-or-update-a-repository-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateRegistrationTokenForOrg ¶
func (c Client) CreateRegistrationTokenForOrg(ctx context.Context, req *CreateRegistrationTokenForOrgReq, opt ...requests.Option) (*CreateRegistrationTokenForOrgResponse, error)
CreateRegistrationTokenForOrg performs requests for "actions/create-registration-token-for-org"
Create a registration token for an organization.
POST /orgs/{org}/actions/runners/registration-token
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateRegistrationTokenForRepo ¶
func (c Client) CreateRegistrationTokenForRepo(ctx context.Context, req *CreateRegistrationTokenForRepoReq, opt ...requests.Option) (*CreateRegistrationTokenForRepoResponse, error)
CreateRegistrationTokenForRepo performs requests for "actions/create-registration-token-for-repo"
Create a registration token for a repository.
POST /repos/{owner}/{repo}/actions/runners/registration-token
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateRemoveTokenForOrg ¶
func (c Client) CreateRemoveTokenForOrg(ctx context.Context, req *CreateRemoveTokenForOrgReq, opt ...requests.Option) (*CreateRemoveTokenForOrgResponse, error)
CreateRemoveTokenForOrg performs requests for "actions/create-remove-token-for-org"
Create a remove token for an organization.
POST /orgs/{org}/actions/runners/remove-token
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateRemoveTokenForRepo ¶
func (c Client) CreateRemoveTokenForRepo(ctx context.Context, req *CreateRemoveTokenForRepoReq, opt ...requests.Option) (*CreateRemoveTokenForRepoResponse, error)
CreateRemoveTokenForRepo performs requests for "actions/create-remove-token-for-repo"
Create a remove token for a repository.
POST /repos/{owner}/{repo}/actions/runners/remove-token
https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-a-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateWorkflowDispatch ¶
func (c Client) CreateWorkflowDispatch(ctx context.Context, req *CreateWorkflowDispatchReq, opt ...requests.Option) (*CreateWorkflowDispatchResponse, error)
CreateWorkflowDispatch performs requests for "actions/create-workflow-dispatch"
Create a workflow dispatch event.
POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteArtifact ¶
func (c Client) DeleteArtifact(ctx context.Context, req *DeleteArtifactReq, opt ...requests.Option) (*DeleteArtifactResponse, error)
DeleteArtifact performs requests for "actions/delete-artifact"
Delete an artifact.
DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}
https://developer.github.com/v3/actions/artifacts/#delete-an-artifact
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteOrgSecret ¶
func (c Client) DeleteOrgSecret(ctx context.Context, req *DeleteOrgSecretReq, opt ...requests.Option) (*DeleteOrgSecretResponse, error)
DeleteOrgSecret performs requests for "actions/delete-org-secret"
Delete an organization secret.
DELETE /orgs/{org}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#delete-an-organization-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteRepoSecret ¶
func (c Client) DeleteRepoSecret(ctx context.Context, req *DeleteRepoSecretReq, opt ...requests.Option) (*DeleteRepoSecretResponse, error)
DeleteRepoSecret performs requests for "actions/delete-repo-secret"
Delete a repository secret.
DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#delete-a-repository-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteSelfHostedRunnerFromOrg ¶
func (c Client) DeleteSelfHostedRunnerFromOrg(ctx context.Context, req *DeleteSelfHostedRunnerFromOrgReq, opt ...requests.Option) (*DeleteSelfHostedRunnerFromOrgResponse, error)
DeleteSelfHostedRunnerFromOrg performs requests for "actions/delete-self-hosted-runner-from-org"
Delete a self-hosted runner from an organization.
DELETE /orgs/{org}/actions/runners/{runner_id}
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteSelfHostedRunnerFromRepo ¶
func (c Client) DeleteSelfHostedRunnerFromRepo(ctx context.Context, req *DeleteSelfHostedRunnerFromRepoReq, opt ...requests.Option) (*DeleteSelfHostedRunnerFromRepoResponse, error)
DeleteSelfHostedRunnerFromRepo performs requests for "actions/delete-self-hosted-runner-from-repo"
Delete a self-hosted runner from a repository.
DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteWorkflowRun ¶
func (c Client) DeleteWorkflowRun(ctx context.Context, req *DeleteWorkflowRunReq, opt ...requests.Option) (*DeleteWorkflowRunResponse, error)
DeleteWorkflowRun performs requests for "actions/delete-workflow-run"
Delete a workflow run.
DELETE /repos/{owner}/{repo}/actions/runs/{run_id}
https://developer.github.com/v3/actions/workflow-runs/#delete-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteWorkflowRunLogs ¶
func (c Client) DeleteWorkflowRunLogs(ctx context.Context, req *DeleteWorkflowRunLogsReq, opt ...requests.Option) (*DeleteWorkflowRunLogsResponse, error)
DeleteWorkflowRunLogs performs requests for "actions/delete-workflow-run-logs"
Delete workflow run logs.
DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs
https://developer.github.com/v3/actions/workflow-runs/#delete-workflow-run-logs
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DownloadArtifact ¶
func (c Client) DownloadArtifact(ctx context.Context, req *DownloadArtifactReq, opt ...requests.Option) (*DownloadArtifactResponse, error)
DownloadArtifact performs requests for "actions/download-artifact"
Download an artifact.
GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}
https://developer.github.com/v3/actions/artifacts/#download-an-artifact
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DownloadJobLogsForWorkflowRun ¶
func (c Client) DownloadJobLogsForWorkflowRun(ctx context.Context, req *DownloadJobLogsForWorkflowRunReq, opt ...requests.Option) (*DownloadJobLogsForWorkflowRunResponse, error)
DownloadJobLogsForWorkflowRun performs requests for "actions/download-job-logs-for-workflow-run"
Download job logs for a workflow run.
GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs
https://developer.github.com/v3/actions/workflow-jobs/#download-job-logs-for-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DownloadWorkflowRunLogs ¶
func (c Client) DownloadWorkflowRunLogs(ctx context.Context, req *DownloadWorkflowRunLogsReq, opt ...requests.Option) (*DownloadWorkflowRunLogsResponse, error)
DownloadWorkflowRunLogs performs requests for "actions/download-workflow-run-logs"
Download workflow run logs.
GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs
https://developer.github.com/v3/actions/workflow-runs/#download-workflow-run-logs
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetArtifact ¶
func (c Client) GetArtifact(ctx context.Context, req *GetArtifactReq, opt ...requests.Option) (*GetArtifactResponse, error)
GetArtifact performs requests for "actions/get-artifact"
Get an artifact.
GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}
https://developer.github.com/v3/actions/artifacts/#get-an-artifact
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetJobForWorkflowRun ¶
func (c Client) GetJobForWorkflowRun(ctx context.Context, req *GetJobForWorkflowRunReq, opt ...requests.Option) (*GetJobForWorkflowRunResponse, error)
GetJobForWorkflowRun performs requests for "actions/get-job-for-workflow-run"
Get a job for a workflow run.
GET /repos/{owner}/{repo}/actions/jobs/{job_id}
https://developer.github.com/v3/actions/workflow-jobs/#get-a-job-for-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetOrgPublicKey ¶
func (c Client) GetOrgPublicKey(ctx context.Context, req *GetOrgPublicKeyReq, opt ...requests.Option) (*GetOrgPublicKeyResponse, error)
GetOrgPublicKey performs requests for "actions/get-org-public-key"
Get an organization public key.
GET /orgs/{org}/actions/secrets/public-key
https://developer.github.com/v3/actions/secrets/#get-an-organization-public-key
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetOrgSecret ¶
func (c Client) GetOrgSecret(ctx context.Context, req *GetOrgSecretReq, opt ...requests.Option) (*GetOrgSecretResponse, error)
GetOrgSecret performs requests for "actions/get-org-secret"
Get an organization secret.
GET /orgs/{org}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#get-an-organization-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetRepoPublicKey ¶
func (c Client) GetRepoPublicKey(ctx context.Context, req *GetRepoPublicKeyReq, opt ...requests.Option) (*GetRepoPublicKeyResponse, error)
GetRepoPublicKey performs requests for "actions/get-repo-public-key"
Get a repository public key.
GET /repos/{owner}/{repo}/actions/secrets/public-key
https://developer.github.com/v3/actions/secrets/#get-a-repository-public-key
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetRepoSecret ¶
func (c Client) GetRepoSecret(ctx context.Context, req *GetRepoSecretReq, opt ...requests.Option) (*GetRepoSecretResponse, error)
GetRepoSecret performs requests for "actions/get-repo-secret"
Get a repository secret.
GET /repos/{owner}/{repo}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#get-a-repository-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetSelfHostedRunnerForOrg ¶
func (c Client) GetSelfHostedRunnerForOrg(ctx context.Context, req *GetSelfHostedRunnerForOrgReq, opt ...requests.Option) (*GetSelfHostedRunnerForOrgResponse, error)
GetSelfHostedRunnerForOrg performs requests for "actions/get-self-hosted-runner-for-org"
Get a self-hosted runner for an organization.
GET /orgs/{org}/actions/runners/{runner_id}
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetSelfHostedRunnerForRepo ¶
func (c Client) GetSelfHostedRunnerForRepo(ctx context.Context, req *GetSelfHostedRunnerForRepoReq, opt ...requests.Option) (*GetSelfHostedRunnerForRepoResponse, error)
GetSelfHostedRunnerForRepo performs requests for "actions/get-self-hosted-runner-for-repo"
Get a self-hosted runner for a repository.
GET /repos/{owner}/{repo}/actions/runners/{runner_id}
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetWorkflow ¶
func (c Client) GetWorkflow(ctx context.Context, req *GetWorkflowReq, opt ...requests.Option) (*GetWorkflowResponse, error)
GetWorkflow performs requests for "actions/get-workflow"
Get a workflow.
GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}
https://developer.github.com/v3/actions/workflows/#get-a-workflow
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetWorkflowRun ¶
func (c Client) GetWorkflowRun(ctx context.Context, req *GetWorkflowRunReq, opt ...requests.Option) (*GetWorkflowRunResponse, error)
GetWorkflowRun performs requests for "actions/get-workflow-run"
Get a workflow run.
GET /repos/{owner}/{repo}/actions/runs/{run_id}
https://developer.github.com/v3/actions/workflow-runs/#get-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetWorkflowRunUsage ¶
func (c Client) GetWorkflowRunUsage(ctx context.Context, req *GetWorkflowRunUsageReq, opt ...requests.Option) (*GetWorkflowRunUsageResponse, error)
GetWorkflowRunUsage performs requests for "actions/get-workflow-run-usage"
Get workflow run usage.
GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing
https://developer.github.com/v3/actions/workflow-runs/#get-workflow-run-usage
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetWorkflowUsage ¶
func (c Client) GetWorkflowUsage(ctx context.Context, req *GetWorkflowUsageReq, opt ...requests.Option) (*GetWorkflowUsageResponse, error)
GetWorkflowUsage performs requests for "actions/get-workflow-usage"
Get workflow usage.
GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing
https://developer.github.com/v3/actions/workflows/#get-workflow-usage
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListArtifactsForRepo ¶
func (c Client) ListArtifactsForRepo(ctx context.Context, req *ListArtifactsForRepoReq, opt ...requests.Option) (*ListArtifactsForRepoResponse, error)
ListArtifactsForRepo performs requests for "actions/list-artifacts-for-repo"
List artifacts for a repository.
GET /repos/{owner}/{repo}/actions/artifacts
https://developer.github.com/v3/actions/artifacts/#list-artifacts-for-a-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListJobsForWorkflowRun ¶
func (c Client) ListJobsForWorkflowRun(ctx context.Context, req *ListJobsForWorkflowRunReq, opt ...requests.Option) (*ListJobsForWorkflowRunResponse, error)
ListJobsForWorkflowRun performs requests for "actions/list-jobs-for-workflow-run"
List jobs for a workflow run.
GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs
https://developer.github.com/v3/actions/workflow-jobs/#list-jobs-for-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListOrgSecrets ¶
func (c Client) ListOrgSecrets(ctx context.Context, req *ListOrgSecretsReq, opt ...requests.Option) (*ListOrgSecretsResponse, error)
ListOrgSecrets performs requests for "actions/list-org-secrets"
List organization secrets.
GET /orgs/{org}/actions/secrets
https://developer.github.com/v3/actions/secrets/#list-organization-secrets
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListRepoSecrets ¶
func (c Client) ListRepoSecrets(ctx context.Context, req *ListRepoSecretsReq, opt ...requests.Option) (*ListRepoSecretsResponse, error)
ListRepoSecrets performs requests for "actions/list-repo-secrets"
List repository secrets.
GET /repos/{owner}/{repo}/actions/secrets
https://developer.github.com/v3/actions/secrets/#list-repository-secrets
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListRepoWorkflows ¶
func (c Client) ListRepoWorkflows(ctx context.Context, req *ListRepoWorkflowsReq, opt ...requests.Option) (*ListRepoWorkflowsResponse, error)
ListRepoWorkflows performs requests for "actions/list-repo-workflows"
List repository workflows.
GET /repos/{owner}/{repo}/actions/workflows
https://developer.github.com/v3/actions/workflows/#list-repository-workflows
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListRunnerApplicationsForOrg ¶
func (c Client) ListRunnerApplicationsForOrg(ctx context.Context, req *ListRunnerApplicationsForOrgReq, opt ...requests.Option) (*ListRunnerApplicationsForOrgResponse, error)
ListRunnerApplicationsForOrg performs requests for "actions/list-runner-applications-for-org"
List runner applications for an organization.
GET /orgs/{org}/actions/runners/downloads
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListRunnerApplicationsForRepo ¶
func (c Client) ListRunnerApplicationsForRepo(ctx context.Context, req *ListRunnerApplicationsForRepoReq, opt ...requests.Option) (*ListRunnerApplicationsForRepoResponse, error)
ListRunnerApplicationsForRepo performs requests for "actions/list-runner-applications-for-repo"
List runner applications for a repository.
GET /repos/{owner}/{repo}/actions/runners/downloads
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListSelectedReposForOrgSecret ¶
func (c Client) ListSelectedReposForOrgSecret(ctx context.Context, req *ListSelectedReposForOrgSecretReq, opt ...requests.Option) (*ListSelectedReposForOrgSecretResponse, error)
ListSelectedReposForOrgSecret performs requests for "actions/list-selected-repos-for-org-secret"
List selected repositories for an organization secret.
GET /orgs/{org}/actions/secrets/{secret_name}/repositories
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListSelfHostedRunnersForOrg ¶
func (c Client) ListSelfHostedRunnersForOrg(ctx context.Context, req *ListSelfHostedRunnersForOrgReq, opt ...requests.Option) (*ListSelfHostedRunnersForOrgResponse, error)
ListSelfHostedRunnersForOrg performs requests for "actions/list-self-hosted-runners-for-org"
List self-hosted runners for an organization.
GET /orgs/{org}/actions/runners
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListSelfHostedRunnersForRepo ¶
func (c Client) ListSelfHostedRunnersForRepo(ctx context.Context, req *ListSelfHostedRunnersForRepoReq, opt ...requests.Option) (*ListSelfHostedRunnersForRepoResponse, error)
ListSelfHostedRunnersForRepo performs requests for "actions/list-self-hosted-runners-for-repo"
List self-hosted runners for a repository.
GET /repos/{owner}/{repo}/actions/runners
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListWorkflowRunArtifacts ¶
func (c Client) ListWorkflowRunArtifacts(ctx context.Context, req *ListWorkflowRunArtifactsReq, opt ...requests.Option) (*ListWorkflowRunArtifactsResponse, error)
ListWorkflowRunArtifacts performs requests for "actions/list-workflow-run-artifacts"
List workflow run artifacts.
GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts
https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListWorkflowRuns ¶
func (c Client) ListWorkflowRuns(ctx context.Context, req *ListWorkflowRunsReq, opt ...requests.Option) (*ListWorkflowRunsResponse, error)
ListWorkflowRuns performs requests for "actions/list-workflow-runs"
List workflow runs.
GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListWorkflowRunsForRepo ¶
func (c Client) ListWorkflowRunsForRepo(ctx context.Context, req *ListWorkflowRunsForRepoReq, opt ...requests.Option) (*ListWorkflowRunsForRepoResponse, error)
ListWorkflowRunsForRepo performs requests for "actions/list-workflow-runs-for-repo"
List workflow runs for a repository.
GET /repos/{owner}/{repo}/actions/runs
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs-for-a-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ReRunWorkflow ¶
func (c Client) ReRunWorkflow(ctx context.Context, req *ReRunWorkflowReq, opt ...requests.Option) (*ReRunWorkflowResponse, error)
ReRunWorkflow performs requests for "actions/re-run-workflow"
Re-run a workflow.
POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun
https://developer.github.com/v3/actions/workflow-runs/#re-run-a-workflow
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) RemoveSelectedRepoFromOrgSecret ¶
func (c Client) RemoveSelectedRepoFromOrgSecret(ctx context.Context, req *RemoveSelectedRepoFromOrgSecretReq, opt ...requests.Option) (*RemoveSelectedRepoFromOrgSecretResponse, error)
RemoveSelectedRepoFromOrgSecret performs requests for "actions/remove-selected-repo-from-org-secret"
Remove selected repository from an organization secret.
DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) SetSelectedReposForOrgSecret ¶
func (c Client) SetSelectedReposForOrgSecret(ctx context.Context, req *SetSelectedReposForOrgSecretReq, opt ...requests.Option) (*SetSelectedReposForOrgSecretResponse, error)
SetSelectedReposForOrgSecret performs requests for "actions/set-selected-repos-for-org-secret"
Set selected repositories for an organization secret.
PUT /orgs/{org}/actions/secrets/{secret_name}/repositories
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
type CreateOrUpdateOrgSecretReq ¶
type CreateOrUpdateOrgSecretReq struct { Org string // secret_name parameter SecretName string RequestBody CreateOrUpdateOrgSecretReqBody // contains filtered or unexported fields }
CreateOrUpdateOrgSecretReq is request data for Client.CreateOrUpdateOrgSecret
https://developer.github.com/v3/actions/secrets/#create-or-update-an-organization-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateOrUpdateOrgSecretReq) HTTPRequest ¶
func (r *CreateOrUpdateOrgSecretReq) 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 (*CreateOrUpdateOrgSecretReq) Rel ¶
func (r *CreateOrUpdateOrgSecretReq) Rel(link string, resp *CreateOrUpdateOrgSecretResponse) 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 CreateOrUpdateOrgSecretReqBody ¶
type CreateOrUpdateOrgSecretReqBody struct { /* Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://developer.github.com/v3/actions/secrets/#get-an-organization-public-key) endpoint. */ EncryptedValue *string `json:"encrypted_value,omitempty"` // ID of the key you used to encrypt the secret. KeyId *string `json:"key_id,omitempty"` /* An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://developer.github.com/v3/actions/secrets/#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://developer.github.com/v3/actions/secrets/#remove-selected-repository-from-an-organization-secret) endpoints. */ SelectedRepositoryIds []string `json:"selected_repository_ids,omitempty"` /* Configures the access that repositories have to the organization secret. Can be one of: \- `all` - All repositories in an organization can access the secret. \- `private` - Private repositories in an organization can access the secret. \- `selected` - Only specific repositories can access the secret. */ Visibility *string `json:"visibility,omitempty"` }
CreateOrUpdateOrgSecretReqBody is a request body for actions/create-or-update-org-secret
https://developer.github.com/v3/actions/secrets/#create-or-update-an-organization-secret
type CreateOrUpdateOrgSecretResponse ¶
type CreateOrUpdateOrgSecretResponse struct {
// contains filtered or unexported fields
}
CreateOrUpdateOrgSecretResponse is a response for CreateOrUpdateOrgSecret
https://developer.github.com/v3/actions/secrets/#create-or-update-an-organization-secret
func CreateOrUpdateOrgSecret ¶
func CreateOrUpdateOrgSecret(ctx context.Context, req *CreateOrUpdateOrgSecretReq, opt ...requests.Option) (*CreateOrUpdateOrgSecretResponse, error)
CreateOrUpdateOrgSecret performs requests for "actions/create-or-update-org-secret"
Create or update an organization secret.
PUT /orgs/{org}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#create-or-update-an-organization-secret
func (*CreateOrUpdateOrgSecretResponse) HTTPResponse ¶
func (r *CreateOrUpdateOrgSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateOrUpdateOrgSecretResponse) ReadResponse ¶
func (r *CreateOrUpdateOrgSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateOrUpdateRepoSecretReq ¶
type CreateOrUpdateRepoSecretReq struct { Owner string Repo string // secret_name parameter SecretName string RequestBody CreateOrUpdateRepoSecretReqBody // contains filtered or unexported fields }
CreateOrUpdateRepoSecretReq is request data for Client.CreateOrUpdateRepoSecret
https://developer.github.com/v3/actions/secrets/#create-or-update-a-repository-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateOrUpdateRepoSecretReq) HTTPRequest ¶
func (r *CreateOrUpdateRepoSecretReq) 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 (*CreateOrUpdateRepoSecretReq) Rel ¶
func (r *CreateOrUpdateRepoSecretReq) Rel(link string, resp *CreateOrUpdateRepoSecretResponse) 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 CreateOrUpdateRepoSecretReqBody ¶
type CreateOrUpdateRepoSecretReqBody struct { /* Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://developer.github.com/v3/actions/secrets/#get-a-repository-public-key) endpoint. */ EncryptedValue *string `json:"encrypted_value,omitempty"` // ID of the key you used to encrypt the secret. KeyId *string `json:"key_id,omitempty"` }
CreateOrUpdateRepoSecretReqBody is a request body for actions/create-or-update-repo-secret
https://developer.github.com/v3/actions/secrets/#create-or-update-a-repository-secret
type CreateOrUpdateRepoSecretResponse ¶
type CreateOrUpdateRepoSecretResponse struct {
// contains filtered or unexported fields
}
CreateOrUpdateRepoSecretResponse is a response for CreateOrUpdateRepoSecret
https://developer.github.com/v3/actions/secrets/#create-or-update-a-repository-secret
func CreateOrUpdateRepoSecret ¶
func CreateOrUpdateRepoSecret(ctx context.Context, req *CreateOrUpdateRepoSecretReq, opt ...requests.Option) (*CreateOrUpdateRepoSecretResponse, error)
CreateOrUpdateRepoSecret performs requests for "actions/create-or-update-repo-secret"
Create or update a repository secret.
PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#create-or-update-a-repository-secret
func (*CreateOrUpdateRepoSecretResponse) HTTPResponse ¶
func (r *CreateOrUpdateRepoSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateOrUpdateRepoSecretResponse) ReadResponse ¶
func (r *CreateOrUpdateRepoSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateRegistrationTokenForOrgReq ¶
type CreateRegistrationTokenForOrgReq struct { Org string // contains filtered or unexported fields }
CreateRegistrationTokenForOrgReq is request data for Client.CreateRegistrationTokenForOrg
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateRegistrationTokenForOrgReq) HTTPRequest ¶
func (r *CreateRegistrationTokenForOrgReq) 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 (*CreateRegistrationTokenForOrgReq) Rel ¶
func (r *CreateRegistrationTokenForOrgReq) Rel(link string, resp *CreateRegistrationTokenForOrgResponse) 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 CreateRegistrationTokenForOrgResponse ¶
type CreateRegistrationTokenForOrgResponse struct { Data components.AuthenticationToken // contains filtered or unexported fields }
CreateRegistrationTokenForOrgResponse is a response for CreateRegistrationTokenForOrg
func CreateRegistrationTokenForOrg ¶
func CreateRegistrationTokenForOrg(ctx context.Context, req *CreateRegistrationTokenForOrgReq, opt ...requests.Option) (*CreateRegistrationTokenForOrgResponse, error)
CreateRegistrationTokenForOrg performs requests for "actions/create-registration-token-for-org"
Create a registration token for an organization.
POST /orgs/{org}/actions/runners/registration-token
func (*CreateRegistrationTokenForOrgResponse) HTTPResponse ¶
func (r *CreateRegistrationTokenForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateRegistrationTokenForOrgResponse) ReadResponse ¶
func (r *CreateRegistrationTokenForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateRegistrationTokenForRepoReq ¶
type CreateRegistrationTokenForRepoReq struct { Owner string Repo string // contains filtered or unexported fields }
CreateRegistrationTokenForRepoReq is request data for Client.CreateRegistrationTokenForRepo
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateRegistrationTokenForRepoReq) HTTPRequest ¶
func (r *CreateRegistrationTokenForRepoReq) 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 (*CreateRegistrationTokenForRepoReq) Rel ¶
func (r *CreateRegistrationTokenForRepoReq) Rel(link string, resp *CreateRegistrationTokenForRepoResponse) 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 CreateRegistrationTokenForRepoResponse ¶
type CreateRegistrationTokenForRepoResponse struct { Data components.AuthenticationToken // contains filtered or unexported fields }
CreateRegistrationTokenForRepoResponse is a response for CreateRegistrationTokenForRepo
func CreateRegistrationTokenForRepo ¶
func CreateRegistrationTokenForRepo(ctx context.Context, req *CreateRegistrationTokenForRepoReq, opt ...requests.Option) (*CreateRegistrationTokenForRepoResponse, error)
CreateRegistrationTokenForRepo performs requests for "actions/create-registration-token-for-repo"
Create a registration token for a repository.
POST /repos/{owner}/{repo}/actions/runners/registration-token
func (*CreateRegistrationTokenForRepoResponse) HTTPResponse ¶
func (r *CreateRegistrationTokenForRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateRegistrationTokenForRepoResponse) ReadResponse ¶
func (r *CreateRegistrationTokenForRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateRemoveTokenForOrgReq ¶
type CreateRemoveTokenForOrgReq struct { Org string // contains filtered or unexported fields }
CreateRemoveTokenForOrgReq is request data for Client.CreateRemoveTokenForOrg
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateRemoveTokenForOrgReq) HTTPRequest ¶
func (r *CreateRemoveTokenForOrgReq) 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 (*CreateRemoveTokenForOrgReq) Rel ¶
func (r *CreateRemoveTokenForOrgReq) Rel(link string, resp *CreateRemoveTokenForOrgResponse) 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 CreateRemoveTokenForOrgResponse ¶
type CreateRemoveTokenForOrgResponse struct { Data components.AuthenticationToken // contains filtered or unexported fields }
CreateRemoveTokenForOrgResponse is a response for CreateRemoveTokenForOrg
func CreateRemoveTokenForOrg ¶
func CreateRemoveTokenForOrg(ctx context.Context, req *CreateRemoveTokenForOrgReq, opt ...requests.Option) (*CreateRemoveTokenForOrgResponse, error)
CreateRemoveTokenForOrg performs requests for "actions/create-remove-token-for-org"
Create a remove token for an organization.
POST /orgs/{org}/actions/runners/remove-token
func (*CreateRemoveTokenForOrgResponse) HTTPResponse ¶
func (r *CreateRemoveTokenForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateRemoveTokenForOrgResponse) ReadResponse ¶
func (r *CreateRemoveTokenForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateRemoveTokenForRepoReq ¶
type CreateRemoveTokenForRepoReq struct { Owner string Repo string // contains filtered or unexported fields }
CreateRemoveTokenForRepoReq is request data for Client.CreateRemoveTokenForRepo
https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-a-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateRemoveTokenForRepoReq) HTTPRequest ¶
func (r *CreateRemoveTokenForRepoReq) 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 (*CreateRemoveTokenForRepoReq) Rel ¶
func (r *CreateRemoveTokenForRepoReq) Rel(link string, resp *CreateRemoveTokenForRepoResponse) 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 CreateRemoveTokenForRepoResponse ¶
type CreateRemoveTokenForRepoResponse struct { Data components.AuthenticationToken // contains filtered or unexported fields }
CreateRemoveTokenForRepoResponse is a response for CreateRemoveTokenForRepo
https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-a-repository
func CreateRemoveTokenForRepo ¶
func CreateRemoveTokenForRepo(ctx context.Context, req *CreateRemoveTokenForRepoReq, opt ...requests.Option) (*CreateRemoveTokenForRepoResponse, error)
CreateRemoveTokenForRepo performs requests for "actions/create-remove-token-for-repo"
Create a remove token for a repository.
POST /repos/{owner}/{repo}/actions/runners/remove-token
https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-a-repository
func (*CreateRemoveTokenForRepoResponse) HTTPResponse ¶
func (r *CreateRemoveTokenForRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateRemoveTokenForRepoResponse) ReadResponse ¶
func (r *CreateRemoveTokenForRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateWorkflowDispatchReq ¶
type CreateWorkflowDispatchReq struct { Owner string Repo string WorkflowId int64 RequestBody CreateWorkflowDispatchReqBody // contains filtered or unexported fields }
CreateWorkflowDispatchReq is request data for Client.CreateWorkflowDispatch
https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateWorkflowDispatchReq) HTTPRequest ¶
func (r *CreateWorkflowDispatchReq) 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 (*CreateWorkflowDispatchReq) Rel ¶
func (r *CreateWorkflowDispatchReq) Rel(link string, resp *CreateWorkflowDispatchResponse) 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 CreateWorkflowDispatchReqBody ¶
type CreateWorkflowDispatchReqBody struct { /* Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted. */ Inputs map[string]string `json:"inputs,omitempty"` // The reference of the workflow run. The reference can be a branch, tag, or a commit SHA. Ref *string `json:"ref"` }
CreateWorkflowDispatchReqBody is a request body for actions/create-workflow-dispatch
https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
type CreateWorkflowDispatchResponse ¶
type CreateWorkflowDispatchResponse struct {
// contains filtered or unexported fields
}
CreateWorkflowDispatchResponse is a response for CreateWorkflowDispatch
https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
func CreateWorkflowDispatch ¶
func CreateWorkflowDispatch(ctx context.Context, req *CreateWorkflowDispatchReq, opt ...requests.Option) (*CreateWorkflowDispatchResponse, error)
CreateWorkflowDispatch performs requests for "actions/create-workflow-dispatch"
Create a workflow dispatch event.
POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
func (*CreateWorkflowDispatchResponse) HTTPResponse ¶
func (r *CreateWorkflowDispatchResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateWorkflowDispatchResponse) ReadResponse ¶
func (r *CreateWorkflowDispatchResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteArtifactReq ¶
type DeleteArtifactReq struct { Owner string Repo string // artifact_id parameter ArtifactId int64 // contains filtered or unexported fields }
DeleteArtifactReq is request data for Client.DeleteArtifact
https://developer.github.com/v3/actions/artifacts/#delete-an-artifact
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteArtifactReq) HTTPRequest ¶
func (r *DeleteArtifactReq) 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 (*DeleteArtifactReq) Rel ¶
func (r *DeleteArtifactReq) Rel(link string, resp *DeleteArtifactResponse) 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 DeleteArtifactResponse ¶
type DeleteArtifactResponse struct {
// contains filtered or unexported fields
}
DeleteArtifactResponse is a response for DeleteArtifact
https://developer.github.com/v3/actions/artifacts/#delete-an-artifact
func DeleteArtifact ¶
func DeleteArtifact(ctx context.Context, req *DeleteArtifactReq, opt ...requests.Option) (*DeleteArtifactResponse, error)
DeleteArtifact performs requests for "actions/delete-artifact"
Delete an artifact.
DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}
https://developer.github.com/v3/actions/artifacts/#delete-an-artifact
func (*DeleteArtifactResponse) HTTPResponse ¶
func (r *DeleteArtifactResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteArtifactResponse) ReadResponse ¶
func (r *DeleteArtifactResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteOrgSecretReq ¶
type DeleteOrgSecretReq struct { Org string // secret_name parameter SecretName string // contains filtered or unexported fields }
DeleteOrgSecretReq is request data for Client.DeleteOrgSecret
https://developer.github.com/v3/actions/secrets/#delete-an-organization-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteOrgSecretReq) HTTPRequest ¶
func (r *DeleteOrgSecretReq) 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 (*DeleteOrgSecretReq) Rel ¶
func (r *DeleteOrgSecretReq) Rel(link string, resp *DeleteOrgSecretResponse) 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 DeleteOrgSecretResponse ¶
type DeleteOrgSecretResponse struct {
// contains filtered or unexported fields
}
DeleteOrgSecretResponse is a response for DeleteOrgSecret
https://developer.github.com/v3/actions/secrets/#delete-an-organization-secret
func DeleteOrgSecret ¶
func DeleteOrgSecret(ctx context.Context, req *DeleteOrgSecretReq, opt ...requests.Option) (*DeleteOrgSecretResponse, error)
DeleteOrgSecret performs requests for "actions/delete-org-secret"
Delete an organization secret.
DELETE /orgs/{org}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#delete-an-organization-secret
func (*DeleteOrgSecretResponse) HTTPResponse ¶
func (r *DeleteOrgSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteOrgSecretResponse) ReadResponse ¶
func (r *DeleteOrgSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteRepoSecretReq ¶
type DeleteRepoSecretReq struct { Owner string Repo string // secret_name parameter SecretName string // contains filtered or unexported fields }
DeleteRepoSecretReq is request data for Client.DeleteRepoSecret
https://developer.github.com/v3/actions/secrets/#delete-a-repository-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteRepoSecretReq) HTTPRequest ¶
func (r *DeleteRepoSecretReq) 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 (*DeleteRepoSecretReq) Rel ¶
func (r *DeleteRepoSecretReq) Rel(link string, resp *DeleteRepoSecretResponse) 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 DeleteRepoSecretResponse ¶
type DeleteRepoSecretResponse struct {
// contains filtered or unexported fields
}
DeleteRepoSecretResponse is a response for DeleteRepoSecret
https://developer.github.com/v3/actions/secrets/#delete-a-repository-secret
func DeleteRepoSecret ¶
func DeleteRepoSecret(ctx context.Context, req *DeleteRepoSecretReq, opt ...requests.Option) (*DeleteRepoSecretResponse, error)
DeleteRepoSecret performs requests for "actions/delete-repo-secret"
Delete a repository secret.
DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#delete-a-repository-secret
func (*DeleteRepoSecretResponse) HTTPResponse ¶
func (r *DeleteRepoSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteRepoSecretResponse) ReadResponse ¶
func (r *DeleteRepoSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteSelfHostedRunnerFromOrgReq ¶
type DeleteSelfHostedRunnerFromOrgReq struct { Org string // runner_id parameter RunnerId int64 // contains filtered or unexported fields }
DeleteSelfHostedRunnerFromOrgReq is request data for Client.DeleteSelfHostedRunnerFromOrg
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteSelfHostedRunnerFromOrgReq) HTTPRequest ¶
func (r *DeleteSelfHostedRunnerFromOrgReq) 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 (*DeleteSelfHostedRunnerFromOrgReq) Rel ¶
func (r *DeleteSelfHostedRunnerFromOrgReq) Rel(link string, resp *DeleteSelfHostedRunnerFromOrgResponse) 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 DeleteSelfHostedRunnerFromOrgResponse ¶
type DeleteSelfHostedRunnerFromOrgResponse struct {
// contains filtered or unexported fields
}
DeleteSelfHostedRunnerFromOrgResponse is a response for DeleteSelfHostedRunnerFromOrg
func DeleteSelfHostedRunnerFromOrg ¶
func DeleteSelfHostedRunnerFromOrg(ctx context.Context, req *DeleteSelfHostedRunnerFromOrgReq, opt ...requests.Option) (*DeleteSelfHostedRunnerFromOrgResponse, error)
DeleteSelfHostedRunnerFromOrg performs requests for "actions/delete-self-hosted-runner-from-org"
Delete a self-hosted runner from an organization.
DELETE /orgs/{org}/actions/runners/{runner_id}
func (*DeleteSelfHostedRunnerFromOrgResponse) HTTPResponse ¶
func (r *DeleteSelfHostedRunnerFromOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteSelfHostedRunnerFromOrgResponse) ReadResponse ¶
func (r *DeleteSelfHostedRunnerFromOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteSelfHostedRunnerFromRepoReq ¶
type DeleteSelfHostedRunnerFromRepoReq struct { Owner string Repo string // runner_id parameter RunnerId int64 // contains filtered or unexported fields }
DeleteSelfHostedRunnerFromRepoReq is request data for Client.DeleteSelfHostedRunnerFromRepo
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteSelfHostedRunnerFromRepoReq) HTTPRequest ¶
func (r *DeleteSelfHostedRunnerFromRepoReq) 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 (*DeleteSelfHostedRunnerFromRepoReq) Rel ¶
func (r *DeleteSelfHostedRunnerFromRepoReq) Rel(link string, resp *DeleteSelfHostedRunnerFromRepoResponse) 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 DeleteSelfHostedRunnerFromRepoResponse ¶
type DeleteSelfHostedRunnerFromRepoResponse struct {
// contains filtered or unexported fields
}
DeleteSelfHostedRunnerFromRepoResponse is a response for DeleteSelfHostedRunnerFromRepo
func DeleteSelfHostedRunnerFromRepo ¶
func DeleteSelfHostedRunnerFromRepo(ctx context.Context, req *DeleteSelfHostedRunnerFromRepoReq, opt ...requests.Option) (*DeleteSelfHostedRunnerFromRepoResponse, error)
DeleteSelfHostedRunnerFromRepo performs requests for "actions/delete-self-hosted-runner-from-repo"
Delete a self-hosted runner from a repository.
DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}
func (*DeleteSelfHostedRunnerFromRepoResponse) HTTPResponse ¶
func (r *DeleteSelfHostedRunnerFromRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteSelfHostedRunnerFromRepoResponse) ReadResponse ¶
func (r *DeleteSelfHostedRunnerFromRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteWorkflowRunLogsReq ¶
type DeleteWorkflowRunLogsReq struct { Owner string Repo string RunId int64 // contains filtered or unexported fields }
DeleteWorkflowRunLogsReq is request data for Client.DeleteWorkflowRunLogs
https://developer.github.com/v3/actions/workflow-runs/#delete-workflow-run-logs
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteWorkflowRunLogsReq) HTTPRequest ¶
func (r *DeleteWorkflowRunLogsReq) 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 (*DeleteWorkflowRunLogsReq) Rel ¶
func (r *DeleteWorkflowRunLogsReq) Rel(link string, resp *DeleteWorkflowRunLogsResponse) 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 DeleteWorkflowRunLogsResponse ¶
type DeleteWorkflowRunLogsResponse struct {
// contains filtered or unexported fields
}
DeleteWorkflowRunLogsResponse is a response for DeleteWorkflowRunLogs
https://developer.github.com/v3/actions/workflow-runs/#delete-workflow-run-logs
func DeleteWorkflowRunLogs ¶
func DeleteWorkflowRunLogs(ctx context.Context, req *DeleteWorkflowRunLogsReq, opt ...requests.Option) (*DeleteWorkflowRunLogsResponse, error)
DeleteWorkflowRunLogs performs requests for "actions/delete-workflow-run-logs"
Delete workflow run logs.
DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs
https://developer.github.com/v3/actions/workflow-runs/#delete-workflow-run-logs
func (*DeleteWorkflowRunLogsResponse) HTTPResponse ¶
func (r *DeleteWorkflowRunLogsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteWorkflowRunLogsResponse) ReadResponse ¶
func (r *DeleteWorkflowRunLogsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteWorkflowRunReq ¶
type DeleteWorkflowRunReq struct { Owner string Repo string RunId int64 // contains filtered or unexported fields }
DeleteWorkflowRunReq is request data for Client.DeleteWorkflowRun
https://developer.github.com/v3/actions/workflow-runs/#delete-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteWorkflowRunReq) HTTPRequest ¶
func (r *DeleteWorkflowRunReq) 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 (*DeleteWorkflowRunReq) Rel ¶
func (r *DeleteWorkflowRunReq) Rel(link string, resp *DeleteWorkflowRunResponse) 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 DeleteWorkflowRunResponse ¶
type DeleteWorkflowRunResponse struct {
// contains filtered or unexported fields
}
DeleteWorkflowRunResponse is a response for DeleteWorkflowRun
https://developer.github.com/v3/actions/workflow-runs/#delete-a-workflow-run
func DeleteWorkflowRun ¶
func DeleteWorkflowRun(ctx context.Context, req *DeleteWorkflowRunReq, opt ...requests.Option) (*DeleteWorkflowRunResponse, error)
DeleteWorkflowRun performs requests for "actions/delete-workflow-run"
Delete a workflow run.
DELETE /repos/{owner}/{repo}/actions/runs/{run_id}
https://developer.github.com/v3/actions/workflow-runs/#delete-a-workflow-run
func (*DeleteWorkflowRunResponse) HTTPResponse ¶
func (r *DeleteWorkflowRunResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteWorkflowRunResponse) ReadResponse ¶
func (r *DeleteWorkflowRunResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DownloadArtifactReq ¶
type DownloadArtifactReq struct { Owner string Repo string // artifact_id parameter ArtifactId int64 // archive_format parameter ArchiveFormat string // contains filtered or unexported fields }
DownloadArtifactReq is request data for Client.DownloadArtifact
https://developer.github.com/v3/actions/artifacts/#download-an-artifact
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DownloadArtifactReq) HTTPRequest ¶
func (r *DownloadArtifactReq) 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 (*DownloadArtifactReq) Rel ¶
func (r *DownloadArtifactReq) Rel(link string, resp *DownloadArtifactResponse) 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 DownloadArtifactResponse ¶
type DownloadArtifactResponse struct {
// contains filtered or unexported fields
}
DownloadArtifactResponse is a response for DownloadArtifact
https://developer.github.com/v3/actions/artifacts/#download-an-artifact
func DownloadArtifact ¶
func DownloadArtifact(ctx context.Context, req *DownloadArtifactReq, opt ...requests.Option) (*DownloadArtifactResponse, error)
DownloadArtifact performs requests for "actions/download-artifact"
Download an artifact.
GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}
https://developer.github.com/v3/actions/artifacts/#download-an-artifact
func (*DownloadArtifactResponse) HTTPResponse ¶
func (r *DownloadArtifactResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DownloadArtifactResponse) ReadResponse ¶
func (r *DownloadArtifactResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DownloadJobLogsForWorkflowRunReq ¶
type DownloadJobLogsForWorkflowRunReq struct { Owner string Repo string // job_id parameter JobId int64 // contains filtered or unexported fields }
DownloadJobLogsForWorkflowRunReq is request data for Client.DownloadJobLogsForWorkflowRun
https://developer.github.com/v3/actions/workflow-jobs/#download-job-logs-for-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DownloadJobLogsForWorkflowRunReq) HTTPRequest ¶
func (r *DownloadJobLogsForWorkflowRunReq) 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 (*DownloadJobLogsForWorkflowRunReq) Rel ¶
func (r *DownloadJobLogsForWorkflowRunReq) Rel(link string, resp *DownloadJobLogsForWorkflowRunResponse) 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 DownloadJobLogsForWorkflowRunResponse ¶
type DownloadJobLogsForWorkflowRunResponse struct {
// contains filtered or unexported fields
}
DownloadJobLogsForWorkflowRunResponse is a response for DownloadJobLogsForWorkflowRun
https://developer.github.com/v3/actions/workflow-jobs/#download-job-logs-for-a-workflow-run
func DownloadJobLogsForWorkflowRun ¶
func DownloadJobLogsForWorkflowRun(ctx context.Context, req *DownloadJobLogsForWorkflowRunReq, opt ...requests.Option) (*DownloadJobLogsForWorkflowRunResponse, error)
DownloadJobLogsForWorkflowRun performs requests for "actions/download-job-logs-for-workflow-run"
Download job logs for a workflow run.
GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs
https://developer.github.com/v3/actions/workflow-jobs/#download-job-logs-for-a-workflow-run
func (*DownloadJobLogsForWorkflowRunResponse) HTTPResponse ¶
func (r *DownloadJobLogsForWorkflowRunResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DownloadJobLogsForWorkflowRunResponse) ReadResponse ¶
func (r *DownloadJobLogsForWorkflowRunResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DownloadWorkflowRunLogsReq ¶
type DownloadWorkflowRunLogsReq struct { Owner string Repo string RunId int64 // contains filtered or unexported fields }
DownloadWorkflowRunLogsReq is request data for Client.DownloadWorkflowRunLogs
https://developer.github.com/v3/actions/workflow-runs/#download-workflow-run-logs
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DownloadWorkflowRunLogsReq) HTTPRequest ¶
func (r *DownloadWorkflowRunLogsReq) 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 (*DownloadWorkflowRunLogsReq) Rel ¶
func (r *DownloadWorkflowRunLogsReq) Rel(link string, resp *DownloadWorkflowRunLogsResponse) 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 DownloadWorkflowRunLogsResponse ¶
type DownloadWorkflowRunLogsResponse struct {
// contains filtered or unexported fields
}
DownloadWorkflowRunLogsResponse is a response for DownloadWorkflowRunLogs
https://developer.github.com/v3/actions/workflow-runs/#download-workflow-run-logs
func DownloadWorkflowRunLogs ¶
func DownloadWorkflowRunLogs(ctx context.Context, req *DownloadWorkflowRunLogsReq, opt ...requests.Option) (*DownloadWorkflowRunLogsResponse, error)
DownloadWorkflowRunLogs performs requests for "actions/download-workflow-run-logs"
Download workflow run logs.
GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs
https://developer.github.com/v3/actions/workflow-runs/#download-workflow-run-logs
func (*DownloadWorkflowRunLogsResponse) HTTPResponse ¶
func (r *DownloadWorkflowRunLogsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DownloadWorkflowRunLogsResponse) ReadResponse ¶
func (r *DownloadWorkflowRunLogsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetArtifactReq ¶
type GetArtifactReq struct { Owner string Repo string // artifact_id parameter ArtifactId int64 // contains filtered or unexported fields }
GetArtifactReq is request data for Client.GetArtifact
https://developer.github.com/v3/actions/artifacts/#get-an-artifact
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetArtifactReq) HTTPRequest ¶
func (r *GetArtifactReq) 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 (*GetArtifactReq) Rel ¶
func (r *GetArtifactReq) Rel(link string, resp *GetArtifactResponse) 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 GetArtifactResponse ¶
type GetArtifactResponse struct { Data components.Artifact // contains filtered or unexported fields }
GetArtifactResponse is a response for GetArtifact
https://developer.github.com/v3/actions/artifacts/#get-an-artifact
func GetArtifact ¶
func GetArtifact(ctx context.Context, req *GetArtifactReq, opt ...requests.Option) (*GetArtifactResponse, error)
GetArtifact performs requests for "actions/get-artifact"
Get an artifact.
GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}
https://developer.github.com/v3/actions/artifacts/#get-an-artifact
func (*GetArtifactResponse) HTTPResponse ¶
func (r *GetArtifactResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetArtifactResponse) ReadResponse ¶
func (r *GetArtifactResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetJobForWorkflowRunReq ¶
type GetJobForWorkflowRunReq struct { Owner string Repo string // job_id parameter JobId int64 // contains filtered or unexported fields }
GetJobForWorkflowRunReq is request data for Client.GetJobForWorkflowRun
https://developer.github.com/v3/actions/workflow-jobs/#get-a-job-for-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetJobForWorkflowRunReq) HTTPRequest ¶
func (r *GetJobForWorkflowRunReq) 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 (*GetJobForWorkflowRunReq) Rel ¶
func (r *GetJobForWorkflowRunReq) Rel(link string, resp *GetJobForWorkflowRunResponse) 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 GetJobForWorkflowRunResponse ¶
type GetJobForWorkflowRunResponse struct { Data components.Job // contains filtered or unexported fields }
GetJobForWorkflowRunResponse is a response for GetJobForWorkflowRun
https://developer.github.com/v3/actions/workflow-jobs/#get-a-job-for-a-workflow-run
func GetJobForWorkflowRun ¶
func GetJobForWorkflowRun(ctx context.Context, req *GetJobForWorkflowRunReq, opt ...requests.Option) (*GetJobForWorkflowRunResponse, error)
GetJobForWorkflowRun performs requests for "actions/get-job-for-workflow-run"
Get a job for a workflow run.
GET /repos/{owner}/{repo}/actions/jobs/{job_id}
https://developer.github.com/v3/actions/workflow-jobs/#get-a-job-for-a-workflow-run
func (*GetJobForWorkflowRunResponse) HTTPResponse ¶
func (r *GetJobForWorkflowRunResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetJobForWorkflowRunResponse) ReadResponse ¶
func (r *GetJobForWorkflowRunResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetOrgPublicKeyReq ¶
type GetOrgPublicKeyReq struct { Org string // contains filtered or unexported fields }
GetOrgPublicKeyReq is request data for Client.GetOrgPublicKey
https://developer.github.com/v3/actions/secrets/#get-an-organization-public-key
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetOrgPublicKeyReq) HTTPRequest ¶
func (r *GetOrgPublicKeyReq) 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 (*GetOrgPublicKeyReq) Rel ¶
func (r *GetOrgPublicKeyReq) Rel(link string, resp *GetOrgPublicKeyResponse) 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 GetOrgPublicKeyResponse ¶
type GetOrgPublicKeyResponse struct { Data components.ActionsPublicKey // contains filtered or unexported fields }
GetOrgPublicKeyResponse is a response for GetOrgPublicKey
https://developer.github.com/v3/actions/secrets/#get-an-organization-public-key
func GetOrgPublicKey ¶
func GetOrgPublicKey(ctx context.Context, req *GetOrgPublicKeyReq, opt ...requests.Option) (*GetOrgPublicKeyResponse, error)
GetOrgPublicKey performs requests for "actions/get-org-public-key"
Get an organization public key.
GET /orgs/{org}/actions/secrets/public-key
https://developer.github.com/v3/actions/secrets/#get-an-organization-public-key
func (*GetOrgPublicKeyResponse) HTTPResponse ¶
func (r *GetOrgPublicKeyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetOrgPublicKeyResponse) ReadResponse ¶
func (r *GetOrgPublicKeyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetOrgSecretReq ¶
type GetOrgSecretReq struct { Org string // secret_name parameter SecretName string // contains filtered or unexported fields }
GetOrgSecretReq is request data for Client.GetOrgSecret
https://developer.github.com/v3/actions/secrets/#get-an-organization-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetOrgSecretReq) HTTPRequest ¶
func (r *GetOrgSecretReq) 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 (*GetOrgSecretReq) Rel ¶
func (r *GetOrgSecretReq) Rel(link string, resp *GetOrgSecretResponse) 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 GetOrgSecretResponse ¶
type GetOrgSecretResponse struct { Data components.OrganizationActionsSecret // contains filtered or unexported fields }
GetOrgSecretResponse is a response for GetOrgSecret
https://developer.github.com/v3/actions/secrets/#get-an-organization-secret
func GetOrgSecret ¶
func GetOrgSecret(ctx context.Context, req *GetOrgSecretReq, opt ...requests.Option) (*GetOrgSecretResponse, error)
GetOrgSecret performs requests for "actions/get-org-secret"
Get an organization secret.
GET /orgs/{org}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#get-an-organization-secret
func (*GetOrgSecretResponse) HTTPResponse ¶
func (r *GetOrgSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetOrgSecretResponse) ReadResponse ¶
func (r *GetOrgSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetRepoPublicKeyReq ¶
type GetRepoPublicKeyReq struct { Owner string Repo string // contains filtered or unexported fields }
GetRepoPublicKeyReq is request data for Client.GetRepoPublicKey
https://developer.github.com/v3/actions/secrets/#get-a-repository-public-key
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetRepoPublicKeyReq) HTTPRequest ¶
func (r *GetRepoPublicKeyReq) 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 (*GetRepoPublicKeyReq) Rel ¶
func (r *GetRepoPublicKeyReq) Rel(link string, resp *GetRepoPublicKeyResponse) 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 GetRepoPublicKeyResponse ¶
type GetRepoPublicKeyResponse struct { Data components.ActionsPublicKey // contains filtered or unexported fields }
GetRepoPublicKeyResponse is a response for GetRepoPublicKey
https://developer.github.com/v3/actions/secrets/#get-a-repository-public-key
func GetRepoPublicKey ¶
func GetRepoPublicKey(ctx context.Context, req *GetRepoPublicKeyReq, opt ...requests.Option) (*GetRepoPublicKeyResponse, error)
GetRepoPublicKey performs requests for "actions/get-repo-public-key"
Get a repository public key.
GET /repos/{owner}/{repo}/actions/secrets/public-key
https://developer.github.com/v3/actions/secrets/#get-a-repository-public-key
func (*GetRepoPublicKeyResponse) HTTPResponse ¶
func (r *GetRepoPublicKeyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetRepoPublicKeyResponse) ReadResponse ¶
func (r *GetRepoPublicKeyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetRepoSecretReq ¶
type GetRepoSecretReq struct { Owner string Repo string // secret_name parameter SecretName string // contains filtered or unexported fields }
GetRepoSecretReq is request data for Client.GetRepoSecret
https://developer.github.com/v3/actions/secrets/#get-a-repository-secret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetRepoSecretReq) HTTPRequest ¶
func (r *GetRepoSecretReq) 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 (*GetRepoSecretReq) Rel ¶
func (r *GetRepoSecretReq) Rel(link string, resp *GetRepoSecretResponse) 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 GetRepoSecretResponse ¶
type GetRepoSecretResponse struct { Data components.ActionsSecret // contains filtered or unexported fields }
GetRepoSecretResponse is a response for GetRepoSecret
https://developer.github.com/v3/actions/secrets/#get-a-repository-secret
func GetRepoSecret ¶
func GetRepoSecret(ctx context.Context, req *GetRepoSecretReq, opt ...requests.Option) (*GetRepoSecretResponse, error)
GetRepoSecret performs requests for "actions/get-repo-secret"
Get a repository secret.
GET /repos/{owner}/{repo}/actions/secrets/{secret_name}
https://developer.github.com/v3/actions/secrets/#get-a-repository-secret
func (*GetRepoSecretResponse) HTTPResponse ¶
func (r *GetRepoSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetRepoSecretResponse) ReadResponse ¶
func (r *GetRepoSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetSelfHostedRunnerForOrgReq ¶
type GetSelfHostedRunnerForOrgReq struct { Org string // runner_id parameter RunnerId int64 // contains filtered or unexported fields }
GetSelfHostedRunnerForOrgReq is request data for Client.GetSelfHostedRunnerForOrg
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetSelfHostedRunnerForOrgReq) HTTPRequest ¶
func (r *GetSelfHostedRunnerForOrgReq) 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 (*GetSelfHostedRunnerForOrgReq) Rel ¶
func (r *GetSelfHostedRunnerForOrgReq) Rel(link string, resp *GetSelfHostedRunnerForOrgResponse) 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 GetSelfHostedRunnerForOrgResponse ¶
type GetSelfHostedRunnerForOrgResponse struct { Data components.Runner // contains filtered or unexported fields }
GetSelfHostedRunnerForOrgResponse is a response for GetSelfHostedRunnerForOrg
func GetSelfHostedRunnerForOrg ¶
func GetSelfHostedRunnerForOrg(ctx context.Context, req *GetSelfHostedRunnerForOrgReq, opt ...requests.Option) (*GetSelfHostedRunnerForOrgResponse, error)
GetSelfHostedRunnerForOrg performs requests for "actions/get-self-hosted-runner-for-org"
Get a self-hosted runner for an organization.
GET /orgs/{org}/actions/runners/{runner_id}
func (*GetSelfHostedRunnerForOrgResponse) HTTPResponse ¶
func (r *GetSelfHostedRunnerForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetSelfHostedRunnerForOrgResponse) ReadResponse ¶
func (r *GetSelfHostedRunnerForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetSelfHostedRunnerForRepoReq ¶
type GetSelfHostedRunnerForRepoReq struct { Owner string Repo string // runner_id parameter RunnerId int64 // contains filtered or unexported fields }
GetSelfHostedRunnerForRepoReq is request data for Client.GetSelfHostedRunnerForRepo
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetSelfHostedRunnerForRepoReq) HTTPRequest ¶
func (r *GetSelfHostedRunnerForRepoReq) 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 (*GetSelfHostedRunnerForRepoReq) Rel ¶
func (r *GetSelfHostedRunnerForRepoReq) Rel(link string, resp *GetSelfHostedRunnerForRepoResponse) 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 GetSelfHostedRunnerForRepoResponse ¶
type GetSelfHostedRunnerForRepoResponse struct { Data components.Runner // contains filtered or unexported fields }
GetSelfHostedRunnerForRepoResponse is a response for GetSelfHostedRunnerForRepo
func GetSelfHostedRunnerForRepo ¶
func GetSelfHostedRunnerForRepo(ctx context.Context, req *GetSelfHostedRunnerForRepoReq, opt ...requests.Option) (*GetSelfHostedRunnerForRepoResponse, error)
GetSelfHostedRunnerForRepo performs requests for "actions/get-self-hosted-runner-for-repo"
Get a self-hosted runner for a repository.
GET /repos/{owner}/{repo}/actions/runners/{runner_id}
func (*GetSelfHostedRunnerForRepoResponse) HTTPResponse ¶
func (r *GetSelfHostedRunnerForRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetSelfHostedRunnerForRepoResponse) ReadResponse ¶
func (r *GetSelfHostedRunnerForRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetWorkflowReq ¶
type GetWorkflowReq struct { Owner string Repo string WorkflowId int64 // contains filtered or unexported fields }
GetWorkflowReq is request data for Client.GetWorkflow
https://developer.github.com/v3/actions/workflows/#get-a-workflow
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetWorkflowReq) HTTPRequest ¶
func (r *GetWorkflowReq) 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 (*GetWorkflowReq) Rel ¶
func (r *GetWorkflowReq) Rel(link string, resp *GetWorkflowResponse) 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 GetWorkflowResponse ¶
type GetWorkflowResponse struct { Data components.Workflow // contains filtered or unexported fields }
GetWorkflowResponse is a response for GetWorkflow
https://developer.github.com/v3/actions/workflows/#get-a-workflow
func GetWorkflow ¶
func GetWorkflow(ctx context.Context, req *GetWorkflowReq, opt ...requests.Option) (*GetWorkflowResponse, error)
GetWorkflow performs requests for "actions/get-workflow"
Get a workflow.
GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}
https://developer.github.com/v3/actions/workflows/#get-a-workflow
func (*GetWorkflowResponse) HTTPResponse ¶
func (r *GetWorkflowResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetWorkflowResponse) ReadResponse ¶
func (r *GetWorkflowResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetWorkflowRunReq ¶
type GetWorkflowRunReq struct { Owner string Repo string RunId int64 // contains filtered or unexported fields }
GetWorkflowRunReq is request data for Client.GetWorkflowRun
https://developer.github.com/v3/actions/workflow-runs/#get-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetWorkflowRunReq) HTTPRequest ¶
func (r *GetWorkflowRunReq) 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 (*GetWorkflowRunReq) Rel ¶
func (r *GetWorkflowRunReq) Rel(link string, resp *GetWorkflowRunResponse) 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 GetWorkflowRunResponse ¶
type GetWorkflowRunResponse struct { Data components.WorkflowRun // contains filtered or unexported fields }
GetWorkflowRunResponse is a response for GetWorkflowRun
https://developer.github.com/v3/actions/workflow-runs/#get-a-workflow-run
func GetWorkflowRun ¶
func GetWorkflowRun(ctx context.Context, req *GetWorkflowRunReq, opt ...requests.Option) (*GetWorkflowRunResponse, error)
GetWorkflowRun performs requests for "actions/get-workflow-run"
Get a workflow run.
GET /repos/{owner}/{repo}/actions/runs/{run_id}
https://developer.github.com/v3/actions/workflow-runs/#get-a-workflow-run
func (*GetWorkflowRunResponse) HTTPResponse ¶
func (r *GetWorkflowRunResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetWorkflowRunResponse) ReadResponse ¶
func (r *GetWorkflowRunResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetWorkflowRunUsageReq ¶
type GetWorkflowRunUsageReq struct { Owner string Repo string RunId int64 // contains filtered or unexported fields }
GetWorkflowRunUsageReq is request data for Client.GetWorkflowRunUsage
https://developer.github.com/v3/actions/workflow-runs/#get-workflow-run-usage
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetWorkflowRunUsageReq) HTTPRequest ¶
func (r *GetWorkflowRunUsageReq) 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 (*GetWorkflowRunUsageReq) Rel ¶
func (r *GetWorkflowRunUsageReq) Rel(link string, resp *GetWorkflowRunUsageResponse) 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 GetWorkflowRunUsageResponse ¶
type GetWorkflowRunUsageResponse struct { Data components.WorkflowRunUsage // contains filtered or unexported fields }
GetWorkflowRunUsageResponse is a response for GetWorkflowRunUsage
https://developer.github.com/v3/actions/workflow-runs/#get-workflow-run-usage
func GetWorkflowRunUsage ¶
func GetWorkflowRunUsage(ctx context.Context, req *GetWorkflowRunUsageReq, opt ...requests.Option) (*GetWorkflowRunUsageResponse, error)
GetWorkflowRunUsage performs requests for "actions/get-workflow-run-usage"
Get workflow run usage.
GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing
https://developer.github.com/v3/actions/workflow-runs/#get-workflow-run-usage
func (*GetWorkflowRunUsageResponse) HTTPResponse ¶
func (r *GetWorkflowRunUsageResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetWorkflowRunUsageResponse) ReadResponse ¶
func (r *GetWorkflowRunUsageResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetWorkflowUsageReq ¶
type GetWorkflowUsageReq struct { Owner string Repo string WorkflowId int64 // contains filtered or unexported fields }
GetWorkflowUsageReq is request data for Client.GetWorkflowUsage
https://developer.github.com/v3/actions/workflows/#get-workflow-usage
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetWorkflowUsageReq) HTTPRequest ¶
func (r *GetWorkflowUsageReq) 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 (*GetWorkflowUsageReq) Rel ¶
func (r *GetWorkflowUsageReq) Rel(link string, resp *GetWorkflowUsageResponse) 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 GetWorkflowUsageResponse ¶
type GetWorkflowUsageResponse struct { Data components.WorkflowUsage // contains filtered or unexported fields }
GetWorkflowUsageResponse is a response for GetWorkflowUsage
https://developer.github.com/v3/actions/workflows/#get-workflow-usage
func GetWorkflowUsage ¶
func GetWorkflowUsage(ctx context.Context, req *GetWorkflowUsageReq, opt ...requests.Option) (*GetWorkflowUsageResponse, error)
GetWorkflowUsage performs requests for "actions/get-workflow-usage"
Get workflow usage.
GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing
https://developer.github.com/v3/actions/workflows/#get-workflow-usage
func (*GetWorkflowUsageResponse) HTTPResponse ¶
func (r *GetWorkflowUsageResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetWorkflowUsageResponse) ReadResponse ¶
func (r *GetWorkflowUsageResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListArtifactsForRepoReq ¶
type ListArtifactsForRepoReq 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 }
ListArtifactsForRepoReq is request data for Client.ListArtifactsForRepo
https://developer.github.com/v3/actions/artifacts/#list-artifacts-for-a-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListArtifactsForRepoReq) HTTPRequest ¶
func (r *ListArtifactsForRepoReq) 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 (*ListArtifactsForRepoReq) Rel ¶
func (r *ListArtifactsForRepoReq) Rel(link string, resp *ListArtifactsForRepoResponse) 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 ListArtifactsForRepoResponse ¶
type ListArtifactsForRepoResponse struct { Data ListArtifactsForRepoResponseBody // contains filtered or unexported fields }
ListArtifactsForRepoResponse is a response for ListArtifactsForRepo
https://developer.github.com/v3/actions/artifacts/#list-artifacts-for-a-repository
func ListArtifactsForRepo ¶
func ListArtifactsForRepo(ctx context.Context, req *ListArtifactsForRepoReq, opt ...requests.Option) (*ListArtifactsForRepoResponse, error)
ListArtifactsForRepo performs requests for "actions/list-artifacts-for-repo"
List artifacts for a repository.
GET /repos/{owner}/{repo}/actions/artifacts
https://developer.github.com/v3/actions/artifacts/#list-artifacts-for-a-repository
func (*ListArtifactsForRepoResponse) HTTPResponse ¶
func (r *ListArtifactsForRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListArtifactsForRepoResponse) ReadResponse ¶
func (r *ListArtifactsForRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListArtifactsForRepoResponseBody ¶
type ListArtifactsForRepoResponseBody struct { Artifacts []components.Artifact `json:"artifacts,omitempty"` TotalCount int64 `json:"total_count,omitempty"` }
ListArtifactsForRepoResponseBody is a response body for ListArtifactsForRepo
https://developer.github.com/v3/actions/artifacts/#list-artifacts-for-a-repository
type ListJobsForWorkflowRunReq ¶
type ListJobsForWorkflowRunReq struct { Owner string Repo string RunId int64 /* Filters jobs by their `completed_at` timestamp. Can be one of: \* `latest`: Returns jobs from the most recent execution of the workflow run. \* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run. */ Filter *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListJobsForWorkflowRunReq is request data for Client.ListJobsForWorkflowRun
https://developer.github.com/v3/actions/workflow-jobs/#list-jobs-for-a-workflow-run
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListJobsForWorkflowRunReq) HTTPRequest ¶
func (r *ListJobsForWorkflowRunReq) 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 (*ListJobsForWorkflowRunReq) Rel ¶
func (r *ListJobsForWorkflowRunReq) Rel(link string, resp *ListJobsForWorkflowRunResponse) 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 ListJobsForWorkflowRunResponse ¶
type ListJobsForWorkflowRunResponse struct { Data ListJobsForWorkflowRunResponseBody // contains filtered or unexported fields }
ListJobsForWorkflowRunResponse is a response for ListJobsForWorkflowRun
https://developer.github.com/v3/actions/workflow-jobs/#list-jobs-for-a-workflow-run
func ListJobsForWorkflowRun ¶
func ListJobsForWorkflowRun(ctx context.Context, req *ListJobsForWorkflowRunReq, opt ...requests.Option) (*ListJobsForWorkflowRunResponse, error)
ListJobsForWorkflowRun performs requests for "actions/list-jobs-for-workflow-run"
List jobs for a workflow run.
GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs
https://developer.github.com/v3/actions/workflow-jobs/#list-jobs-for-a-workflow-run
func (*ListJobsForWorkflowRunResponse) HTTPResponse ¶
func (r *ListJobsForWorkflowRunResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListJobsForWorkflowRunResponse) ReadResponse ¶
func (r *ListJobsForWorkflowRunResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListJobsForWorkflowRunResponseBody ¶
type ListJobsForWorkflowRunResponseBody struct { Jobs []components.Job `json:"jobs,omitempty"` TotalCount int64 `json:"total_count,omitempty"` }
ListJobsForWorkflowRunResponseBody is a response body for ListJobsForWorkflowRun
https://developer.github.com/v3/actions/workflow-jobs/#list-jobs-for-a-workflow-run
type ListOrgSecretsReq ¶
type ListOrgSecretsReq struct { Org string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListOrgSecretsReq is request data for Client.ListOrgSecrets
https://developer.github.com/v3/actions/secrets/#list-organization-secrets
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListOrgSecretsReq) HTTPRequest ¶
func (r *ListOrgSecretsReq) 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 (*ListOrgSecretsReq) Rel ¶
func (r *ListOrgSecretsReq) Rel(link string, resp *ListOrgSecretsResponse) 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 ListOrgSecretsResponse ¶
type ListOrgSecretsResponse struct { Data ListOrgSecretsResponseBody // contains filtered or unexported fields }
ListOrgSecretsResponse is a response for ListOrgSecrets
https://developer.github.com/v3/actions/secrets/#list-organization-secrets
func ListOrgSecrets ¶
func ListOrgSecrets(ctx context.Context, req *ListOrgSecretsReq, opt ...requests.Option) (*ListOrgSecretsResponse, error)
ListOrgSecrets performs requests for "actions/list-org-secrets"
List organization secrets.
GET /orgs/{org}/actions/secrets
https://developer.github.com/v3/actions/secrets/#list-organization-secrets
func (*ListOrgSecretsResponse) HTTPResponse ¶
func (r *ListOrgSecretsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListOrgSecretsResponse) ReadResponse ¶
func (r *ListOrgSecretsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListOrgSecretsResponseBody ¶
type ListOrgSecretsResponseBody struct { Secrets []components.OrganizationActionsSecret `json:"secrets,omitempty"` TotalCount int64 `json:"total_count,omitempty"` }
ListOrgSecretsResponseBody is a response body for ListOrgSecrets
https://developer.github.com/v3/actions/secrets/#list-organization-secrets
type ListRepoSecretsReq ¶
type ListRepoSecretsReq 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 }
ListRepoSecretsReq is request data for Client.ListRepoSecrets
https://developer.github.com/v3/actions/secrets/#list-repository-secrets
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListRepoSecretsReq) HTTPRequest ¶
func (r *ListRepoSecretsReq) 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 (*ListRepoSecretsReq) Rel ¶
func (r *ListRepoSecretsReq) Rel(link string, resp *ListRepoSecretsResponse) 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 ListRepoSecretsResponse ¶
type ListRepoSecretsResponse struct { Data ListRepoSecretsResponseBody // contains filtered or unexported fields }
ListRepoSecretsResponse is a response for ListRepoSecrets
https://developer.github.com/v3/actions/secrets/#list-repository-secrets
func ListRepoSecrets ¶
func ListRepoSecrets(ctx context.Context, req *ListRepoSecretsReq, opt ...requests.Option) (*ListRepoSecretsResponse, error)
ListRepoSecrets performs requests for "actions/list-repo-secrets"
List repository secrets.
GET /repos/{owner}/{repo}/actions/secrets
https://developer.github.com/v3/actions/secrets/#list-repository-secrets
func (*ListRepoSecretsResponse) HTTPResponse ¶
func (r *ListRepoSecretsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListRepoSecretsResponse) ReadResponse ¶
func (r *ListRepoSecretsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListRepoSecretsResponseBody ¶
type ListRepoSecretsResponseBody struct { Secrets []components.ActionsSecret `json:"secrets,omitempty"` TotalCount int64 `json:"total_count,omitempty"` }
ListRepoSecretsResponseBody is a response body for ListRepoSecrets
https://developer.github.com/v3/actions/secrets/#list-repository-secrets
type ListRepoWorkflowsReq ¶
type ListRepoWorkflowsReq 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 }
ListRepoWorkflowsReq is request data for Client.ListRepoWorkflows
https://developer.github.com/v3/actions/workflows/#list-repository-workflows
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListRepoWorkflowsReq) HTTPRequest ¶
func (r *ListRepoWorkflowsReq) 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 (*ListRepoWorkflowsReq) Rel ¶
func (r *ListRepoWorkflowsReq) Rel(link string, resp *ListRepoWorkflowsResponse) 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 ListRepoWorkflowsResponse ¶
type ListRepoWorkflowsResponse struct { Data ListRepoWorkflowsResponseBody // contains filtered or unexported fields }
ListRepoWorkflowsResponse is a response for ListRepoWorkflows
https://developer.github.com/v3/actions/workflows/#list-repository-workflows
func ListRepoWorkflows ¶
func ListRepoWorkflows(ctx context.Context, req *ListRepoWorkflowsReq, opt ...requests.Option) (*ListRepoWorkflowsResponse, error)
ListRepoWorkflows performs requests for "actions/list-repo-workflows"
List repository workflows.
GET /repos/{owner}/{repo}/actions/workflows
https://developer.github.com/v3/actions/workflows/#list-repository-workflows
func (*ListRepoWorkflowsResponse) HTTPResponse ¶
func (r *ListRepoWorkflowsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListRepoWorkflowsResponse) ReadResponse ¶
func (r *ListRepoWorkflowsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListRepoWorkflowsResponseBody ¶
type ListRepoWorkflowsResponseBody struct { TotalCount int64 `json:"total_count,omitempty"` Workflows []components.Workflow `json:"workflows,omitempty"` }
ListRepoWorkflowsResponseBody is a response body for ListRepoWorkflows
https://developer.github.com/v3/actions/workflows/#list-repository-workflows
type ListRunnerApplicationsForOrgReq ¶
type ListRunnerApplicationsForOrgReq struct { Org string // contains filtered or unexported fields }
ListRunnerApplicationsForOrgReq is request data for Client.ListRunnerApplicationsForOrg
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListRunnerApplicationsForOrgReq) HTTPRequest ¶
func (r *ListRunnerApplicationsForOrgReq) 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 (*ListRunnerApplicationsForOrgReq) Rel ¶
func (r *ListRunnerApplicationsForOrgReq) Rel(link string, resp *ListRunnerApplicationsForOrgResponse) 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 ListRunnerApplicationsForOrgResponse ¶
type ListRunnerApplicationsForOrgResponse struct { Data []components.RunnerApplication // contains filtered or unexported fields }
ListRunnerApplicationsForOrgResponse is a response for ListRunnerApplicationsForOrg
func ListRunnerApplicationsForOrg ¶
func ListRunnerApplicationsForOrg(ctx context.Context, req *ListRunnerApplicationsForOrgReq, opt ...requests.Option) (*ListRunnerApplicationsForOrgResponse, error)
ListRunnerApplicationsForOrg performs requests for "actions/list-runner-applications-for-org"
List runner applications for an organization.
GET /orgs/{org}/actions/runners/downloads
func (*ListRunnerApplicationsForOrgResponse) HTTPResponse ¶
func (r *ListRunnerApplicationsForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListRunnerApplicationsForOrgResponse) ReadResponse ¶
func (r *ListRunnerApplicationsForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListRunnerApplicationsForRepoReq ¶
type ListRunnerApplicationsForRepoReq struct { Owner string Repo string // contains filtered or unexported fields }
ListRunnerApplicationsForRepoReq is request data for Client.ListRunnerApplicationsForRepo
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListRunnerApplicationsForRepoReq) HTTPRequest ¶
func (r *ListRunnerApplicationsForRepoReq) 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 (*ListRunnerApplicationsForRepoReq) Rel ¶
func (r *ListRunnerApplicationsForRepoReq) Rel(link string, resp *ListRunnerApplicationsForRepoResponse) 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 ListRunnerApplicationsForRepoResponse ¶
type ListRunnerApplicationsForRepoResponse struct { Data []components.RunnerApplication // contains filtered or unexported fields }
ListRunnerApplicationsForRepoResponse is a response for ListRunnerApplicationsForRepo
func ListRunnerApplicationsForRepo ¶
func ListRunnerApplicationsForRepo(ctx context.Context, req *ListRunnerApplicationsForRepoReq, opt ...requests.Option) (*ListRunnerApplicationsForRepoResponse, error)
ListRunnerApplicationsForRepo performs requests for "actions/list-runner-applications-for-repo"
List runner applications for a repository.
GET /repos/{owner}/{repo}/actions/runners/downloads
func (*ListRunnerApplicationsForRepoResponse) HTTPResponse ¶
func (r *ListRunnerApplicationsForRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListRunnerApplicationsForRepoResponse) ReadResponse ¶
func (r *ListRunnerApplicationsForRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListSelectedReposForOrgSecretReq ¶
type ListSelectedReposForOrgSecretReq struct { Org string // secret_name parameter SecretName string // contains filtered or unexported fields }
ListSelectedReposForOrgSecretReq is request data for Client.ListSelectedReposForOrgSecret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListSelectedReposForOrgSecretReq) HTTPRequest ¶
func (r *ListSelectedReposForOrgSecretReq) 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 (*ListSelectedReposForOrgSecretReq) Rel ¶
func (r *ListSelectedReposForOrgSecretReq) Rel(link string, resp *ListSelectedReposForOrgSecretResponse) 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 ListSelectedReposForOrgSecretResponse ¶
type ListSelectedReposForOrgSecretResponse struct { Data ListSelectedReposForOrgSecretResponseBody // contains filtered or unexported fields }
ListSelectedReposForOrgSecretResponse is a response for ListSelectedReposForOrgSecret
func ListSelectedReposForOrgSecret ¶
func ListSelectedReposForOrgSecret(ctx context.Context, req *ListSelectedReposForOrgSecretReq, opt ...requests.Option) (*ListSelectedReposForOrgSecretResponse, error)
ListSelectedReposForOrgSecret performs requests for "actions/list-selected-repos-for-org-secret"
List selected repositories for an organization secret.
GET /orgs/{org}/actions/secrets/{secret_name}/repositories
func (*ListSelectedReposForOrgSecretResponse) HTTPResponse ¶
func (r *ListSelectedReposForOrgSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListSelectedReposForOrgSecretResponse) ReadResponse ¶
func (r *ListSelectedReposForOrgSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListSelectedReposForOrgSecretResponseBody ¶
type ListSelectedReposForOrgSecretResponseBody struct { Repositories []components.MinimalRepository `json:"repositories,omitempty"` TotalCount int64 `json:"total_count,omitempty"` }
ListSelectedReposForOrgSecretResponseBody is a response body for ListSelectedReposForOrgSecret
type ListSelfHostedRunnersForOrgReq ¶
type ListSelfHostedRunnersForOrgReq struct { Org string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListSelfHostedRunnersForOrgReq is request data for Client.ListSelfHostedRunnersForOrg
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListSelfHostedRunnersForOrgReq) HTTPRequest ¶
func (r *ListSelfHostedRunnersForOrgReq) 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 (*ListSelfHostedRunnersForOrgReq) Rel ¶
func (r *ListSelfHostedRunnersForOrgReq) Rel(link string, resp *ListSelfHostedRunnersForOrgResponse) 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 ListSelfHostedRunnersForOrgResponse ¶
type ListSelfHostedRunnersForOrgResponse struct { Data ListSelfHostedRunnersForOrgResponseBody // contains filtered or unexported fields }
ListSelfHostedRunnersForOrgResponse is a response for ListSelfHostedRunnersForOrg
func ListSelfHostedRunnersForOrg ¶
func ListSelfHostedRunnersForOrg(ctx context.Context, req *ListSelfHostedRunnersForOrgReq, opt ...requests.Option) (*ListSelfHostedRunnersForOrgResponse, error)
ListSelfHostedRunnersForOrg performs requests for "actions/list-self-hosted-runners-for-org"
List self-hosted runners for an organization.
GET /orgs/{org}/actions/runners
func (*ListSelfHostedRunnersForOrgResponse) HTTPResponse ¶
func (r *ListSelfHostedRunnersForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListSelfHostedRunnersForOrgResponse) ReadResponse ¶
func (r *ListSelfHostedRunnersForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListSelfHostedRunnersForOrgResponseBody ¶
type ListSelfHostedRunnersForOrgResponseBody struct { Runners []components.Runner `json:"runners,omitempty"` TotalCount int64 `json:"total_count,omitempty"` }
ListSelfHostedRunnersForOrgResponseBody is a response body for ListSelfHostedRunnersForOrg
type ListSelfHostedRunnersForRepoReq ¶
type ListSelfHostedRunnersForRepoReq 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 }
ListSelfHostedRunnersForRepoReq is request data for Client.ListSelfHostedRunnersForRepo
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListSelfHostedRunnersForRepoReq) HTTPRequest ¶
func (r *ListSelfHostedRunnersForRepoReq) 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 (*ListSelfHostedRunnersForRepoReq) Rel ¶
func (r *ListSelfHostedRunnersForRepoReq) Rel(link string, resp *ListSelfHostedRunnersForRepoResponse) 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 ListSelfHostedRunnersForRepoResponse ¶
type ListSelfHostedRunnersForRepoResponse struct { Data ListSelfHostedRunnersForRepoResponseBody // contains filtered or unexported fields }
ListSelfHostedRunnersForRepoResponse is a response for ListSelfHostedRunnersForRepo
func ListSelfHostedRunnersForRepo ¶
func ListSelfHostedRunnersForRepo(ctx context.Context, req *ListSelfHostedRunnersForRepoReq, opt ...requests.Option) (*ListSelfHostedRunnersForRepoResponse, error)
ListSelfHostedRunnersForRepo performs requests for "actions/list-self-hosted-runners-for-repo"
List self-hosted runners for a repository.
GET /repos/{owner}/{repo}/actions/runners
func (*ListSelfHostedRunnersForRepoResponse) HTTPResponse ¶
func (r *ListSelfHostedRunnersForRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListSelfHostedRunnersForRepoResponse) ReadResponse ¶
func (r *ListSelfHostedRunnersForRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListSelfHostedRunnersForRepoResponseBody ¶
type ListSelfHostedRunnersForRepoResponseBody struct { Runners []components.Runner `json:"runners,omitempty"` TotalCount int64 `json:"total_count,omitempty"` }
ListSelfHostedRunnersForRepoResponseBody is a response body for ListSelfHostedRunnersForRepo
type ListWorkflowRunArtifactsReq ¶
type ListWorkflowRunArtifactsReq struct { Owner string Repo string RunId int64 // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListWorkflowRunArtifactsReq is request data for Client.ListWorkflowRunArtifacts
https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListWorkflowRunArtifactsReq) HTTPRequest ¶
func (r *ListWorkflowRunArtifactsReq) 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 (*ListWorkflowRunArtifactsReq) Rel ¶
func (r *ListWorkflowRunArtifactsReq) Rel(link string, resp *ListWorkflowRunArtifactsResponse) 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 ListWorkflowRunArtifactsResponse ¶
type ListWorkflowRunArtifactsResponse struct { Data ListWorkflowRunArtifactsResponseBody // contains filtered or unexported fields }
ListWorkflowRunArtifactsResponse is a response for ListWorkflowRunArtifacts
https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts
func ListWorkflowRunArtifacts ¶
func ListWorkflowRunArtifacts(ctx context.Context, req *ListWorkflowRunArtifactsReq, opt ...requests.Option) (*ListWorkflowRunArtifactsResponse, error)
ListWorkflowRunArtifacts performs requests for "actions/list-workflow-run-artifacts"
List workflow run artifacts.
GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts
https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts
func (*ListWorkflowRunArtifactsResponse) HTTPResponse ¶
func (r *ListWorkflowRunArtifactsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListWorkflowRunArtifactsResponse) ReadResponse ¶
func (r *ListWorkflowRunArtifactsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListWorkflowRunArtifactsResponseBody ¶
type ListWorkflowRunArtifactsResponseBody struct { Artifacts []components.Artifact `json:"artifacts,omitempty"` TotalCount int64 `json:"total_count,omitempty"` }
ListWorkflowRunArtifactsResponseBody is a response body for ListWorkflowRunArtifacts
https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts
type ListWorkflowRunsForRepoReq ¶
type ListWorkflowRunsForRepoReq struct { Owner string Repo string /* Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. */ Actor *string /* Returns workflow runs associated with a branch. Use the name of the branch of the `push`. */ Branch *string /* Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." */ Event *string /* Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." */ Status *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListWorkflowRunsForRepoReq is request data for Client.ListWorkflowRunsForRepo
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs-for-a-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListWorkflowRunsForRepoReq) HTTPRequest ¶
func (r *ListWorkflowRunsForRepoReq) 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 (*ListWorkflowRunsForRepoReq) Rel ¶
func (r *ListWorkflowRunsForRepoReq) Rel(link string, resp *ListWorkflowRunsForRepoResponse) 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 ListWorkflowRunsForRepoResponse ¶
type ListWorkflowRunsForRepoResponse struct { Data ListWorkflowRunsForRepoResponseBody // contains filtered or unexported fields }
ListWorkflowRunsForRepoResponse is a response for ListWorkflowRunsForRepo
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs-for-a-repository
func ListWorkflowRunsForRepo ¶
func ListWorkflowRunsForRepo(ctx context.Context, req *ListWorkflowRunsForRepoReq, opt ...requests.Option) (*ListWorkflowRunsForRepoResponse, error)
ListWorkflowRunsForRepo performs requests for "actions/list-workflow-runs-for-repo"
List workflow runs for a repository.
GET /repos/{owner}/{repo}/actions/runs
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs-for-a-repository
func (*ListWorkflowRunsForRepoResponse) HTTPResponse ¶
func (r *ListWorkflowRunsForRepoResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListWorkflowRunsForRepoResponse) ReadResponse ¶
func (r *ListWorkflowRunsForRepoResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListWorkflowRunsForRepoResponseBody ¶
type ListWorkflowRunsForRepoResponseBody struct { TotalCount int64 `json:"total_count,omitempty"` WorkflowRuns []components.WorkflowRun `json:"workflow_runs,omitempty"` }
ListWorkflowRunsForRepoResponseBody is a response body for ListWorkflowRunsForRepo
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs-for-a-repository
type ListWorkflowRunsReq ¶
type ListWorkflowRunsReq struct { Owner string Repo string WorkflowId int64 /* Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. */ Actor *string /* Returns workflow runs associated with a branch. Use the name of the branch of the `push`. */ Branch *string /* Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." */ Event *string /* Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." */ Status *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListWorkflowRunsReq is request data for Client.ListWorkflowRuns
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListWorkflowRunsReq) HTTPRequest ¶
func (r *ListWorkflowRunsReq) 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 (*ListWorkflowRunsReq) Rel ¶
func (r *ListWorkflowRunsReq) Rel(link string, resp *ListWorkflowRunsResponse) 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 ListWorkflowRunsResponse ¶
type ListWorkflowRunsResponse struct { Data ListWorkflowRunsResponseBody // contains filtered or unexported fields }
ListWorkflowRunsResponse is a response for ListWorkflowRuns
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs
func ListWorkflowRuns ¶
func ListWorkflowRuns(ctx context.Context, req *ListWorkflowRunsReq, opt ...requests.Option) (*ListWorkflowRunsResponse, error)
ListWorkflowRuns performs requests for "actions/list-workflow-runs"
List workflow runs.
GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs
func (*ListWorkflowRunsResponse) HTTPResponse ¶
func (r *ListWorkflowRunsResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListWorkflowRunsResponse) ReadResponse ¶
func (r *ListWorkflowRunsResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListWorkflowRunsResponseBody ¶
type ListWorkflowRunsResponseBody struct { TotalCount int64 `json:"total_count,omitempty"` WorkflowRuns []components.WorkflowRun `json:"workflow_runs,omitempty"` }
ListWorkflowRunsResponseBody is a response body for ListWorkflowRuns
https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs
type ReRunWorkflowReq ¶
type ReRunWorkflowReq struct { Owner string Repo string RunId int64 // contains filtered or unexported fields }
ReRunWorkflowReq is request data for Client.ReRunWorkflow
https://developer.github.com/v3/actions/workflow-runs/#re-run-a-workflow
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ReRunWorkflowReq) HTTPRequest ¶
func (r *ReRunWorkflowReq) 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 (*ReRunWorkflowReq) Rel ¶
func (r *ReRunWorkflowReq) Rel(link string, resp *ReRunWorkflowResponse) 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 ReRunWorkflowResponse ¶
type ReRunWorkflowResponse struct {
// contains filtered or unexported fields
}
ReRunWorkflowResponse is a response for ReRunWorkflow
https://developer.github.com/v3/actions/workflow-runs/#re-run-a-workflow
func ReRunWorkflow ¶
func ReRunWorkflow(ctx context.Context, req *ReRunWorkflowReq, opt ...requests.Option) (*ReRunWorkflowResponse, error)
ReRunWorkflow performs requests for "actions/re-run-workflow"
Re-run a workflow.
POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun
https://developer.github.com/v3/actions/workflow-runs/#re-run-a-workflow
func (*ReRunWorkflowResponse) HTTPResponse ¶
func (r *ReRunWorkflowResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ReRunWorkflowResponse) ReadResponse ¶
func (r *ReRunWorkflowResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type RemoveSelectedRepoFromOrgSecretReq ¶
type RemoveSelectedRepoFromOrgSecretReq struct { Org string // secret_name parameter SecretName string // repository_id parameter RepositoryId int64 // contains filtered or unexported fields }
RemoveSelectedRepoFromOrgSecretReq is request data for Client.RemoveSelectedRepoFromOrgSecret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*RemoveSelectedRepoFromOrgSecretReq) HTTPRequest ¶
func (r *RemoveSelectedRepoFromOrgSecretReq) 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 (*RemoveSelectedRepoFromOrgSecretReq) Rel ¶
func (r *RemoveSelectedRepoFromOrgSecretReq) Rel(link string, resp *RemoveSelectedRepoFromOrgSecretResponse) 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 RemoveSelectedRepoFromOrgSecretResponse ¶
type RemoveSelectedRepoFromOrgSecretResponse struct {
// contains filtered or unexported fields
}
RemoveSelectedRepoFromOrgSecretResponse is a response for RemoveSelectedRepoFromOrgSecret
func RemoveSelectedRepoFromOrgSecret ¶
func RemoveSelectedRepoFromOrgSecret(ctx context.Context, req *RemoveSelectedRepoFromOrgSecretReq, opt ...requests.Option) (*RemoveSelectedRepoFromOrgSecretResponse, error)
RemoveSelectedRepoFromOrgSecret performs requests for "actions/remove-selected-repo-from-org-secret"
Remove selected repository from an organization secret.
DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
func (*RemoveSelectedRepoFromOrgSecretResponse) HTTPResponse ¶
func (r *RemoveSelectedRepoFromOrgSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*RemoveSelectedRepoFromOrgSecretResponse) ReadResponse ¶
func (r *RemoveSelectedRepoFromOrgSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type SetSelectedReposForOrgSecretReq ¶
type SetSelectedReposForOrgSecretReq struct { Org string // secret_name parameter SecretName string RequestBody SetSelectedReposForOrgSecretReqBody // contains filtered or unexported fields }
SetSelectedReposForOrgSecretReq is request data for Client.SetSelectedReposForOrgSecret
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*SetSelectedReposForOrgSecretReq) HTTPRequest ¶
func (r *SetSelectedReposForOrgSecretReq) 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 (*SetSelectedReposForOrgSecretReq) Rel ¶
func (r *SetSelectedReposForOrgSecretReq) Rel(link string, resp *SetSelectedReposForOrgSecretResponse) 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 SetSelectedReposForOrgSecretReqBody ¶
type SetSelectedReposForOrgSecretReqBody struct { /* An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://developer.github.com/v3/actions/secrets/#remove-selected-repository-from-an-organization-secret) endpoints. */ SelectedRepositoryIds []int64 `json:"selected_repository_ids,omitempty"` }
SetSelectedReposForOrgSecretReqBody is a request body for actions/set-selected-repos-for-org-secret
type SetSelectedReposForOrgSecretResponse ¶
type SetSelectedReposForOrgSecretResponse struct {
// contains filtered or unexported fields
}
SetSelectedReposForOrgSecretResponse is a response for SetSelectedReposForOrgSecret
func SetSelectedReposForOrgSecret ¶
func SetSelectedReposForOrgSecret(ctx context.Context, req *SetSelectedReposForOrgSecretReq, opt ...requests.Option) (*SetSelectedReposForOrgSecretResponse, error)
SetSelectedReposForOrgSecret performs requests for "actions/set-selected-repos-for-org-secret"
Set selected repositories for an organization secret.
PUT /orgs/{org}/actions/secrets/{secret_name}/repositories
func (*SetSelectedReposForOrgSecretResponse) HTTPResponse ¶
func (r *SetSelectedReposForOrgSecretResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*SetSelectedReposForOrgSecretResponse) ReadResponse ¶
func (r *SetSelectedReposForOrgSecretResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.