mocks

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 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 ChartVersionUpdater added in v0.0.74

type ChartVersionUpdater struct {
	mock.Mock
}

ChartVersionUpdater is an autogenerated mock type for the ChartVersionUpdater type

func NewChartVersionUpdater added in v0.0.74

func NewChartVersionUpdater(t mockConstructorTestingTNewChartVersionUpdater) *ChartVersionUpdater

NewChartVersionUpdater creates a new instance of ChartVersionUpdater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ChartVersionUpdater) EXPECT added in v1.0.8

func (*ChartVersionUpdater) UpdateForNewChartVersion added in v0.0.74

func (_m *ChartVersionUpdater) UpdateForNewChartVersion(chartSelector string, newVersion string, lastVersion string, description string, chartReleaseSelectors ...string) error

UpdateForNewChartVersion provides a mock function with given fields: chartSelector, newVersion, lastVersion, description, chartReleaseSelectors

type ChartVersionUpdater_Expecter added in v1.0.8

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

func (*ChartVersionUpdater_Expecter) UpdateForNewChartVersion added in v1.0.8

func (_e *ChartVersionUpdater_Expecter) UpdateForNewChartVersion(chartSelector interface{}, newVersion interface{}, lastVersion interface{}, description interface{}, chartReleaseSelectors ...interface{}) *ChartVersionUpdater_UpdateForNewChartVersion_Call

UpdateForNewChartVersion is a helper method to define mock.On call

  • chartSelector string
  • newVersion string
  • lastVersion string
  • description string
  • chartReleaseSelectors ...string

type ChartVersionUpdater_UpdateForNewChartVersion_Call added in v1.0.8

type ChartVersionUpdater_UpdateForNewChartVersion_Call struct {
	*mock.Call
}

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

func (*ChartVersionUpdater_UpdateForNewChartVersion_Call) Return added in v1.0.8

func (*ChartVersionUpdater_UpdateForNewChartVersion_Call) Run added in v1.0.8

func (_c *ChartVersionUpdater_UpdateForNewChartVersion_Call) Run(run func(chartSelector string, newVersion string, lastVersion string, description string, chartReleaseSelectors ...string)) *ChartVersionUpdater_UpdateForNewChartVersion_Call

type StateReadWriter added in v0.0.72

type StateReadWriter struct {
	mock.Mock
}

StateReadWriter is an autogenerated mock type for the StateReadWriter type

func NewStateReadWriter added in v0.0.72

func NewStateReadWriter(t mockConstructorTestingTNewStateReadWriter) *StateReadWriter

NewStateReadWriter creates a new instance of StateReadWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StateReadWriter) Clusters added in v0.0.72

func (_m *StateReadWriter) Clusters() (sherlock.Clusters, error)

Clusters provides a mock function with given fields:

func (*StateReadWriter) CreateEnvironmentFromTemplate added in v0.0.72

func (_m *StateReadWriter) CreateEnvironmentFromTemplate(templateName string, desiredNamePrefix string, desiredName string, desiredOwnerEmail string) (string, error)

CreateEnvironmentFromTemplate provides a mock function with given fields: templateName, desiredNamePrefix, desiredName, desiredOwnerEmail

func (*StateReadWriter) DeleteEnvironments added in v0.0.72

func (_m *StateReadWriter) DeleteEnvironments(_a0 []terra.Environment) ([]string, error)

DeleteEnvironments provides a mock function with given fields: _a0

func (*StateReadWriter) DisableRelease added in v0.0.72

func (_m *StateReadWriter) DisableRelease(_a0 string, _a1 string) error

DisableRelease provides a mock function with given fields: _a0, _a1

func (*StateReadWriter) EXPECT added in v1.0.8

func (*StateReadWriter) EnableRelease added in v0.0.72

func (_m *StateReadWriter) EnableRelease(_a0 terra.Environment, _a1 string) error

EnableRelease provides a mock function with given fields: _a0, _a1

func (*StateReadWriter) Environments added in v0.0.72

func (_m *StateReadWriter) Environments() (sherlock.Environments, error)

Environments provides a mock function with given fields:

func (*StateReadWriter) PinEnvironmentVersions added in v0.0.72

func (_m *StateReadWriter) PinEnvironmentVersions(environmentName string, versions map[string]terra.VersionOverride) error

PinEnvironmentVersions provides a mock function with given fields: environmentName, versions

