Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoSelfUpdate = "false"
NoSelfUpdate is set to "true" for builds distributed to package managers to prevent auto-updating. It is typed as a string because the linker allows only setting string variables at compile time (see https://pkg.go.dev/cmd/link). Set at compile time using ldflags (see the prod-noupdate task in the /tasks/build directory).
Functions ¶
This section is empty.
Types ¶
type SelfUpdater ¶
type SelfUpdater struct {
// contains filtered or unexported fields
}
func NewSelfUpdater ¶
func NewSelfUpdater(httpClient httpClient, policy cfg.UpdatePolicyType) (*SelfUpdater, error)
func (*SelfUpdater) ApplyUpdate ¶
func (su *SelfUpdater) ApplyUpdate(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.