mocks

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentsProvider

type EnvironmentsProvider struct {
	mock.Mock
}

EnvironmentsProvider is an autogenerated mock type for the EnvironmentsProvider type

func NewEnvironmentsProvider

func NewEnvironmentsProvider(t mockConstructorTestingTNewEnvironmentsProvider) *EnvironmentsProvider

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

func (*EnvironmentsProvider) DeleteEnvironment

func (_m *EnvironmentsProvider) DeleteEnvironment(ctx context.Context, id uuid.UUID) error

DeleteEnvironment provides a mock function with given fields: ctx, id

func (*EnvironmentsProvider) EXPECT

func (*EnvironmentsProvider) GetEnvironmentFromHost

func (_m *EnvironmentsProvider) GetEnvironmentFromHost(ctx context.Context, host string) (*database.Environment, error)

GetEnvironmentFromHost provides a mock function with given fields: ctx, host

func (*EnvironmentsProvider) IsOwnerLimited

func (_m *EnvironmentsProvider) IsOwnerLimited(ctx context.Context, owner string) (bool, error)

IsOwnerLimited provides a mock function with given fields: ctx, owner

func (*EnvironmentsProvider) ListEnvironmentsByBranch

func (_m *EnvironmentsProvider) ListEnvironmentsByBranch(ctx context.Context, owner string, repo string, branch string) ([]*database.Environment, error)

ListEnvironmentsByBranch provides a mock function with given fields: ctx, owner, repo, branch

func (*EnvironmentsProvider) ListSuccessEnvironments

func (_m *EnvironmentsProvider) ListSuccessEnvironments(ctx context.Context) ([]*database.Environment, error)

ListSuccessEnvironments provides a mock function with given fields: ctx

func (*EnvironmentsProvider) SaveEnvironment

func (_m *EnvironmentsProvider) SaveEnvironment(ctx context.Context, env *database.Environment) error

SaveEnvironment provides a mock function with given fields: ctx, env

func (*EnvironmentsProvider) ShouldDeploy

func (_m *EnvironmentsProvider) ShouldDeploy(ctx context.Context, owner string, repo string, branch string) (bool, error)

ShouldDeploy provides a mock function with given fields: ctx, owner, repo, branch

func (*EnvironmentsProvider) TerminateEnvironment

TerminateEnvironment provides a mock function with given fields: ctx, req

type EnvironmentsProvider_DeleteEnvironment_Call

type EnvironmentsProvider_DeleteEnvironment_Call struct {
	*mock.Call
}

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

func (*EnvironmentsProvider_DeleteEnvironment_Call) Return

func (*EnvironmentsProvider_DeleteEnvironment_Call) Run

func (*EnvironmentsProvider_DeleteEnvironment_Call) RunAndReturn

type EnvironmentsProvider_Expecter

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

func (*EnvironmentsProvider_Expecter) DeleteEnvironment

func (_e *EnvironmentsProvider_Expecter) DeleteEnvironment(ctx interface{}, id interface{}) *EnvironmentsProvider_DeleteEnvironment_Call

DeleteEnvironment is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*EnvironmentsProvider_Expecter) GetEnvironmentFromHost

func (_e *EnvironmentsProvider_Expecter) GetEnvironmentFromHost(ctx interface{}, host interface{}) *EnvironmentsProvider_GetEnvironmentFromHost_Call

GetEnvironmentFromHost is a helper method to define mock.On call

  • ctx context.Context
  • host string

func (*EnvironmentsProvider_Expecter) IsOwnerLimited

func (_e *EnvironmentsProvider_Expecter) IsOwnerLimited(ctx interface{}, owner interface{}) *EnvironmentsProvider_IsOwnerLimited_Call

IsOwnerLimited is a helper method to define mock.On call

  • ctx context.Context
  • owner string

func (*EnvironmentsProvider_Expecter) ListEnvironmentsByBranch

func (_e *EnvironmentsProvider_Expecter) ListEnvironmentsByBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}) *EnvironmentsProvider_ListEnvironmentsByBranch_Call

ListEnvironmentsByBranch is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • branch string

func (*EnvironmentsProvider_Expecter) ListSuccessEnvironments

