Documentation ¶
Overview ¶
Package inventory_client is a generated GoMock package.
Index ¶
- func CreateInventoryClient(clusterId string, host string, port int, logger *logrus.Logger) *inventoryClient
- type EnabledHostData
- type InventoryClient
- type MockInventoryClient
- func (m *MockInventoryClient) CompleteInstallation(clusterId string, isSuccess bool, errorInfo string) error
- func (m *MockInventoryClient) DownloadFile(filename, dest string) error
- func (m *MockInventoryClient) EXPECT() *MockInventoryClientMockRecorder
- func (m *MockInventoryClient) GetCluster() (*models.Cluster, error)
- func (m *MockInventoryClient) GetEnabledHostsNamesHosts() (map[string]EnabledHostData, error)
- func (m *MockInventoryClient) UpdateHostInstallProgress(hostId string, newStage models.HostStage, info string) error
- func (m *MockInventoryClient) UploadIngressCa(ingressCA, clusterId string) error
- type MockInventoryClientMockRecorder
- func (mr *MockInventoryClientMockRecorder) CompleteInstallation(clusterId, isSuccess, errorInfo interface{}) *gomock.Call
- func (mr *MockInventoryClientMockRecorder) DownloadFile(filename, dest interface{}) *gomock.Call
- func (mr *MockInventoryClientMockRecorder) GetCluster() *gomock.Call
- func (mr *MockInventoryClientMockRecorder) GetEnabledHostsNamesHosts() *gomock.Call
- func (mr *MockInventoryClientMockRecorder) UpdateHostInstallProgress(hostId, newStage, info interface{}) *gomock.Call
- func (mr *MockInventoryClientMockRecorder) UploadIngressCa(ingressCA, clusterId interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnabledHostData ¶ added in v1.0.5
type InventoryClient ¶
type InventoryClient interface { DownloadFile(filename string, dest string) error UpdateHostInstallProgress(hostId string, newStage models.HostStage, info string) error GetEnabledHostsNamesHosts() (map[string]EnabledHostData, error) UploadIngressCa(ingressCA string, clusterId string) error GetCluster() (*models.Cluster, error) CompleteInstallation(clusterId string, isSuccess bool, errorInfo string) error }
type MockInventoryClient ¶
type MockInventoryClient struct {
// contains filtered or unexported fields
}
MockInventoryClient is a mock of InventoryClient interface
func NewMockInventoryClient ¶
func NewMockInventoryClient(ctrl *gomock.Controller) *MockInventoryClient
NewMockInventoryClient creates a new mock instance
func (*MockInventoryClient) CompleteInstallation ¶ added in v1.0.6
func (m *MockInventoryClient) CompleteInstallation(clusterId string, isSuccess bool, errorInfo string) error
CompleteInstallation mocks base method
func (*MockInventoryClient) DownloadFile ¶
func (m *MockInventoryClient) DownloadFile(filename, dest string) error
DownloadFile mocks base method
func (*MockInventoryClient) EXPECT ¶
func (m *MockInventoryClient) EXPECT() *MockInventoryClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInventoryClient) GetCluster ¶
func (m *MockInventoryClient) GetCluster() (*models.Cluster, error)
GetCluster mocks base method
func (*MockInventoryClient) GetEnabledHostsNamesHosts ¶ added in v1.0.5
func (m *MockInventoryClient) GetEnabledHostsNamesHosts() (map[string]EnabledHostData, error)
GetEnabledHostsNamesHosts mocks base method
func (*MockInventoryClient) UpdateHostInstallProgress ¶ added in v1.0.5
func (m *MockInventoryClient) UpdateHostInstallProgress(hostId string, newStage models.HostStage, info string) error
UpdateHostInstallProgress mocks base method
func (*MockInventoryClient) UploadIngressCa ¶
func (m *MockInventoryClient) UploadIngressCa(ingressCA, clusterId string) error
UploadIngressCa mocks base method
type MockInventoryClientMockRecorder ¶
type MockInventoryClientMockRecorder struct {
// contains filtered or unexported fields
}
MockInventoryClientMockRecorder is the mock recorder for MockInventoryClient
func (*MockInventoryClientMockRecorder) CompleteInstallation ¶ added in v1.0.6
func (mr *MockInventoryClientMockRecorder) CompleteInstallation(clusterId, isSuccess, errorInfo interface{}) *gomock.Call
CompleteInstallation indicates an expected call of CompleteInstallation
func (*MockInventoryClientMockRecorder) DownloadFile ¶
func (mr *MockInventoryClientMockRecorder) DownloadFile(filename, dest interface{}) *gomock.Call
DownloadFile indicates an expected call of DownloadFile
func (*MockInventoryClientMockRecorder) GetCluster ¶
func (mr *MockInventoryClientMockRecorder) GetCluster() *gomock.Call
GetCluster indicates an expected call of GetCluster
func (*MockInventoryClientMockRecorder) GetEnabledHostsNamesHosts ¶ added in v1.0.5
func (mr *MockInventoryClientMockRecorder) GetEnabledHostsNamesHosts() *gomock.Call
GetEnabledHostsNamesHosts indicates an expected call of GetEnabledHostsNamesHosts
func (*MockInventoryClientMockRecorder) UpdateHostInstallProgress ¶ added in v1.0.5
func (mr *MockInventoryClientMockRecorder) UpdateHostInstallProgress(hostId, newStage, info interface{}) *gomock.Call
UpdateHostInstallProgress indicates an expected call of UpdateHostInstallProgress
func (*MockInventoryClientMockRecorder) UploadIngressCa ¶
func (mr *MockInventoryClientMockRecorder) UploadIngressCa(ingressCA, clusterId interface{}) *gomock.Call
UploadIngressCa indicates an expected call of UploadIngressCa