targetfailure

package
v0.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 3 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL