downloader

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const KubectlStableURL = "https://storage.googleapis.com/kubernetes-release/release/stable.txt"

KubectlStableURL URL of the text file used by kubernetes community to hold the latest stable version of kubernetes released

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloder added in v0.1.0

type Downloder struct {
}

Downloder is a helper class that is used to interact with the kubernetes infrastructure holding released binaries and release information

func (*Downloder) GetKubectlBinary added in v0.1.0

func (d *Downloder) GetKubectlBinary(version semver.Version, destination string) error

GetKubectlBinary downloads the kubectl binary identified by the given version to the specified destination

func (*Downloder) UpstreamStableVersion added in v0.1.0

func (d *Downloder) UpstreamStableVersion() (semver.Version, error)

UpstreamStableVersion returns the latest version of kubernetes that upstream considers stable

Jump to

Keyboard shortcuts

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