config

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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