diagutils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcreteAction

type ConcreteAction struct {
	// One or more CLI commands that can be executed as a suggested action
	// for a diagnostic.
	Commands []string
	// One or more links to a web URL that can be used as a suggested action
	// for a diagnostic.
	Links []*Link
}

func GetConcreteAction

func GetConcreteAction(
	suggestedAction errors.SuggestedAction,
	diagMetadata map[string]any,
) *ConcreteAction

GetConcreteAction returns a concrete, context-specific action for a suggested action. When using this function, it is assumed that the current context is a machine that uses the bluelink CLI that can run the suggested commands.

This will return nil if the suggested action is not supported.

type Link struct {
	// The title of the link.
	Title string
	// The URL of the link.
	URL string
}

Jump to

Keyboard shortcuts

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