The writable fields of a source, as submitted to PUT/POST.
sinks is required and must be non-empty — the server validates the spec
exactly as it validates the YAML config. verify is optional; absent means
the server's default ({"type": "none"}), because omitting it is not the same
as re-sending a secret the API never returns.
%Ankusa.SDK.Sources.Spec{
sinks: [%{"type" => "log"}],
verify: %{"type" => "hmac", "secret" => "s3cr3t", "signature_header" => "X-Sig"},
on_verify_failure: "reject"
}
Summary
Functions
The JSON body for a create/update, omitting unset (nil) fields.