actions

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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

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

func (*AddSelectedRepoToOrgSecretReq) Rel

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

type 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

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

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

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

type Client []requests.Option

Client is a set of options to apply to requests

func NewClient

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

NewClient returns a new Client

func (Client) 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

CreateRegistrationTokenForOrg performs requests for "actions/create-registration-token-for-org"

Create a registration token for an organization.

POST /orgs/{org}/actions/runners/registration-token

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-an-organization

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

func (Client) CreateRegistrationTokenForRepo

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

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-a-repository

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

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-an-organization

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

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}

https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-an-organization

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

func (Client) DeleteSelfHostedRunnerFromRepo

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}

https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-a-repository

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

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}

https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-an-organization

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}

https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-a-repository

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

ListRunnerApplicationsForOrg performs requests for "actions/list-runner-applications-for-org"

List runner applications for an organization.

GET /orgs/{org}/actions/runners/downloads

https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-an-organization

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

func (Client) ListRunnerApplicationsForRepo

ListRunnerApplicationsForRepo performs requests for "actions/list-runner-applications-for-repo"

List runner applications for a repository.

GET /repos/{owner}/{repo}/actions/runners/downloads

https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-a-repository

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

func (Client) ListSelectedReposForOrgSecret

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

https://developer.github.com/v3/actions/secrets/#list-selected-repositories-for-an-organization-secret

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

func (Client) ListSelfHostedRunnersForOrg

ListSelfHostedRunnersForOrg performs requests for "actions/list-self-hosted-runners-for-org"

List self-hosted runners for an organization.

GET /orgs/{org}/actions/runners

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization

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

func (Client) ListSelfHostedRunnersForRepo

ListSelfHostedRunnersForRepo performs requests for "actions/list-self-hosted-runners-for-repo"

List self-hosted runners for a repository.

GET /repos/{owner}/{repo}/actions/runners

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository

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

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}

https://developer.github.com/v3/actions/secrets/#remove-selected-repository-from-an-organization-secret

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

func (Client) SetSelectedReposForOrgSecret

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

https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret

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

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

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

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

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-an-organization

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

func (*CreateRegistrationTokenForOrgReq) HTTPRequest

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

func (*CreateRegistrationTokenForOrgReq) Rel

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

type CreateRegistrationTokenForOrgResponse

type CreateRegistrationTokenForOrgResponse struct {
	Data components.AuthenticationToken
	// contains filtered or unexported fields
}

CreateRegistrationTokenForOrgResponse is a response for CreateRegistrationTokenForOrg

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-an-organization

func CreateRegistrationTokenForOrg

CreateRegistrationTokenForOrg performs requests for "actions/create-registration-token-for-org"

Create a registration token for an organization.

POST /orgs/{org}/actions/runners/registration-token

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-an-organization

func (*CreateRegistrationTokenForOrgResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CreateRegistrationTokenForOrgResponse) ReadResponse

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

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-a-repository

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

func (*CreateRegistrationTokenForRepoReq) HTTPRequest

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

func (*CreateRegistrationTokenForRepoReq) Rel

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

type CreateRegistrationTokenForRepoResponse

type CreateRegistrationTokenForRepoResponse struct {
	Data components.AuthenticationToken
	// contains filtered or unexported fields
}

CreateRegistrationTokenForRepoResponse is a response for CreateRegistrationTokenForRepo

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-a-repository

func CreateRegistrationTokenForRepo

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

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-a-repository

func (*CreateRegistrationTokenForRepoResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CreateRegistrationTokenForRepoResponse) ReadResponse

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

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-an-organization

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

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

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-an-organization

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

https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-an-organization

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

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

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

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

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

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

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

https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-an-organization

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

func (*DeleteSelfHostedRunnerFromOrgReq) HTTPRequest

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

func (*DeleteSelfHostedRunnerFromOrgReq) Rel

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

type DeleteSelfHostedRunnerFromOrgResponse

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

