mock

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 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
}

func (*Remote) Activate

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

func (*Remote) Auth

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

func (*Remote) Deactivate

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

func (*Remote) File

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

func (*Remote) Hook

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

func (*Remote) Login

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

func (*Remote) Netrc

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

func (*Remote) Perm

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

func (*Remote) Repo

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

func (*Remote) Repos

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

func (*Remote) Status

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

Jump to

Keyboard shortcuts

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