commandparserfakes

package
v0.0.0-...-fd40943 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeConstructCmdValidator

type FakeConstructCmdValidator struct {
	LGPOInDirectoryStub func() bool

	PopulatedArgsStub func(...string) bool
	// contains filtered or unexported fields
}

func (*FakeConstructCmdValidator) Invocations

func (fake *FakeConstructCmdValidator) Invocations() map[string][][]interface{}

func (*FakeConstructCmdValidator) LGPOInDirectory

func (fake *FakeConstructCmdValidator) LGPOInDirectory() bool

func (*FakeConstructCmdValidator) LGPOInDirectoryCallCount

func (fake *FakeConstructCmdValidator) LGPOInDirectoryCallCount() int

func (*FakeConstructCmdValidator) LGPOInDirectoryCalls

func (fake *FakeConstructCmdValidator) LGPOInDirectoryCalls(stub func() bool)

func (*FakeConstructCmdValidator) LGPOInDirectoryReturns

func (fake *FakeConstructCmdValidator) LGPOInDirectoryReturns(result1 bool)

func (*FakeConstructCmdValidator) LGPOInDirectoryReturnsOnCall

func (fake *FakeConstructCmdValidator) LGPOInDirectoryReturnsOnCall(i int, result1 bool)

func (*FakeConstructCmdValidator) PopulatedArgs

func (fake *FakeConstructCmdValidator) PopulatedArgs(arg1 ...string) bool

func (*FakeConstructCmdValidator) PopulatedArgsArgsForCall

func (fake *FakeConstructCmdValidator) PopulatedArgsArgsForCall(i int) []string

func (*FakeConstructCmdValidator) PopulatedArgsCallCount

func (fake *FakeConstructCmdValidator) PopulatedArgsCallCount() int

func (*FakeConstructCmdValidator) PopulatedArgsCalls

func (fake *FakeConstructCmdValidator) PopulatedArgsCalls(stub func(...string) bool)

func (*FakeConstructCmdValidator) PopulatedArgsReturns

func (fake *FakeConstructCmdValidator) PopulatedArgsReturns(result1 bool)

func (*FakeConstructCmdValidator) PopulatedArgsReturnsOnCall

func (fake *FakeConstructCmdValidator) PopulatedArgsReturnsOnCall(i int, result1 bool)

type FakeConstructMessenger

type FakeConstructMessenger struct {
	ArgumentsNotProvidedStub func()

	CannotConnectToVMStub func(error)

	CannotPrepareVMStub func(error)

	LGPONotFoundStub func()
	// contains filtered or unexported fields
}

func (*FakeConstructMessenger) ArgumentsNotProvided

func (fake *FakeConstructMessenger) ArgumentsNotProvided()

func (*FakeConstructMessenger) ArgumentsNotProvidedCallCount

func (fake *FakeConstructMessenger) ArgumentsNotProvidedCallCount() int

func (*FakeConstructMessenger) ArgumentsNotProvidedCalls

func (fake *FakeConstructMessenger) ArgumentsNotProvidedCalls(stub func())

func (*FakeConstructMessenger) CannotConnectToVM

func (fake *FakeConstructMessenger) CannotConnectToVM(arg1 error)

func (*FakeConstructMessenger) CannotConnectToVMArgsForCall

func (fake *FakeConstructMessenger) CannotConnectToVMArgsForCall(i int) error

func (*FakeConstructMessenger) CannotConnectToVMCallCount

func (fake *FakeConstructMessenger) CannotConnectToVMCallCount() int

func (*FakeConstructMessenger) CannotConnectToVMCalls

func (fake *FakeConstructMessenger) CannotConnectToVMCalls(stub func(error))

func (*FakeConstructMessenger) CannotPrepareVM

func (fake *FakeConstructMessenger) CannotPrepareVM(arg1 error)

func (*FakeConstructMessenger) CannotPrepareVMArgsForCall

func (fake *FakeConstructMessenger) CannotPrepareVMArgsForCall(i int) error

func (*FakeConstructMessenger) CannotPrepareVMCallCount

func (fake *FakeConstructMessenger) CannotPrepareVMCallCount() int

func (*FakeConstructMessenger) CannotPrepareVMCalls

func (fake *FakeConstructMessenger) CannotPrepareVMCalls(stub func(error))

func (*FakeConstructMessenger) Invocations

func (fake *FakeConstructMessenger) Invocations() map[string][][]interface{}

func (*FakeConstructMessenger) LGPONotFound

func (fake *FakeConstructMessenger) LGPONotFound()

func (*FakeConstructMessenger) LGPONotFoundCallCount

func (fake *FakeConstructMessenger) LGPONotFoundCallCount() int

func (*FakeConstructMessenger) LGPONotFoundCalls

func (fake *FakeConstructMessenger) LGPONotFoundCalls(stub func())

type FakeManagerFactory

type FakeManagerFactory struct {
	SetConfigStub func(vcenter_manager.FactoryConfig)

	VCenterManagerStub func(context.Context) (*vcenter_manager.VCenterManager, error)
	// contains filtered or unexported fields
}

func (*FakeManagerFactory) Invocations

func (fake *FakeManagerFactory) Invocations() map[string][][]interface{}

func (*FakeManagerFactory) SetConfig

func (fake *FakeManagerFactory) SetConfig(arg1 vcenter_manager.FactoryConfig)

func (*FakeManagerFactory) SetConfigArgsForCall

func (fake *FakeManagerFactory) SetConfigArgsForCall(i int) vcenter_manager.FactoryConfig

func (*FakeManagerFactory) SetConfigCallCount

func (fake *FakeManagerFactory) SetConfigCallCount() int

func (*FakeManagerFactory) SetConfigCalls

func (fake *FakeManagerFactory) SetConfigCalls(stub func(vcenter_manager.FactoryConfig))

func (*FakeManagerFactory) VCenterManager

func (fake *FakeManagerFactory) VCenterManager(arg1 context.Context) (*vcenter_manager.VCenterManager, error)

func (*FakeManagerFactory) VCenterManagerArgsForCall

func (fake *FakeManagerFactory) VCenterManagerArgsForCall(i int) context.Context

func (*FakeManagerFactory) VCenterManagerCallCount

func (fake *FakeManagerFactory) VCenterManagerCallCount() int

func (*FakeManagerFactory) VCenterManagerCalls

func (fake *FakeManagerFactory) VCenterManagerCalls(stub func(context.Context) (*vcenter_manager.VCenterManager, error))

func (*FakeManagerFactory) VCenterManagerReturns

func (fake *FakeManagerFactory) VCenterManagerReturns(result1 *vcenter_manager.VCenterManager, result2 error)

func (*FakeManagerFactory) VCenterManagerReturnsOnCall

func (fake *FakeManagerFactory) VCenterManagerReturnsOnCall(i int, result1 *vcenter_manager.VCenterManager, result2 error)

type FakeOSAndVersionGetter

type FakeOSAndVersionGetter struct {
	GetOsStub func() string

	GetVersionStub func() string

	GetVersionWithPatchNumberStub func(string) string
	// contains filtered or unexported fields
}

func (*FakeOSAndVersionGetter) GetOs

func (fake *FakeOSAndVersionGetter) GetOs() string

func (*FakeOSAndVersionGetter) GetOsCallCount

func (fake *FakeOSAndVersionGetter) GetOsCallCount() int

func (*FakeOSAndVersionGetter) GetOsCalls

func (fake *FakeOSAndVersionGetter) GetOsCalls(stub func() string)

func (*FakeOSAndVersionGetter) GetOsReturns

func (fake *FakeOSAndVersionGetter) GetOsReturns(result1 string)

func (*FakeOSAndVersionGetter) GetOsReturnsOnCall

func (fake *FakeOSAndVersionGetter) GetOsReturnsOnCall(i int, result1 string)

