mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
dfab156427
* add new step vault secret * add debug log Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
60 lines
1.2 KiB
Go
60 lines
1.2 KiB
Go
// Code generated by mockery v2.3.0. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
api "github.com/hashicorp/vault/api"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// VaultMock is an autogenerated mock type for the logicalClient type
|
|
type VaultMock struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// Read provides a mock function with given fields: _a0
|
|
func (_m *VaultMock) Read(_a0 string) (*api.Secret, error) {
|
|
ret := _m.Called(_a0)
|
|
|
|
var r0 *api.Secret
|
|
if rf, ok := ret.Get(0).(func(string) *api.Secret); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*api.Secret)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(string) error); ok {
|
|
r1 = rf(_a0)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// Write provides a mock function with given fields: _a0, _a1
|
|
func (_m *VaultMock) Write(_a0 string, _a1 map[string]interface{}) (*api.Secret, error) {
|
|
ret := _m.Called(_a0, _a1)
|
|
|
|
var r0 *api.Secret
|
|
if rf, ok := ret.Get(0).(func(string, map[string]interface{}) *api.Secret); ok {
|
|
r0 = rf(_a0, _a1)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*api.Secret)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(string, map[string]interface{}) error); ok {
|
|
r1 = rf(_a0, _a1)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|