github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/docker/registry/internal/mocks/ecr_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/docker/registry/internal (interfaces: ECRInterface) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/ecr_mock.go github.com/juju/juju/docker/registry/internal ECRInterface 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 context "context" 14 reflect "reflect" 15 16 ecr "github.com/aws/aws-sdk-go-v2/service/ecr" 17 gomock "go.uber.org/mock/gomock" 18 ) 19 20 // MockECRInterface is a mock of ECRInterface interface. 21 type MockECRInterface struct { 22 ctrl *gomock.Controller 23 recorder *MockECRInterfaceMockRecorder 24 } 25 26 // MockECRInterfaceMockRecorder is the mock recorder for MockECRInterface. 27 type MockECRInterfaceMockRecorder struct { 28 mock *MockECRInterface 29 } 30 31 // NewMockECRInterface creates a new mock instance. 32 func NewMockECRInterface(ctrl *gomock.Controller) *MockECRInterface { 33 mock := &MockECRInterface{ctrl: ctrl} 34 mock.recorder = &MockECRInterfaceMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockECRInterface) EXPECT() *MockECRInterfaceMockRecorder { 40 return m.recorder 41 } 42 43 // GetAuthorizationToken mocks base method. 44 func (m *MockECRInterface) GetAuthorizationToken(arg0 context.Context, arg1 *ecr.GetAuthorizationTokenInput, arg2 ...func(*ecr.Options)) (*ecr.GetAuthorizationTokenOutput, error) { 45 m.ctrl.T.Helper() 46 varargs := []any{arg0, arg1} 47 for _, a := range arg2 { 48 varargs = append(varargs, a) 49 } 50 ret := m.ctrl.Call(m, "GetAuthorizationToken", varargs...) 51 ret0, _ := ret[0].(*ecr.GetAuthorizationTokenOutput) 52 ret1, _ := ret[1].(error) 53 return ret0, ret1 54 } 55 56 // GetAuthorizationToken indicates an expected call of GetAuthorizationToken. 57 func (mr *MockECRInterfaceMockRecorder) GetAuthorizationToken(arg0, arg1 any, arg2 ...any) *gomock.Call { 58 mr.mock.ctrl.T.Helper() 59 varargs := append([]any{arg0, arg1}, arg2...) 60 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthorizationToken", reflect.TypeOf((*MockECRInterface)(nil).GetAuthorizationToken), varargs...) 61 }