doctor

package
v1.8.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName = "doctor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger config.Logger `yaml:"log"`

	APIBaseURL     string `yaml:"apiBaseUrl"`
	APIKey         string `yaml:"apiKey"`
	DefaultEngine  string `yaml:"defaultEngine"`
	OrganizationID string `yaml:"organizationID"`
	UserAgent      string `yaml:"userAgent"`
}

type DoctorParams

type DoctorParams struct {
	RawText   string
	Resource  string
	Namespace string
	Error     string
}

func (*DoctorParams) IsRaw

func (p *DoctorParams) IsRaw() bool

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor provides functionality for running Doctor.

func NewExecutor

func NewExecutor(ver string) *Executor

NewExecutor returns a new Executor instance.

func (*Executor) Execute

Execute returns a given command as a response.

func (*Executor) Help

func (d *Executor) Help(context.Context) (api.Message, error)

Help returns help message

func (*Executor) Metadata

func (d *Executor) Metadata(context.Context) (api.MetadataOutput, error)

Metadata returns details about the Doctor plugin.

Jump to

Keyboard shortcuts

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