inventory_client

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package inventory_client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInventoryClient

func CreateInventoryClient(clusterId string, host string, port int, logger *logrus.Logger) *inventoryClient

Types

type EnabledHostData added in v1.0.5

type EnabledHostData struct {
	IPs       []string
	Inventory *models.Inventory
	Host      *models.Host
}

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL