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

Method SystemResourceCreate

pkg/mock/sdk/interface.go:1765–1785  ·  view source on GitHub ↗

SystemResourceCreate provides a mock function with given fields: kind, opts

(kind string, opts structs.ResourceCreateOptions)

Source from the content-addressed store, hash-verified

1763
1764// SystemResourceCreate provides a mock function with given fields: kind, opts
1765func (_m *Interface) SystemResourceCreate(kind string, opts structs.ResourceCreateOptions) (*structs.Resource, error) {
1766 ret := _m.Called(kind, opts)
1767
1768 var r0 *structs.Resource
1769 if rf, ok := ret.Get(0).(func(string, structs.ResourceCreateOptions) *structs.Resource); ok {
1770 r0 = rf(kind, opts)
1771 } else {
1772 if ret.Get(0) != nil {
1773 r0 = ret.Get(0).(*structs.Resource)
1774 }
1775 }
1776
1777 var r1 error
1778 if rf, ok := ret.Get(1).(func(string, structs.ResourceCreateOptions) error); ok {
1779 r1 = rf(kind, opts)
1780 } else {
1781 r1 = ret.Error(1)
1782 }
1783
1784 return r0, r1
1785}
1786
1787// SystemResourceCreateClassic provides a mock function with given fields: _a0, _a1
1788func (_m *Interface) SystemResourceCreateClassic(_a0 string, _a1 structs.ResourceCreateOptions) (*structs.Resource, error) {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected