forked from cloudfoundry-incubator/cflocal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.go
119 lines (97 loc) · 3.36 KB
/
app.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/sclevine/cflocal/cf/cmd (interfaces: App)
package mocks
import (
gomock "github.com/golang/mock/gomock"
remote "github.com/sclevine/cflocal/remote"
service "github.com/sclevine/cflocal/service"
io "io"
)
// Mock of App interface
type MockApp struct {
ctrl *gomock.Controller
recorder *_MockAppRecorder
}
// Recorder for MockApp (not exported)
type _MockAppRecorder struct {
mock *MockApp
}
func NewMockApp(ctrl *gomock.Controller) *MockApp {
mock := &MockApp{ctrl: ctrl}
mock.recorder = &_MockAppRecorder{mock}
return mock
}
func (_m *MockApp) EXPECT() *_MockAppRecorder {
return _m.recorder
}
func (_m *MockApp) Command(_param0 string) (string, error) {
ret := _m.ctrl.Call(_m, "Command", _param0)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockAppRecorder) Command(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Command", arg0)
}
func (_m *MockApp) Droplet(_param0 string) (io.ReadCloser, int64, error) {
ret := _m.ctrl.Call(_m, "Droplet", _param0)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(int64)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
func (_mr *_MockAppRecorder) Droplet(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Droplet", arg0)
}
func (_m *MockApp) Env(_param0 string) (*remote.AppEnv, error) {
ret := _m.ctrl.Call(_m, "Env", _param0)
ret0, _ := ret[0].(*remote.AppEnv)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockAppRecorder) Env(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Env", arg0)
}
func (_m *MockApp) Forward(_param0 string, _param1 service.Services) (service.Services, *service.ForwardConfig, error) {
ret := _m.ctrl.Call(_m, "Forward", _param0, _param1)
ret0, _ := ret[0].(service.Services)
ret1, _ := ret[1].(*service.ForwardConfig)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
func (_mr *_MockAppRecorder) Forward(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Forward", arg0, arg1)
}
func (_m *MockApp) Restart(_param0 string) error {
ret := _m.ctrl.Call(_m, "Restart", _param0)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAppRecorder) Restart(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Restart", arg0)
}
func (_m *MockApp) Services(_param0 string) (service.Services, error) {
ret := _m.ctrl.Call(_m, "Services", _param0)
ret0, _ := ret[0].(service.Services)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockAppRecorder) Services(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Services", arg0)
}
func (_m *MockApp) SetDroplet(_param0 string, _param1 io.Reader, _param2 int64) error {
ret := _m.ctrl.Call(_m, "SetDroplet", _param0, _param1, _param2)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAppRecorder) SetDroplet(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetDroplet", arg0, arg1, arg2)
}
func (_m *MockApp) SetEnv(_param0 string, _param1 map[string]string) error {
ret := _m.ctrl.Call(_m, "SetEnv", _param0, _param1)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockAppRecorder) SetEnv(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetEnv", arg0, arg1)
}