linkerd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyse

type Analyse struct {
	All      bool
	Category []string
	State    string
	File     string
	// contains filtered or unexported fields
}

func (*Analyse) Analyse

func (analyse *Analyse) Analyse(cfg *CheckConfig) (bool, error)

func (*Analyse) Render

func (analyse *Analyse) Render()

func (*Analyse) SetLogger

func (analyse *Analyse) SetLogger(logger *logrus.Logger)

func (*Analyse) SetStatus

func (analyse *Analyse) SetStatus(status bool)

func (*Analyse) SetTable

func (analyse *Analyse) SetTable() error

type Category

type Category struct {
	Name   string  `json:"categoryName,omitempty" yaml:"categoryName,omitempty"`
	Checks []Check `json:"checks,omitempty" yaml:"checks,omitempty"`
}

Category holds the Category part of linkerd check's output.

type Check

type Check struct {
	Description string `json:"description,omitempty" yaml:"description,omitempty"`
	Result      string `json:"result,omitempty" yaml:"result,omitempty"`
	Hint        string `json:"hint,omitempty" yaml:"hint,omitempty"`
	Error       string `json:"error,omitempty" yaml:"error,omitempty"`
}

Check holds the actual result linkerd check's output.

type CheckConfig

type CheckConfig struct {
	Success    bool       `json:"success,omitempty" yaml:"success,omitempty"`
	Categories []Category `json:"categories,omitempty" yaml:"categories,omitempty"`
}

CheckConfig holds the linkerd check output.

func GetCheckConfig

func GetCheckConfig(input *json.Decoder) (*CheckConfig, error)

Jump to

Keyboard shortcuts

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