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 ¶ added in v0.7.0
func DownloadBinaryForCLI(version, binaryName, destPath string, opts *UpdateOptions) error
DownloadBinaryForCLI is an exported wrapper for CLI tools
func ExtractBinaryForCLI ¶ added in v0.7.0
ExtractBinaryForCLI is an exported wrapper for CLI tools
func SelfUpdate ¶
SelfUpdate performs an atomic update of the nextdeploy binary
func SelfUpdateDaemon ¶ added in v0.0.9
SelfUpdateDaemon performs an atomic update of the nextdeployd daemon
func SelfUpdateWithOptions ¶ added in v0.2.5
func SelfUpdateWithOptions(current string, opts *UpdateOptions) error
SelfUpdateWithOptions performs an update with custom options
Types ¶
type Release ¶
func LatestRelease ¶
type UpdateError ¶ added in v0.2.5
func (*UpdateError) Error ¶ added in v0.2.5
func (e *UpdateError) Error() string
func (*UpdateError) Unwrap ¶ added in v0.2.5
func (e *UpdateError) Unwrap() error
type UpdateOptions ¶ added in v0.2.5
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 ¶ added in v0.2.5
func DefaultUpdateOptions() *UpdateOptions
DefaultUpdateOptions returns sensible defaults
Click to show internal directories.
Click to hide internal directories.