Documentation
¶
Index ¶
- func CancelAllActivePreflights(reason string)
- func CancelPreflight(ctx context.Context, preflightActionExecutionId uuid.UUID, reason string)
- func ClearRegisteredPreflights()
- func GetPreflightList() preflight_kit_api.PreflightList
- func RegisterCoverageEndpoints()
- func RegisterPreflight(a Preflight)
- type Preflight
- type PreflightWithCancel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelAllActivePreflights ¶
func CancelAllActivePreflights(reason string)
func CancelPreflight ¶
func ClearRegisteredPreflights ¶
func ClearRegisteredPreflights()
ClearRegisteredPreflights clears all registered preflights - used for testing. Warning: This will not remove the registered routes from the http server.
func GetPreflightList ¶
func GetPreflightList() preflight_kit_api.PreflightList
GetPreflightList returns a list of all root endpoints of registered preflights.
func RegisterCoverageEndpoints ¶
func RegisterCoverageEndpoints()
RegisterCoverageEndpoints registers two endpoints which get called by preflight_kit_test to retrieve coverage data.
func RegisterPreflight ¶
func RegisterPreflight(a Preflight)
Types ¶
type Preflight ¶
type Preflight interface { // Describe returns the preflight description. Describe() preflight_kit_api.PreflightDescription // Start is called when the preflight should actually happen. // [Details](https://github.com/steadybit/preflight-kit/blob/main/docs/preflight-api.md#start) Start(ctx context.Context, request preflight_kit_api.StartPreflightRequestBody) (*preflight_kit_api.StartResult, error) // Status is used to observe the current status of the preflight. This is called periodically by the preflight-kit if time control [preflight_kit_api.TimeControlInternal] or [preflight_kit_api.TimeControlExternal] is used. // [Details](https://github.com/steadybit/preflight-kit/blob/main/docs/preflight-api.md#status) Status(ctx context.Context, request preflight_kit_api.StatusPreflightRequestBody) (*preflight_kit_api.StatusResult, error) }
type PreflightWithCancel ¶
type PreflightWithCancel interface { Preflight // Cancel is used to clean up any leftovers. This method is optional. // [Details](https://github.com/steadybit/preflight-kit/blob/main/docs/preflight-api.md#cancel) Cancel(ctx context.Context, request preflight_kit_api.CancelPreflightRequestBody) (*preflight_kit_api.CancelResult, error) }
Click to show internal directories.
Click to hide internal directories.