step-security/Wait on

Waits for resource(s) to be accessible

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
resourceResources types are defined by their prefix, if no prefix is present, the resource is assumed to be of type 'file' resource prefixes are: file: - regular file (also default type). ex: file:/path/to/file http: - HTTP HEAD returns 2XX response. ex: http://m.com:90/foo https: - HTTPS HEAD returns 2XX response. ex: https://my/bar http-get: - HTTP GET returns 2XX response. ex: http://m.com:90/foo https-get: - HTTPS GET returns 2XX response. ex: https://my/bar tcp: - TCP port is listening. ex: 1.2.3.4:9000 or foo.com:700 socket: - Domain Socket is listening. ex: socket:/path/to/sock For http over socket, use http://unix:SOCK_PATH:URL_PATH like http://unix:/path/to/sock:/foo/bar or http-get://unix:/path/to/sock:/foo/bar yes
configjs or json config file, useful for http(s) optionsno
delayInitial delay before checking for resources in ms, default 0no0
httpTimeoutMaximum time in ms to wait for an HTTP HEAD/GET request, default 0 which results in using the OS default no0
intervalInterval to poll resources in ms, default 250msno250
logLog resources begin waited on and when complete or errorednofalse
reverseReverse operation, wait for resources to NOT be availablenofalse
simultaneousSimultaneous / Concurrent connections to a resource, default Infinity Setting this to 1 would delay new requests until previous one has completed. Used to limit the number of connections attempted to a resource at a time' no
timeoutMaximum time in ms to wait before exiting with failure (1) code, default Infinityno
tcpTimeoutMaximum time in ms for tcp connect, default 300msno300
verboseEnable debug output to stdoutnofalse
windowStability window, the time in ms defining the window of time that resource needs to have not changed (file size or availability) before signalling success, default 750ms. If less than interval, it will be reset to the value of interval. This is only used for files, other resources are considered available on first detection. no750

no outputs