Documentation ¶
Index ¶
- Constants
- func Confirm(prompt string) bool
- func ExecutorSimple(ea ExecutorArgs) (err error)
- func ExecutorSupervised(ea ExecutorArgs) (err error)
- type Config
- func (u *Config) BinaryURL(ver semver.Version) string
- func (u *Config) ChangelogURL(ver semver.Version) string
- func (u *Config) Cleanup()
- func (u *Config) Download(out, url, distuser, distpass string) error
- func (u *Config) GetBinary(ver semver.Version, binpath string, s512 []byte) (err error)
- func (u *Config) GetChangelog(ver semver.Version) (_ string, err error)
- func (u *Config) GetHash(ver semver.Version) (sha512 []byte, err error)
- func (u *Config) HashURL(ver semver.Version) string
- func (u *Config) SkipVersion(v semver.Version) error
- func (u *Config) SkippedVersion() (v *semver.Version)
- func (u *Config) Upgrade(ex Executor, v0, v1 semver.Version) (err error)
- type Executor
- type ExecutorArgs
- type Migration
- type WriteCounter
Constants ¶
View Source
const BuildKey = `` /* 3172-byte string literal not displayed */
WL build key: 693C86E9DECA9D07D79FF9D22ECD72AD056012E1
View Source
const SKIP_FILENAME = ".skip-upgrade-version"
View Source
const Supported = false
Variables ¶
This section is empty.
Functions ¶
func ExecutorSimple ¶
func ExecutorSimple(ea ExecutorArgs) (err error)
func ExecutorSupervised ¶
func ExecutorSupervised(ea ExecutorArgs) (err error)
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetChangelog ¶
func (*Config) SkippedVersion ¶
type Executor ¶
type Executor func(ExecutorArgs) error
type ExecutorArgs ¶
type ExecutorArgs struct { // Root directory of upgrade executor. Root fsdir.T // Source and destination binary paths relative to Root. SrcBin, DstBin string // Source and destination versions. SrcVer, DstVer semver.Version }
ExecutorArgs are the working parameters of the upgrade executor.
type Migration ¶
type WriteCounter ¶
type WriteCounter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.