Documentation
¶
Overview ¶
Package action defines the server's link action catalog and URL format. Registration and live target policy remain the tool provider's responsibility.
Index ¶
- func HostOptionsURL(base, kind, name string) (string, error)
- func OptionsURL(base, cluster, namespace, pod, workload string) (string, error)
- func ParseQuery(name string, q url.Values) (map[string]any, string, error)
- func Source(value, fallback string) (string, error)
- func URL(base, name string, args map[string]any, source string) (string, error)
- func Validate(name string, args map[string]any) error
- type Choice
- type Entry
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostOptionsURL ¶
HostOptionsURL links to live choices for a host unit or container. It is navigation only; every action behind it still needs its own approval.
func OptionsURL ¶
OptionsURL builds a secret-free navigation link, never an approval grant.
func ParseQuery ¶
ParseQuery consumes source separately; it can never become a tool argument.
Types ¶
type Choice ¶
type Choice struct {
Tool string `json:"tool"`
Label string `json:"label"`
LabelKO string `json:"label_ko"`
URL string `json:"url"`
Reason string `json:"reason"`
ReasonKO string `json:"reason_ko"`
Source string `json:"source"`
Container string `json:"container,omitempty"`
CurrentImage string `json:"current_image,omitempty"`
Image string `json:"image,omitempty"`
SourceReplicaSet string `json:"source_replicaset,omitempty"`
}
Choice retains the image restoration fields for existing tool consumers.