func (_e *EnvironmentsProvider_Expecter) ListSuccessEnvironments(ctx interface{}) *EnvironmentsProvider_ListSuccessEnvironments_Call

ListSuccessEnvironments is a helper method to define mock.On call

  • ctx context.Context

func (*EnvironmentsProvider_Expecter) SaveEnvironment

func (_e *EnvironmentsProvider_Expecter) SaveEnvironment(ctx interface{}, env interface{}) *EnvironmentsProvider_SaveEnvironment_Call

SaveEnvironment is a helper method to define mock.On call

  • ctx context.Context
  • env *database.Environment

func (*EnvironmentsProvider_Expecter) ShouldDeploy

func (_e *EnvironmentsProvider_Expecter) ShouldDeploy(ctx interface{}, owner interface{}, repo interface{}, branch interface{}) *EnvironmentsProvider_ShouldDeploy_Call

ShouldDeploy is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • branch string

func (*EnvironmentsProvider_Expecter) TerminateEnvironment

func (_e *EnvironmentsProvider_Expecter) TerminateEnvironment(ctx interface{}, req interface{}) *EnvironmentsProvider_TerminateEnvironment_Call

TerminateEnvironment is a helper method to define mock.On call

  • ctx context.Context
  • req environments.TerminateEnvironmentRequest

type EnvironmentsProvider_GetEnvironmentFromHost_Call

type EnvironmentsProvider_GetEnvironmentFromHost_Call struct {
	*mock.Call
}

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

func (*EnvironmentsProvider_GetEnvironmentFromHost_Call) Return

func (*EnvironmentsProvider_GetEnvironmentFromHost_Call) Run

func (*EnvironmentsProvider_GetEnvironmentFromHost_Call) RunAndReturn

type EnvironmentsProvider_IsOwnerLimited_Call

type EnvironmentsProvider_IsOwnerLimited_Call struct {
	*mock.Call
}

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

func (*EnvironmentsProvider_IsOwnerLimited_Call) Return

func (*EnvironmentsProvider_IsOwnerLimited_Call) Run

func (*EnvironmentsProvider_IsOwnerLimited_Call) RunAndReturn

type EnvironmentsProvider_ListEnvironmentsByBranch_Call

type EnvironmentsProvider_ListEnvironmentsByBranch_Call struct {
	*mock.Call
}

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

func (*EnvironmentsProvider_ListEnvironmentsByBranch_Call) Return

func (*EnvironmentsProvider_ListEnvironmentsByBranch_Call) Run

func (*EnvironmentsProvider_ListEnvironmentsByBranch_Call) RunAndReturn

type EnvironmentsProvider_ListSuccessEnvironments_Call

type EnvironmentsProvider_ListSuccessEnvironments_Call struct {
	*mock.Call
}

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

func (*EnvironmentsProvider_ListSuccessEnvironments_Call) Return

func (*EnvironmentsProvider_ListSuccessEnvironments_Call) Run

func (*EnvironmentsProvider_ListSuccessEnvironments_Call) RunAndReturn

type EnvironmentsProvider_SaveEnvironment_Call

type EnvironmentsProvider_SaveEnvironment_Call struct {
	*mock.Call
}

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

func (*EnvironmentsProvider_SaveEnvironment_Call) Return

func (*EnvironmentsProvider_SaveEnvironment_Call) Run

func (*EnvironmentsProvider_SaveEnvironment_Call) RunAndReturn

type EnvironmentsProvider_ShouldDeploy_Call

type EnvironmentsProvider_ShouldDeploy_Call struct {
	*mock.Call
}

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

func (*EnvironmentsProvider_ShouldDeploy_Call) Return

func (*EnvironmentsProvider_ShouldDeploy_Call) Run

func (*EnvironmentsProvider_ShouldDeploy_Call) RunAndReturn

type EnvironmentsProvider_TerminateEnvironment_Call

type EnvironmentsProvider_TerminateEnvironment_Call struct {
	*mock.Call
}

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

func (*EnvironmentsProvider_TerminateEnvironment_Call) Return

func (*EnvironmentsProvider_TerminateEnvironment_Call) Run

Jump to

Keyboard shortcuts

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