DeleteSelfHostedRunnerFromOrgResponse is a response for DeleteSelfHostedRunnerFromOrg

https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-an-organization

func DeleteSelfHostedRunnerFromOrg

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}

https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-an-organization

func (*DeleteSelfHostedRunnerFromOrgResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*DeleteSelfHostedRunnerFromOrgResponse) ReadResponse

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

https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-a-repository

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

func (*DeleteSelfHostedRunnerFromRepoReq) HTTPRequest

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

func (*DeleteSelfHostedRunnerFromRepoReq) Rel

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

type DeleteSelfHostedRunnerFromRepoResponse

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

DeleteSelfHostedRunnerFromRepoResponse is a response for DeleteSelfHostedRunnerFromRepo

https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-a-repository

func DeleteSelfHostedRunnerFromRepo

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}

https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-a-repository

func (*DeleteSelfHostedRunnerFromRepoResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*DeleteSelfHostedRunnerFromRepoResponse) ReadResponse

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

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

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

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

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

func (*DownloadJobLogsForWorkflowRunReq) Rel

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

type 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

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

HTTPResponse returns the *http.Response

func (*DownloadJobLogsForWorkflowRunResponse) ReadResponse

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

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

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

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

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

https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-an-organization

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

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

https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-an-organization

func GetSelfHostedRunnerForOrg

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}

https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-an-organization

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

https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-a-repository

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

func (*GetSelfHostedRunnerForRepoReq) HTTPRequest

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

func (*GetSelfHostedRunnerForRepoReq) Rel

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

type GetSelfHostedRunnerForRepoResponse

type GetSelfHostedRunnerForRepoResponse struct {
	Data components.Runner
	// contains filtered or unexported fields
}

GetSelfHostedRunnerForRepoResponse is a response for GetSelfHostedRunnerForRepo

https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-a-repository

func GetSelfHostedRunnerForRepo

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}

https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-a-repository

func (*GetSelfHostedRunnerForRepoResponse) HTTPResponse

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

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

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

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

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

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

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

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

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

https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-an-organization

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

func (*ListRunnerApplicationsForOrgReq) HTTPRequest

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

func (*ListRunnerApplicationsForOrgReq) Rel

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

type ListRunnerApplicationsForOrgResponse

type ListRunnerApplicationsForOrgResponse struct {
	Data []components.RunnerApplication
	// contains filtered or unexported fields
}

ListRunnerApplicationsForOrgResponse is a response for ListRunnerApplicationsForOrg

https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-an-organization

func ListRunnerApplicationsForOrg

ListRunnerApplicationsForOrg performs requests for "actions/list-runner-applications-for-org"

List runner applications for an organization.

GET /orgs/{org}/actions/runners/downloads

https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-an-organization

func (*ListRunnerApplicationsForOrgResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListRunnerApplicationsForOrgResponse) ReadResponse

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

https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-a-repository

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

func (*ListRunnerApplicationsForRepoReq) HTTPRequest

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

func (*ListRunnerApplicationsForRepoReq) Rel

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

type ListRunnerApplicationsForRepoResponse

type ListRunnerApplicationsForRepoResponse struct {
	Data []components.RunnerApplication
	// contains filtered or unexported fields
}

ListRunnerApplicationsForRepoResponse is a response for ListRunnerApplicationsForRepo

https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-a-repository

func ListRunnerApplicationsForRepo

ListRunnerApplicationsForRepo performs requests for "actions/list-runner-applications-for-repo"

List runner applications for a repository.

GET /repos/{owner}/{repo}/actions/runners/downloads

https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-a-repository

func (*ListRunnerApplicationsForRepoResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListRunnerApplicationsForRepoResponse) ReadResponse

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

https://developer.github.com/v3/actions/secrets/#list-selected-repositories-for-an-organization-secret

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

func (*ListSelectedReposForOrgSecretReq) HTTPRequest

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

func (*ListSelectedReposForOrgSecretReq) Rel

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

