mocks

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoCD

type ArgoCD struct {
	mock.Mock
}

ArgoCD is an autogenerated mock type for the ArgoCD type

func NewArgoCD

func NewArgoCD(t interface {
	mock.TestingT
	Cleanup(func())
}) *ArgoCD

NewArgoCD creates a new instance of ArgoCD. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ArgoCD) AppStatus

func (_m *ArgoCD) AppStatus(appName string) (argocd.ApplicationStatus, error)

AppStatus provides a mock function with given fields: appName

func (*ArgoCD) DefaultSyncOptions

func (_m *ArgoCD) DefaultSyncOptions() argocd.SyncOptions

DefaultSyncOptions provides a mock function with given fields:

func (*ArgoCD) DestinationURL

func (_m *ArgoCD) DestinationURL(dest terra.Destination) string

DestinationURL provides a mock function with given fields: dest

func (*ArgoCD) EXPECT

func (_m *ArgoCD) EXPECT() *ArgoCD_Expecter

func (*ArgoCD) HardRefresh

func (_m *ArgoCD) HardRefresh(appName string) error

HardRefresh provides a mock function with given fields: appName

func (*ArgoCD) SyncApp

func (_m *ArgoCD) SyncApp(appName string, options ...argocd.SyncOption) (argocd.SyncResult, error)

SyncApp provides a mock function with given fields: appName, options

func (*ArgoCD) SyncRelease

func (_m *ArgoCD) SyncRelease(release terra.Release, options ...argocd.SyncOption) error

SyncRelease provides a mock function with given fields: release, options

func (*ArgoCD) WaitExist

func (_m *ArgoCD) WaitExist(appName string, options ...argocd.WaitExistOption) error

WaitExist provides a mock function with given fields: appName, options

type ArgoCD_AppStatus_Call

type ArgoCD_AppStatus_Call struct {
	*mock.Call
}

ArgoCD_AppStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AppStatus'

func (*ArgoCD_AppStatus_Call) Return

func (*ArgoCD_AppStatus_Call) Run

func (_c *ArgoCD_AppStatus_Call) Run(run func(appName string)) *ArgoCD_AppStatus_Call

func (*ArgoCD_AppStatus_Call) RunAndReturn

type ArgoCD_DefaultSyncOptions_Call

type ArgoCD_DefaultSyncOptions_Call struct {
	*mock.Call
}

ArgoCD_DefaultSyncOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DefaultSyncOptions'

func (*ArgoCD_DefaultSyncOptions_Call) Return

func (*ArgoCD_DefaultSyncOptions_Call) Run

func (*ArgoCD_DefaultSyncOptions_Call) RunAndReturn

type ArgoCD_DestinationURL_Call

type ArgoCD_DestinationURL_Call struct {
	*mock.Call
}

ArgoCD_DestinationURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DestinationURL'

func (*ArgoCD_DestinationURL_Call) Return

func (*ArgoCD_DestinationURL_Call) Run

func (*ArgoCD_DestinationURL_Call) RunAndReturn

type ArgoCD_Expecter

type ArgoCD_Expecter struct {
	// contains filtered or unexported fields
}

func (*ArgoCD_Expecter) AppStatus

func (_e *ArgoCD_Expecter) AppStatus(appName interface{}) *ArgoCD_AppStatus_Call

AppStatus is a helper method to define mock.On call

  • appName string

func (*ArgoCD_Expecter) DefaultSyncOptions

func (_e *ArgoCD_Expecter) DefaultSyncOptions() *ArgoCD_DefaultSyncOptions_Call

DefaultSyncOptions is a helper method to define mock.On call

func (*ArgoCD_Expecter) DestinationURL

func (_e *ArgoCD_Expecter) DestinationURL(dest interface{}) *ArgoCD_DestinationURL_Call

DestinationURL is a helper method to define mock.On call

  • dest terra.Destination

func (*ArgoCD_Expecter) HardRefresh

func (_e *ArgoCD_Expecter) HardRefresh(appName interface{}) *ArgoCD_HardRefresh_Call

HardRefresh is a helper method to define mock.On call

  • appName string

func (*ArgoCD_Expecter) SyncApp

func (_e *ArgoCD_Expecter) SyncApp(appName interface{}, options ...interface{}) *ArgoCD_SyncApp_Call

SyncApp is a helper method to define mock.On call

  • appName string
  • options ...argocd.SyncOption

func (*ArgoCD_Expecter) SyncRelease

func (_e *ArgoCD_Expecter) SyncRelease(release interface{}, options ...interface{}) *ArgoCD_SyncRelease_Call

SyncRelease is a helper method to define mock.On call

  • release terra.Release
  • options ...argocd.SyncOption

func (*ArgoCD_Expecter) WaitExist

func (_e *ArgoCD_Expecter) WaitExist(appName interface{}, options ...interface{}) *ArgoCD_WaitExist_Call

WaitExist is a helper method to define mock.On call

  • appName string
  • options ...argocd.WaitExistOption

type ArgoCD_HardRefresh_Call

type ArgoCD_HardRefresh_Call struct {
	*mock.Call
}

ArgoCD_HardRefresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HardRefresh'

func (*ArgoCD_HardRefresh_Call) Return

func (*ArgoCD_HardRefresh_Call) Run

func (_c *ArgoCD_HardRefresh_Call) Run(run func(appName string)) *ArgoCD_HardRefresh_Call

func (*ArgoCD_HardRefresh_Call) RunAndReturn

func (_c *ArgoCD_HardRefresh_Call) RunAndReturn(run func(string) error) *ArgoCD_HardRefresh_Call

type ArgoCD_SyncApp_Call

type ArgoCD_SyncApp_Call struct {
	*mock.Call
}

ArgoCD_SyncApp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncApp'

func (*ArgoCD_SyncApp_Call) Return

func (*ArgoCD_SyncApp_Call) Run

func (_c *ArgoCD_SyncApp_Call) Run(run func(appName string, options ...argocd.SyncOption)) *ArgoCD_SyncApp_Call

func (*ArgoCD_SyncApp_Call) RunAndReturn

type ArgoCD_SyncRelease_Call

type ArgoCD_SyncRelease_Call struct {
	*mock.Call
}

ArgoCD_SyncRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncRelease'

func (*ArgoCD_SyncRelease_Call) Return

func (*ArgoCD_SyncRelease_Call) Run

func (_c *ArgoCD_SyncRelease_Call) Run(run func(release terra.Release, options ...argocd.SyncOption)) *ArgoCD_SyncRelease_Call

func (*ArgoCD_SyncRelease_Call) RunAndReturn

type ArgoCD_WaitExist_Call

type ArgoCD_WaitExist_Call struct {
	*mock.Call
}

ArgoCD_WaitExist_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitExist'

func (*ArgoCD_WaitExist_Call) Return

func (*ArgoCD_WaitExist_Call) Run

func (_c *ArgoCD_WaitExist_Call) Run(run func(appName string, options ...argocd.WaitExistOption)) *ArgoCD_WaitExist_Call

func (*ArgoCD_WaitExist_Call) RunAndReturn

Jump to

Keyboard shortcuts

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