Documentation ¶
Index ¶
Constants ¶
View Source
const (
DiagDefaultRules = "https://storage.googleapis.com/skaffold/diag/customRules/v1/rules.json"
)
Variables ¶
View Source
var (
NilSuggestion = proto.Suggestion{SuggestionCode: proto.SuggestionCode_NIL}
)
Functions ¶
This section is empty.
Types ¶
type ContainerError ¶
type ContainerError struct { }
func (ContainerError) Make ¶
func (r ContainerError) Make(errCode proto.StatusCode) proto.Suggestion
type Custom ¶ added in v1.11.4
type Custom struct { RulesPath string // contains filtered or unexported fields }
func NewCustom ¶ added in v1.11.4
NewCustom returns a custom recommender from rules file or return error
func (Custom) Make ¶ added in v1.11.4
func (r Custom) Make(errCode proto.StatusCode) proto.Suggestion
type Rule ¶ added in v1.11.4
type Rule struct { ErrCode proto.StatusCode `json:"errorCode"` SuggestionCode proto.SuggestionCode `json:"suggestionCode"` Suggestion string `json:"suggestion"` ContextPrefixMatches map[string]string `json:"contextPrefixMatches"` }
type RulesConfigV1 ¶ added in v1.11.4
type RulesConfigV1 struct {
Rules []Rule `json:"rules"`
}
Click to show internal directories.
Click to hide internal directories.