type ListSelectedReposForOrgSecretResponse

type ListSelectedReposForOrgSecretResponse struct {
	Data ListSelectedReposForOrgSecretResponseBody
	// contains filtered or unexported fields
}

ListSelectedReposForOrgSecretResponse is a response for ListSelectedReposForOrgSecret

https://developer.github.com/v3/actions/secrets/#list-selected-repositories-for-an-organization-secret

func ListSelectedReposForOrgSecret

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

https://developer.github.com/v3/actions/secrets/#list-selected-repositories-for-an-organization-secret

func (*ListSelectedReposForOrgSecretResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListSelectedReposForOrgSecretResponse) ReadResponse

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

https://developer.github.com/v3/actions/secrets/#list-selected-repositories-for-an-organization-secret

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

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization

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

func (*ListSelfHostedRunnersForOrgReq) HTTPRequest

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

func (*ListSelfHostedRunnersForOrgReq) Rel

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

type ListSelfHostedRunnersForOrgResponse

type ListSelfHostedRunnersForOrgResponse struct {
	Data ListSelfHostedRunnersForOrgResponseBody
	// contains filtered or unexported fields
}

ListSelfHostedRunnersForOrgResponse is a response for ListSelfHostedRunnersForOrg

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization

func ListSelfHostedRunnersForOrg

ListSelfHostedRunnersForOrg performs requests for "actions/list-self-hosted-runners-for-org"

List self-hosted runners for an organization.

GET /orgs/{org}/actions/runners

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization

func (*ListSelfHostedRunnersForOrgResponse) HTTPResponse

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

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization

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

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository

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

func (*ListSelfHostedRunnersForRepoReq) HTTPRequest

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

func (*ListSelfHostedRunnersForRepoReq) Rel

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

type ListSelfHostedRunnersForRepoResponse

type ListSelfHostedRunnersForRepoResponse struct {
	Data ListSelfHostedRunnersForRepoResponseBody
	// contains filtered or unexported fields
}

ListSelfHostedRunnersForRepoResponse is a response for ListSelfHostedRunnersForRepo

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository

func ListSelfHostedRunnersForRepo

ListSelfHostedRunnersForRepo performs requests for "actions/list-self-hosted-runners-for-repo"

List self-hosted runners for a repository.

GET /repos/{owner}/{repo}/actions/runners

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository

func (*ListSelfHostedRunnersForRepoResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListSelfHostedRunnersForRepoResponse) ReadResponse

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

https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository

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

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

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

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

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

https://developer.github.com/v3/actions/secrets/#remove-selected-repository-from-an-organization-secret

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

func (*RemoveSelectedRepoFromOrgSecretReq) HTTPRequest

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

func (*RemoveSelectedRepoFromOrgSecretReq) Rel

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

type RemoveSelectedRepoFromOrgSecretResponse

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

RemoveSelectedRepoFromOrgSecretResponse is a response for RemoveSelectedRepoFromOrgSecret

https://developer.github.com/v3/actions/secrets/#remove-selected-repository-from-an-organization-secret

func RemoveSelectedRepoFromOrgSecret

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}

https://developer.github.com/v3/actions/secrets/#remove-selected-repository-from-an-organization-secret

func (*RemoveSelectedRepoFromOrgSecretResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*RemoveSelectedRepoFromOrgSecretResponse) ReadResponse

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

https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret

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

func (*SetSelectedReposForOrgSecretReq) HTTPRequest

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

func (*SetSelectedReposForOrgSecretReq) Rel

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

type 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

https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret

type SetSelectedReposForOrgSecretResponse

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

SetSelectedReposForOrgSecretResponse is a response for SetSelectedReposForOrgSecret

https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret

func SetSelectedReposForOrgSecret

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

https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret

func (*SetSelectedReposForOrgSecretResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*SetSelectedReposForOrgSecretResponse) ReadResponse

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

Jump to

Keyboard shortcuts

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