Documentation ¶
Index ¶
- type Forge
- func (_m *Forge) Activate(ctx context.Context, u *model.User, r *model.Repo, link string) error
- func (_m *Forge) Auth(ctx context.Context, token string, secret string) (string, error)
- func (_m *Forge) BranchHead(ctx context.Context, u *model.User, r *model.Repo, branch string) (string, error)
- func (_m *Forge) Branches(ctx context.Context, u *model.User, r *model.Repo, p *model.ListOptions) ([]string, error)
- func (_m *Forge) Deactivate(ctx context.Context, u *model.User, r *model.Repo, link string) error
- func (_m *Forge) Dir(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, f string) ([]*types.FileMeta, error)
- func (_m *Forge) File(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, f string) ([]byte, error)
- func (_m *Forge) Hook(ctx context.Context, r *http.Request) (*model.Repo, *model.Pipeline, error)
- func (_m *Forge) Login(ctx context.Context, w http.ResponseWriter, r *http.Request) (*model.User, error)
- func (_m *Forge) Name() string
- func (_m *Forge) Netrc(u *model.User, r *model.Repo) (*model.Netrc, error)
- func (_m *Forge) Org(ctx context.Context, u *model.User, org string) (*model.Org, error)
- func (_m *Forge) OrgMembership(ctx context.Context, u *model.User, org string) (*model.OrgPerm, error)
- func (_m *Forge) PullRequests(ctx context.Context, u *model.User, r *model.Repo, p *model.ListOptions) ([]*model.PullRequest, error)
- func (_m *Forge) Repo(ctx context.Context, u *model.User, remoteID model.ForgeRemoteID, owner string, ...) (*model.Repo, error)
- func (_m *Forge) Repos(ctx context.Context, u *model.User) ([]*model.Repo, error)
- func (_m *Forge) Status(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, ...) error
- func (_m *Forge) Teams(ctx context.Context, u *model.User) ([]*model.Team, error)
- func (_m *Forge) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forge ¶
Forge is an autogenerated mock type for the Forge type
func NewForge ¶
NewForge creates a new instance of Forge. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Forge) BranchHead ¶
func (_m *Forge) BranchHead(ctx context.Context, u *model.User, r *model.Repo, branch string) (string, error)
BranchHead provides a mock function with given fields: ctx, u, r, branch
func (*Forge) Branches ¶
func (_m *Forge) Branches(ctx context.Context, u *model.User, r *model.Repo, p *model.ListOptions) ([]string, error)
Branches provides a mock function with given fields: ctx, u, r, p
func (*Forge) Deactivate ¶
Deactivate provides a mock function with given fields: ctx, u, r, link
func (*Forge) Dir ¶
func (_m *Forge) Dir(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, f string) ([]*types.FileMeta, error)
Dir provides a mock function with given fields: ctx, u, r, b, f
func (*Forge) File ¶
func (_m *Forge) File(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, f string) ([]byte, error)
File provides a mock function with given fields: ctx, u, r, b, f
func (*Forge) Login ¶
func (_m *Forge) Login(ctx context.Context, w http.ResponseWriter, r *http.Request) (*model.User, error)
Login provides a mock function with given fields: ctx, w, r
func (*Forge) OrgMembership ¶
func (_m *Forge) OrgMembership(ctx context.Context, u *model.User, org string) (*model.OrgPerm, error)
OrgMembership provides a mock function with given fields: ctx, u, org
func (*Forge) PullRequests ¶
func (_m *Forge) PullRequests(ctx context.Context, u *model.User, r *model.Repo, p *model.ListOptions) ([]*model.PullRequest, error)
PullRequests provides a mock function with given fields: ctx, u, r, p
func (*Forge) Repo ¶
func (_m *Forge) Repo(ctx context.Context, u *model.User, remoteID model.ForgeRemoteID, owner string, name string) (*model.Repo, error)
Repo provides a mock function with given fields: ctx, u, remoteID, owner, name
func (*Forge) Status ¶
func (_m *Forge) Status(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, p *model.Workflow) error
Status provides a mock function with given fields: ctx, u, r, b, p