cli

package
v0.0.0-...-1d727dd Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) error

Run is the top-level entry point.

Types

type Config

type Config struct {
	AgentAllow     string            `json:"agent_allow"`
	AgentImages    map[string]string `json:"agent_images"`
	AgentPolicy    string            `json:"agent_policy"`
	AllowHooks     bool              `json:"allow_hooks"`
	CPUs           string            `json:"cpus"`
	EnableTripwire bool              `json:"tripwire"`
	GH             bool              `json:"gh"`
	GitConfig      bool              `json:"gitconfig"`
	Memory         string            `json:"memory"`
	PodPolicy      string            `json:"pod_policy"`
	MaskPaths      []string          `json:"mask_paths"`
	ProtectPaths   []string          `json:"protect_paths"`
	ProxyImage     string            `json:"proxy_image"`
	RegistryAuth   bool              `json:"registry_auth"`
	RequireDigest  string            `json:"require_digest"`
	Runtime        string            `json:"runtime"`
	SidecarImage   string            `json:"sidecar_image"`
	SSH            bool              `json:"ssh"`
	UnmaskPaths    []string          `json:"unmask_paths"`
}

Config holds user preferences loaded from config.json.

func LoadConfig

func LoadConfig() Config

LoadConfig reads $XDG_CONFIG_HOME/clampdown/config.json. Missing file returns zero-value Config (all defaults).

Jump to

Keyboard shortcuts

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