builtins

package
v0.2.0 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 multiple sources: - file: Load from a .env file - static: Define env vars directly in config - exec: Run a command that outputs env vars in .env format

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