orgs

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 BlockUserReq

type BlockUserReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

BlockUserReq is request data for Client.BlockUser

https://developer.github.com/v3/orgs/blocking/#block-a-user-from-an-organization

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

func (*BlockUserReq) HTTPRequest

func (r *BlockUserReq) 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 (*BlockUserReq) Rel

func (r *BlockUserReq) Rel(link string, resp *BlockUserResponse) 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 BlockUserResponse

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

BlockUserResponse is a response for BlockUser

https://developer.github.com/v3/orgs/blocking/#block-a-user-from-an-organization

func BlockUser

func BlockUser(ctx context.Context, req *BlockUserReq, opt ...requests.Option) (*BlockUserResponse, error)

BlockUser performs requests for "orgs/block-user"

Block a user from an organization.

PUT /orgs/{org}/blocks/{username}

https://developer.github.com/v3/orgs/blocking/#block-a-user-from-an-organization

func (*BlockUserResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*BlockUserResponse) ReadResponse

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

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

type CheckBlockedUserReq

type CheckBlockedUserReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

CheckBlockedUserReq is request data for Client.CheckBlockedUser

https://developer.github.com/v3/orgs/blocking/#check-if-a-user-is-blocked-by-an-organization

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

func (*CheckBlockedUserReq) HTTPRequest

func (r *CheckBlockedUserReq) 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 (*CheckBlockedUserReq) 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 CheckBlockedUserResponse

type CheckBlockedUserResponse struct {
	Data bool
	// contains filtered or unexported fields
}

CheckBlockedUserResponse is a response for CheckBlockedUser

https://developer.github.com/v3/orgs/blocking/#check-if-a-user-is-blocked-by-an-organization

func CheckBlockedUser

func CheckBlockedUser(ctx context.Context, req *CheckBlockedUserReq, opt ...requests.Option) (*CheckBlockedUserResponse, error)

CheckBlockedUser performs requests for "orgs/check-blocked-user"

Check if a user is blocked by an organization.

GET /orgs/{org}/blocks/{username}

https://developer.github.com/v3/orgs/blocking/#check-if-a-user-is-blocked-by-an-organization

func (*CheckBlockedUserResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*CheckBlockedUserResponse) ReadResponse

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

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

type CheckMembershipForUserReq

type CheckMembershipForUserReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

CheckMembershipForUserReq is request data for Client.CheckMembershipForUser

https://developer.github.com/v3/orgs/members/#check-organization-membership-for-a-user

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

func (*CheckMembershipForUserReq) HTTPRequest

func (r *CheckMembershipForUserReq) 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 (*CheckMembershipForUserReq) 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 CheckMembershipForUserResponse

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

CheckMembershipForUserResponse is a response for CheckMembershipForUser

https://developer.github.com/v3/orgs/members/#check-organization-membership-for-a-user

func CheckMembershipForUser

func CheckMembershipForUser(ctx context.Context, req *CheckMembershipForUserReq, opt ...requests.Option) (*CheckMembershipForUserResponse, error)

CheckMembershipForUser performs requests for "orgs/check-membership-for-user"

Check organization membership for a user.

GET /orgs/{org}/members/{username}

https://developer.github.com/v3/orgs/members/#check-organization-membership-for-a-user

func (*CheckMembershipForUserResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*CheckMembershipForUserResponse) ReadResponse

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

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

type CheckPublicMembershipForUserReq

type CheckPublicMembershipForUserReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

CheckPublicMembershipForUserReq is request data for Client.CheckPublicMembershipForUser

https://developer.github.com/v3/orgs/members/#check-public-organization-membership-for-a-user

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

func (*CheckPublicMembershipForUserReq) HTTPRequest

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

func (*CheckPublicMembershipForUserReq) 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 CheckPublicMembershipForUserResponse

type CheckPublicMembershipForUserResponse struct {
	Data bool
	// contains filtered or unexported fields
}

CheckPublicMembershipForUserResponse is a response for CheckPublicMembershipForUser

https://developer.github.com/v3/orgs/members/#check-public-organization-membership-for-a-user

func CheckPublicMembershipForUser

CheckPublicMembershipForUser performs requests for "orgs/check-public-membership-for-user"

Check public organization membership for a user.

GET /orgs/{org}/public_members/{username}

https://developer.github.com/v3/orgs/members/#check-public-organization-membership-for-a-user

func (*CheckPublicMembershipForUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CheckPublicMembershipForUserResponse) ReadResponse

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) BlockUser

func (c Client) BlockUser(ctx context.Context, req *BlockUserReq, opt ...requests.Option) (*BlockUserResponse, error)

BlockUser performs requests for "orgs/block-user"

Block a user from an organization.

PUT /orgs/{org}/blocks/{username}

https://developer.github.com/v3/orgs/blocking/#block-a-user-from-an-organization

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

func (Client) CheckBlockedUser

func (c Client) CheckBlockedUser(ctx context.Context, req *CheckBlockedUserReq, opt ...requests.Option) (*CheckBlockedUserResponse, error)

CheckBlockedUser performs requests for "orgs/check-blocked-user"

Check if a user is blocked by an organization.

GET /orgs/{org}/blocks/{username}

https://developer.github.com/v3/orgs/blocking/#check-if-a-user-is-blocked-by-an-organization

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

func (Client) CheckMembershipForUser

func (c Client) CheckMembershipForUser(ctx context.Context, req *CheckMembershipForUserReq, opt ...requests.Option) (*CheckMembershipForUserResponse, error)

CheckMembershipForUser performs requests for "orgs/check-membership-for-user"

Check organization membership for a user.

GET /orgs/{org}/members/{username}

https://developer.github.com/v3/orgs/members/#check-organization-membership-for-a-user

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

func (Client) CheckPublicMembershipForUser

CheckPublicMembershipForUser performs requests for "orgs/check-public-membership-for-user"

Check public organization membership for a user.

GET /orgs/{org}/public_members/{username}

https://developer.github.com/v3/orgs/members/#check-public-organization-membership-for-a-user

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

func (Client) ConvertMemberToOutsideCollaborator

ConvertMemberToOutsideCollaborator performs requests for "orgs/convert-member-to-outside-collaborator"

Convert an organization member to outside collaborator.

PUT /orgs/{org}/outside_collaborators/{username}

https://developer.github.com/v3/orgs/outside_collaborators/#convert-an-organization-member-to-outside-collaborator

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

func (Client) CreateInvitation

func (c Client) CreateInvitation(ctx context.Context, req *CreateInvitationReq, opt ...requests.Option) (*CreateInvitationResponse, error)

CreateInvitation performs requests for "orgs/create-invitation"

Create an organization invitation.

POST /orgs/{org}/invitations

https://developer.github.com/v3/orgs/members/#create-an-organization-invitation

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

func (Client) CreateWebhook

func (c Client) CreateWebhook(ctx context.Context, req *CreateWebhookReq, opt ...requests.Option) (*CreateWebhookResponse, error)

CreateWebhook performs requests for "orgs/create-webhook"

Create an organization webhook.

POST /orgs/{org}/hooks

https://developer.github.com/v3/orgs/hooks/#create-an-organization-webhook

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

func (Client) DeleteWebhook

func (c Client) DeleteWebhook(ctx context.Context, req *DeleteWebhookReq, opt ...requests.Option) (*DeleteWebhookResponse, error)

DeleteWebhook performs requests for "orgs/delete-webhook"

Delete an organization webhook.

DELETE /orgs/{org}/hooks/{hook_id}

https://developer.github.com/v3/orgs/hooks/#delete-an-organization-webhook

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

func (Client) Get

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

Get performs requests for "orgs/get"

Get an organization.

GET /orgs/{org}

https://developer.github.com/v3/orgs/#get-an-organization

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

func (Client) GetMembershipForAuthenticatedUser

GetMembershipForAuthenticatedUser performs requests for "orgs/get-membership-for-authenticated-user"

Get an organization membership for the authenticated user.

GET /user/memberships/orgs/{org}

https://developer.github.com/v3/orgs/members/#get-an-organization-membership-for-the-authenticated-user

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

func (Client) GetMembershipForUser

func (c Client) GetMembershipForUser(ctx context.Context, req *GetMembershipForUserReq, opt ...requests.Option) (*GetMembershipForUserResponse, error)

GetMembershipForUser performs requests for "orgs/get-membership-for-user"

Get organization membership for a user.

GET /orgs/{org}/memberships/{username}

https://developer.github.com/v3/orgs/members/#get-organization-membership-for-a-user

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

func (Client) GetWebhook

func (c Client) GetWebhook(ctx context.Context, req *GetWebhookReq, opt ...requests.Option) (*GetWebhookResponse, error)

GetWebhook performs requests for "orgs/get-webhook"

Get an organization webhook.

GET /orgs/{org}/hooks/{hook_id}

https://developer.github.com/v3/orgs/hooks/#get-an-organization-webhook

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

func (Client) List

func (c Client) List(ctx context.Context, req *ListReq, opt ...requests.Option) (*ListResponse, error)

List performs requests for "orgs/list"

List organizations.

GET /organizations

https://developer.github.com/v3/orgs/#list-organizations

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

func (Client) ListAppInstallations

func (c Client) ListAppInstallations(ctx context.Context, req *ListAppInstallationsReq, opt ...requests.Option) (*ListAppInstallationsResponse, error)

ListAppInstallations performs requests for "orgs/list-app-installations"

List app installations for an organization.

GET /orgs/{org}/installations

https://developer.github.com/v3/orgs/#list-app-installations-for-an-organization

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

func (Client) ListBlockedUsers

func (c Client) ListBlockedUsers(ctx context.Context, req *ListBlockedUsersReq, opt ...requests.Option) (*ListBlockedUsersResponse, error)

ListBlockedUsers performs requests for "orgs/list-blocked-users"

List users blocked by an organization.

GET /orgs/{org}/blocks

https://developer.github.com/v3/orgs/blocking/#list-users-blocked-by-an-organization

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

func (Client) ListForAuthenticatedUser

func (c Client) ListForAuthenticatedUser(ctx context.Context, req *ListForAuthenticatedUserReq, opt ...requests.Option) (*ListForAuthenticatedUserResponse, error)

ListForAuthenticatedUser performs requests for "orgs/list-for-authenticated-user"

List organizations for the authenticated user.

GET /user/orgs

https://developer.github.com/v3/orgs/#list-organizations-for-the-authenticated-user

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

func (Client) ListForUser

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

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

List organizations for a user.

GET /users/{username}/orgs

https://developer.github.com/v3/orgs/#list-organizations-for-a-user

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

func (Client) ListInvitationTeams

func (c Client) ListInvitationTeams(ctx context.Context, req *ListInvitationTeamsReq, opt ...requests.Option) (*ListInvitationTeamsResponse, error)

ListInvitationTeams performs requests for "orgs/list-invitation-teams"

List organization invitation teams.

GET /orgs/{org}/invitations/{invitation_id}/teams

https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams

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

func (Client) ListMembers

func (c Client) ListMembers(ctx context.Context, req *ListMembersReq, opt ...requests.Option) (*ListMembersResponse, error)

ListMembers performs requests for "orgs/list-members"

List organization members.

GET /orgs/{org}/members

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

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

func (Client) ListMembershipsForAuthenticatedUser

ListMembershipsForAuthenticatedUser performs requests for "orgs/list-memberships-for-authenticated-user"

List organization memberships for the authenticated user.

GET /user/memberships/orgs

https://developer.github.com/v3/orgs/members/#list-organization-memberships-for-the-authenticated-user

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

func (Client) ListOutsideCollaborators

func (c Client) ListOutsideCollaborators(ctx context.Context, req *ListOutsideCollaboratorsReq, opt ...requests.Option) (*ListOutsideCollaboratorsResponse, error)

ListOutsideCollaborators performs requests for "orgs/list-outside-collaborators"

List outside collaborators for an organization.

GET /orgs/{org}/outside_collaborators

https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators-for-an-organization

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

func (Client) ListPendingInvitations

func (c Client) ListPendingInvitations(ctx context.Context, req *ListPendingInvitationsReq, opt ...requests.Option) (*ListPendingInvitationsResponse, error)

ListPendingInvitations performs requests for "orgs/list-pending-invitations"

List pending organization invitations.

GET /orgs/{org}/invitations

https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations

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

func (Client) ListPublicMembers

func (c Client) ListPublicMembers(ctx context.Context, req *ListPublicMembersReq, opt ...requests.Option) (*ListPublicMembersResponse, error)

ListPublicMembers performs requests for "orgs/list-public-members"

List public organization members.

GET /orgs/{org}/public_members

https://developer.github.com/v3/orgs/members/#list-public-organization-members

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

func (Client) ListSamlSsoAuthorizations

func (c Client) ListSamlSsoAuthorizations(ctx context.Context, req *ListSamlSsoAuthorizationsReq, opt ...requests.Option) (*ListSamlSsoAuthorizationsResponse, error)

ListSamlSsoAuthorizations performs requests for "orgs/list-saml-sso-authorizations"

List SAML SSO authorizations for an organization.

GET /orgs/{org}/credential-authorizations

https://developer.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization

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

func (Client) ListWebhooks

func (c Client) ListWebhooks(ctx context.Context, req *ListWebhooksReq, opt ...requests.Option) (*ListWebhooksResponse, error)

ListWebhooks performs requests for "orgs/list-webhooks"

List organization webhooks.

GET /orgs/{org}/hooks

https://developer.github.com/v3/orgs/hooks/#list-organization-webhooks

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

func (Client) PingWebhook

func (c Client) PingWebhook(ctx context.Context, req *PingWebhookReq, opt ...requests.Option) (*PingWebhookResponse, error)

PingWebhook performs requests for "orgs/ping-webhook"

Ping an organization webhook.

POST /orgs/{org}/hooks/{hook_id}/pings

https://developer.github.com/v3/orgs/hooks/#ping-an-organization-webhook

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

func (Client) RemoveMember

func (c Client) RemoveMember(ctx context.Context, req *RemoveMemberReq, opt ...requests.Option) (*RemoveMemberResponse, error)

RemoveMember performs requests for "orgs/remove-member"

Remove an organization member.

DELETE /orgs/{org}/members/{username}

https://developer.github.com/v3/orgs/members/#remove-an-organization-member

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

func (Client) RemoveMembershipForUser

func (c Client) RemoveMembershipForUser(ctx context.Context, req *RemoveMembershipForUserReq, opt ...requests.Option) (*RemoveMembershipForUserResponse, error)

RemoveMembershipForUser performs requests for "orgs/remove-membership-for-user"

Remove organization membership for a user.

DELETE /orgs/{org}/memberships/{username}

https://developer.github.com/v3/orgs/members/#remove-organization-membership-for-a-user

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

func (Client) RemoveOutsideCollaborator

func (c Client) RemoveOutsideCollaborator(ctx context.Context, req *RemoveOutsideCollaboratorReq, opt ...requests.Option) (*RemoveOutsideCollaboratorResponse, error)

RemoveOutsideCollaborator performs requests for "orgs/remove-outside-collaborator"

Remove outside collaborator from an organization.

DELETE /orgs/{org}/outside_collaborators/{username}

https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator-from-an-organization

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

func (Client) RemovePublicMembershipForAuthenticatedUser

RemovePublicMembershipForAuthenticatedUser performs requests for "orgs/remove-public-membership-for-authenticated-user"

Remove public organization membership for the authenticated user.

DELETE /orgs/{org}/public_members/{username}

https://developer.github.com/v3/orgs/members/#remove-public-organization-membership-for-the-authenticated-user

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

func (Client) RemoveSamlSsoAuthorization

func (c Client) RemoveSamlSsoAuthorization(ctx context.Context, req *RemoveSamlSsoAuthorizationReq, opt ...requests.Option) (*RemoveSamlSsoAuthorizationResponse, error)

RemoveSamlSsoAuthorization performs requests for "orgs/remove-saml-sso-authorization"

Remove a SAML SSO authorization for an organization.

DELETE /orgs/{org}/credential-authorizations/{credential_id}

https://developer.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization

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

func (Client) SetMembershipForUser

func (c Client) SetMembershipForUser(ctx context.Context, req *SetMembershipForUserReq, opt ...requests.Option) (*SetMembershipForUserResponse, error)

SetMembershipForUser performs requests for "orgs/set-membership-for-user"

