kubepkg

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCNIDownloadLink(version, arch string) (string, error)

func GetCNIVersion added in v0.3.2

func GetCNIVersion(packageDef *PackageDefinition) (string, error)

func GetDefaultReleaseDownloadLinkBase added in v0.3.2

func GetDefaultReleaseDownloadLinkBase(packageDef *PackageDefinition) (string, error)

func GetDependencies added in v0.3.2

func GetDependencies(packageDef *PackageDefinition) (map[string]string, error)

Types

type Build

type Build struct {
	Type        options.BuildType
	Package     string
	Definitions []*PackageDefinition
	TemplateDir string
}

type ChannelType

type ChannelType string
const (
	ChannelRelease ChannelType = "release"
	ChannelTesting ChannelType = "testing"
	ChannelNightly ChannelType = "nightly"

	CurrentCNIVersion = "0.8.7"
	MinimumCNIVersion = "0.8.6"
)

type Client added in v0.3.2

type Client struct {
	// contains filtered or unexported fields
}

func New added in v0.3.2

func New(o *options.Options) *Client

func (*Client) ConstructBuilds added in v0.3.2

func (c *Client) ConstructBuilds() ([]Build, error)

func (*Client) GetCIBuildsDownloadLinkBase added in v0.3.2

func (c *Client) GetCIBuildsDownloadLinkBase(packageDef *PackageDefinition) (string, error)

func (*Client) GetCRIToolsVersion added in v0.3.2

func (c *Client) GetCRIToolsVersion(packageDef *PackageDefinition) (string, error)

func (*Client) GetDownloadLinkBase added in v0.3.2

func (c *Client) GetDownloadLinkBase(packageDef *PackageDefinition) (string, error)

func (*Client) GetKubernetesVersion added in v0.3.2

func (c *Client) GetKubernetesVersion(packageDef *PackageDefinition) (string, error)

func (*Client) GetPackageVersion added in v0.3.2

func (c *Client) GetPackageVersion(packageDef *PackageDefinition) (string, error)

func (*Client) SetImpl added in v0.3.2

func (c *Client) SetImpl(impl Impl)

func (*Client) WalkBuilds added in v0.3.2

func (c *Client) WalkBuilds(builds []Build) (err error)

type Impl added in v0.3.2

type Impl interface {
	RunSuccessWithWorkDir(workDir, cmd string, args ...string) error
	Releases(owner, repo string, includePrereleases bool) ([]*gogithub.RepositoryRelease, error)
	GetKubeVersion(versionType release.VersionType) (string, error)
	ReadFile(string) ([]byte, error)
	WriteFile(string, []byte, os.FileMode) error
}

type PackageDefinition

type PackageDefinition struct {
	Name     string
	Version  string
	Revision string

	Channel ChannelType

	KubernetesVersion string
	Dependencies      map[string]string

	DownloadLinkBase         string
	KubeadmKubeletConfigFile string

	CNIVersion      string
	CNIDownloadLink string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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