mock

package
v0.0.0-...-9a7e689 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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
}

Remote 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) FileRef

func (_m *Remote) FileRef(u *model.User, r *model.Repo, ref string, f string) ([]byte, error)

FileRef provides a mock function with given fields: u, r, ref, 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

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

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