config

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureSecuritySecret added in v0.8.2

func EnsureSecuritySecret(configPath string, cfg *types.DaemonConfig) (bool, error)

EnsureSecuritySecret guarantees the daemon has a non-empty HMAC secret. If cfg.SecuritySecret is empty it generates a cryptographically random 32-byte secret, sets it on cfg, and persists the full config to configPath (mode 0600) so the local CLI client — which reads the same file — signs with a matching secret. This MUST only be called from the daemon startup path, never from the client, so the client never invents its own secret.

Returns true when a new secret was generated.

func GetGitCommit

func GetGitCommit(filePath string) (string, error)

func LoadConfig

func LoadConfig(filePath string) (*types.DaemonConfig, error)

func ReadConfigInServer

func ReadConfigInServer(path string) (*config.NextDeployConfig, error)

Types

type BuildLock

type BuildLock struct {
	GitCommit    string `json:"git_commit"`
	GitDirty     bool   `json:"git_dirty"`
	GeneratedAt  string `json:"generated_at"`
	MetadataFile string `json:"metadata_file"`
}

func ReadBuildLock

func ReadBuildLock(filePath string) (*BuildLock, error)

Jump to

Keyboard shortcuts

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