problem

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package problem helps deliver actionable feedback to a user based on an error message.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Problem

type Problem struct {
	// ID is an arbitrary unique and stable string describing this issue
	ID string
	// Err is the original error
	Err error
	// Advice is actionable text that the user should follow
	Advice string
	// URL is a reference URL for more information
	URL string
	// Issues are a list of related issues to this problem
	Issues []int
	// Hide the new issue link: it isn't our problem, and we won't be able to suggest additional assistance.
	HideCreateLink bool
}

Problem represents a known problem in minikube.

func FromError

func FromError(err error, os string) *Problem

FromError returns a known problem from an error on an OS

func (*Problem) Display

func (p *Problem) Display()

Display problem metadata to the console

Jump to

Keyboard shortcuts

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