github.com/openshift/installer@v1.4.17/pkg/asset/installconfig/aws/mock/awsroute53_generated.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ./route53.go
     3  
     4  // Package mock is a generated GoMock package.
     5  package mock
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	aws "github.com/aws/aws-sdk-go/aws"
    11  	route53 "github.com/aws/aws-sdk-go/service/route53"
    12  	gomock "github.com/golang/mock/gomock"
    13  	types "github.com/openshift/installer/pkg/types"
    14  	field "k8s.io/apimachinery/pkg/util/validation/field"
    15  )
    16  
    17  // MockAPI is a mock of API interface.
    18  type MockAPI struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockAPIMockRecorder
    21  }
    22  
    23  // MockAPIMockRecorder is the mock recorder for MockAPI.
    24  type MockAPIMockRecorder struct {
    25  	mock *MockAPI
    26  }
    27  
    28  // NewMockAPI creates a new mock instance.
    29  func NewMockAPI(ctrl *gomock.Controller) *MockAPI {
    30  	mock := &MockAPI{ctrl: ctrl}
    31  	mock.recorder = &MockAPIMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use.
    36  func (m *MockAPI) EXPECT() *MockAPIMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // GetBaseDomain mocks base method.
    41  func (m *MockAPI) GetBaseDomain(baseDomainName string) (*route53.HostedZone, error) {
    42  	m.ctrl.T.Helper()
    43  	ret := m.ctrl.Call(m, "GetBaseDomain", baseDomainName)
    44  	ret0, _ := ret[0].(*route53.HostedZone)
    45  	ret1, _ := ret[1].(error)
    46  	return ret0, ret1
    47  }
    48  
    49  // GetBaseDomain indicates an expected call of GetBaseDomain.
    50  func (mr *MockAPIMockRecorder) GetBaseDomain(baseDomainName interface{}) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBaseDomain", reflect.TypeOf((*MockAPI)(nil).GetBaseDomain), baseDomainName)
    53  }
    54  
    55  // GetHostedZone mocks base method.
    56  func (m *MockAPI) GetHostedZone(hostedZone string, cfg *aws.Config) (*route53.GetHostedZoneOutput, error) {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "GetHostedZone", hostedZone, cfg)
    59  	ret0, _ := ret[0].(*route53.GetHostedZoneOutput)
    60  	ret1, _ := ret[1].(error)
    61  	return ret0, ret1
    62  }
    63  
    64  // GetHostedZone indicates an expected call of GetHostedZone.
    65  func (mr *MockAPIMockRecorder) GetHostedZone(hostedZone, cfg interface{}) *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZone", reflect.TypeOf((*MockAPI)(nil).GetHostedZone), hostedZone, cfg)
    68  }
    69  
    70  // GetSubDomainDNSRecords mocks base method.
    71  func (m *MockAPI) GetSubDomainDNSRecords(hostedZone *route53.HostedZone, ic *types.InstallConfig, cfg *aws.Config) ([]string, error) {
    72  	m.ctrl.T.Helper()
    73  	ret := m.ctrl.Call(m, "GetSubDomainDNSRecords", hostedZone, ic, cfg)
    74  	ret0, _ := ret[0].([]string)
    75  	ret1, _ := ret[1].(error)
    76  	return ret0, ret1
    77  }
    78  
    79  // GetSubDomainDNSRecords indicates an expected call of GetSubDomainDNSRecords.
    80  func (mr *MockAPIMockRecorder) GetSubDomainDNSRecords(hostedZone, ic, cfg interface{}) *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubDomainDNSRecords", reflect.TypeOf((*MockAPI)(nil).GetSubDomainDNSRecords), hostedZone, ic, cfg)
    83  }
    84  
    85  // ValidateZoneRecords mocks base method.
    86  func (m *MockAPI) ValidateZoneRecords(zone *route53.HostedZone, zoneName string, zonePath *field.Path, ic *types.InstallConfig, cfg *aws.Config) field.ErrorList {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "ValidateZoneRecords", zone, zoneName, zonePath, ic, cfg)
    89  	ret0, _ := ret[0].(field.ErrorList)
    90  	return ret0
    91  }
    92  
    93  // ValidateZoneRecords indicates an expected call of ValidateZoneRecords.
    94  func (mr *MockAPIMockRecorder) ValidateZoneRecords(zone, zoneName, zonePath, ic, cfg interface{}) *gomock.Call {
    95  	mr.mock.ctrl.T.Helper()
    96  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateZoneRecords", reflect.TypeOf((*MockAPI)(nil).ValidateZoneRecords), zone, zoneName, zonePath, ic, cfg)
    97  }