Documentation
¶
Index ¶
- Variables
- type CloudflarePlugin
- type EnvPlugin
- type EnvSource
- type GrafanaPlugin
- func (p *GrafanaPlugin) Authenticate(ctx context.Context, req *proto.AuthenticateRequest) (*proto.AuthenticateResponse, error)
- func (p *GrafanaPlugin) GetSupportedOpenTypes(ctx context.Context, req *plugin.SupportedOpenTypesRequest) (*plugin.SupportedOpenTypesResponse, error)
- func (p *GrafanaPlugin) OpenResource(ctx context.Context, req *plugin.OpenResourceRequest) (*plugin.OpenResourceResponse, error)
- type K9sPlugin
- func (p *K9sPlugin) Authenticate(ctx context.Context, req *proto.AuthenticateRequest) (*proto.AuthenticateResponse, error)
- func (p *K9sPlugin) GetSupportedOpenTypes(ctx context.Context, req *plugin.SupportedOpenTypesRequest) (*plugin.SupportedOpenTypesResponse, error)
- func (p *K9sPlugin) OpenResource(ctx context.Context, req *plugin.OpenResourceRequest) (*plugin.OpenResourceResponse, error)
- type KubernetesPlugin
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (p *CloudflarePlugin) Authenticate(ctx context.Context, req *proto.AuthenticateRequest) (*proto.AuthenticateResponse, error)
Authenticate returns a no-op success response. This plugin is primarily for import help, not auth.
func (*CloudflarePlugin) GetImportSuggestions ¶
func (p *CloudflarePlugin) GetImportSuggestions(ctx context.Context, req *plugin.ImportSuggestionsRequest) (*plugin.ImportSuggestionsResponse, error)
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 ¶
func (e *EnvPlugin) Authenticate(ctx context.Context, req *proto.AuthenticateRequest) (*proto.AuthenticateResponse, error)
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
func (p *GrafanaPlugin) Authenticate(ctx context.Context, req *proto.AuthenticateRequest) (*proto.AuthenticateResponse, error)
Authenticate returns a no-op success response. This plugin is primarily for resource opening, not auth.
func (*GrafanaPlugin) GetSupportedOpenTypes ¶ added in v0.6.0
func (p *GrafanaPlugin) GetSupportedOpenTypes(ctx context.Context, req *plugin.SupportedOpenTypesRequest) (*plugin.SupportedOpenTypesResponse, error)
GetSupportedOpenTypes returns regex patterns for Grafana resource types.
func (*GrafanaPlugin) OpenResource ¶ added in v0.6.0
func (p *GrafanaPlugin) OpenResource(ctx context.Context, req *plugin.OpenResourceRequest) (*plugin.OpenResourceResponse, error)
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
func (p *K9sPlugin) Authenticate(ctx context.Context, req *proto.AuthenticateRequest) (*proto.AuthenticateResponse, error)
Authenticate returns a no-op success response. This plugin is primarily for resource opening, not auth.
func (*K9sPlugin) GetSupportedOpenTypes ¶ added in v0.3.0
func (p *K9sPlugin) GetSupportedOpenTypes(ctx context.Context, req *plugin.SupportedOpenTypesRequest) (*plugin.SupportedOpenTypesResponse, error)
GetSupportedOpenTypes returns regex patterns for Kubernetes resource types.
func (*K9sPlugin) OpenResource ¶ added in v0.3.0
func (p *K9sPlugin) OpenResource(ctx context.Context, req *plugin.OpenResourceRequest) (*plugin.OpenResourceResponse, error)
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 ¶
func (p *KubernetesPlugin) Authenticate(ctx context.Context, req *proto.AuthenticateRequest) (*proto.AuthenticateResponse, error)
Authenticate returns a no-op success response. This plugin is primarily for import help, not auth.
func (*KubernetesPlugin) GetImportSuggestions ¶
func (p *KubernetesPlugin) GetImportSuggestions(ctx context.Context, req *plugin.ImportSuggestionsRequest) (*plugin.ImportSuggestionsResponse, error)
GetImportSuggestions returns import ID suggestions for Kubernetes resources