Module kflow_utils

Miscellaneous functions that can be useful for implementing workflows.

Copyright © 2020 Klarna Bank AB (publ)

Description

Miscellaneous functions that can be useful for implementing workflows.

Function Index

aws_config/0
ensure_string/1
exec/2Execute an external executable Executable with args Args and return the exit status.
id/1Identity function (useful as a placeholder).
k/2K combinator (useful as a placeholder).
retry/2
retry/3
upload_to_s3/3

Function Details

aws_config/0

aws_config() -> #aws_config{}

ensure_string/1

ensure_string(Str::string() | binary()) -> string()

exec/2

exec(CMD::file:filename(), Args::[string() | binary()]) -> integer()

Execute an external executable Executable with args Args and return the exit status

id/1

id(A) -> A

Identity function (useful as a placeholder)

k/2

k(A, _B) -> A

K combinator (useful as a placeholder)

retry/2

retry(Fun::{module(), atom(), list()}, N::non_neg_integer()) -> term()

retry/3

retry(MFA::{module(), atom(), list()}, N::non_neg_integer(), Timeout::non_neg_integer()) -> term()

upload_to_s3/3

upload_to_s3(Bucket::string(), Key::string(), Value::binary()) -> ok


Generated by EDoc