Documentation ¶
Index ¶
- type KeyOps
- func (_m *KeyOps) Create(project string, serviceAccountEmail string) (keyops.Key, []byte, error)
- func (_m *KeyOps) DeleteIfDisabled(key keyops.Key) error
- func (_m *KeyOps) EXPECT() *KeyOps_Expecter
- func (_m *KeyOps) EnsureDisabled(key keyops.Key) error
- func (_m *KeyOps) IsDisabled(key keyops.Key) (bool, error)
- type KeyOps_Create_Call
- func (_c *KeyOps_Create_Call) Return(_a0 keyops.Key, _a1 []byte, _a2 error) *KeyOps_Create_Call
- func (_c *KeyOps_Create_Call) Run(run func(project string, serviceAccountEmail string)) *KeyOps_Create_Call
- func (_c *KeyOps_Create_Call) RunAndReturn(run func(string, string) (keyops.Key, []byte, error)) *KeyOps_Create_Call
- type KeyOps_DeleteIfDisabled_Call
- type KeyOps_EnsureDisabled_Call
- type KeyOps_Expecter
- func (_e *KeyOps_Expecter) Create(project interface{}, serviceAccountEmail interface{}) *KeyOps_Create_Call
- func (_e *KeyOps_Expecter) DeleteIfDisabled(key interface{}) *KeyOps_DeleteIfDisabled_Call
- func (_e *KeyOps_Expecter) EnsureDisabled(key interface{}) *KeyOps_EnsureDisabled_Call
- func (_e *KeyOps_Expecter) IsDisabled(key interface{}) *KeyOps_IsDisabled_Call
- type KeyOps_IsDisabled_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyOps ¶
KeyOps is an autogenerated mock type for the KeyOps type
func NewKeyOps ¶
func NewKeyOps(t mockConstructorTestingTNewKeyOps) *KeyOps
NewKeyOps creates a new instance of KeyOps. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*KeyOps) Create ¶
Create provides a mock function with given fields: project, serviceAccountEmail
func (*KeyOps) DeleteIfDisabled ¶
DeleteIfDisabled provides a mock function with given fields: key
func (*KeyOps) EXPECT ¶
func (_m *KeyOps) EXPECT() *KeyOps_Expecter
func (*KeyOps) EnsureDisabled ¶
EnsureDisabled provides a mock function with given fields: key
type KeyOps_Create_Call ¶
KeyOps_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*KeyOps_Create_Call) Return ¶
func (_c *KeyOps_Create_Call) Return(_a0 keyops.Key, _a1 []byte, _a2 error) *KeyOps_Create_Call
func (*KeyOps_Create_Call) Run ¶
func (_c *KeyOps_Create_Call) Run(run func(project string, serviceAccountEmail string)) *KeyOps_Create_Call
func (*KeyOps_Create_Call) RunAndReturn ¶
func (_c *KeyOps_Create_Call) RunAndReturn(run func(string, string) (keyops.Key, []byte, error)) *KeyOps_Create_Call
type KeyOps_DeleteIfDisabled_Call ¶
KeyOps_DeleteIfDisabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIfDisabled'
func (*KeyOps_DeleteIfDisabled_Call) Return ¶
func (_c *KeyOps_DeleteIfDisabled_Call) Return(_a0 error) *KeyOps_DeleteIfDisabled_Call
func (*KeyOps_DeleteIfDisabled_Call) Run ¶
func (_c *KeyOps_DeleteIfDisabled_Call) Run(run func(key keyops.Key)) *KeyOps_DeleteIfDisabled_Call
func (*KeyOps_DeleteIfDisabled_Call) RunAndReturn ¶
func (_c *KeyOps_DeleteIfDisabled_Call) RunAndReturn(run func(keyops.Key) error) *KeyOps_DeleteIfDisabled_Call
type KeyOps_EnsureDisabled_Call ¶
KeyOps_EnsureDisabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureDisabled'
func (*KeyOps_EnsureDisabled_Call) Return ¶
func (_c *KeyOps_EnsureDisabled_Call) Return(_a0 error) *KeyOps_EnsureDisabled_Call
func (*KeyOps_EnsureDisabled_Call) Run ¶
func (_c *KeyOps_EnsureDisabled_Call) Run(run func(key keyops.Key)) *KeyOps_EnsureDisabled_Call
func (*KeyOps_EnsureDisabled_Call) RunAndReturn ¶
func (_c *KeyOps_EnsureDisabled_Call) RunAndReturn(run func(keyops.Key) error) *KeyOps_EnsureDisabled_Call
type KeyOps_Expecter ¶
type KeyOps_Expecter struct {
// contains filtered or unexported fields
}
func (*KeyOps_Expecter) Create ¶
func (_e *KeyOps_Expecter) Create(project interface{}, serviceAccountEmail interface{}) *KeyOps_Create_Call
Create is a helper method to define mock.On call
- project string
- serviceAccountEmail string
func (*KeyOps_Expecter) DeleteIfDisabled ¶
func (_e *KeyOps_Expecter) DeleteIfDisabled(key interface{}) *KeyOps_DeleteIfDisabled_Call
DeleteIfDisabled is a helper method to define mock.On call
- key keyops.Key
func (*KeyOps_Expecter) EnsureDisabled ¶
func (_e *KeyOps_Expecter) EnsureDisabled(key interface{}) *KeyOps_EnsureDisabled_Call
EnsureDisabled is a helper method to define mock.On call
- key keyops.Key
func (*KeyOps_Expecter) IsDisabled ¶
func (_e *KeyOps_Expecter) IsDisabled(key interface{}) *KeyOps_IsDisabled_Call
IsDisabled is a helper method to define mock.On call
- key keyops.Key
type KeyOps_IsDisabled_Call ¶
KeyOps_IsDisabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDisabled'
func (*KeyOps_IsDisabled_Call) Return ¶
func (_c *KeyOps_IsDisabled_Call) Return(_a0 bool, _a1 error) *KeyOps_IsDisabled_Call
func (*KeyOps_IsDisabled_Call) Run ¶
func (_c *KeyOps_IsDisabled_Call) Run(run func(key keyops.Key)) *KeyOps_IsDisabled_Call
func (*KeyOps_IsDisabled_Call) RunAndReturn ¶
func (_c *KeyOps_IsDisabled_Call) RunAndReturn(run func(keyops.Key) (bool, error)) *KeyOps_IsDisabled_Call