Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + const DefaultFile + const DefaultVaultKeyFile + const EnvPrefix + const RuleBucket + const RuleFile + const RuleParse + const RuleReference + const RuleSetting + const RuleValue + const RuleVault + const SigningKeyFile + const SigningKeyID + const SourceDefault + const SourceEnv + const SourceFile + const SourceUnset + var Checks = guide.Checks + var SelfSignedHostname = os.Hostname + var SelfSignedWrite = os.WriteFile + func AddFlag(fs *pflag.FlagSet, v *viper.Viper, k Key, name string) + func BindFlagAs(fs *pflag.FlagSet, key string, name string) + func BindFlags(fs *pflag.FlagSet, keys ...string) + func CertSources(c Config) []pki.CertSource + func CertSourcesOf(c Config, component ...string) []pki.CertSource + func DefaultYAML() string + func DocTable(prefixes []string) string + func DocTables(page string) string + func EnsureSigningKey(c *Config) error + func EnvName(key string) string + func FlagName(key string) string + func Load(v *viper.Viper, path string, c *Config) error + func MakeSelfSigned(certFile string, keyFile string) error + func NATSAuthDir(keyDir string) string + func Read(v *viper.Viper, path string, c *Config) (found bool, err error) + func References(c *Config, prefix string) []string + func ResolveReferences(ctx context.Context, c *Config, prefix string, resolve Resolver) error + func RuleOf(err error) string + func SelfClient(server *tls.Config) *tls.Config + func SelfSignedFiles(dir string, name string) (string, string) + func Source(v *viper.Viper, key string) string + func Spec() guide.Spec + func SpecOf(keys []Key) guide.Spec + func Value(v *viper.Viper, k Key) any type APIServer + Host string + TLS ServerTLS + URL string + type AgentCommand struct + Enabled bool type AgentConfig + Command AgentCommand + Join string type AgentConsumer + InactiveThreshold string type Client + TLS ClientTLS + type ClientTLS struct + CAFile string + CertFile string + Enabled bool + InsecureSkipVerify bool + KeyFile string + ServerName string + func (c ClientTLS) Config() (*tls.Config, error) + func (c ClientTLS) Dial(host string) (*tls.Config, error) + func (c ClientTLS) Warn(log *slog.Logger, key string) type Config + func TrustLocal(c Config) Config + func (c Config) JoinURL() string + func (c Config) JoinUsers() (NATSUser, NATSUser) type Controller + Join ControllerJoin + Secrets ControllerSecrets + type ControllerJoin struct + Account string + Agent NATSUser + AgentTTL string + Callout JoinCallout + JoinSigningKeyFile string + Scoped bool + SigningKeyFile string + URL string + User NATSUser type ControllerPKI + AutoAdmit bool + DeleteAfter string + type ControllerSecrets struct + Vaults []vault.Spec + type Error struct + Err error + Rule string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type JoinCallout struct + Account string + Auth NATSAuth + IssuerKeyFile string type KVBucketInfo + Key string + type Key struct + Behavior string + Choice string + Default any + Doc string + Env string + Flag string + Group string + Name string + Secret bool + Type string + Validate string + func Keys() []Key + func VaultKeys() []Key type MetricsServer + TLS ServerTLS + URL string + func (m MetricsServer) Address() string type NATS + Secrets NATSSecrets type NATSAuth + CredsFile string type NATSConnection + TLS ClientTLS + type NATSSecrets struct + Bucket string + History int + Replicas int + Storage string type NATSServer + JetStream NATSServerJetStream + KeyDir string + TLS ServerTLS + URL string type NATSServerAuth + CredsFile string + NKeyFile string + NKeyRoles map[string]string + ResolverFile string + type NATSServerJetStream struct + KeyFile string type NATSServerUser + Role string + type NATSUser struct + Password string + Username string type ObjectStoreBucketInfo + Key string + type Problem struct + Fix string + Key string + Message string + Rule string + func Check(v *viper.Viper, path string, c *Config) []Problem + func Problems(c *Config) []Problem + func (p Problem) String() string + type Resolver func(ctx context.Context, ref vault.Reference) ([]byte, error) type ServerSecurity + SigningKeys []SigningKey + func (s ServerSecurity) Keys() authtoken.Keys + type ServerTLS struct + CertFile string + Enabled bool + KeyFile string + func (s ServerTLS) Config() (*tls.Config, error) + func (s ServerTLS) WithCurrentSelfSigned(dir string, name string) (ServerTLS, error) + func (s ServerTLS) WithSelfSigned(dir string, name string, urls ...string) (ServerTLS, error) + type SigningKey struct + ID string + Key string type TracingConfig + TLS ClientTLS + URL string type UIConfig + URL string v0.2.0 Oct 3, 2026 v0.1.0 Oct 1, 2026 Changes in this version + func Validate(c *Config) error + type APIServer struct + JobTimeout string + Port int + Security ServerSecurity + type AgentConditions struct + DiskPressureThreshold int + HighLoadMultiplier float64 + MemoryPressureThreshold int + type AgentConfig struct + Conditions AgentConditions + Consumer AgentConsumer + Facts AgentFacts + Hostname string + Labels map[string]string + MaxJobs int + Metrics MetricsServer + NATS NATSConnection + PKI AgentPKI + PrivilegeEscalation PrivilegeEscalation + ProcessConditions ProcessConditions + QueueGroup string + type AgentConsumer struct + AckWait string + BackOff []string + MaxAckPending int + MaxDeliver int + Name string + ReplayPolicy string + type AgentFacts struct + Interval string + type AgentPKI struct + Enabled bool + KeyDir string + type CORS struct + AllowOrigins []string + type Client struct + Security ClientSecurity + URL string + type ClientSecurity struct + BearerToken string + type Config struct + Agent AgentConfig + Controller Controller + Debug bool + NATS NATS + Telemetry Telemetry + type Controller struct + API APIServer + Client Client + Metrics MetricsServer + NATS NATSConnection + Notifications NotificationsConfig + PKI ControllerPKI + UI UIConfig + type ControllerPKI struct + AutoAccept bool + Enabled bool + KeyDir string + RotationGracePeriod string + type CustomRole struct + Permissions []string + type KVBucketInfo struct + Bucket string + Name string + type MetricsServer struct + Enabled bool + Host string + Port int + type NATS struct + Audit NATSAudit + DLQ NATSDLQ + Enrollment NATSEnrollment + Facts NATSFacts + FileState NATSFileState + KV NATSKV + Objects NATSObjects + Registry NATSRegistry + Server NATSServer + State NATSState + Stream NATSStream + func (n NATS) AllKVBuckets() []KVBucketInfo + func (n NATS) AllObjectStoreBuckets() []ObjectStoreBucketInfo + type NATSAudit struct + MaxAge string + MaxBytes int64 + Replicas int + Storage string + Stream string + Subject string + type NATSAuth struct + NKeyFile string + Password string + Type string + Username string + type NATSConnection struct + Auth NATSAuth + ClientName string + Host string + Namespace string + Port int + type NATSDLQ struct + MaxAge string + MaxMsgs int64 + Replicas int + Storage string + type NATSEnrollment struct + Bucket string + Replicas int + Storage string + type NATSFacts struct + Bucket string + Replicas int + Storage string + TTL string + type NATSFileState struct + Bucket string + Replicas int + Storage string + type NATSKV struct + Bucket string + MaxBytes int64 + Replicas int + ResponseBucket string + Storage string + TTL string + type NATSObjects struct + Bucket string + MaxBytes int64 + Replicas int + Storage string + type NATSRegistry struct + Bucket string + Replicas int + Storage string + TTL string + type NATSServer struct + Auth NATSServerAuth + Host string + Metrics MetricsServer + Namespace string + Port int + StoreDir string + type NATSServerAuth struct + NKeys []string + Type string + Users []NATSServerUser + type NATSServerUser struct + Password string + Username string + type NATSState struct + Bucket string + Replicas int + Storage string + type NATSStream struct + Discard string + MaxAge string + MaxMsgs int64 + Name string + Replicas int + Storage string + Subjects string + type NotificationsConfig struct + Enabled bool + Notifier string + RenotifyInterval string + type ObjectStoreBucketInfo struct + Bucket string + Name string + type PrivilegeEscalation struct + Enabled bool + type ProcessConditions struct + HighCPUPercent float64 + MemoryPressureBytes int64 + type ServerSecurity struct + CORS CORS + Roles map[string]CustomRole + SigningKey string + type Telemetry struct + Tracing TracingConfig + type TracingConfig struct + Enabled bool + Exporter string + OTLPEndpoint string + type UIConfig struct + Enabled *bool + func (c UIConfig) UIEnabled() bool