Documentation
¶
Overview ¶
Package targetfailure writes what the operator says about an operation that could not open its target database: the kind of failure Ptah reported, what that kind means, and the Secret key the operation read its URL from.
Every word of the sentence is the operator's own. The kind comes from a closed vocabulary (dataplane.TargetFailureKind), and the Secret's name and key are the resource's own data. Nothing Ptah or the database wrote is in it, so it may reach a condition, an Event and kubectl ptah.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Message ¶
func Message(kind dataplane.TargetFailureKind, url corev1.SecretKeySelector) string
Message is the sentence for kind, naming the Secret key url. A kind outside the vocabulary has no sentence, and Message returns the empty string.
func UnseenObjectsMessage ¶
func UnseenObjectsMessage(kind dataplane.TargetFailureKind, objects []string, url corev1.SecretKeySelector) string
UnseenObjectsMessage is the sentence for a permission_denied failure that names the kinds of object the user cannot see, from dataplane's closed vocabulary. Any other kind, and a list dataplane.ValidateUnseenObjects refuses, gets Message's sentence instead.
Types ¶
This section is empty.