MCPcopy Create free account
hub / github.com/convox/rack / InstanceShell

Method InstanceShell

pkg/mock/sdk/interface.go:807–825  ·  view source on GitHub ↗

InstanceShell provides a mock function with given fields: id, rw, opts

(id string, rw io.ReadWriter, opts structs.InstanceShellOptions)

Source from the content-addressed store, hash-verified

805
806// InstanceShell provides a mock function with given fields: id, rw, opts
807func (_m *Interface) InstanceShell(id string, rw io.ReadWriter, opts structs.InstanceShellOptions) (int, error) {
808 ret := _m.Called(id, rw, opts)
809
810 var r0 int
811 if rf, ok := ret.Get(0).(func(string, io.ReadWriter, structs.InstanceShellOptions) int); ok {
812 r0 = rf(id, rw, opts)
813 } else {
814 r0 = ret.Get(0).(int)
815 }
816
817 var r1 error
818 if rf, ok := ret.Get(1).(func(string, io.ReadWriter, structs.InstanceShellOptions) error); ok {
819 r1 = rf(id, rw, opts)
820 } else {
821 r1 = ret.Error(1)
822 }
823
824 return r0, r1
825}
826
827// InstanceShellClassic provides a mock function with given fields: _a0, _a1, _a2
828func (_m *Interface) InstanceShellClassic(_a0 string, _a1 io.ReadWriter, _a2 structs.InstanceShellOptions) (int, error) {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected