Documentation
¶
Overview ¶
Package cliconfig manages the CLI-side configuration (~/.config/zattera/config.toml): named contexts pointing at clusters, with tokens. File mode 0600 — it contains credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// Server is the API endpoint, e.g. "https://paas.example.com:8443".
Server string `toml:"server"`
Token string `toml:"token"`
// CACertPEM pins the cluster CA (dev mode / self-signed).
CACertPEM string `toml:"ca_cert_pem,omitempty"`
// Insecure skips TLS verification (dev clusters without a pinned CA).
Insecure bool `toml:"insecure,omitempty"`
// DefaultProject for commands that take --project.
DefaultProject string `toml:"default_project,omitempty"`
}
Context is one cluster the CLI can talk to.
Click to show internal directories.
Click to hide internal directories.