mocks

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApp

type MockApp struct {
	// contains filtered or unexported fields
}

Mock of App interface

func NewMockApp

func NewMockApp(ctrl *gomock.Controller) *MockApp

func (*MockApp) Command

func (_m *MockApp) Command(_param0 string) (string, error)

func (*MockApp) Droplet

func (_m *MockApp) Droplet(_param0 string) (io.ReadCloser, int64, error)

func (*MockApp) EXPECT

func (_m *MockApp) EXPECT() *_MockAppRecorder

func (*MockApp) Env

func (_m *MockApp) Env(_param0 string) (*remote.AppEnv, error)

func (*MockApp) Forward

func (_m *MockApp) Forward(_param0 string, _param1 service.Services) (service.Services, *service.ForwardConfig, error)

func (*MockApp) Restart

func (_m *MockApp) Restart(_param0 string) error

func (*MockApp) Services

func (_m *MockApp) Services(_param0 string) (service.Services, error)

func (*MockApp) SetDroplet

func (_m *MockApp) SetDroplet(_param0 string, _param1 io.Reader, _param2 int64) error

func (*MockApp) SetEnv

func (_m *MockApp) SetEnv(_param0 string, _param1 map[string]string) error

type MockConfig

type MockConfig struct {
	// contains filtered or unexported fields
}

Mock of Config interface

func NewMockConfig

func NewMockConfig(ctrl *gomock.Controller) *MockConfig

func (*MockConfig) EXPECT

func (_m *MockConfig) EXPECT() *_MockConfigRecorder

func (*MockConfig) Load

func (_m *MockConfig) Load() (*local.LocalYML, error)

func (*MockConfig) Save

func (_m *MockConfig) Save(_param0 *local.LocalYML) error

type MockFS

type MockFS struct {
	// contains filtered or unexported fields
}

Mock of FS interface

func NewMockFS

func NewMockFS(ctrl *gomock.Controller) *MockFS

func (*MockFS) Abs

func (_m *MockFS) Abs(_param0 string) (string, error)

func (*MockFS) EXPECT

func (_m *MockFS) EXPECT() *_MockFSRecorder

func (*MockFS) MakeDirAll

func (_m *MockFS) MakeDirAll(_param0 string) error

func (*MockFS) OpenFile added in v0.10.0

func (_m *MockFS) OpenFile(_param0 string) (fs.ReadResetWriteCloser, int64, error)

func (*MockFS) ReadFile

func (_m *MockFS) ReadFile(_param0 string) (io.ReadCloser, int64, error)

func (*MockFS) TarApp added in v0.10.0

func (_m *MockFS) TarApp(_param0 string) (io.ReadCloser, error)

func (*MockFS) Watch added in v0.13.0

func (_m *MockFS) Watch(_param0 string, _param1 time.Duration) (<-chan time.Time, chan<- struct{}, error)

func (*MockFS) WriteFile

func (_m *MockFS) WriteFile(_param0 string) (io.WriteCloser, error)

type MockForwarder added in v0.14.0

type MockForwarder struct {
	// contains filtered or unexported fields
}

Mock of Forwarder interface

func NewMockForwarder added in v0.14.0

func NewMockForwarder(ctrl *gomock.Controller) *MockForwarder

func (*MockForwarder) EXPECT added in v0.14.0

func (_m *MockForwarder) EXPECT() *_MockForwarderRecorder

func (*MockForwarder) Forward added in v0.14.0

func (_m *MockForwarder) Forward(_param0 *local.ForwardConfig) (<-chan string, func(), string, error)

type MockHelp

type MockHelp struct {
	// contains filtered or unexported fields
}

Mock of Help interface

func NewMockHelp

func NewMockHelp(ctrl *gomock.Controller) *MockHelp

func (*MockHelp) EXPECT

func (_m *MockHelp) EXPECT() *_MockHelpRecorder

func (*MockHelp) Short added in v0.2.0

func (_m *MockHelp) Short()

type MockRunner

type MockRunner struct {
	// contains filtered or unexported fields
}

Mock of Runner interface

func NewMockRunner

func NewMockRunner(ctrl *gomock.Controller) *MockRunner

func (*MockRunner) EXPECT

func (_m *MockRunner) EXPECT() *_MockRunnerRecorder

func (*MockRunner) Export

func (_m *MockRunner) Export(_param0 *local.ExportConfig) (string, error)

func (*MockRunner) Run

func (_m *MockRunner) Run(_param0 *local.RunConfig) (int64, error)

type MockStager

type MockStager struct {
	// contains filtered or unexported fields
}

Mock of Stager interface

func NewMockStager

func NewMockStager(ctrl *gomock.Controller) *MockStager

func (*MockStager) Download

func (_m *MockStager) Download(_param0 string) (engine.Stream, error)

func (*MockStager) EXPECT

func (_m *MockStager) EXPECT() *_MockStagerRecorder

func (*MockStager) Stage

func (_m *MockStager) Stage(_param0 *local.StageConfig) (engine.Stream, error)

Jump to

Keyboard shortcuts

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