Documentation
¶
Index ¶
- func AcquireUpdateLifecycleLock() (*os.File, error)
- func FetchReleaseChecksum(ctx context.Context, manifestURL, binaryName string) (string, error)
- func ReleaseAssetName() string
- func ReleaseHTTPClient(timeout time.Duration) *http.Client
- func ReleaseMetadataURL() string
- func UpdatePreviewFile(ctx context.Context, source, manifest string) (runErr error)
- func ValidateReleaseAssetURL(raw string) error
- func ValidateReleaseBinary(ctx context.Context, path string) error
- func ValidateUpdateTarget() error
- type DaemonUpdateState
- type GhAsset
- type GhRelease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchReleaseChecksum ¶
func ReleaseAssetName ¶
func ReleaseAssetName() string
func ReleaseMetadataURL ¶
func ReleaseMetadataURL() string
Stable's latest feed deliberately excludes GitHub prereleases. Preview has a separate prerelease selection and asset namespace; publication is a later act.
func UpdatePreviewFile ¶
func ValidateReleaseAssetURL ¶
func ValidateUpdateTarget ¶
func ValidateUpdateTarget() error
Types ¶
type DaemonUpdateState ¶
type DaemonUpdateState struct {
Pid int
Kind daemonctl.DaemonKind
StartArgs []string
}
func DaemonStateForUpdate ¶
func DaemonStateForUpdate() (*DaemonUpdateState, error)
daemonStateForUpdate snapshots and validates the restart command while the lifecycle lock is held. In particular, an update must not stop a live daemon and only then discover that its saved restart metadata is missing or corrupt.
Click to show internal directories.
Click to hide internal directories.