Documentation
¶
Index ¶
- Constants
- func Check(ctx context.Context, currentVersion string, opts CheckOptions) (string, error)
- func CompareReleaseVersions(currentVersion, latestVersion string) (int, bool)
- func DownloadURL(ctx context.Context, url string, w io.Writer) error
- func FetchLatestVersion(ctx context.Context) (string, error)
- func FormatInfo(info BuildInfo) string
- func FormatNewVersionMessage(latestVersion string) string
- func ParseLatestReleaseLocation(location string) (string, error)
- func RunCommand(ctx context.Context, name string, args []string, env []string, ...) error
- func Upgrade(ctx context.Context, opts UpgradeOptions) error
- func VersionCheckDisabled() bool
- type BuildInfo
- type CheckOptions
- type UpgradeOptions
Constants ¶
View Source
const ( RepoURL = "https://github.com/srl-labs/clab-api-server" LatestReleaseURL = RepoURL + "/releases/latest" DefaultInstallScript = "https://raw.githubusercontent.com/srl-labs/clab-api-server/main/install.sh" )
Variables ¶
This section is empty.
Functions ¶
func CompareReleaseVersions ¶
func FormatInfo ¶
func FormatNewVersionMessage ¶
func RunCommand ¶
func VersionCheckDisabled ¶
func VersionCheckDisabled() bool
Types ¶
type CheckOptions ¶
Click to show internal directories.
Click to hide internal directories.