Documentation ¶
Index ¶
- type FakeClient
- func (f *FakeClient) AcceptUserOrgInvitation(org string) error
- func (f *FakeClient) AcceptUserRepoInvitation(invitationID int) error
- func (f *FakeClient) CreateOrgHook(org string, req github.HookRequest) (int, error)
- func (f *FakeClient) CreateRepoHook(org, repo string, req github.HookRequest) (int, error)
- func (f *FakeClient) DeleteOrgHook(org string, id int, req github.HookRequest) error
- func (f *FakeClient) DeleteRepoHook(org, repo string, id int, req github.HookRequest) error
- func (f *FakeClient) EditOrgHook(org string, id int, req github.HookRequest) error
- func (f *FakeClient) EditRepoHook(org, repo string, id int, req github.HookRequest) error
- func (f *FakeClient) ListCurrentUserOrgInvitations() ([]github.UserOrgInvitation, error)
- func (f *FakeClient) ListCurrentUserRepoInvitations() ([]github.UserRepoInvitation, error)
- func (f *FakeClient) ListOrgHooks(org string) ([]github.Hook, error)
- func (f *FakeClient) ListRepoHooks(org, repo string) ([]github.Hook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { // Maps org name to the list of hooks OrgHooks map[string][]github.Hook // Maps repo name to the list of hooks RepoHooks map[string][]github.Hook UserRepoInvitations []github.UserRepoInvitation UserOrgInvitations []github.UserOrgInvitation }
FakeClient is like client, but fake.
func (*FakeClient) AcceptUserOrgInvitation ¶
func (f *FakeClient) AcceptUserOrgInvitation(org string) error
func (*FakeClient) AcceptUserRepoInvitation ¶
func (f *FakeClient) AcceptUserRepoInvitation(invitationID int) error
func (*FakeClient) CreateOrgHook ¶
func (f *FakeClient) CreateOrgHook(org string, req github.HookRequest) (int, error)
func (*FakeClient) CreateRepoHook ¶
func (f *FakeClient) CreateRepoHook(org, repo string, req github.HookRequest) (int, error)
func (*FakeClient) DeleteOrgHook ¶
func (f *FakeClient) DeleteOrgHook(org string, id int, req github.HookRequest) error
func (*FakeClient) DeleteRepoHook ¶
func (f *FakeClient) DeleteRepoHook(org, repo string, id int, req github.HookRequest) error
func (*FakeClient) EditOrgHook ¶
func (f *FakeClient) EditOrgHook(org string, id int, req github.HookRequest) error
func (*FakeClient) EditRepoHook ¶
func (f *FakeClient) EditRepoHook(org, repo string, id int, req github.HookRequest) error
func (*FakeClient) ListCurrentUserOrgInvitations ¶
func (f *FakeClient) ListCurrentUserOrgInvitations() ([]github.UserOrgInvitation, error)
func (*FakeClient) ListCurrentUserRepoInvitations ¶
func (f *FakeClient) ListCurrentUserRepoInvitations() ([]github.UserRepoInvitation, error)
func (*FakeClient) ListOrgHooks ¶
func (f *FakeClient) ListOrgHooks(org string) ([]github.Hook, error)
func (*FakeClient) ListRepoHooks ¶
func (f *FakeClient) ListRepoHooks(org, repo string) ([]github.Hook, error)
Click to show internal directories.
Click to hide internal directories.