func (*FakeOSAndVersionGetter) GetVersion

func (fake *FakeOSAndVersionGetter) GetVersion() string

func (*FakeOSAndVersionGetter) GetVersionCallCount

func (fake *FakeOSAndVersionGetter) GetVersionCallCount() int

func (*FakeOSAndVersionGetter) GetVersionCalls

func (fake *FakeOSAndVersionGetter) GetVersionCalls(stub func() string)

func (*FakeOSAndVersionGetter) GetVersionReturns

func (fake *FakeOSAndVersionGetter) GetVersionReturns(result1 string)

func (*FakeOSAndVersionGetter) GetVersionReturnsOnCall

func (fake *FakeOSAndVersionGetter) GetVersionReturnsOnCall(i int, result1 string)

func (*FakeOSAndVersionGetter) GetVersionWithPatchNumber

func (fake *FakeOSAndVersionGetter) GetVersionWithPatchNumber(arg1 string) string

func (*FakeOSAndVersionGetter) GetVersionWithPatchNumberArgsForCall

func (fake *FakeOSAndVersionGetter) GetVersionWithPatchNumberArgsForCall(i int) string

func (*FakeOSAndVersionGetter) GetVersionWithPatchNumberCallCount

func (fake *FakeOSAndVersionGetter) GetVersionWithPatchNumberCallCount() int

func (*FakeOSAndVersionGetter) GetVersionWithPatchNumberCalls

func (fake *FakeOSAndVersionGetter) GetVersionWithPatchNumberCalls(stub func(string) string)

func (*FakeOSAndVersionGetter) GetVersionWithPatchNumberReturns

func (fake *FakeOSAndVersionGetter) GetVersionWithPatchNumberReturns(result1 string)

func (*FakeOSAndVersionGetter) GetVersionWithPatchNumberReturnsOnCall

func (fake *FakeOSAndVersionGetter) GetVersionWithPatchNumberReturnsOnCall(i int, result1 string)

func (*FakeOSAndVersionGetter) Invocations

func (fake *FakeOSAndVersionGetter) Invocations() map[string][][]interface{}

type FakePackager

type FakePackager struct {
	PackageStub func() error

	ValidateFreeSpaceForPackageStub func(filesystem.FileSystem) error

	ValidateSourceParametersStub func() error
	// contains filtered or unexported fields
}

func (*FakePackager) Invocations

func (fake *FakePackager) Invocations() map[string][][]interface{}

func (*FakePackager) Package

func (fake *FakePackager) Package() error

func (*FakePackager) PackageCallCount

func (fake *FakePackager) PackageCallCount() int

func (*FakePackager) PackageCalls

func (fake *FakePackager) PackageCalls(stub func() error)

func (*FakePackager) PackageReturns

func (fake *FakePackager) PackageReturns(result1 error)

func (*FakePackager) PackageReturnsOnCall

func (fake *FakePackager) PackageReturnsOnCall(i int, result1 error)

func (*FakePackager) ValidateFreeSpaceForPackage

func (fake *FakePackager) ValidateFreeSpaceForPackage(arg1 filesystem.FileSystem) error

func (*FakePackager) ValidateFreeSpaceForPackageArgsForCall

func (fake *FakePackager) ValidateFreeSpaceForPackageArgsForCall(i int) filesystem.FileSystem

func (*FakePackager) ValidateFreeSpaceForPackageCallCount

func (fake *FakePackager) ValidateFreeSpaceForPackageCallCount() int

func (*FakePackager) ValidateFreeSpaceForPackageCalls

func (fake *FakePackager) ValidateFreeSpaceForPackageCalls(stub func(filesystem.FileSystem) error)

func (*FakePackager) ValidateFreeSpaceForPackageReturns

func (fake *FakePackager) ValidateFreeSpaceForPackageReturns(result1 error)

func (*FakePackager) ValidateFreeSpaceForPackageReturnsOnCall

func (fake *FakePackager) ValidateFreeSpaceForPackageReturnsOnCall(i int, result1 error)

