mock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2017 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remote

type Remote struct {
	mock.Mock
}

This is an autogenerated mock type for the Remote type

func (*Remote) Activate

func (_m *Remote) Activate(u *model.User, r *model.Repo, link string) error

Activate provides a mock function with given fields: u, r, link

func (*Remote) Auth

func (_m *Remote) Auth(token string, secret string) (string, error)

Auth provides a mock function with given fields: token, secret

func (*Remote) Deactivate

func (_m *Remote) Deactivate(u *model.User, r *model.Repo, link string) error

Deactivate provides a mock function with given fields: u, r, link

func (*Remote) File

func (_m *Remote) File(u *model.User, r *model.Repo, b *model.Build, f string) ([]byte, error)

File provides a mock function with given fields: u, r, b, f

func (*Remote) Hook

func (_m *Remote) Hook(r *http.Request) (*model.Repo, *model.Build, error)

Hook provides a mock function with given fields: r

func (*Remote) Login

func (_m *Remote) Login(w http.ResponseWriter, r *http.Request) (*model.User, error)

Login provides a mock function with given fields: w, r

func (*Remote) Netrc

func (_m *Remote) Netrc(u *model.User, r *model.Repo) (*model.Netrc, error)

Netrc provides a mock function with given fields: u, r

func (*Remote) Perm

func (_m *Remote) Perm(u *model.User, owner string, repo string) (*model.Perm, error)

Perm provides a mock function with given fields: u, owner, repo

func (*Remote) Repo

func (_m *Remote) Repo(u *model.User, owner string, repo string) (*model.Repo, error)

Repo provides a mock function with given fields: u, owner, repo

func (*Remote) Repos

func (_m *Remote) Repos(u *model.User) ([]*model.RepoLite, error)

Repos provides a mock function with given fields: u

func (*Remote) Status

func (_m *Remote) Status(u *model.User, r *model.Repo, b *model.Build, link string) error

Status provides a mock function with given fields: u, r, b, link

func (*Remote) TeamPerm added in v0.5.0

func (_m *Remote) TeamPerm(u *model.User, org string) (*model.Perm, error)

TeamPerm provides a mock function with given fields: u, org

func (*Remote) Teams added in v0.5.0

func (_m *Remote) Teams(u *model.User) ([]*model.Team, error)

Teams provides a mock function with given fields: u

Jump to

Keyboard shortcuts

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