Set organization membership for a user.

PUT /orgs/{org}/memberships/{username}

https://developer.github.com/v3/orgs/members/#set-organization-membership-for-a-user

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

func (Client) SetPublicMembershipForAuthenticatedUser

SetPublicMembershipForAuthenticatedUser performs requests for "orgs/set-public-membership-for-authenticated-user"

Set public organization membership for the authenticated user.

PUT /orgs/{org}/public_members/{username}

https://developer.github.com/v3/orgs/members/#set-public-organization-membership-for-the-authenticated-user

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

func (Client) UnblockUser

func (c Client) UnblockUser(ctx context.Context, req *UnblockUserReq, opt ...requests.Option) (*UnblockUserResponse, error)

UnblockUser performs requests for "orgs/unblock-user"

Unblock a user from an organization.

DELETE /orgs/{org}/blocks/{username}

https://developer.github.com/v3/orgs/blocking/#unblock-a-user-from-an-organization

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

func (Client) Update

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

Update performs requests for "orgs/update"

Update an organization.

PATCH /orgs/{org}

https://developer.github.com/v3/orgs/#update-an-organization

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

func (Client) UpdateMembershipForAuthenticatedUser

UpdateMembershipForAuthenticatedUser performs requests for "orgs/update-membership-for-authenticated-user"

Update an organization membership for the authenticated user.

PATCH /user/memberships/orgs/{org}

https://developer.github.com/v3/orgs/members/#update-an-organization-membership-for-the-authenticated-user

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

func (Client) UpdateWebhook

func (c Client) UpdateWebhook(ctx context.Context, req *UpdateWebhookReq, opt ...requests.Option) (*UpdateWebhookResponse, error)

UpdateWebhook performs requests for "orgs/update-webhook"

Update an organization webhook.

PATCH /orgs/{org}/hooks/{hook_id}

https://developer.github.com/v3/orgs/hooks/#update-an-organization-webhook

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

type ConvertMemberToOutsideCollaboratorReq

type ConvertMemberToOutsideCollaboratorReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

ConvertMemberToOutsideCollaboratorReq is request data for Client.ConvertMemberToOutsideCollaborator

https://developer.github.com/v3/orgs/outside_collaborators/#convert-an-organization-member-to-outside-collaborator

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

func (*ConvertMemberToOutsideCollaboratorReq) HTTPRequest

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

func (*ConvertMemberToOutsideCollaboratorReq) 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 ConvertMemberToOutsideCollaboratorResponse

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

ConvertMemberToOutsideCollaboratorResponse is a response for ConvertMemberToOutsideCollaborator

https://developer.github.com/v3/orgs/outside_collaborators/#convert-an-organization-member-to-outside-collaborator

func ConvertMemberToOutsideCollaborator

ConvertMemberToOutsideCollaborator performs requests for "orgs/convert-member-to-outside-collaborator"

Convert an organization member to outside collaborator.

PUT /orgs/{org}/outside_collaborators/{username}

https://developer.github.com/v3/orgs/outside_collaborators/#convert-an-organization-member-to-outside-collaborator

func (*ConvertMemberToOutsideCollaboratorResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ConvertMemberToOutsideCollaboratorResponse) ReadResponse

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

type CreateInvitationReq

type CreateInvitationReq struct {
	Org         string
	RequestBody CreateInvitationReqBody
	// contains filtered or unexported fields
}

CreateInvitationReq is request data for Client.CreateInvitation

https://developer.github.com/v3/orgs/members/#create-an-organization-invitation

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

func (*CreateInvitationReq) HTTPRequest

func (r *CreateInvitationReq) 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 (*CreateInvitationReq) 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 CreateInvitationReqBody

type CreateInvitationReqBody struct {

	/*
		**Required unless you provide `invitee_id`**. Email address of the person you
		are inviting, which can be an existing GitHub user.
	*/
	Email *string `json:"email,omitempty"`

	// **Required unless you provide `email`**. GitHub user ID for the person you are inviting.
	InviteeId *int64 `json:"invitee_id,omitempty"`

	/*
		Specify role for new member. Can be one of:
		\* `admin` - Organization owners with full administrative rights to the
		organization and complete access to all repositories and teams.
		\* `direct_member` - Non-owner organization members with ability to see other
		members and join teams by invitation.
		\* `billing_manager` - Non-owner organization members with ability to manage the
		billing settings of your organization.
	*/
	Role *string `json:"role,omitempty"`

	// Specify IDs for the teams you want to invite new members to.
	TeamIds []int64 `json:"team_ids,omitempty"`
}

CreateInvitationReqBody is a request body for orgs/create-invitation

https://developer.github.com/v3/orgs/members/#create-an-organization-invitation

type CreateInvitationResponse

type CreateInvitationResponse struct {
	Data components.OrganizationInvitation
	// contains filtered or unexported fields
}

CreateInvitationResponse is a response for CreateInvitation

https://developer.github.com/v3/orgs/members/#create-an-organization-invitation

func CreateInvitation

func CreateInvitation(ctx context.Context, req *CreateInvitationReq, opt ...requests.Option) (*CreateInvitationResponse, error)

CreateInvitation performs requests for "orgs/create-invitation"

Create an organization invitation.

POST /orgs/{org}/invitations

https://developer.github.com/v3/orgs/members/#create-an-organization-invitation

func (*CreateInvitationResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*CreateInvitationResponse) ReadResponse

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

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

type CreateWebhookReq

type CreateWebhookReq struct {
	Org         string
	RequestBody CreateWebhookReqBody
	// contains filtered or unexported fields
}

CreateWebhookReq is request data for Client.CreateWebhook

https://developer.github.com/v3/orgs/hooks/#create-an-organization-webhook

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

func (*CreateWebhookReq) HTTPRequest

func (r *CreateWebhookReq) 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 (*CreateWebhookReq) Rel

func (r *CreateWebhookReq) Rel(link string, resp *CreateWebhookResponse) 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 CreateWebhookReqBody

type CreateWebhookReqBody struct {

	// Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.
	Active *bool `json:"active,omitempty"`

	/*
		Key/value pairs to provide settings for this webhook. [These are defined
		below](https://developer.github.com/v3/orgs/hooks/#create-hook-config-params).
	*/
	Config *CreateWebhookReqBodyConfig `json:"config"`

	// Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for.
	Events []string `json:"events,omitempty"`

	// Must be passed as "web".
	Name *string `json:"name"`
}

CreateWebhookReqBody is a request body for orgs/create-webhook

https://developer.github.com/v3/orgs/hooks/#create-an-organization-webhook

type CreateWebhookReqBodyConfig

type CreateWebhookReqBodyConfig struct {

	// The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
	ContentType *string `json:"content_type,omitempty"`

	/*
		Determines whether the SSL certificate of the host for `url` will be verified
		when delivering payloads. Supported values include `0` (verification is
		performed) and `1` (verification is not performed). The default is `0`. **We
		strongly recommend not setting this to `1` as you are subject to
		man-in-the-middle and other attacks.**
	*/
	InsecureSsl *string `json:"insecure_ssl,omitempty"`
	Password    *string `json:"password,omitempty"`

	/*
		If provided, the `secret` will be used as the `key` to generate the HMAC hex
		digest value in the
		[`X-Hub-Signature`](https://developer.github.com/webhooks/event-payloads/#delivery-headers)
		header.
	*/
	Secret *string `json:"secret,omitempty"`

	// The URL to which the payloads will be delivered.
	Url      *string `json:"url"`
	Username *string `json:"username,omitempty"`
}

CreateWebhookReqBodyConfig is a value for CreateWebhookReqBody's Config field

type CreateWebhookResponse

type CreateWebhookResponse struct {
	Data components.OrgHook
	// contains filtered or unexported fields
}

CreateWebhookResponse is a response for CreateWebhook

https://developer.github.com/v3/orgs/hooks/#create-an-organization-webhook

func CreateWebhook

func CreateWebhook(ctx context.Context, req *CreateWebhookReq, opt ...requests.Option) (*CreateWebhookResponse, error)

CreateWebhook performs requests for "orgs/create-webhook"

Create an organization webhook.

POST /orgs/{org}/hooks

https://developer.github.com/v3/orgs/hooks/#create-an-organization-webhook