func (*FakePackager) ValidateSourceParameters

func (fake *FakePackager) ValidateSourceParameters() error

func (*FakePackager) ValidateSourceParametersCallCount

func (fake *FakePackager) ValidateSourceParametersCallCount() int

func (*FakePackager) ValidateSourceParametersCalls

func (fake *FakePackager) ValidateSourceParametersCalls(stub func() error)

func (*FakePackager) ValidateSourceParametersReturns

func (fake *FakePackager) ValidateSourceParametersReturns(result1 error)

func (*FakePackager) ValidateSourceParametersReturnsOnCall

func (fake *FakePackager) ValidateSourceParametersReturnsOnCall(i int, result1 error)

type FakePackagerFactory

type FakePackagerFactory struct {
	NewPackagerStub func(config.SourceConfig, config.OutputConfig, colorlogger.Logger) (commandparser.Packager, error)
	// contains filtered or unexported fields
}

func (*FakePackagerFactory) Invocations

func (fake *FakePackagerFactory) Invocations() map[string][][]interface{}

func (*FakePackagerFactory) NewPackager

func (*FakePackagerFactory) NewPackagerArgsForCall

func (fake *FakePackagerFactory) NewPackagerArgsForCall(i int) (config.SourceConfig, config.OutputConfig, colorlogger.Logger)

func (*FakePackagerFactory) NewPackagerCallCount

func (fake *FakePackagerFactory) NewPackagerCallCount() int

func (*FakePackagerFactory) NewPackagerCalls

func (*FakePackagerFactory) NewPackagerReturns

func (fake *FakePackagerFactory) NewPackagerReturns(result1 commandparser.Packager, result2 error)

func (*FakePackagerFactory) NewPackagerReturnsOnCall

func (fake *FakePackagerFactory) NewPackagerReturnsOnCall(i int, result1 commandparser.Packager, result2 error)

type FakePackagerMessenger

type FakePackagerMessenger struct {
	CannotCreatePackagerStub func(error)

	DoesNotHaveEnoughSpaceStub func(error)

	InvalidOutputConfigStub func(error)

	PackageFailedStub func(error)

	SourceParametersAreInvalidStub func(error)
	// contains filtered or unexported fields
}

func (*FakePackagerMessenger) CannotCreatePackager

func (fake *FakePackagerMessenger) CannotCreatePackager(arg1 error)

func (*FakePackagerMessenger) CannotCreatePackagerArgsForCall

func (fake *FakePackagerMessenger) CannotCreatePackagerArgsForCall(i int) error

func (*FakePackagerMessenger) CannotCreatePackagerCallCount

func (fake *FakePackagerMessenger) CannotCreatePackagerCallCount() int

func (*FakePackagerMessenger) CannotCreatePackagerCalls

func (fake *FakePackagerMessenger) CannotCreatePackagerCalls(stub func(error))

func (*FakePackagerMessenger) DoesNotHaveEnoughSpace

func (fake *FakePackagerMessenger) DoesNotHaveEnoughSpace(arg1 error)

func (*FakePackagerMessenger) DoesNotHaveEnoughSpaceArgsForCall

func (fake *FakePackagerMessenger) DoesNotHaveEnoughSpaceArgsForCall(i int) error

func (*FakePackagerMessenger) DoesNotHaveEnoughSpaceCallCount

func (fake *FakePackagerMessenger) DoesNotHaveEnoughSpaceCallCount() int

func (*FakePackagerMessenger) DoesNotHaveEnoughSpaceCalls

func (fake *FakePackagerMessenger) DoesNotHaveEnoughSpaceCalls(stub func(error))

func (*FakePackagerMessenger) InvalidOutputConfig

func (fake *FakePackagerMessenger) InvalidOutputConfig(arg1 error)

func (*FakePackagerMessenger) InvalidOutputConfigArgsForCall

func (fake *FakePackagerMessenger) InvalidOutputConfigArgsForCall(i int) error

func (*FakePackagerMessenger) InvalidOutputConfigCallCount

func (fake *FakePackagerMessenger) InvalidOutputConfigCallCount() int

func (*FakePackagerMessenger) InvalidOutputConfigCalls

func (fake *FakePackagerMessenger) InvalidOutputConfigCalls(stub func(error))

func (*FakePackagerMessenger) Invocations

func (fake *FakePackagerMessenger) Invocations() map[string][][]interface{}

func (*FakePackagerMessenger) PackageFailed

func (fake *FakePackagerMessenger) PackageFailed(arg1 error)

func (*FakePackagerMessenger) PackageFailedArgsForCall

func (fake *FakePackagerMessenger) PackageFailedArgsForCall(i int) error

func (*FakePackagerMessenger) PackageFailedCallCount

func (fake *FakePackagerMessenger) PackageFailedCallCount() int

func (*FakePackagerMessenger) PackageFailedCalls

func (fake *FakePackagerMessenger) PackageFailedCalls(stub func(error))

func (*FakePackagerMessenger) SourceParametersAreInvalid

func (fake *FakePackagerMessenger) SourceParametersAreInvalid(arg1 error)

func (*FakePackagerMessenger) SourceParametersAreInvalidArgsForCall

func (fake *FakePackagerMessenger) SourceParametersAreInvalidArgsForCall(i int) error

func (*FakePackagerMessenger) SourceParametersAreInvalidCallCount

func (fake *FakePackagerMessenger) SourceParametersAreInvalidCallCount() int

func (*FakePackagerMessenger) SourceParametersAreInvalidCalls

func (fake *FakePackagerMessenger) SourceParametersAreInvalidCalls(stub func(error))

type FakeVCenterManager

type FakeVCenterManager struct {
	FindVMStub func(context.Context, string) (*object.VirtualMachine, error)

	GuestManagerStub func(context.Context, vcenter_manager.OpsManager, string, string) (*guest_manager.GuestManager, error)

	LoginStub func(context.Context) error

	OperationsManagerStub func(context.Context, *object.VirtualMachine) *guest.OperationsManager
	// contains filtered or unexported fields
}

func (*FakeVCenterManager) FindVM

func (fake *FakeVCenterManager) FindVM(arg1 context.Context, arg2 string) (*object.VirtualMachine, error)

func (*FakeVCenterManager) FindVMArgsForCall

func (fake *FakeVCenterManager) FindVMArgsForCall(i int) (context.Context, string)

func (*FakeVCenterManager) FindVMCallCount

func (fake *FakeVCenterManager) FindVMCallCount() int

func (*FakeVCenterManager) FindVMCalls

func (fake *FakeVCenterManager) FindVMCalls(stub func(context.Context, string) (*object.VirtualMachine, error))

func (*FakeVCenterManager) FindVMReturns

func (fake *FakeVCenterManager) FindVMReturns(result1 *object.VirtualMachine, result2 error)

func (*FakeVCenterManager) FindVMReturnsOnCall

func (fake *FakeVCenterManager) FindVMReturnsOnCall(i int, result1 *object.VirtualMachine, result2 error)

func (*FakeVCenterManager) GuestManager

func (*FakeVCenterManager) GuestManagerArgsForCall

func (fake *FakeVCenterManager) GuestManagerArgsForCall(i int) (context.Context, vcenter_manager.OpsManager, string, string)

func (*FakeVCenterManager) GuestManagerCallCount

func (fake *FakeVCenterManager) GuestManagerCallCount() int

func (*FakeVCenterManager) GuestManagerCalls

func (*FakeVCenterManager) GuestManagerReturns

func (fake *FakeVCenterManager) GuestManagerReturns(result1 *guest_manager.GuestManager, result2 error)

func (*FakeVCenterManager) GuestManagerReturnsOnCall

func (fake *FakeVCenterManager) GuestManagerReturnsOnCall(i int, result1 *guest_manager.GuestManager, result2 error)

