{"modulePath":"github.com/newstack-cloud/deploy-cli-sdk","version":"v0.10.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package diagutils\n\n## Types\n\n```go\ntype ConcreteAction struct {\n\t// One or more CLI commands that can be executed as a suggested action\n\t// for a diagnostic.\n\tCommands []string\n\t// One or more links to a web URL that can be used as a suggested action\n\t// for a diagnostic.\n\tLinks []*Link\n}\n```\n\n```go\nfunc GetConcreteAction(\n\tsuggestedAction errors.SuggestedAction,\n\tdiagMetadata map[string]any,\n) *ConcreteAction\n```\nGetConcreteAction 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.\n\nThis will return nil if the suggested action is not supported.\n\n```go\ntype Link struct {\n\t// The title of the link.\n\tTitle string\n\t// The URL of the link.\n\tURL string\n}\n```\n\n","path":"github.com/newstack-cloud/deploy-cli-sdk/diagutils","name":"diagutils","synopsis":"","isRedistributable":true}
