Documentation ¶
Index ¶
- type EnvironmentsProvider
- func (_m *EnvironmentsProvider) DeleteEnvironment(ctx context.Context, id uuid.UUID) error
- func (_m *EnvironmentsProvider) EXPECT() *EnvironmentsProvider_Expecter
- func (_m *EnvironmentsProvider) GetEnvironmentFromHost(ctx context.Context, host string) (*database.Environment, error)
- func (_m *EnvironmentsProvider) IsOwnerLimited(ctx context.Context, owner string) (bool, error)
- func (_m *EnvironmentsProvider) ListEnvironmentsByBranch(ctx context.Context, owner string, repo string, branch string) ([]*database.Environment, error)
- func (_m *EnvironmentsProvider) ListSuccessEnvironments(ctx context.Context) ([]*database.Environment, error)
- func (_m *EnvironmentsProvider) SaveEnvironment(ctx context.Context, env *database.Environment) error
- func (_m *EnvironmentsProvider) ShouldDeploy(ctx context.Context, owner string, repo string, branch string) (bool, error)
- func (_m *EnvironmentsProvider) TerminateEnvironment(ctx context.Context, req environments.TerminateEnvironmentRequest) error
- type EnvironmentsProvider_DeleteEnvironment_Call
- func (_c *EnvironmentsProvider_DeleteEnvironment_Call) Return(_a0 error) *EnvironmentsProvider_DeleteEnvironment_Call
- func (_c *EnvironmentsProvider_DeleteEnvironment_Call) Run(run func(ctx context.Context, id uuid.UUID)) *EnvironmentsProvider_DeleteEnvironment_Call
- func (_c *EnvironmentsProvider_DeleteEnvironment_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *EnvironmentsProvider_DeleteEnvironment_Call
- type EnvironmentsProvider_Expecter
- func (_e *EnvironmentsProvider_Expecter) DeleteEnvironment(ctx interface{}, id interface{}) *EnvironmentsProvider_DeleteEnvironment_Call
- func (_e *EnvironmentsProvider_Expecter) GetEnvironmentFromHost(ctx interface{}, host interface{}) *EnvironmentsProvider_GetEnvironmentFromHost_Call
- func (_e *EnvironmentsProvider_Expecter) IsOwnerLimited(ctx interface{}, owner interface{}) *EnvironmentsProvider_IsOwnerLimited_Call
- func (_e *EnvironmentsProvider_Expecter) ListEnvironmentsByBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}) *EnvironmentsProvider_ListEnvironmentsByBranch_Call
- func (_e *EnvironmentsProvider_Expecter) ListSuccessEnvironments(ctx interface{}) *EnvironmentsProvider_ListSuccessEnvironments_Call
- func (_e *EnvironmentsProvider_Expecter) SaveEnvironment(ctx interface{}, env interface{}) *EnvironmentsProvider_SaveEnvironment_Call
- func (_e *EnvironmentsProvider_Expecter) ShouldDeploy(ctx interface{}, owner interface{}, repo interface{}, branch interface{}) *EnvironmentsProvider_ShouldDeploy_Call
- func (_e *EnvironmentsProvider_Expecter) TerminateEnvironment(ctx interface{}, req interface{}) *EnvironmentsProvider_TerminateEnvironment_Call
- type EnvironmentsProvider_GetEnvironmentFromHost_Call
- func (_c *EnvironmentsProvider_GetEnvironmentFromHost_Call) Return(_a0 *database.Environment, _a1 error) *EnvironmentsProvider_GetEnvironmentFromHost_Call
- func (_c *EnvironmentsProvider_GetEnvironmentFromHost_Call) Run(run func(ctx context.Context, host string)) *EnvironmentsProvider_GetEnvironmentFromHost_Call
- func (_c *EnvironmentsProvider_GetEnvironmentFromHost_Call) RunAndReturn(run func(context.Context, string) (*database.Environment, error)) *EnvironmentsProvider_GetEnvironmentFromHost_Call
- type EnvironmentsProvider_IsOwnerLimited_Call
- func (_c *EnvironmentsProvider_IsOwnerLimited_Call) Return(_a0 bool, _a1 error) *EnvironmentsProvider_IsOwnerLimited_Call
- func (_c *EnvironmentsProvider_IsOwnerLimited_Call) Run(run func(ctx context.Context, owner string)) *EnvironmentsProvider_IsOwnerLimited_Call
- func (_c *EnvironmentsProvider_IsOwnerLimited_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *EnvironmentsProvider_IsOwnerLimited_Call
- type EnvironmentsProvider_ListEnvironmentsByBranch_Call
- func (_c *EnvironmentsProvider_ListEnvironmentsByBranch_Call) Return(_a0 []*database.Environment, _a1 error) *EnvironmentsProvider_ListEnvironmentsByBranch_Call
- func (_c *EnvironmentsProvider_ListEnvironmentsByBranch_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *EnvironmentsProvider_ListEnvironmentsByBranch_Call
- func (_c *EnvironmentsProvider_ListEnvironmentsByBranch_Call) RunAndReturn(...) *EnvironmentsProvider_ListEnvironmentsByBranch_Call
- type EnvironmentsProvider_ListSuccessEnvironments_Call
- func (_c *EnvironmentsProvider_ListSuccessEnvironments_Call) Return(_a0 []*database.Environment, _a1 error) *EnvironmentsProvider_ListSuccessEnvironments_Call
- func (_c *EnvironmentsProvider_ListSuccessEnvironments_Call) Run(run func(ctx context.Context)) *EnvironmentsProvider_ListSuccessEnvironments_Call
- func (_c *EnvironmentsProvider_ListSuccessEnvironments_Call) RunAndReturn(run func(context.Context) ([]*database.Environment, error)) *EnvironmentsProvider_ListSuccessEnvironments_Call
- type EnvironmentsProvider_SaveEnvironment_Call
- func (_c *EnvironmentsProvider_SaveEnvironment_Call) Return(_a0 error) *EnvironmentsProvider_SaveEnvironment_Call
- func (_c *EnvironmentsProvider_SaveEnvironment_Call) Run(run func(ctx context.Context, env *database.Environment)) *EnvironmentsProvider_SaveEnvironment_Call
- func (_c *EnvironmentsProvider_SaveEnvironment_Call) RunAndReturn(run func(context.Context, *database.Environment) error) *EnvironmentsProvider_SaveEnvironment_Call
- type EnvironmentsProvider_ShouldDeploy_Call
- func (_c *EnvironmentsProvider_ShouldDeploy_Call) Return(_a0 bool, _a1 error) *EnvironmentsProvider_ShouldDeploy_Call
- func (_c *EnvironmentsProvider_ShouldDeploy_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *EnvironmentsProvider_ShouldDeploy_Call
- func (_c *EnvironmentsProvider_ShouldDeploy_Call) RunAndReturn(run func(context.Context, string, string, string) (bool, error)) *EnvironmentsProvider_ShouldDeploy_Call
- type EnvironmentsProvider_TerminateEnvironment_Call
- func (_c *EnvironmentsProvider_TerminateEnvironment_Call) Return(_a0 error) *EnvironmentsProvider_TerminateEnvironment_Call
- func (_c *EnvironmentsProvider_TerminateEnvironment_Call) Run(run func(ctx context.Context, req environments.TerminateEnvironmentRequest)) *EnvironmentsProvider_TerminateEnvironment_Call
- func (_c *EnvironmentsProvider_TerminateEnvironment_Call) RunAndReturn(run func(context.Context, environments.TerminateEnvironmentRequest) error) *EnvironmentsProvider_TerminateEnvironment_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentsProvider ¶
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 ¶
DeleteEnvironment provides a mock function with given fields: ctx, id
func (*EnvironmentsProvider) EXPECT ¶
func (_m *EnvironmentsProvider) EXPECT() *EnvironmentsProvider_Expecter
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 ¶
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 ¶
func (_m *EnvironmentsProvider) TerminateEnvironment(ctx context.Context, req environments.TerminateEnvironmentRequest) error
TerminateEnvironment provides a mock function with given fields: ctx, req
type EnvironmentsProvider_DeleteEnvironment_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 (_c *EnvironmentsProvider_DeleteEnvironment_Call) Return(_a0 error) *EnvironmentsProvider_DeleteEnvironment_Call
func (*EnvironmentsProvider_DeleteEnvironment_Call) Run ¶
func (_c *EnvironmentsProvider_DeleteEnvironment_Call) Run(run func(ctx context.Context, id uuid.UUID)) *EnvironmentsProvider_DeleteEnvironment_Call
func (*EnvironmentsProvider_DeleteEnvironment_Call) RunAndReturn ¶
func (_c *EnvironmentsProvider_DeleteEnvironment_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *EnvironmentsProvider_DeleteEnvironment_Call
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 ¶
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 (_c *EnvironmentsProvider_GetEnvironmentFromHost_Call) Return(_a0 *database.Environment, _a1 error) *EnvironmentsProvider_GetEnvironmentFromHost_Call
func (*EnvironmentsProvider_GetEnvironmentFromHost_Call) Run ¶
func (_c *EnvironmentsProvider_GetEnvironmentFromHost_Call) Run(run func(ctx context.Context, host string)) *EnvironmentsProvider_GetEnvironmentFromHost_Call
func (*EnvironmentsProvider_GetEnvironmentFromHost_Call) RunAndReturn ¶
func (_c *EnvironmentsProvider_GetEnvironmentFromHost_Call) RunAndReturn(run func(context.Context, string) (*database.Environment, error)) *EnvironmentsProvider_GetEnvironmentFromHost_Call
type EnvironmentsProvider_IsOwnerLimited_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 (_c *EnvironmentsProvider_IsOwnerLimited_Call) Return(_a0 bool, _a1 error) *EnvironmentsProvider_IsOwnerLimited_Call
func (*EnvironmentsProvider_IsOwnerLimited_Call) Run ¶
func (_c *EnvironmentsProvider_IsOwnerLimited_Call) Run(run func(ctx context.Context, owner string)) *EnvironmentsProvider_IsOwnerLimited_Call
func (*EnvironmentsProvider_IsOwnerLimited_Call) RunAndReturn ¶
func (_c *EnvironmentsProvider_IsOwnerLimited_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *EnvironmentsProvider_IsOwnerLimited_Call
type EnvironmentsProvider_ListEnvironmentsByBranch_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 (_c *EnvironmentsProvider_ListEnvironmentsByBranch_Call) Return(_a0 []*database.Environment, _a1 error) *EnvironmentsProvider_ListEnvironmentsByBranch_Call
func (*EnvironmentsProvider_ListEnvironmentsByBranch_Call) Run ¶
func (_c *EnvironmentsProvider_ListEnvironmentsByBranch_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *EnvironmentsProvider_ListEnvironmentsByBranch_Call
func (*EnvironmentsProvider_ListEnvironmentsByBranch_Call) RunAndReturn ¶
func (_c *EnvironmentsProvider_ListEnvironmentsByBranch_Call) RunAndReturn(run func(context.Context, string, string, string) ([]*database.Environment, error)) *EnvironmentsProvider_ListEnvironmentsByBranch_Call
type EnvironmentsProvider_ListSuccessEnvironments_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 (_c *EnvironmentsProvider_ListSuccessEnvironments_Call) Return(_a0 []*database.Environment, _a1 error) *EnvironmentsProvider_ListSuccessEnvironments_Call
func (*EnvironmentsProvider_ListSuccessEnvironments_Call) Run ¶
func (_c *EnvironmentsProvider_ListSuccessEnvironments_Call) Run(run func(ctx context.Context)) *EnvironmentsProvider_ListSuccessEnvironments_Call
func (*EnvironmentsProvider_ListSuccessEnvironments_Call) RunAndReturn ¶
func (_c *EnvironmentsProvider_ListSuccessEnvironments_Call) RunAndReturn(run func(context.Context) ([]*database.Environment, error)) *EnvironmentsProvider_ListSuccessEnvironments_Call
type EnvironmentsProvider_SaveEnvironment_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 (_c *EnvironmentsProvider_SaveEnvironment_Call) Return(_a0 error) *EnvironmentsProvider_SaveEnvironment_Call
func (*EnvironmentsProvider_SaveEnvironment_Call) Run ¶
func (_c *EnvironmentsProvider_SaveEnvironment_Call) Run(run func(ctx context.Context, env *database.Environment)) *EnvironmentsProvider_SaveEnvironment_Call
func (*EnvironmentsProvider_SaveEnvironment_Call) RunAndReturn ¶
func (_c *EnvironmentsProvider_SaveEnvironment_Call) RunAndReturn(run func(context.Context, *database.Environment) error) *EnvironmentsProvider_SaveEnvironment_Call
type EnvironmentsProvider_ShouldDeploy_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 (_c *EnvironmentsProvider_ShouldDeploy_Call) Return(_a0 bool, _a1 error) *EnvironmentsProvider_ShouldDeploy_Call
func (*EnvironmentsProvider_ShouldDeploy_Call) Run ¶
func (_c *EnvironmentsProvider_ShouldDeploy_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *EnvironmentsProvider_ShouldDeploy_Call
func (*EnvironmentsProvider_ShouldDeploy_Call) RunAndReturn ¶
func (_c *EnvironmentsProvider_ShouldDeploy_Call) RunAndReturn(run func(context.Context, string, string, string) (bool, error)) *EnvironmentsProvider_ShouldDeploy_Call
type EnvironmentsProvider_TerminateEnvironment_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 (_c *EnvironmentsProvider_TerminateEnvironment_Call) Return(_a0 error) *EnvironmentsProvider_TerminateEnvironment_Call
func (*EnvironmentsProvider_TerminateEnvironment_Call) Run ¶
func (_c *EnvironmentsProvider_TerminateEnvironment_Call) Run(run func(ctx context.Context, req environments.TerminateEnvironmentRequest)) *EnvironmentsProvider_TerminateEnvironment_Call
func (*EnvironmentsProvider_TerminateEnvironment_Call) RunAndReturn ¶
func (_c *EnvironmentsProvider_TerminateEnvironment_Call) RunAndReturn(run func(context.Context, environments.TerminateEnvironmentRequest) error) *EnvironmentsProvider_TerminateEnvironment_Call