fakeghhook

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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