Documentation
¶
Overview ¶
Package buildingblock waits for the run of a building block, by the rules of client.MeshBuildingBlockV2Status.RunChangedSince and client.MeshBuildingBlockV2.RunEndedSince.
Index ¶
- type RunWait
- func (w RunWait) AwaitEnd(ctx context.Context, before client.MeshBuildingBlockV2Status) (jsontext.Value, *client.MeshBuildingBlockV2, error)
- func (w RunWait) AwaitReaction(ctx context.Context, before client.MeshBuildingBlockV2Status) (jsontext.Value, *client.MeshBuildingBlockV2, error)
- func (w RunWait) Outcome(block *client.MeshBuildingBlockV2) error
- func (w RunWait) StartFailure(block *client.MeshBuildingBlockV2) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunWait ¶
type RunWait struct {
// contains filtered or unexported fields
}
func (RunWait) AwaitEnd ¶
func (w RunWait) AwaitEnd(ctx context.Context, before client.MeshBuildingBlockV2Status) (jsontext.Value, *client.MeshBuildingBlockV2, error)
AwaitEnd returns the building block once meshStack has reacted to a write since before, and the run is no longer running.
func (RunWait) AwaitReaction ¶
func (w RunWait) AwaitReaction(ctx context.Context, before client.MeshBuildingBlockV2Status) (jsontext.Value, *client.MeshBuildingBlockV2, error)
AwaitReaction returns the building block once meshStack has reacted to a write since before.
func (RunWait) Outcome ¶
func (w RunWait) Outcome(block *client.MeshBuildingBlockV2) error
Outcome is an error for a run that ended in a state someone has to act on.
func (RunWait) StartFailure ¶
func (w RunWait) StartFailure(block *client.MeshBuildingBlockV2) error
Click to show internal directories.
Click to hide internal directories.