func (*CreateWebhookResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*CreateWebhookResponse) ReadResponse

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

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

type DeleteWebhookReq

type DeleteWebhookReq struct {
	Org    string
	HookId int64
	// contains filtered or unexported fields
}

DeleteWebhookReq is request data for Client.DeleteWebhook

https://developer.github.com/v3/orgs/hooks/#delete-an-organization-webhook

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

func (*DeleteWebhookReq) HTTPRequest

func (r *DeleteWebhookReq) 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 (*DeleteWebhookReq) Rel

func (r *DeleteWebhookReq) Rel(link string, resp *DeleteWebhookResponse) 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 DeleteWebhookResponse

type DeleteWebhookResponse struct {
	Data bool
	// contains filtered or unexported fields
}

DeleteWebhookResponse is a response for DeleteWebhook

https://developer.github.com/v3/orgs/hooks/#delete-an-organization-webhook

func DeleteWebhook

func DeleteWebhook(ctx context.Context, req *DeleteWebhookReq, opt ...requests.Option) (*DeleteWebhookResponse, error)

DeleteWebhook performs requests for "orgs/delete-webhook"

Delete an organization webhook.

DELETE /orgs/{org}/hooks/{hook_id}

https://developer.github.com/v3/orgs/hooks/#delete-an-organization-webhook

func (*DeleteWebhookResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*DeleteWebhookResponse) ReadResponse

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

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

type GetMembershipForAuthenticatedUserReq

type GetMembershipForAuthenticatedUserReq struct {
	Org string
	// contains filtered or unexported fields
}

GetMembershipForAuthenticatedUserReq is request data for Client.GetMembershipForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#get-an-organization-membership-for-the-authenticated-user

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

func (*GetMembershipForAuthenticatedUserReq) HTTPRequest

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

func (*GetMembershipForAuthenticatedUserReq) 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 GetMembershipForAuthenticatedUserResponse

type GetMembershipForAuthenticatedUserResponse struct {
	Data components.OrgMembership
	// contains filtered or unexported fields
}

GetMembershipForAuthenticatedUserResponse is a response for GetMembershipForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#get-an-organization-membership-for-the-authenticated-user

func GetMembershipForAuthenticatedUser

GetMembershipForAuthenticatedUser performs requests for "orgs/get-membership-for-authenticated-user"

Get an organization membership for the authenticated user.

GET /user/memberships/orgs/{org}

https://developer.github.com/v3/orgs/members/#get-an-organization-membership-for-the-authenticated-user

func (*GetMembershipForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*GetMembershipForAuthenticatedUserResponse) ReadResponse

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

type GetMembershipForUserReq

type GetMembershipForUserReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

GetMembershipForUserReq is request data for Client.GetMembershipForUser

https://developer.github.com/v3/orgs/members/#get-organization-membership-for-a-user

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

func (*GetMembershipForUserReq) HTTPRequest

func (r *GetMembershipForUserReq) 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 (*GetMembershipForUserReq) 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 GetMembershipForUserResponse

type GetMembershipForUserResponse struct {
	Data components.OrgMembership
	// contains filtered or unexported fields
}

GetMembershipForUserResponse is a response for GetMembershipForUser

https://developer.github.com/v3/orgs/members/#get-organization-membership-for-a-user

func GetMembershipForUser

func GetMembershipForUser(ctx context.Context, req *GetMembershipForUserReq, opt ...requests.Option) (*GetMembershipForUserResponse, error)

GetMembershipForUser performs requests for "orgs/get-membership-for-user"

Get organization membership for a user.

GET /orgs/{org}/memberships/{username}

https://developer.github.com/v3/orgs/members/#get-organization-membership-for-a-user

func (*GetMembershipForUserResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*GetMembershipForUserResponse) ReadResponse

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

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

type GetReq

type GetReq struct {
	Org string

	/*
		New repository creation permissions are available to preview. You can now use
		`members_can_create_public_repositories`,
		`members_can_create_private_repositories`, and
		`members_can_create_internal_repositories`. You can only allow members to create
		internal repositories if your organization is associated with an enterprise
		account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. These
		parameters provide more granular permissions to configure the type of
		repositories organization members can create.

		To access these new parameters during the preview period, you must set this to
		true.
	*/
	SurturPreview bool
	// contains filtered or unexported fields
}

GetReq is request data for Client.Get

https://developer.github.com/v3/orgs/#get-an-organization

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

func (*GetReq) HTTPRequest

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

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

func (*GetReq) Rel

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

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

type GetResponse

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

GetResponse is a response for Get

https://developer.github.com/v3/orgs/#get-an-organization

func Get

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

Get performs requests for "orgs/get"

Get an organization.

GET /orgs/{org}

https://developer.github.com/v3/orgs/#get-an-organization

func (*GetResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*GetResponse) ReadResponse

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

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

type GetWebhookReq

type GetWebhookReq struct {
	Org    string
	HookId int64
	// contains filtered or unexported fields
}

GetWebhookReq is request data for Client.GetWebhook

https://developer.github.com/v3/orgs/hooks/#get-an-organization-webhook

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

func (*GetWebhookReq) HTTPRequest

func (r *GetWebhookReq) 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 (*GetWebhookReq) Rel

func (r *GetWebhookReq) Rel(link string, resp *GetWebhookResponse) 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 GetWebhookResponse

type GetWebhookResponse struct {
	Data components.OrgHook
	// contains filtered or unexported fields
}

GetWebhookResponse is a response for GetWebhook

https://developer.github.com/v3/orgs/hooks/#get-an-organization-webhook

func GetWebhook

func GetWebhook(ctx context.Context, req *GetWebhookReq, opt ...requests.Option) (*GetWebhookResponse, error)

GetWebhook performs requests for "orgs/get-webhook"

Get an organization webhook.

GET /orgs/{org}/hooks/{hook_id}

https://developer.github.com/v3/orgs/hooks/#get-an-organization-webhook

func (*GetWebhookResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*GetWebhookResponse) ReadResponse

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

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

type ListAppInstallationsReq

type ListAppInstallationsReq struct {
	Org string

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

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

	/*
		To access the API with your GitHub App, you must set this to true for your
		requests.
	*/
	MachineManPreview bool
	// contains filtered or unexported fields
}

ListAppInstallationsReq is request data for Client.ListAppInstallations

https://developer.github.com/v3/orgs/#list-app-installations-for-an-organization

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

func (*ListAppInstallationsReq) HTTPRequest

func (r *ListAppInstallationsReq) 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 (*ListAppInstallationsReq) 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 ListAppInstallationsResponse

type ListAppInstallationsResponse struct {
	Data ListAppInstallationsResponseBody
	// contains filtered or unexported fields
}

ListAppInstallationsResponse is a response for ListAppInstallations

https://developer.github.com/v3/orgs/#list-app-installations-for-an-organization

func ListAppInstallations

func ListAppInstallations(ctx context.Context, req *ListAppInstallationsReq, opt ...requests.Option) (*ListAppInstallationsResponse, error)

ListAppInstallations performs requests for "orgs/list-app-installations"

List app installations for an organization.

GET /orgs/{org}/installations

https://developer.github.com/v3/orgs/#list-app-installations-for-an-organization

func (*ListAppInstallationsResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListAppInstallationsResponse) ReadResponse

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

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

type ListAppInstallationsResponseBody

type ListAppInstallationsResponseBody struct {
	Installations []components.Installation `json:"installations,omitempty"`
	TotalCount    int64                     `json:"total_count,omitempty"`
}

ListAppInstallationsResponseBody is a response body for ListAppInstallations

https://developer.github.com/v3/orgs/#list-app-installations-for-an-organization

type ListBlockedUsersReq

type ListBlockedUsersReq struct {
	Org string
	// contains filtered or unexported fields
}

ListBlockedUsersReq is request data for Client.ListBlockedUsers

https://developer.github.com/v3/orgs/blocking/#list-users-blocked-by-an-organization

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

func (*ListBlockedUsersReq) HTTPRequest

func (r *ListBlockedUsersReq) 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 (*ListBlockedUsersReq) 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 ListBlockedUsersResponse

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

ListBlockedUsersResponse is a response for ListBlockedUsers

https://developer.github.com/v3/orgs/blocking/#list-users-blocked-by-an-organization

