Documentation
¶
Overview ¶
Package upgrade implements `ytrack upgrade`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
HTTP *http.Client
APIURL string
// TrustedRoot returns the Sigstore trusted material signatures must
// chain to; NoSCT is for test Sigstores only.
TrustedRoot func() (root.TrustedMaterial, error)
NoSCT bool
// Executable returns the path of the running binary.
Executable func() (string, error)
GOOS string
GOARCH string
// Sleep waits between download retries; nil waits for real.
Sleep func(ctx context.Context, d time.Duration) error
// Run runs a ytrack binary: the new one's `version` before it is swapped
// in, and its `skill sync` after.
Run upgrade.Runner
}
Options are the command's dependencies; tests replace them.
Click to show internal directories.
Click to hide internal directories.