notify

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 38

Documentation

Index

Constants

View Source
const (
	// GithubMinikubeReleasesURL is the URL of the minikube github releases JSON file
	GithubMinikubeReleasesURL = "https://storage.googleapis.com/minikube/releases-v2.json"
	// GithubMinikubeBetaReleasesURL is the URL of the minikube GitHub beta releases JSON file
	GithubMinikubeBetaReleasesURL = "https://storage.googleapis.com/minikube/releases-beta-v2.json"

	// GithubMinikubeReleasesAliyunURL is the URL of the minikube github releases JSON file from Aliyun Mirror
	GithubMinikubeReleasesAliyunURL = "https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases.json"
	// GithubMinikubeBetaReleasesAliyunURL is the URL of the minikube GitHub beta releases JSON file
	GithubMinikubeBetaReleasesAliyunURL = "https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases-beta.json"
)

Variables

This section is empty.

Functions

func DownloadURL added in v1.19.0

func DownloadURL(ver, os, arch string) string

DownloadURL returns a URL to get minikube binary version ver for platform os/arch

func MaybePrintUpdateTextFromAliyunMirror added in v1.24.0

func MaybePrintUpdateTextFromAliyunMirror()

MaybePrintUpdateTextFromAliyunMirror prints update text if needed, from Aliyun mirror

func MaybePrintUpdateTextFromGithub

func MaybePrintUpdateTextFromGithub()

MaybePrintUpdateTextFromGithub prints update text if needed, from github

Types

type Release added in v0.11.0

type Release struct {
	Checksums checksums `json:"checksums"`
	Name      string    `json:"name"`
}

type Releases added in v0.11.0

type Releases struct {
	Releases []Release
}

func AllVersionsFromURL added in v1.20.0

func AllVersionsFromURL(url string) (Releases, error)

AllVersionsFromURL get all versions from a JSON URL

func (*Releases) UnmarshalJSON added in v1.25.2

func (r *Releases) UnmarshalJSON(p []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL