spawner

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentSpawner

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 (*FakeEnvironmentSpawner) Destroy

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

Jump to

Keyboard shortcuts

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