Documentation ¶
Index ¶
- func LoadBuildPlan(t *testing.T, name string) *model.BuildPlan
- func LoadBuildResponse(t *testing.T, name string) *headchef_models.V1BuildStatusResponse
- func LoadRecipe(t *testing.T, name string) *inventory_models.Recipe
- func SaveBuildResponse(name string, m *headchef_models.V1BuildStatusResponse) error
- func SaveRecipe(name string, m *inventory_models.Recipe) error
- type MockProgressOutput
- func (mpo *MockProgressOutput) ArtifactStepCompleted(artifact.ArtifactID, string, string) error
- func (mpo *MockProgressOutput) ArtifactStepFailure(artifact.ArtifactID, string, string, string) error
- func (mpo *MockProgressOutput) ArtifactStepIncrement(artifact.ArtifactID, string, string, int64) error
- func (mpo *MockProgressOutput) ArtifactStepStarted(artifact.ArtifactID, string, string, int64, bool) error
- func (mpo *MockProgressOutput) BuildArtifactCompleted(artifactID artifact.ArtifactID, artifactName, logURI string, cachedBuild bool) error
- func (mpo *MockProgressOutput) BuildArtifactFailure(artifactID artifact.ArtifactID, artifactName, logURI string, ...) error
- func (mpo *MockProgressOutput) BuildArtifactProgress(artifactID artifact.ArtifactID, ...) error
- func (mpo *MockProgressOutput) BuildArtifactStarted(artifactID artifact.ArtifactID, artifactName string) error
- func (mpo *MockProgressOutput) BuildCompleted(bool) error
- func (mpo *MockProgressOutput) BuildStarted(total int64) error
- func (mpo *MockProgressOutput) Close() error
- func (mpo *MockProgressOutput) InstallationCompleted(bool) error
- func (mpo *MockProgressOutput) InstallationStarted(total int64) error
- func (mpo *MockProgressOutput) InstallationStatusUpdate(current, total int64) error
- func (mpo *MockProgressOutput) SolverError(serr *model.SolverError) error
- func (mpo *MockProgressOutput) SolverStart() error
- func (mpo *MockProgressOutput) SolverSuccess() error
- func (mpo *MockProgressOutput) StillBuilding(numCompleted, numTotal int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadBuildResponse ¶
func LoadBuildResponse(t *testing.T, name string) *headchef_models.V1BuildStatusResponse
func LoadRecipe ¶
func LoadRecipe(t *testing.T, name string) *inventory_models.Recipe
func SaveBuildResponse ¶
func SaveBuildResponse(name string, m *headchef_models.V1BuildStatusResponse) error
func SaveRecipe ¶
func SaveRecipe(name string, m *inventory_models.Recipe) error
Types ¶
type MockProgressOutput ¶
type MockProgressOutput struct { BuildStartedCalled bool BuildCompletedCalled bool BuildTotal int64 BuildCurrent int InstallationStartedCalled bool InstallationCompletedCalled bool InstallationTotal int64 InstallationCurrent int ArtifactStartedCalled int ArtifactIncrementCalled int ArtifactCompletedCalled int ArtifactFailureCalled int }
func (*MockProgressOutput) ArtifactStepCompleted ¶
func (mpo *MockProgressOutput) ArtifactStepCompleted(artifact.ArtifactID, string, string) error
func (*MockProgressOutput) ArtifactStepFailure ¶
func (mpo *MockProgressOutput) ArtifactStepFailure(artifact.ArtifactID, string, string, string) error
func (*MockProgressOutput) ArtifactStepIncrement ¶
func (mpo *MockProgressOutput) ArtifactStepIncrement(artifact.ArtifactID, string, string, int64) error
func (*MockProgressOutput) ArtifactStepStarted ¶
func (mpo *MockProgressOutput) ArtifactStepStarted(artifact.ArtifactID, string, string, int64, bool) error
func (*MockProgressOutput) BuildArtifactCompleted ¶
func (mpo *MockProgressOutput) BuildArtifactCompleted(artifactID artifact.ArtifactID, artifactName, logURI string, cachedBuild bool) error
func (*MockProgressOutput) BuildArtifactFailure ¶
func (mpo *MockProgressOutput) BuildArtifactFailure(artifactID artifact.ArtifactID, artifactName, logURI string, errorMessage string, cachedBuild bool) error
func (*MockProgressOutput) BuildArtifactProgress ¶
func (mpo *MockProgressOutput) BuildArtifactProgress(artifactID artifact.ArtifactID, artifactName, timeStamp, message, facility, pipeName, source string) error
func (*MockProgressOutput) BuildArtifactStarted ¶
func (mpo *MockProgressOutput) BuildArtifactStarted(artifactID artifact.ArtifactID, artifactName string) error
func (*MockProgressOutput) BuildCompleted ¶
func (mpo *MockProgressOutput) BuildCompleted(bool) error
func (*MockProgressOutput) BuildStarted ¶
func (mpo *MockProgressOutput) BuildStarted(total int64) error
func (*MockProgressOutput) Close ¶
func (mpo *MockProgressOutput) Close() error
func (*MockProgressOutput) InstallationCompleted ¶
func (mpo *MockProgressOutput) InstallationCompleted(bool) error
func (*MockProgressOutput) InstallationStarted ¶
func (mpo *MockProgressOutput) InstallationStarted(total int64) error
func (*MockProgressOutput) InstallationStatusUpdate ¶
func (mpo *MockProgressOutput) InstallationStatusUpdate(current, total int64) error
func (*MockProgressOutput) SolverError ¶
func (mpo *MockProgressOutput) SolverError(serr *model.SolverError) error
func (*MockProgressOutput) SolverStart ¶
func (mpo *MockProgressOutput) SolverStart() error
func (*MockProgressOutput) SolverSuccess ¶
func (mpo *MockProgressOutput) SolverSuccess() error
func (*MockProgressOutput) StillBuilding ¶
func (mpo *MockProgressOutput) StillBuilding(numCompleted, numTotal int) error
Click to show internal directories.
Click to hide internal directories.