func (*StateReadWriter) Releases added in v0.0.72

func (_m *StateReadWriter) Releases() (sherlock.Releases, error)

Releases provides a mock function with given fields:

func (*StateReadWriter) ResetEnvironmentAndPinToDev added in v0.0.72

func (_m *StateReadWriter) ResetEnvironmentAndPinToDev(environment terra.Environment) error

ResetEnvironmentAndPinToDev provides a mock function with given fields: environment

func (*StateReadWriter) SetTerraHelmfileRefForEntireEnvironment added in v0.0.72

func (_m *StateReadWriter) SetTerraHelmfileRefForEntireEnvironment(environment terra.Environment, terraHelmfileRef string) error

SetTerraHelmfileRefForEntireEnvironment provides a mock function with given fields: environment, terraHelmfileRef

func (*StateReadWriter) WriteClusters added in v0.0.72

func (_m *StateReadWriter) WriteClusters(_a0 []terra.Cluster) error

WriteClusters provides a mock function with given fields: _a0

func (*StateReadWriter) WriteEnvironments added in v0.0.72

func (_m *StateReadWriter) WriteEnvironments(_a0 []terra.Environment) ([]string, error)

WriteEnvironments provides a mock function with given fields: _a0

type StateReadWriter_Clusters_Call added in v1.0.8

type StateReadWriter_Clusters_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_Clusters_Call) Return added in v1.0.8

func (*StateReadWriter_Clusters_Call) Run added in v1.0.8

type StateReadWriter_CreateEnvironmentFromTemplate_Call added in v1.0.8

type StateReadWriter_CreateEnvironmentFromTemplate_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_CreateEnvironmentFromTemplate_Call) Return added in v1.0.8

func (*StateReadWriter_CreateEnvironmentFromTemplate_Call) Run added in v1.0.8

func (_c *StateReadWriter_CreateEnvironmentFromTemplate_Call) Run(run func(templateName string, desiredNamePrefix string, desiredName string, desiredOwnerEmail string)) *StateReadWriter_CreateEnvironmentFromTemplate_Call

type StateReadWriter_DeleteEnvironments_Call added in v1.0.8

type StateReadWriter_DeleteEnvironments_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_DeleteEnvironments_Call) Return added in v1.0.8

func (*StateReadWriter_DeleteEnvironments_Call) Run added in v1.0.8

type StateReadWriter_DisableRelease_Call added in v1.0.8

type StateReadWriter_DisableRelease_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_DisableRelease_Call) Return added in v1.0.8

func (*StateReadWriter_DisableRelease_Call) Run added in v1.0.8

type StateReadWriter_EnableRelease_Call added in v1.0.8

type StateReadWriter_EnableRelease_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_EnableRelease_Call) Return added in v1.0.8

func (*StateReadWriter_EnableRelease_Call) Run added in v1.0.8

type StateReadWriter_Environments_Call added in v1.0.8

type StateReadWriter_Environments_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_Environments_Call) Return added in v1.0.8

func (*StateReadWriter_Environments_Call) Run added in v1.0.8

type StateReadWriter_Expecter added in v1.0.8

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

func (*StateReadWriter_Expecter) Clusters added in v1.0.8

Clusters is a helper method to define mock.On call

func (*StateReadWriter_Expecter) CreateEnvironmentFromTemplate added in v1.0.8

func (_e *StateReadWriter_Expecter) CreateEnvironmentFromTemplate(templateName interface{}, desiredNamePrefix interface{}, desiredName interface{}, desiredOwnerEmail interface{}) *StateReadWriter_CreateEnvironmentFromTemplate_Call

CreateEnvironmentFromTemplate is a helper method to define mock.On call

  • templateName string
  • desiredNamePrefix string
  • desiredName string
  • desiredOwnerEmail string

func (*StateReadWriter_Expecter) DeleteEnvironments added in v1.0.8

func (_e *StateReadWriter_Expecter) DeleteEnvironments(_a0 interface{}) *StateReadWriter_DeleteEnvironments_Call

DeleteEnvironments is a helper method to define mock.On call

  • _a0 []terra.Environment

func (*StateReadWriter_Expecter) DisableRelease added in v1.0.8

func (_e *StateReadWriter_Expecter) DisableRelease(_a0 interface{}, _a1 interface{}) *StateReadWriter_DisableRelease_Call

DisableRelease is a helper method to define mock.On call

  • _a0 string
  • _a1 string

