github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/secrets/mocks/backend_mocks.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/secrets/provider (interfaces: SecretsBackend)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/backend_mocks.go github.com/juju/juju/secrets/provider SecretsBackend
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	context "context"
    14  	reflect "reflect"
    15  
    16  	secrets "github.com/juju/juju/core/secrets"
    17  	gomock "go.uber.org/mock/gomock"
    18  )
    19  
    20  // MockSecretsBackend is a mock of SecretsBackend interface.
    21  type MockSecretsBackend struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockSecretsBackendMockRecorder
    24  }
    25  
    26  // MockSecretsBackendMockRecorder is the mock recorder for MockSecretsBackend.
    27  type MockSecretsBackendMockRecorder struct {
    28  	mock *MockSecretsBackend
    29  }
    30  
    31  // NewMockSecretsBackend creates a new mock instance.
    32  func NewMockSecretsBackend(ctrl *gomock.Controller) *MockSecretsBackend {
    33  	mock := &MockSecretsBackend{ctrl: ctrl}
    34  	mock.recorder = &MockSecretsBackendMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockSecretsBackend) EXPECT() *MockSecretsBackendMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // DeleteContent mocks base method.
    44  func (m *MockSecretsBackend) DeleteContent(arg0 context.Context, arg1 string) error {
    45  	m.ctrl.T.Helper()
    46  	ret := m.ctrl.Call(m, "DeleteContent", arg0, arg1)
    47  	ret0, _ := ret[0].(error)
    48  	return ret0
    49  }
    50  
    51  // DeleteContent indicates an expected call of DeleteContent.
    52  func (mr *MockSecretsBackendMockRecorder) DeleteContent(arg0, arg1 any) *gomock.Call {
    53  	mr.mock.ctrl.T.Helper()
    54  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteContent", reflect.TypeOf((*MockSecretsBackend)(nil).DeleteContent), arg0, arg1)
    55  }
    56  
    57  // GetContent mocks base method.
    58  func (m *MockSecretsBackend) GetContent(arg0 context.Context, arg1 string) (secrets.SecretValue, error) {
    59  	m.ctrl.T.Helper()
    60  	ret := m.ctrl.Call(m, "GetContent", arg0, arg1)
    61  	ret0, _ := ret[0].(secrets.SecretValue)
    62  	ret1, _ := ret[1].(error)
    63  	return ret0, ret1
    64  }
    65  
    66  // GetContent indicates an expected call of GetContent.
    67  func (mr *MockSecretsBackendMockRecorder) GetContent(arg0, arg1 any) *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContent", reflect.TypeOf((*MockSecretsBackend)(nil).GetContent), arg0, arg1)
    70  }
    71  
    72  // Ping mocks base method.
    73  func (m *MockSecretsBackend) Ping() error {
    74  	m.ctrl.T.Helper()
    75  	ret := m.ctrl.Call(m, "Ping")
    76  	ret0, _ := ret[0].(error)
    77  	return ret0
    78  }
    79  
    80  // Ping indicates an expected call of Ping.
    81  func (mr *MockSecretsBackendMockRecorder) Ping() *gomock.Call {
    82  	mr.mock.ctrl.T.Helper()
    83  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockSecretsBackend)(nil).Ping))
    84  }
    85  
    86  // SaveContent mocks base method.
    87  func (m *MockSecretsBackend) SaveContent(arg0 context.Context, arg1 *secrets.URI, arg2 int, arg3 secrets.SecretValue) (string, error) {
    88  	m.ctrl.T.Helper()
    89  	ret := m.ctrl.Call(m, "SaveContent", arg0, arg1, arg2, arg3)
    90  	ret0, _ := ret[0].(string)
    91  	ret1, _ := ret[1].(error)
    92  	return ret0, ret1
    93  }
    94  
    95  // SaveContent indicates an expected call of SaveContent.
    96  func (mr *MockSecretsBackendMockRecorder) SaveContent(arg0, arg1, arg2, arg3 any) *gomock.Call {
    97  	mr.mock.ctrl.T.Helper()
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveContent", reflect.TypeOf((*MockSecretsBackend)(nil).SaveContent), arg0, arg1, arg2, arg3)
    99  }