// Code generated by MockGen. DO NOT EDIT.
// Source: 1password.go
//
// Generated by this command:
//
//	mockgen -destination=mocks/mock_onepassword.go -package=mocks -source=1password.go OnePasswordClient
//

// Package mocks is a generated GoMock package.
package mocks

import (
	context "context"
	reflect "reflect"

	onepassword "github.com/1password/onepassword-sdk-go"
	gomock "go.uber.org/mock/gomock"
)

// MockOnePasswordClient is a mock of OnePasswordClient interface.
type MockOnePasswordClient struct {
	ctrl     *gomock.Controller
	recorder *MockOnePasswordClientMockRecorder
	isgomock struct{}
}

// MockOnePasswordClientMockRecorder is the mock recorder for MockOnePasswordClient.
type MockOnePasswordClientMockRecorder struct {
	mock *MockOnePasswordClient
}

// NewMockOnePasswordClient creates a new mock instance.
func NewMockOnePasswordClient(ctrl *gomock.Controller) *MockOnePasswordClient {
	mock := &MockOnePasswordClient{ctrl: ctrl}
	mock.recorder = &MockOnePasswordClientMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockOnePasswordClient) EXPECT() *MockOnePasswordClientMockRecorder {
	return m.recorder
}

// GetItem mocks base method.
func (m *MockOnePasswordClient) GetItem(ctx context.Context, vaultID, itemID string) (onepassword.Item, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetItem", ctx, vaultID, itemID)
	ret0, _ := ret[0].(onepassword.Item)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetItem indicates an expected call of GetItem.
func (mr *MockOnePasswordClientMockRecorder) GetItem(ctx, vaultID, itemID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItem", reflect.TypeOf((*MockOnePasswordClient)(nil).GetItem), ctx, vaultID, itemID)
}

// ListItems mocks base method.
func (m *MockOnePasswordClient) ListItems(ctx context.Context, vaultID string, filters ...onepassword.ItemListFilter) ([]onepassword.ItemOverview, error) {
	m.ctrl.T.Helper()
	varargs := []any{ctx, vaultID}
	for _, a := range filters {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "ListItems", varargs...)
	ret0, _ := ret[0].([]onepassword.ItemOverview)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListItems indicates an expected call of ListItems.
func (mr *MockOnePasswordClientMockRecorder) ListItems(ctx, vaultID any, filters ...any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{ctx, vaultID}, filters...)
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListItems", reflect.TypeOf((*MockOnePasswordClient)(nil).ListItems), varargs...)
}

// ListVaults mocks base method.
func (m *MockOnePasswordClient) ListVaults(ctx context.Context) ([]onepassword.VaultOverview, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListVaults", ctx)
	ret0, _ := ret[0].([]onepassword.VaultOverview)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListVaults indicates an expected call of ListVaults.
func (mr *MockOnePasswordClientMockRecorder) ListVaults(ctx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVaults", reflect.TypeOf((*MockOnePasswordClient)(nil).ListVaults), ctx)
}

// Resolve mocks base method.
func (m *MockOnePasswordClient) Resolve(ctx context.Context, secretReference string) (string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Resolve", ctx, secretReference)
	ret0, _ := ret[0].(string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// Resolve indicates an expected call of Resolve.
func (mr *MockOnePasswordClientMockRecorder) Resolve(ctx, secretReference any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resolve", reflect.TypeOf((*MockOnePasswordClient)(nil).Resolve), ctx, secretReference)
}
