Documentation ¶
Index ¶
- type EnvironmentSpawner
- type FakeEnvironmentSpawner
- func (fes *FakeEnvironmentSpawner) Create(ctx context.Context, rd models.RepoRevisionData) (string, error)
- func (fes *FakeEnvironmentSpawner) Destroy(ctx context.Context, rd models.RepoRevisionData, reason models.QADestroyReason) error
- func (fes *FakeEnvironmentSpawner) DestroyExplicitly(ctx context.Context, env *models.QAEnvironment, reason models.QADestroyReason) error
- func (fes *FakeEnvironmentSpawner) Failure(ctx context.Context, name, msg string) error
- func (fes *FakeEnvironmentSpawner) Success(ctx context.Context, name string) error
- func (fes *FakeEnvironmentSpawner) Update(ctx context.Context, rd models.RepoRevisionData) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentSpawner ¶
type EnvironmentSpawner interface { Create(context.Context, models.RepoRevisionData) (string, error) Update(context.Context, models.RepoRevisionData) (string, error) Destroy(context.Context, models.RepoRevisionData, models.QADestroyReason) error DestroyExplicitly(context.Context, *models.QAEnvironment, models.QADestroyReason) error Success(context.Context, string) error Failure(context.Context, string, string) error }
EnvironmentSpawner describes an object capable of managing environments
type FakeEnvironmentSpawner ¶
type FakeEnvironmentSpawner struct { CreateFunc func(ctx context.Context, rd models.RepoRevisionData) (string, error) UpdateFunc func(ctx context.Context, rd models.RepoRevisionData) (string, error) DestroyFunc func(ctx context.Context, rd models.RepoRevisionData, reason models.QADestroyReason) error DestroyExplicitlyFunc func(ctx context.Context, env *models.QAEnvironment, reason models.QADestroyReason) error SuccessFunc func(ctx context.Context, name string) error FailureFunc func(ctx context.Context, name, msg string) error }
func (*FakeEnvironmentSpawner) Create ¶
func (fes *FakeEnvironmentSpawner) Create(ctx context.Context, rd models.RepoRevisionData) (string, error)
func (*FakeEnvironmentSpawner) Destroy ¶
func (fes *FakeEnvironmentSpawner) Destroy(ctx context.Context, rd models.RepoRevisionData, reason models.QADestroyReason) error
func (*FakeEnvironmentSpawner) DestroyExplicitly ¶
func (fes *FakeEnvironmentSpawner) DestroyExplicitly(ctx context.Context, env *models.QAEnvironment, reason models.QADestroyReason) error
func (*FakeEnvironmentSpawner) Failure ¶
func (fes *FakeEnvironmentSpawner) Failure(ctx context.Context, name, msg string) error
func (*FakeEnvironmentSpawner) Success ¶
func (fes *FakeEnvironmentSpawner) Success(ctx context.Context, name string) error
func (*FakeEnvironmentSpawner) Update ¶
func (fes *FakeEnvironmentSpawner) Update(ctx context.Context, rd models.RepoRevisionData) (string, error)
Click to show internal directories.
Click to hide internal directories.