inventory_client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 14 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 InventoryClient

type InventoryClient interface {
	DownloadFile(filename string, dest string) error
	UpdateHostStatus(newStatus string, hostId string) error
	GetEnabledHostsNamesIds() (map[string]string, error)
	UploadIngressCa(ingressCA string, clusterId string) error
	GetCluster() (*models.Cluster, 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) 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) GetEnabledHostsNamesIds

func (m *MockInventoryClient) GetEnabledHostsNamesIds() (map[string]string, error)

GetEnabledHostsNamesIds mocks base method

func (*MockInventoryClient) UpdateHostStatus

func (m *MockInventoryClient) UpdateHostStatus(newStatus, hostId string) error

UpdateHostStatus 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) 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) GetEnabledHostsNamesIds

func (mr *MockInventoryClientMockRecorder) GetEnabledHostsNamesIds() *gomock.Call

GetEnabledHostsNamesIds indicates an expected call of GetEnabledHostsNamesIds

func (*MockInventoryClientMockRecorder) UpdateHostStatus

func (mr *MockInventoryClientMockRecorder) UpdateHostStatus(newStatus, hostId interface{}) *gomock.Call

UpdateHostStatus indicates an expected call of UpdateHostStatus

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