From b8ac272f99a76ca21b43a65a60607a9a6b466f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandor=20Sz=C3=BCcs?= Date: Fri, 12 Jan 2024 20:53:58 +0100 Subject: [PATCH] doc: add godoc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sandor Szücs --- provider/provider.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/provider/provider.go b/provider/provider.go index 3c9b9d562..6a9c591e1 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -26,8 +26,12 @@ import ( "sigs.k8s.io/external-dns/plan" ) +// SoftError is an error, that provider will only log as error instead +// of fatal. It is meant for error propagation from providers to tell +// that this is a transient error. var SoftError error = errors.New("soft error") +// NewSoftError creates a SoftError from the given error func NewSoftError(err error) error { return errors.Join(SoftError, err) }