cmd

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 63 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time via ldflags

Functions

func AddCfAskCommand added in v0.0.3

func AddCfAskCommand(cfCmd *cobra.Command)

AddCfAskCommand adds the ask subcommand to the cf command

func AddCfDeployCommands added in v0.0.3

func AddCfDeployCommands(cfCmd *cobra.Command)

AddCfDeployCommands adds all deploy-related commands to the cf command

func AddCfListCommands added in v0.0.3

func AddCfListCommands(cfCmd *cobra.Command)

AddCfListCommands adds list commands to the cf command

func AddVerdaAskCommand added in v0.0.6

func AddVerdaAskCommand(verdaCmd *cobra.Command)

AddVerdaAskCommand attaches the ask subcommand to the `verda` tree. Called from root.go after `verda.CreateVerdaCommands()` returns.

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately.

Types

type AWSCredentialsScan added in v0.0.3

type AWSCredentialsScan struct {
	Profiles []AWSProfileInfo `json:"profiles"`
	Error    string           `json:"error,omitempty"`
}

AWSCredentialsScan holds detected AWS profiles

type AWSProfileInfo added in v0.0.3

type AWSProfileInfo struct {
	Name   string `json:"name"`
	Region string `json:"region,omitempty"`
	Source string `json:"source"`
}

AWSProfileInfo holds info about a single AWS profile

type AzureCredentialsScan added in v0.0.3

type AzureCredentialsScan struct {
	CLIAvailable  bool                    `json:"cliAvailable"`
	Subscriptions []AzureSubscriptionInfo `json:"subscriptions,omitempty"`
	Error         string                  `json:"error,omitempty"`
}

AzureCredentialsScan holds detected Azure subscriptions

type AzureSubscriptionInfo added in v0.0.3

type AzureSubscriptionInfo struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	State     string `json:"state,omitempty"`
	IsDefault bool   `json:"isDefault,omitempty"`
}

AzureSubscriptionInfo holds info about an Azure subscription

type CloudflareCredentialsScan added in v0.0.3

type CloudflareCredentialsScan struct {
	HasToken      bool     `json:"hasToken"`
	HasAccountID  bool     `json:"hasAccountId"`
	CustomEnvKeys []string `json:"customEnvKeys,omitempty"`
	Error         string   `json:"error,omitempty"`
}

CloudflareCredentialsScan holds detected Cloudflare credentials

type CustomScanConfig added in v0.0.3

type CustomScanConfig struct {
	AWSPaths      []string
	GCPPaths      []string
	CloudflareEnv []string
	LLMEnv        []string
}

CustomScanConfig holds custom paths and env keys for scanning

type DigitalOceanCredentialsScan added in v0.0.6

type DigitalOceanCredentialsScan struct {
	HasToken     bool   `json:"hasToken"`
	CLIAvailable bool   `json:"cliAvailable"`
	Error        string `json:"error,omitempty"`
}

DigitalOceanCredentialsScan holds detected Digital Ocean credentials

type GCPCredentialsScan added in v0.0.3

type GCPCredentialsScan struct {
	HasADC       bool     `json:"hasADC"`
	ADCPath      string   `json:"adcPath,omitempty"`
	Projects     []string `json:"projects,omitempty"`
	CustomPaths  []string `json:"customPaths,omitempty"`
	CLIAvailable bool     `json:"cliAvailable"`
	Error        string   `json:"error,omitempty"`
}

GCPCredentialsScan holds detected GCP credentials

type HetznerCredentialsScan added in v0.0.6

type HetznerCredentialsScan struct {
	HasToken     bool   `json:"hasToken"`
	CLIAvailable bool   `json:"cliAvailable"`
	Error        string `json:"error,omitempty"`
}

HetznerCredentialsScan holds detected Hetzner Cloud credentials

type LLMCredentialsScan added in v0.0.3

type LLMCredentialsScan struct {
	OpenAI        LLMKeyStatus `json:"openai"`
	Anthropic     LLMKeyStatus `json:"anthropic"`
	Gemini        LLMKeyStatus `json:"gemini"`
	DeepSeek      LLMKeyStatus `json:"deepseek"`
	Cohere        LLMKeyStatus `json:"cohere"`
	MiniMax       LLMKeyStatus `json:"minimax"`
	CustomEnvKeys []string     `json:"customEnvKeys,omitempty"`
}

LLMCredentialsScan holds detected LLM API keys

type LLMKeyStatus added in v0.0.3

type LLMKeyStatus struct {
	HasKey bool   `json:"hasKey"`
	Error  string `json:"error,omitempty"`
}

LLMKeyStatus indicates whether an LLM key was detected

type ScanResult added in v0.0.3

type ScanResult struct {
	AWS          AWSCredentialsScan          `json:"aws"`
	GCP          GCPCredentialsScan          `json:"gcp"`
	Azure        AzureCredentialsScan        `json:"azure"`
	Cloudflare   CloudflareCredentialsScan   `json:"cloudflare"`
	DigitalOcean DigitalOceanCredentialsScan `json:"digitalocean"`
	Hetzner      HetznerCredentialsScan      `json:"hetzner"`
	LLM          LLMCredentialsScan          `json:"llm"`
}

ScanResult holds all detected credentials

Jump to

Keyboard shortcuts

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