mocks

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

func (*Client) AttachToContainer

func (m *Client) AttachToContainer(opts docker.AttachToContainerOptions) error

func (*Client) CreateContainer

func (m *Client) CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error)

func (*Client) ImportImage added in v1.3.0

func (m *Client) ImportImage(opts docker.ImportImageOptions) error

func (*Client) Info added in v1.3.0

func (m *Client) Info() (*docker.Env, error)

func (*Client) InspectContainer

func (m *Client) InspectContainer(id string) (*docker.Container, error)

func (*Client) InspectImage

func (m *Client) InspectImage(name string) (*docker.Image, error)

func (*Client) KillContainer added in v1.2.0

func (m *Client) KillContainer(opts docker.KillContainerOptions) error

func (*Client) Logs

func (m *Client) Logs(opts docker.LogsOptions) error

func (*Client) PullImage

func (m *Client) PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error

func (*Client) RemoveContainer

func (m *Client) RemoveContainer(opts docker.RemoveContainerOptions) error

func (*Client) StartContainer

func (m *Client) StartContainer(id string, hostConfig *docker.HostConfig) error

func (*Client) WaitContainer

func (m *Client) WaitContainer(id string) (int, error)

type Interface

type Interface struct {
	mock.Mock
}

func (*Interface) Start

func (m *Interface) Start(s service.Service) error

func (*Interface) Stop

func (m *Interface) Stop(s service.Service) error

type Network

type Network struct {
	mock.Mock
}

func (*Network) DeleteRunner

func (m *Network) DeleteRunner(config common.RunnerCredentials) bool

func (*Network) DownloadArtifacts

func (m *Network) DownloadArtifacts(config common.BuildCredentials, artifactsFile string) common.DownloadState

func (*Network) GetBuild

func (m *Network) GetBuild(config common.RunnerConfig) (*common.GetBuildResponse, bool)

func (*Network) PatchTrace added in v1.3.0

func (m *Network) PatchTrace(config common.RunnerConfig, buildCredentials *common.BuildCredentials, tracePatch common.BuildTracePatch) common.UpdateState

func (*Network) ProcessBuild

func (m *Network) ProcessBuild(config common.RunnerConfig, buildCredentials *common.BuildCredentials) common.BuildTrace

func (*Network) RegisterRunner

func (m *Network) RegisterRunner(config common.RunnerCredentials, description string, tags string) *common.RegisterRunnerResponse

func (*Network) UpdateBuild

func (m *Network) UpdateBuild(config common.RunnerConfig, id int, state common.BuildState, trace *string) common.UpdateState

func (*Network) UploadArtifacts

func (m *Network) UploadArtifacts(config common.BuildCredentials, artifactsFile string) common.UploadState

func (*Network) UploadRawArtifacts

func (m *Network) UploadRawArtifacts(config common.BuildCredentials, reader io.Reader, baseName string, expireIn string) common.UploadState

func (*Network) VerifyRunner

func (m *Network) VerifyRunner(config common.RunnerCredentials) bool

Jump to

Keyboard shortcuts

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