Documentation
¶
Index ¶
- func CheckAndPrint(current string)
- func DownloadBinaryForCLI(version, binaryName, destPath string, opts *UpdateOptions) error
- func ExtractBinaryForCLI(archivePath, binaryName, destPath string) error
- func SelfUpdate(current string) error
- func SelfUpdateDaemon(current string) error
- func SelfUpdateWithOptions(current string, opts *UpdateOptions) error
- type Release
- type UpdateError
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndPrint ¶
func CheckAndPrint(current string)
CheckAndPrint checks for updates and prints a message if available
func DownloadBinaryForCLI ¶
func DownloadBinaryForCLI(version, binaryName, destPath string, opts *UpdateOptions) error
DownloadBinaryForCLI is an exported wrapper for CLI tools
func ExtractBinaryForCLI ¶
ExtractBinaryForCLI is an exported wrapper for CLI tools
func SelfUpdate ¶
SelfUpdate performs an atomic update of the nextdeploy binary
func SelfUpdateDaemon ¶
SelfUpdateDaemon performs an atomic update of the nextdeployd daemon
func SelfUpdateWithOptions ¶
func SelfUpdateWithOptions(current string, opts *UpdateOptions) error
SelfUpdateWithOptions performs an update with custom options
Types ¶
type Release ¶
func LatestRelease ¶
type UpdateError ¶
func (*UpdateError) Error ¶
func (e *UpdateError) Error() string
func (*UpdateError) Unwrap ¶
func (e *UpdateError) Unwrap() error
type UpdateOptions ¶
type UpdateOptions struct {
Force bool // Force downgrade if current is newer
Timeout time.Duration // Overall update timeout
VerifySSL bool // Verify SSL certificates
SkipBackup bool // Skip backup creation
SkipService bool // Skip service restart
}
UpdateOptions configures the update process
func DefaultUpdateOptions ¶
func DefaultUpdateOptions() *UpdateOptions
DefaultUpdateOptions returns sensible defaults
Click to show internal directories.
Click to hide internal directories.