func (*StateReadWriter_Expecter) EnableRelease added in v1.0.8

func (_e *StateReadWriter_Expecter) EnableRelease(_a0 interface{}, _a1 interface{}) *StateReadWriter_EnableRelease_Call

EnableRelease is a helper method to define mock.On call

  • _a0 terra.Environment
  • _a1 string

func (*StateReadWriter_Expecter) Environments added in v1.0.8

Environments is a helper method to define mock.On call

func (*StateReadWriter_Expecter) PinEnvironmentVersions added in v1.0.8

func (_e *StateReadWriter_Expecter) PinEnvironmentVersions(environmentName interface{}, versions interface{}) *StateReadWriter_PinEnvironmentVersions_Call

PinEnvironmentVersions is a helper method to define mock.On call

  • environmentName string
  • versions map[string]terra.VersionOverride

func (*StateReadWriter_Expecter) Releases added in v1.0.8

Releases is a helper method to define mock.On call

func (*StateReadWriter_Expecter) ResetEnvironmentAndPinToDev added in v1.0.8

func (_e *StateReadWriter_Expecter) ResetEnvironmentAndPinToDev(environment interface{}) *StateReadWriter_ResetEnvironmentAndPinToDev_Call

ResetEnvironmentAndPinToDev is a helper method to define mock.On call

  • environment terra.Environment

func (*StateReadWriter_Expecter) SetTerraHelmfileRefForEntireEnvironment added in v1.0.8

func (_e *StateReadWriter_Expecter) SetTerraHelmfileRefForEntireEnvironment(environment interface{}, terraHelmfileRef interface{}) *StateReadWriter_SetTerraHelmfileRefForEntireEnvironment_Call

SetTerraHelmfileRefForEntireEnvironment is a helper method to define mock.On call

  • environment terra.Environment
  • terraHelmfileRef string

func (*StateReadWriter_Expecter) WriteClusters added in v1.0.8

func (_e *StateReadWriter_Expecter) WriteClusters(_a0 interface{}) *StateReadWriter_WriteClusters_Call

WriteClusters is a helper method to define mock.On call

  • _a0 []terra.Cluster

func (*StateReadWriter_Expecter) WriteEnvironments added in v1.0.8

func (_e *StateReadWriter_Expecter) WriteEnvironments(_a0 interface{}) *StateReadWriter_WriteEnvironments_Call

WriteEnvironments is a helper method to define mock.On call

  • _a0 []terra.Environment

type StateReadWriter_PinEnvironmentVersions_Call added in v1.0.8

type StateReadWriter_PinEnvironmentVersions_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_PinEnvironmentVersions_Call) Return added in v1.0.8

func (*StateReadWriter_PinEnvironmentVersions_Call) Run added in v1.0.8

type StateReadWriter_Releases_Call added in v1.0.8

type StateReadWriter_Releases_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_Releases_Call) Return added in v1.0.8

func (*StateReadWriter_Releases_Call) Run added in v1.0.8

type StateReadWriter_ResetEnvironmentAndPinToDev_Call added in v1.0.8

type StateReadWriter_ResetEnvironmentAndPinToDev_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_ResetEnvironmentAndPinToDev_Call) Return added in v1.0.8

func (*StateReadWriter_ResetEnvironmentAndPinToDev_Call) Run added in v1.0.8

type StateReadWriter_SetTerraHelmfileRefForEntireEnvironment_Call added in v1.0.8

type StateReadWriter_SetTerraHelmfileRefForEntireEnvironment_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_SetTerraHelmfileRefForEntireEnvironment_Call) Return added in v1.0.8

func (*StateReadWriter_SetTerraHelmfileRefForEntireEnvironment_Call) Run added in v1.0.8

type StateReadWriter_WriteClusters_Call added in v1.0.8

type StateReadWriter_WriteClusters_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_WriteClusters_Call) Return added in v1.0.8

func (*StateReadWriter_WriteClusters_Call) Run added in v1.0.8

type StateReadWriter_WriteEnvironments_Call added in v1.0.8

type StateReadWriter_WriteEnvironments_Call struct {
	*mock.Call
}

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

func (*StateReadWriter_WriteEnvironments_Call) Return added in v1.0.8

func (*StateReadWriter_WriteEnvironments_Call) Run added in v1.0.8

Jump to

Keyboard shortcuts

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