Documentation ¶
Index ¶
- type ArgoCD
- func (_m *ArgoCD) AppStatus(appName string) (argocd.ApplicationStatus, error)
- func (_m *ArgoCD) DefaultSyncOptions() argocd.SyncOptions
- func (_m *ArgoCD) DestinationURL(dest terra.Destination) string
- func (_m *ArgoCD) EXPECT() *ArgoCD_Expecter
- func (_m *ArgoCD) HardRefresh(appName string) error
- func (_m *ArgoCD) SyncApp(appName string, options ...argocd.SyncOption) (argocd.SyncResult, error)
- func (_m *ArgoCD) SyncRelease(release terra.Release, options ...argocd.SyncOption) error
- func (_m *ArgoCD) WaitExist(appName string, options ...argocd.WaitExistOption) error
- type ArgoCD_AppStatus_Call
- func (_c *ArgoCD_AppStatus_Call) Return(_a0 argocd.ApplicationStatus, _a1 error) *ArgoCD_AppStatus_Call
- func (_c *ArgoCD_AppStatus_Call) Run(run func(appName string)) *ArgoCD_AppStatus_Call
- func (_c *ArgoCD_AppStatus_Call) RunAndReturn(run func(string) (argocd.ApplicationStatus, error)) *ArgoCD_AppStatus_Call
- type ArgoCD_DefaultSyncOptions_Call
- func (_c *ArgoCD_DefaultSyncOptions_Call) Return(_a0 argocd.SyncOptions) *ArgoCD_DefaultSyncOptions_Call
- func (_c *ArgoCD_DefaultSyncOptions_Call) Run(run func()) *ArgoCD_DefaultSyncOptions_Call
- func (_c *ArgoCD_DefaultSyncOptions_Call) RunAndReturn(run func() argocd.SyncOptions) *ArgoCD_DefaultSyncOptions_Call
- type ArgoCD_DestinationURL_Call
- func (_c *ArgoCD_DestinationURL_Call) Return(_a0 string) *ArgoCD_DestinationURL_Call
- func (_c *ArgoCD_DestinationURL_Call) Run(run func(dest terra.Destination)) *ArgoCD_DestinationURL_Call
- func (_c *ArgoCD_DestinationURL_Call) RunAndReturn(run func(terra.Destination) string) *ArgoCD_DestinationURL_Call
- type ArgoCD_Expecter
- func (_e *ArgoCD_Expecter) AppStatus(appName interface{}) *ArgoCD_AppStatus_Call
- func (_e *ArgoCD_Expecter) DefaultSyncOptions() *ArgoCD_DefaultSyncOptions_Call
- func (_e *ArgoCD_Expecter) DestinationURL(dest interface{}) *ArgoCD_DestinationURL_Call
- func (_e *ArgoCD_Expecter) HardRefresh(appName interface{}) *ArgoCD_HardRefresh_Call
- func (_e *ArgoCD_Expecter) SyncApp(appName interface{}, options ...interface{}) *ArgoCD_SyncApp_Call
- func (_e *ArgoCD_Expecter) SyncRelease(release interface{}, options ...interface{}) *ArgoCD_SyncRelease_Call
- func (_e *ArgoCD_Expecter) WaitExist(appName interface{}, options ...interface{}) *ArgoCD_WaitExist_Call
- type ArgoCD_HardRefresh_Call
- type ArgoCD_SyncApp_Call
- func (_c *ArgoCD_SyncApp_Call) Return(_a0 argocd.SyncResult, _a1 error) *ArgoCD_SyncApp_Call
- func (_c *ArgoCD_SyncApp_Call) Run(run func(appName string, options ...argocd.SyncOption)) *ArgoCD_SyncApp_Call
- func (_c *ArgoCD_SyncApp_Call) RunAndReturn(run func(string, ...argocd.SyncOption) (argocd.SyncResult, error)) *ArgoCD_SyncApp_Call
- type ArgoCD_SyncRelease_Call
- func (_c *ArgoCD_SyncRelease_Call) Return(_a0 error) *ArgoCD_SyncRelease_Call
- func (_c *ArgoCD_SyncRelease_Call) Run(run func(release terra.Release, options ...argocd.SyncOption)) *ArgoCD_SyncRelease_Call
- func (_c *ArgoCD_SyncRelease_Call) RunAndReturn(run func(terra.Release, ...argocd.SyncOption) error) *ArgoCD_SyncRelease_Call
- type ArgoCD_WaitExist_Call
- func (_c *ArgoCD_WaitExist_Call) Return(_a0 error) *ArgoCD_WaitExist_Call
- func (_c *ArgoCD_WaitExist_Call) Run(run func(appName string, options ...argocd.WaitExistOption)) *ArgoCD_WaitExist_Call
- func (_c *ArgoCD_WaitExist_Call) RunAndReturn(run func(string, ...argocd.WaitExistOption) error) *ArgoCD_WaitExist_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoCD ¶
ArgoCD is an autogenerated mock type for the ArgoCD type
func NewArgoCD ¶
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 ¶
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 ¶
SyncRelease provides a mock function with given fields: release, options
type ArgoCD_AppStatus_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 (_c *ArgoCD_AppStatus_Call) Return(_a0 argocd.ApplicationStatus, _a1 error) *ArgoCD_AppStatus_Call
func (*ArgoCD_AppStatus_Call) Run ¶
func (_c *ArgoCD_AppStatus_Call) Run(run func(appName string)) *ArgoCD_AppStatus_Call
func (*ArgoCD_AppStatus_Call) RunAndReturn ¶
func (_c *ArgoCD_AppStatus_Call) RunAndReturn(run func(string) (argocd.ApplicationStatus, error)) *ArgoCD_AppStatus_Call
type ArgoCD_DefaultSyncOptions_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 (_c *ArgoCD_DefaultSyncOptions_Call) Return(_a0 argocd.SyncOptions) *ArgoCD_DefaultSyncOptions_Call
func (*ArgoCD_DefaultSyncOptions_Call) Run ¶
func (_c *ArgoCD_DefaultSyncOptions_Call) Run(run func()) *ArgoCD_DefaultSyncOptions_Call
func (*ArgoCD_DefaultSyncOptions_Call) RunAndReturn ¶
func (_c *ArgoCD_DefaultSyncOptions_Call) RunAndReturn(run func() argocd.SyncOptions) *ArgoCD_DefaultSyncOptions_Call
type ArgoCD_DestinationURL_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 (_c *ArgoCD_DestinationURL_Call) Return(_a0 string) *ArgoCD_DestinationURL_Call
func (*ArgoCD_DestinationURL_Call) Run ¶
func (_c *ArgoCD_DestinationURL_Call) Run(run func(dest terra.Destination)) *ArgoCD_DestinationURL_Call
func (*ArgoCD_DestinationURL_Call) RunAndReturn ¶
func (_c *ArgoCD_DestinationURL_Call) RunAndReturn(run func(terra.Destination) string) *ArgoCD_DestinationURL_Call
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 ¶
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 (_c *ArgoCD_HardRefresh_Call) Return(_a0 error) *ArgoCD_HardRefresh_Call
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 ¶
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 (_c *ArgoCD_SyncApp_Call) Return(_a0 argocd.SyncResult, _a1 error) *ArgoCD_SyncApp_Call
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 ¶
func (_c *ArgoCD_SyncApp_Call) RunAndReturn(run func(string, ...argocd.SyncOption) (argocd.SyncResult, error)) *ArgoCD_SyncApp_Call
type ArgoCD_SyncRelease_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 (_c *ArgoCD_SyncRelease_Call) Return(_a0 error) *ArgoCD_SyncRelease_Call
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 ¶
func (_c *ArgoCD_SyncRelease_Call) RunAndReturn(run func(terra.Release, ...argocd.SyncOption) error) *ArgoCD_SyncRelease_Call
type ArgoCD_WaitExist_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 (_c *ArgoCD_WaitExist_Call) Return(_a0 error) *ArgoCD_WaitExist_Call
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 ¶
func (_c *ArgoCD_WaitExist_Call) RunAndReturn(run func(string, ...argocd.WaitExistOption) error) *ArgoCD_WaitExist_Call