func ListBlockedUsers

func ListBlockedUsers(ctx context.Context, req *ListBlockedUsersReq, opt ...requests.Option) (*ListBlockedUsersResponse, error)

ListBlockedUsers performs requests for "orgs/list-blocked-users"

List users blocked by an organization.

GET /orgs/{org}/blocks

https://developer.github.com/v3/orgs/blocking/#list-users-blocked-by-an-organization

func (*ListBlockedUsersResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListBlockedUsersResponse) ReadResponse

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

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

type ListForAuthenticatedUserReq

type ListForAuthenticatedUserReq struct {

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

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListForAuthenticatedUserReq is request data for Client.ListForAuthenticatedUser

https://developer.github.com/v3/orgs/#list-organizations-for-the-authenticated-user

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

func (*ListForAuthenticatedUserReq) HTTPRequest

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

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

func (*ListForAuthenticatedUserReq) Rel

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

type ListForAuthenticatedUserResponse

type ListForAuthenticatedUserResponse struct {
	Data []components.OrganizationSimple
	// contains filtered or unexported fields
}

ListForAuthenticatedUserResponse is a response for ListForAuthenticatedUser

https://developer.github.com/v3/orgs/#list-organizations-for-the-authenticated-user

func ListForAuthenticatedUser

ListForAuthenticatedUser performs requests for "orgs/list-for-authenticated-user"

List organizations for the authenticated user.

GET /user/orgs

https://developer.github.com/v3/orgs/#list-organizations-for-the-authenticated-user

func (*ListForAuthenticatedUserResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListForAuthenticatedUserResponse) ReadResponse

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

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

type ListForUserReq

type ListForUserReq struct {
	Username string

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

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListForUserReq is request data for Client.ListForUser

https://developer.github.com/v3/orgs/#list-organizations-for-a-user

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

func (*ListForUserReq) HTTPRequest

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

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

func (*ListForUserReq) Rel

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

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

type ListForUserResponse

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

ListForUserResponse is a response for ListForUser

https://developer.github.com/v3/orgs/#list-organizations-for-a-user

func ListForUser

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

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

List organizations for a user.

GET /users/{username}/orgs

https://developer.github.com/v3/orgs/#list-organizations-for-a-user

func (*ListForUserResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListForUserResponse) ReadResponse

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

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

type ListInvitationTeamsReq

type ListInvitationTeamsReq struct {
	Org string

	// invitation_id parameter
	InvitationId int64

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

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListInvitationTeamsReq is request data for Client.ListInvitationTeams

https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams

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

func (*ListInvitationTeamsReq) HTTPRequest

func (r *ListInvitationTeamsReq) 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 (*ListInvitationTeamsReq) 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 ListInvitationTeamsResponse

type ListInvitationTeamsResponse struct {
	Data []components.Team
	// contains filtered or unexported fields
}

ListInvitationTeamsResponse is a response for ListInvitationTeams

https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams

func ListInvitationTeams

func ListInvitationTeams(ctx context.Context, req *ListInvitationTeamsReq, opt ...requests.Option) (*ListInvitationTeamsResponse, error)

ListInvitationTeams performs requests for "orgs/list-invitation-teams"

List organization invitation teams.

GET /orgs/{org}/invitations/{invitation_id}/teams

https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams

func (*ListInvitationTeamsResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListInvitationTeamsResponse) ReadResponse

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

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

type ListMembersReq

type ListMembersReq struct {
	Org string

	/*
		Filter members returned in the list. Can be one of:
		\* `2fa_disabled` - Members without [two-factor
		authentication](https://github.com/blog/1614-two-factor-authentication) enabled.
		Available for organization owners.
		\* `all` - All members the authenticated user can see.
	*/
	Filter *string

	/*
		Filter members returned by their role. Can be one of:
		\* `all` - All members of the organization, regardless of role.
		\* `admin` - Organization owners.
		\* `member` - Non-owner organization members.
	*/
	Role *string

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

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListMembersReq is request data for Client.ListMembers

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

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

func (*ListMembersReq) HTTPRequest

func (r *ListMembersReq) 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 (*ListMembersReq) Rel

func (r *ListMembersReq) Rel(link string, resp *ListMembersResponse) 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 ListMembersResponse

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

ListMembersResponse is a response for ListMembers

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

func ListMembers

func ListMembers(ctx context.Context, req *ListMembersReq, opt ...requests.Option) (*ListMembersResponse, error)

ListMembers performs requests for "orgs/list-members"

List organization members.

GET /orgs/{org}/members

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

func (*ListMembersResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListMembersResponse) ReadResponse

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

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

type ListMembershipsForAuthenticatedUserReq

type ListMembershipsForAuthenticatedUserReq struct {

	/*
		Indicates the state of the memberships to return. Can be either `active` or
		`pending`. If not specified, the API returns both active and pending
		memberships.
	*/
	State *string

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

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListMembershipsForAuthenticatedUserReq is request data for Client.ListMembershipsForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#list-organization-memberships-for-the-authenticated-user

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

func (*ListMembershipsForAuthenticatedUserReq) HTTPRequest

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

func (*ListMembershipsForAuthenticatedUserReq) 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 ListMembershipsForAuthenticatedUserResponse

type ListMembershipsForAuthenticatedUserResponse struct {
	Data []components.OrgMembership
	// contains filtered or unexported fields
}

ListMembershipsForAuthenticatedUserResponse is a response for ListMembershipsForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#list-organization-memberships-for-the-authenticated-user

func ListMembershipsForAuthenticatedUser

ListMembershipsForAuthenticatedUser performs requests for "orgs/list-memberships-for-authenticated-user"

List organization memberships for the authenticated user.

GET /user/memberships/orgs

https://developer.github.com/v3/orgs/members/#list-organization-memberships-for-the-authenticated-user

func (*ListMembershipsForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListMembershipsForAuthenticatedUserResponse) ReadResponse

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

type ListOutsideCollaboratorsReq

type ListOutsideCollaboratorsReq struct {
	Org string

	/*
		Filter the list of outside collaborators. Can be one of:
		\* `2fa_disabled`: Outside collaborators without [two-factor
		authentication](https://github.com/blog/1614-two-factor-authentication) enabled.
		\* `all`: All outside collaborators.
	*/
	Filter *string

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

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListOutsideCollaboratorsReq is request data for Client.ListOutsideCollaborators

https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators-for-an-organization

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

func (*ListOutsideCollaboratorsReq) HTTPRequest

func (r *ListOutsideCollaboratorsReq) 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 (*ListOutsideCollaboratorsReq) 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 ListOutsideCollaboratorsResponse

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

ListOutsideCollaboratorsResponse is a response for ListOutsideCollaborators

https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators-for-an-organization

func ListOutsideCollaborators

ListOutsideCollaborators performs requests for "orgs/list-outside-collaborators"

List outside collaborators for an organization.

GET /orgs/{org}/outside_collaborators

https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators-for-an-organization

func (*ListOutsideCollaboratorsResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListOutsideCollaboratorsResponse) ReadResponse

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

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

type ListPendingInvitationsReq

type ListPendingInvitationsReq struct {
	Org string

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

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListPendingInvitationsReq is request data for Client.ListPendingInvitations

https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations

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

func (*ListPendingInvitationsReq) HTTPRequest

func (r *ListPendingInvitationsReq) 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 (*ListPendingInvitationsReq) 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 ListPendingInvitationsResponse

type ListPendingInvitationsResponse struct {
	Data []components.OrganizationInvitation
	// contains filtered or unexported fields
}

ListPendingInvitationsResponse is a response for ListPendingInvitations

https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations

func ListPendingInvitations

func ListPendingInvitations(ctx context.Context, req *ListPendingInvitationsReq, opt ...requests.Option) (*ListPendingInvitationsResponse, error)

ListPendingInvitations performs requests for "orgs/list-pending-invitations"

List pending organization invitations.

GET /orgs/{org}/invitations

https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations

func (*ListPendingInvitationsResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListPendingInvitationsResponse) ReadResponse

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

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

type ListPublicMembersReq

type ListPublicMembersReq struct {
	Org string

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

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListPublicMembersReq is request data for Client.ListPublicMembers

https://developer.github.com/v3/orgs/members/#list-public-organization-members

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

func (*ListPublicMembersReq) HTTPRequest

func (r *ListPublicMembersReq) 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 (*ListPublicMembersReq) 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 ListPublicMembersResponse

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

ListPublicMembersResponse is a response for ListPublicMembers

https://developer.github.com/v3/orgs/members/#list-public-organization-members

func ListPublicMembers

func ListPublicMembers(ctx context.Context, req *ListPublicMembersReq, opt ...requests.Option) (*ListPublicMembersResponse, error)

ListPublicMembers performs requests for "orgs/list-public-members"

List public organization members.

GET /orgs/{org}/public_members

https://developer.github.com/v3/orgs/members/#list-public-organization-members

func (*ListPublicMembersResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListPublicMembersResponse) ReadResponse

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

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

type ListReq

type ListReq struct {

	/*
		Only show notifications updated after the given time. This is a timestamp in
		[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format:
		`YYYY-MM-DDTHH:MM:SSZ`.
	*/
	Since *string

	// Results per page (max 100)
	PerPage *int64
	// contains filtered or unexported fields
}

ListReq is request data for Client.List

https://developer.github.com/v3/orgs/#list-organizations

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

func (*ListReq) HTTPRequest

func (r *ListReq) 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 (*ListReq) Rel

func (r *ListReq) Rel(link string, resp *ListResponse) 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 ListResponse

type ListResponse struct {
	Data []components.OrganizationSimple
	// contains filtered or unexported fields
}

ListResponse is a response for List

https://developer.github.com/v3/orgs/#list-organizations

func List

func List(ctx context.Context, req *ListReq, opt ...requests.Option) (*ListResponse, error)

List performs requests for "orgs/list"

List organizations.

GET /organizations

https://developer.github.com/v3/orgs/#list-organizations

func (*ListResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListResponse) ReadResponse

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

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

type ListSamlSsoAuthorizationsReq

type ListSamlSsoAuthorizationsReq struct {
	Org string
	// contains filtered or unexported fields
}

ListSamlSsoAuthorizationsReq is request data for Client.ListSamlSsoAuthorizations

https://developer.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization

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

func (*ListSamlSsoAuthorizationsReq) HTTPRequest

func (r *ListSamlSsoAuthorizationsReq) 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 (*ListSamlSsoAuthorizationsReq) 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 ListSamlSsoAuthorizationsResponse

type ListSamlSsoAuthorizationsResponse struct {
	Data []components.CredentialAuthorization
	// contains filtered or unexported fields
}

ListSamlSsoAuthorizationsResponse is a response for ListSamlSsoAuthorizations

https://developer.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization

func ListSamlSsoAuthorizations

ListSamlSsoAuthorizations performs requests for "orgs/list-saml-sso-authorizations"

List SAML SSO authorizations for an organization.

GET /orgs/{org}/credential-authorizations

https://developer.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization

func (*ListSamlSsoAuthorizationsResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListSamlSsoAuthorizationsResponse) ReadResponse

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

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

type ListWebhooksReq

type ListWebhooksReq struct {
	Org string

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

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListWebhooksReq is request data for Client.ListWebhooks

https://developer.github.com/v3/orgs/hooks/#list-organization-webhooks

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

func (*ListWebhooksReq) HTTPRequest

func (r *ListWebhooksReq) 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 (*ListWebhooksReq) Rel

func (r *ListWebhooksReq) Rel(link string, resp *ListWebhooksResponse) 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 ListWebhooksResponse

type ListWebhooksResponse struct {
	Data []components.OrgHook
	// contains filtered or unexported fields
}

ListWebhooksResponse is a response for ListWebhooks

https://developer.github.com/v3/orgs/hooks/#list-organization-webhooks

func ListWebhooks

func ListWebhooks(ctx context.Context, req *ListWebhooksReq, opt ...requests.Option) (*ListWebhooksResponse, error)

ListWebhooks performs requests for "orgs/list-webhooks"

List organization webhooks.

GET /orgs/{org}/hooks

https://developer.github.com/v3/orgs/hooks/#list-organization-webhooks

func (*ListWebhooksResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListWebhooksResponse) ReadResponse

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

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

type PingWebhookReq

type PingWebhookReq struct {
	Org    string
	HookId int64
	// contains filtered or unexported fields
}

PingWebhookReq is request data for Client.PingWebhook

https://developer.github.com/v3/orgs/hooks/#ping-an-organization-webhook

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

func (*PingWebhookReq) HTTPRequest

func (r *PingWebhookReq) 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 (*PingWebhookReq) Rel

func (r *PingWebhookReq) Rel(link string, resp *PingWebhookResponse) 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 PingWebhookResponse

type PingWebhookResponse struct {
	Data bool
	// contains filtered or unexported fields
}

PingWebhookResponse is a response for PingWebhook

https://developer.github.com/v3/orgs/hooks/#ping-an-organization-webhook

func PingWebhook

func PingWebhook(ctx context.Context, req *PingWebhookReq, opt ...requests.Option) (*PingWebhookResponse, error)

PingWebhook performs requests for "orgs/ping-webhook"

Ping an organization webhook.

POST /orgs/{org}/hooks/{hook_id}/pings

https://developer.github.com/v3/orgs/hooks/#ping-an-organization-webhook

func (*PingWebhookResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*PingWebhookResponse) ReadResponse

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

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

type RemoveMemberReq

type RemoveMemberReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

RemoveMemberReq is request data for Client.RemoveMember

https://developer.github.com/v3/orgs/members/#remove-an-organization-member

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

func (*RemoveMemberReq) HTTPRequest

func (r *RemoveMemberReq) 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 (*RemoveMemberReq) Rel

func (r *RemoveMemberReq) Rel(link string, resp *RemoveMemberResponse) 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 RemoveMemberResponse

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

RemoveMemberResponse is a response for RemoveMember

https://developer.github.com/v3/orgs/members/#remove-an-organization-member

func RemoveMember

func RemoveMember(ctx context.Context, req *RemoveMemberReq, opt ...requests.Option) (*RemoveMemberResponse, error)

RemoveMember performs requests for "orgs/remove-member"

Remove an organization member.

DELETE /orgs/{org}/members/{username}

https://developer.github.com/v3/orgs/members/#remove-an-organization-member

func (*RemoveMemberResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*RemoveMemberResponse) ReadResponse

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

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

type RemoveMembershipForUserReq

type RemoveMembershipForUserReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

RemoveMembershipForUserReq is request data for Client.RemoveMembershipForUser

https://developer.github.com/v3/orgs/members/#remove-organization-membership-for-a-user

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

func (*RemoveMembershipForUserReq) HTTPRequest

func (r *RemoveMembershipForUserReq) 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 (*RemoveMembershipForUserReq) 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 RemoveMembershipForUserResponse

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

RemoveMembershipForUserResponse is a response for RemoveMembershipForUser

https://developer.github.com/v3/orgs/members/#remove-organization-membership-for-a-user

func RemoveMembershipForUser

func RemoveMembershipForUser(ctx context.Context, req *RemoveMembershipForUserReq, opt ...requests.Option) (*RemoveMembershipForUserResponse, error)

RemoveMembershipForUser performs requests for "orgs/remove-membership-for-user"

Remove organization membership for a user.

DELETE /orgs/{org}/memberships/{username}

https://developer.github.com/v3/orgs/members/#remove-organization-membership-for-a-user

func (*RemoveMembershipForUserResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*RemoveMembershipForUserResponse) ReadResponse

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

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

type RemoveOutsideCollaboratorReq

type RemoveOutsideCollaboratorReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

RemoveOutsideCollaboratorReq is request data for Client.RemoveOutsideCollaborator

https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator-from-an-organization

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

func (*RemoveOutsideCollaboratorReq) HTTPRequest

func (r *RemoveOutsideCollaboratorReq) 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 (*RemoveOutsideCollaboratorReq) 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 RemoveOutsideCollaboratorResponse

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

RemoveOutsideCollaboratorResponse is a response for RemoveOutsideCollaborator

https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator-from-an-organization

func RemoveOutsideCollaborator

RemoveOutsideCollaborator performs requests for "orgs/remove-outside-collaborator"

Remove outside collaborator from an organization.

DELETE /orgs/{org}/outside_collaborators/{username}

https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator-from-an-organization

func (*RemoveOutsideCollaboratorResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*RemoveOutsideCollaboratorResponse) ReadResponse

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

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

type RemovePublicMembershipForAuthenticatedUserReq

type RemovePublicMembershipForAuthenticatedUserReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

RemovePublicMembershipForAuthenticatedUserReq is request data for Client.RemovePublicMembershipForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#remove-public-organization-membership-for-the-authenticated-user

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

func (*RemovePublicMembershipForAuthenticatedUserReq) HTTPRequest

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

func (*RemovePublicMembershipForAuthenticatedUserReq) 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 RemovePublicMembershipForAuthenticatedUserResponse

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

RemovePublicMembershipForAuthenticatedUserResponse is a response for RemovePublicMembershipForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#remove-public-organization-membership-for-the-authenticated-user

func RemovePublicMembershipForAuthenticatedUser

RemovePublicMembershipForAuthenticatedUser performs requests for "orgs/remove-public-membership-for-authenticated-user"

Remove public organization membership for the authenticated user.

DELETE /orgs/{org}/public_members/{username}

https://developer.github.com/v3/orgs/members/#remove-public-organization-membership-for-the-authenticated-user

func (*RemovePublicMembershipForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*RemovePublicMembershipForAuthenticatedUserResponse) ReadResponse

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

type RemoveSamlSsoAuthorizationReq

type RemoveSamlSsoAuthorizationReq struct {
	Org string

	// credential_id parameter
	CredentialId int64
	// contains filtered or unexported fields
}

RemoveSamlSsoAuthorizationReq is request data for Client.RemoveSamlSsoAuthorization

https://developer.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization

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

func (*RemoveSamlSsoAuthorizationReq) HTTPRequest

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

func (*RemoveSamlSsoAuthorizationReq) 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 RemoveSamlSsoAuthorizationResponse

type RemoveSamlSsoAuthorizationResponse struct {
	Data bool
	// contains filtered or unexported fields
}

RemoveSamlSsoAuthorizationResponse is a response for RemoveSamlSsoAuthorization

https://developer.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization

func RemoveSamlSsoAuthorization

RemoveSamlSsoAuthorization performs requests for "orgs/remove-saml-sso-authorization"

Remove a SAML SSO authorization for an organization.

DELETE /orgs/{org}/credential-authorizations/{credential_id}

https://developer.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization

func (*RemoveSamlSsoAuthorizationResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*RemoveSamlSsoAuthorizationResponse) ReadResponse

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

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

type SetMembershipForUserReq

type SetMembershipForUserReq struct {
	Org         string
	Username    string
	RequestBody SetMembershipForUserReqBody
	// contains filtered or unexported fields
}

SetMembershipForUserReq is request data for Client.SetMembershipForUser

https://developer.github.com/v3/orgs/members/#set-organization-membership-for-a-user

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

func (*SetMembershipForUserReq) HTTPRequest

func (r *SetMembershipForUserReq) 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 (*SetMembershipForUserReq) 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 SetMembershipForUserReqBody

type SetMembershipForUserReqBody struct {

	/*
		The role to give the user in the organization. Can be one of:
		\* `admin` - The user will become an owner of the organization.
		\* `member` - The user will become a non-owner member of the organization.
	*/
	Role *string `json:"role,omitempty"`
}

SetMembershipForUserReqBody is a request body for orgs/set-membership-for-user

https://developer.github.com/v3/orgs/members/#set-organization-membership-for-a-user

type SetMembershipForUserResponse

type SetMembershipForUserResponse struct {
	Data components.OrgMembership
	// contains filtered or unexported fields
}

SetMembershipForUserResponse is a response for SetMembershipForUser

https://developer.github.com/v3/orgs/members/#set-organization-membership-for-a-user

func SetMembershipForUser

func SetMembershipForUser(ctx context.Context, req *SetMembershipForUserReq, opt ...requests.Option) (*SetMembershipForUserResponse, error)

SetMembershipForUser performs requests for "orgs/set-membership-for-user"

Set organization membership for a user.

PUT /orgs/{org}/memberships/{username}

https://developer.github.com/v3/orgs/members/#set-organization-membership-for-a-user

func (*SetMembershipForUserResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*SetMembershipForUserResponse) ReadResponse

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

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

type SetPublicMembershipForAuthenticatedUserReq

type SetPublicMembershipForAuthenticatedUserReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

SetPublicMembershipForAuthenticatedUserReq is request data for Client.SetPublicMembershipForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#set-public-organization-membership-for-the-authenticated-user

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

func (*SetPublicMembershipForAuthenticatedUserReq) HTTPRequest

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

func (*SetPublicMembershipForAuthenticatedUserReq) 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 SetPublicMembershipForAuthenticatedUserResponse

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

SetPublicMembershipForAuthenticatedUserResponse is a response for SetPublicMembershipForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#set-public-organization-membership-for-the-authenticated-user

func SetPublicMembershipForAuthenticatedUser

SetPublicMembershipForAuthenticatedUser performs requests for "orgs/set-public-membership-for-authenticated-user"

Set public organization membership for the authenticated user.

PUT /orgs/{org}/public_members/{username}

https://developer.github.com/v3/orgs/members/#set-public-organization-membership-for-the-authenticated-user

func (*SetPublicMembershipForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*SetPublicMembershipForAuthenticatedUserResponse) ReadResponse

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

type UnblockUserReq

type UnblockUserReq struct {
	Org      string
	Username string
	// contains filtered or unexported fields
}

UnblockUserReq is request data for Client.UnblockUser

https://developer.github.com/v3/orgs/blocking/#unblock-a-user-from-an-organization

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

func (*UnblockUserReq) HTTPRequest

func (r *UnblockUserReq) 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 (*UnblockUserReq) Rel

func (r *UnblockUserReq) Rel(link string, resp *UnblockUserResponse) 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 UnblockUserResponse

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

UnblockUserResponse is a response for UnblockUser

https://developer.github.com/v3/orgs/blocking/#unblock-a-user-from-an-organization

func UnblockUser

func UnblockUser(ctx context.Context, req *UnblockUserReq, opt ...requests.Option) (*UnblockUserResponse, error)

UnblockUser performs requests for "orgs/unblock-user"

Unblock a user from an organization.

DELETE /orgs/{org}/blocks/{username}

https://developer.github.com/v3/orgs/blocking/#unblock-a-user-from-an-organization

func (*UnblockUserResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*UnblockUserResponse) ReadResponse

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

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

type UpdateMembershipForAuthenticatedUserReq

type UpdateMembershipForAuthenticatedUserReq struct {
	Org         string
	RequestBody UpdateMembershipForAuthenticatedUserReqBody
	// contains filtered or unexported fields
}

UpdateMembershipForAuthenticatedUserReq is request data for Client.UpdateMembershipForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#update-an-organization-membership-for-the-authenticated-user

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

func (*UpdateMembershipForAuthenticatedUserReq) HTTPRequest

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

func (*UpdateMembershipForAuthenticatedUserReq) 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 UpdateMembershipForAuthenticatedUserReqBody

type UpdateMembershipForAuthenticatedUserReqBody struct {

	// The state that the membership should be in. Only `"active"` will be accepted.
	State *string `json:"state"`
}

UpdateMembershipForAuthenticatedUserReqBody is a request body for orgs/update-membership-for-authenticated-user

https://developer.github.com/v3/orgs/members/#update-an-organization-membership-for-the-authenticated-user

type UpdateMembershipForAuthenticatedUserResponse

type UpdateMembershipForAuthenticatedUserResponse struct {
	Data components.OrgMembership
	// contains filtered or unexported fields
}

UpdateMembershipForAuthenticatedUserResponse is a response for UpdateMembershipForAuthenticatedUser

https://developer.github.com/v3/orgs/members/#update-an-organization-membership-for-the-authenticated-user

func UpdateMembershipForAuthenticatedUser

UpdateMembershipForAuthenticatedUser performs requests for "orgs/update-membership-for-authenticated-user"

Update an organization membership for the authenticated user.

PATCH /user/memberships/orgs/{org}

https://developer.github.com/v3/orgs/members/#update-an-organization-membership-for-the-authenticated-user

func (*UpdateMembershipForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*UpdateMembershipForAuthenticatedUserResponse) ReadResponse

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

type UpdateReq

type UpdateReq struct {
	Org         string
	RequestBody UpdateReqBody

	/*
		New repository creation permissions are available to preview. You can now use
		`members_can_create_public_repositories`,
		`members_can_create_private_repositories`, and
		`members_can_create_internal_repositories`. You can only allow members to create
		internal repositories if your organization is associated with an enterprise
		account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. These
		parameters provide more granular permissions to configure the type of
		repositories organization members can create.

		To access these new parameters during the preview period, you must set this to
		true.
	*/
	SurturPreview bool
	// contains filtered or unexported fields
}

UpdateReq is request data for Client.Update

https://developer.github.com/v3/orgs/#update-an-organization

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

func (*UpdateReq) HTTPRequest

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

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

func (*UpdateReq) Rel

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

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

type UpdateReqBody

type UpdateReqBody struct {

	// Billing email address. This address is not publicized.
	BillingEmail *string `json:"billing_email,omitempty"`
	Blog         *string `json:"blog,omitempty"`

	// The company name.
	Company *string `json:"company,omitempty"`

	/*
		Default permission level members have for organization repositories:
		\* `read` - can pull, but not push to or administer this repository.
		\* `write` - can pull and push, but not administer this repository.
		\* `admin` - can pull, push, and administer this repository.
		\* `none` - no permissions granted by default.
	*/
	DefaultRepositoryPermission *string `json:"default_repository_permission,omitempty"`

	// The description of the company.
	Description *string `json:"description,omitempty"`

	// The publicly visible email address.
	Email *string `json:"email,omitempty"`

	// Toggles whether an organization can use organization projects.
	HasOrganizationProjects *bool `json:"has_organization_projects,omitempty"`

	// Toggles whether repositories that belong to the organization can use repository projects.
	HasRepositoryProjects *bool `json:"has_repository_projects,omitempty"`

	// The location.
	Location *string `json:"location,omitempty"`

	/*
		Specifies which types of repositories non-admin organization members can create.
		Can be one of:
		\* `all` - all organization members can create public and private repositories.
		\* `private` - members can create private repositories. This option is only
		available to repositories that are part of an organization on GitHub Enterprise
		Cloud.
		\* `none` - only admin members can create repositories.
		**Note:** This parameter is deprecated and will be removed in the future. Its
		return value ignores internal repositories. Using this parameter overrides
		values set in `members_can_create_repositories`. See [this
		note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for
		details.
	*/
	MembersAllowedRepositoryCreationType *string `json:"members_allowed_repository_creation_type,omitempty"`

	/*
		Toggles whether organization members can create internal repositories, which are
		visible to all enterprise members. You can only allow members to create internal
		repositories if your organization is associated with an enterprise account using
		GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. Can be one of:
		\* `true` - all organization members can create internal repositories.
		\* `false` - only organization owners can create internal repositories.
		Default: `true`. For more information, see "[Restricting repository creation in
		your
		organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)"
		in the GitHub Help documentation.
	*/
	MembersCanCreateInternalRepositories *bool `json:"members_can_create_internal_repositories,omitempty"`

	/*
		Toggles whether organization members can create private repositories, which are
		visible to organization members with permission. Can be one of:
		\* `true` - all organization members can create private repositories.
		\* `false` - only organization owners can create private repositories.
		Default: `true`. For more information, see "[Restricting repository creation in
		your
		organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)"
		in the GitHub Help documentation.
	*/
	MembersCanCreatePrivateRepositories *bool `json:"members_can_create_private_repositories,omitempty"`

	/*
		Toggles whether organization members can create public repositories, which are
		visible to anyone. Can be one of:
		\* `true` - all organization members can create public repositories.
		\* `false` - only organization owners can create public repositories.
		Default: `true`. For more information, see "[Restricting repository creation in
		your
		organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)"
		in the GitHub Help documentation.
	*/
	MembersCanCreatePublicRepositories *bool `json:"members_can_create_public_repositories,omitempty"`

	/*
		Toggles the ability of non-admin organization members to create repositories.
		Can be one of:
		\* `true` - all organization members can create repositories.
		\* `false` - only organization owners can create repositories.
		Default: `true`
		**Note:** A parameter can override this parameter. See
		`members_allowed_repository_creation_type` in this table for details. **Note:**
		A parameter can override this parameter. See
		`members_allowed_repository_creation_type` in this table for details.
	*/
	MembersCanCreateRepositories *bool `json:"members_can_create_repositories,omitempty"`

	// The shorthand name of the company.
	Name *string `json:"name,omitempty"`

	// The Twitter username of the company.
	TwitterUsername *string `json:"twitter_username,omitempty"`
}

UpdateReqBody is a request body for orgs/update

https://developer.github.com/v3/orgs/#update-an-organization

type UpdateResponse

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

UpdateResponse is a response for Update

https://developer.github.com/v3/orgs/#update-an-organization

func Update

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

Update performs requests for "orgs/update"

Update an organization.

PATCH /orgs/{org}

https://developer.github.com/v3/orgs/#update-an-organization

func (*UpdateResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*UpdateResponse) ReadResponse

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

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

type UpdateWebhookReq

type UpdateWebhookReq struct {
	Org         string
	HookId      int64
	RequestBody UpdateWebhookReqBody
	// contains filtered or unexported fields
}

UpdateWebhookReq is request data for Client.UpdateWebhook

https://developer.github.com/v3/orgs/hooks/#update-an-organization-webhook

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

func (*UpdateWebhookReq) HTTPRequest

func (r *UpdateWebhookReq) 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 (*UpdateWebhookReq) Rel

func (r *UpdateWebhookReq) Rel(link string, resp *UpdateWebhookResponse) 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 UpdateWebhookReqBody

type UpdateWebhookReqBody struct {

	// Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.
	Active *bool `json:"active,omitempty"`

	/*
		Key/value pairs to provide settings for this webhook. [These are defined
		below](https://developer.github.com/v3/orgs/hooks/#update-hook-config-params).
	*/
	Config *UpdateWebhookReqBodyConfig `json:"config,omitempty"`

	// Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for.
	Events []string `json:"events,omitempty"`
	Name   *string  `json:"name,omitempty"`
}

UpdateWebhookReqBody is a request body for orgs/update-webhook

https://developer.github.com/v3/orgs/hooks/#update-an-organization-webhook

type UpdateWebhookReqBodyConfig

type UpdateWebhookReqBodyConfig struct {

	// The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
	ContentType *string `json:"content_type,omitempty"`

	/*
		Determines whether the SSL certificate of the host for `url` will be verified
		when delivering payloads. Supported values include `0` (verification is
		performed) and `1` (verification is not performed). The default is `0`. **We
		strongly recommend not setting this to `1` as you are subject to
		man-in-the-middle and other attacks.**
	*/
	InsecureSsl *string `json:"insecure_ssl,omitempty"`

	/*
		If provided, the `secret` will be used as the `key` to generate the HMAC hex
		digest value in the
		[`X-Hub-Signature`](https://developer.github.com/webhooks/event-payloads/#delivery-headers)
		header.
	*/
	Secret *string `json:"secret,omitempty"`

	// The URL to which the payloads will be delivered.
	Url *string `json:"url"`
}

UpdateWebhookReqBodyConfig is a value for UpdateWebhookReqBody's Config field

type UpdateWebhookResponse

type UpdateWebhookResponse struct {
	Data components.OrgHook
	// contains filtered or unexported fields
}

UpdateWebhookResponse is a response for UpdateWebhook

https://developer.github.com/v3/orgs/hooks/#update-an-organization-webhook

func UpdateWebhook

func UpdateWebhook(ctx context.Context, req *UpdateWebhookReq, opt ...requests.Option) (*UpdateWebhookResponse, error)

UpdateWebhook performs requests for "orgs/update-webhook"

Update an organization webhook.

PATCH /orgs/{org}/hooks/{hook_id}

https://developer.github.com/v3/orgs/hooks/#update-an-organization-webhook

func (*UpdateWebhookResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*UpdateWebhookResponse) ReadResponse

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

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

Jump to

Keyboard shortcuts

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