builtins

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 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