builtins

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownSourceType = errors.New("unknown source type")
	ErrFilePathRequired  = errors.New("file path is required")
	ErrCmdRequired       = errors.New("cmd is required for exec source")
)

Functions

This section is empty.

Types

type CloudflarePlugin

type CloudflarePlugin struct {
	plugins.BuiltinPluginBase
}

CloudflarePlugin provides import suggestions for Cloudflare resources. Currently returns dummy data for testing purposes.

func (*CloudflarePlugin) Authenticate

Authenticate returns a no-op success response. This plugin is primarily for import help, not auth.

func (*CloudflarePlugin) GetImportSuggestions

GetImportSuggestions returns import ID suggestions for Cloudflare resources. Currently returns dummy data for testing purposes.

type EnvPlugin

type EnvPlugin struct {
	plugins.BuiltinPluginBase
}

EnvPlugin provides environment variables from .env files, static config, or command execution.

func (*EnvPlugin) Authenticate

Authenticate processes environment sources and returns merged env vars

type EnvSource

type EnvSource struct {
	// Type is one of: "file", "static", "exec"
	Type string `json:"type"`
	// Path is the file path for "file" type (relative to workdir or absolute)
	Path string `json:"path,omitempty"`
	// Vars holds static variables for "static" type
	Vars map[string]string `json:"vars,omitempty"`
	// Cmd is the command for "exec" type
	Cmd string `json:"cmd,omitempty"`
	// Args are arguments for the "exec" command
	Args []string `json:"args,omitempty"`
	// Dir is the working directory for "exec" type (optional)
	Dir string `json:"dir,omitempty"`
}

EnvSource represents a single source of environment variables

type GrafanaPlugin added in v0.6.0

type GrafanaPlugin struct {
	plugins.BuiltinPluginBase
}

GrafanaPlugin provides resource opening capabilities for Grafana resources by generating URLs to the Grafana console.

func (*GrafanaPlugin) Authenticate added in v0.6.0

Authenticate returns a no-op success response. This plugin is primarily for resource opening, not auth.

func (*GrafanaPlugin) GetSupportedOpenTypes added in v0.6.0

GetSupportedOpenTypes returns regex patterns for Grafana resource types.

func (*GrafanaPlugin) OpenResource added in v0.6.0

OpenResource returns a browser URL to open a Grafana resource.

type K9sPlugin added in v0.3.0

type K9sPlugin struct {
	plugins.BuiltinPluginBase
}

K9sPlugin provides resource opening capabilities for Kubernetes resources by launching k9s with the appropriate context and navigating to the resource.

func (*K9sPlugin) Authenticate added in v0.3.0

Authenticate returns a no-op success response. This plugin is primarily for resource opening, not auth.

func (*K9sPlugin) GetSupportedOpenTypes added in v0.3.0

GetSupportedOpenTypes returns regex patterns for Kubernetes resource types.

func (*K9sPlugin) OpenResource added in v0.3.0

OpenResource returns the k9s command to open a Kubernetes resource.

type KubernetesPlugin

type KubernetesPlugin struct {
	plugins.BuiltinPluginBase
}

KubernetesPlugin provides import suggestions for Kubernetes resources by querying kubectl for existing resources.

func (*KubernetesPlugin) Authenticate

Authenticate returns a no-op success response. This plugin is primarily for import help, not auth.

func (*KubernetesPlugin) GetImportSuggestions

GetImportSuggestions returns import ID suggestions for Kubernetes resources

Jump to

Keyboard shortcuts

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