downloader

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

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.

type Hashing added in v0.5.0

type Hashing struct {
	// Suffix of the file containing the hash
	Suffix string

	// Hasher is the hash calculator to use
	Hasher hash.Hash
}

Hashing contains the hashing details for the downloader.

func NewHashing added in v0.5.0

func NewHashing(version semver.Version) (*Hashing, error)

NewHashing returns the hashing details for the downloader.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