//go:build !ignore_autogenerated
// +build !ignore_autogenerated

// Code generated by mga tool. DO NOT EDIT.

package commonadapter

import (
	"github.com/banzaicloud/pipeline/src/secret"
	"github.com/stretchr/testify/mock"
)

// MockReadWriteOrganizationalSecretStore is an autogenerated mock for the ReadWriteOrganizationalSecretStore type.
type MockReadWriteOrganizationalSecretStore struct {
	mock.Mock
}

// Delete provides a mock function.
func (_m *MockReadWriteOrganizationalSecretStore) Delete(organizationID uint, secretID string) (_result_0 error) {
	ret := _m.Called(organizationID, secretID)

	var r0 error
	if rf, ok := ret.Get(0).(func(uint, string) error); ok {
		r0 = rf(organizationID, secretID)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Get provides a mock function.
func (_m *MockReadWriteOrganizationalSecretStore) Get(organizationID uint, secretID string) (_result_0 *secret.SecretItemResponse, _result_1 error) {
	ret := _m.Called(organizationID, secretID)

	var r0 *secret.SecretItemResponse
	if rf, ok := ret.Get(0).(func(uint, string) *secret.SecretItemResponse); ok {
		r0 = rf(organizationID, secretID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*secret.SecretItemResponse)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(uint, string) error); ok {
		r1 = rf(organizationID, secretID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetByName provides a mock function.
func (_m *MockReadWriteOrganizationalSecretStore) GetByName(organizationID uint, name string) (_result_0 *secret.SecretItemResponse, _result_1 error) {
	ret := _m.Called(organizationID, name)

	var r0 *secret.SecretItemResponse
	if rf, ok := ret.Get(0).(func(uint, string) *secret.SecretItemResponse); ok {
		r0 = rf(organizationID, name)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*secret.SecretItemResponse)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(uint, string) error); ok {
		r1 = rf(organizationID, name)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Store provides a mock function.
func (_m *MockReadWriteOrganizationalSecretStore) Store(organizationID uint, request *secret.CreateSecretRequest) (_result_0 string, _result_1 error) {
	ret := _m.Called(organizationID, request)

	var r0 string
	if rf, ok := ret.Get(0).(func(uint, *secret.CreateSecretRequest) string); ok {
		r0 = rf(organizationID, request)
	} else {
		r0 = ret.Get(0).(string)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(uint, *secret.CreateSecretRequest) error); ok {
		r1 = rf(organizationID, request)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