func (*FakeVCenterManager) Invocations

func (fake *FakeVCenterManager) Invocations() map[string][][]interface{}

func (*FakeVCenterManager) Login

func (fake *FakeVCenterManager) Login(arg1 context.Context) error

func (*FakeVCenterManager) LoginArgsForCall

func (fake *FakeVCenterManager) LoginArgsForCall(i int) context.Context

func (*FakeVCenterManager) LoginCallCount

func (fake *FakeVCenterManager) LoginCallCount() int

func (*FakeVCenterManager) LoginCalls

func (fake *FakeVCenterManager) LoginCalls(stub func(context.Context) error)

func (*FakeVCenterManager) LoginReturns

func (fake *FakeVCenterManager) LoginReturns(result1 error)

func (*FakeVCenterManager) LoginReturnsOnCall

func (fake *FakeVCenterManager) LoginReturnsOnCall(i int, result1 error)

func (*FakeVCenterManager) OperationsManager

func (fake *FakeVCenterManager) OperationsManager(arg1 context.Context, arg2 *object.VirtualMachine) *guest.OperationsManager

func (*FakeVCenterManager) OperationsManagerArgsForCall

func (fake *FakeVCenterManager) OperationsManagerArgsForCall(i int) (context.Context, *object.VirtualMachine)

func (*FakeVCenterManager) OperationsManagerCallCount

func (fake *FakeVCenterManager) OperationsManagerCallCount() int

func (*FakeVCenterManager) OperationsManagerCalls

func (fake *FakeVCenterManager) OperationsManagerCalls(stub func(context.Context, *object.VirtualMachine) *guest.OperationsManager)

func (*FakeVCenterManager) OperationsManagerReturns

func (fake *FakeVCenterManager) OperationsManagerReturns(result1 *guest.OperationsManager)

func (*FakeVCenterManager) OperationsManagerReturnsOnCall

func (fake *FakeVCenterManager) OperationsManagerReturnsOnCall(i int, result1 *guest.OperationsManager)

type FakeVMPreparerFactory

type FakeVMPreparerFactory struct {
	NewStub func(config.SourceConfig, commandparser.VCenterManager) (commandparser.VmConstruct, error)
	// contains filtered or unexported fields
}

func (*FakeVMPreparerFactory) Invocations

func (fake *FakeVMPreparerFactory) Invocations() map[string][][]interface{}

func (*FakeVMPreparerFactory) New

func (*FakeVMPreparerFactory) NewArgsForCall

func (*FakeVMPreparerFactory) NewCallCount

func (fake *FakeVMPreparerFactory) NewCallCount() int

func (*FakeVMPreparerFactory) NewCalls

func (*FakeVMPreparerFactory) NewReturns

func (fake *FakeVMPreparerFactory) NewReturns(result1 commandparser.VmConstruct, result2 error)

func (*FakeVMPreparerFactory) NewReturnsOnCall

func (fake *FakeVMPreparerFactory) NewReturnsOnCall(i int, result1 commandparser.VmConstruct, result2 error)

type FakeVmConstruct

type FakeVmConstruct struct {
	PrepareVMStub func() error
	// contains filtered or unexported fields
}

func (*FakeVmConstruct) Invocations

func (fake *FakeVmConstruct) Invocations() map[string][][]interface{}

func (*FakeVmConstruct) PrepareVM

func (fake *FakeVmConstruct) PrepareVM() error

func (*FakeVmConstruct) PrepareVMCallCount

func (fake *FakeVmConstruct) PrepareVMCallCount() int

func (*FakeVmConstruct) PrepareVMCalls

func (fake *FakeVmConstruct) PrepareVMCalls(stub func() error)

func (*FakeVmConstruct) PrepareVMReturns

func (fake *FakeVmConstruct) PrepareVMReturns(result1 error)

func (*FakeVmConstruct) PrepareVMReturnsOnCall

func (fake *FakeVmConstruct) PrepareVMReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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