options

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildType

type BuildType string
const (
	BuildDeb BuildType = "deb"
	BuildRpm BuildType = "rpm"
	BuildAll BuildType = "all"

	DefaultReleaseDownloadLinkBase = "https://dl.k8s.io"
)

type Options

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

func New

func New() *Options

func (*Options) Architectures

func (o *Options) Architectures() []string

func (*Options) BuildType

func (o *Options) BuildType() BuildType

func (*Options) CNIVersion

func (o *Options) CNIVersion() string

func (*Options) CRIToolsVersion

func (o *Options) CRIToolsVersion() string

func (*Options) Channels

func (o *Options) Channels() []string

func (*Options) KubeVersion

func (o *Options) KubeVersion() string

func (*Options) Packages

func (o *Options) Packages() []string

func (*Options) ReleaseDownloadLinkBase

func (o *Options) ReleaseDownloadLinkBase() string

func (*Options) Revision

func (o *Options) Revision() string

func (*Options) SpecOnly

func (o *Options) SpecOnly() bool

func (*Options) TemplateDir

func (o *Options) TemplateDir() string

func (*Options) Validate

func (o *Options) Validate() error

Validate verifies if all set options are valid

func (*Options) WithArchitectures

func (o *Options) WithArchitectures(architectures ...string) *Options

func (*Options) WithBuildType

func (o *Options) WithBuildType(buildType BuildType) *Options

func (*Options) WithCNIVersion

func (o *Options) WithCNIVersion(cniVersion string) *Options

func (*Options) WithCRIToolsVersion

func (o *Options) WithCRIToolsVersion(criToolsVersion string) *Options

func (*Options) WithChannels

func (o *Options) WithChannels(channels ...string) *Options

func (*Options) WithKubeVersion

func (o *Options) WithKubeVersion(kubeVersion string) *Options

func (*Options) WithPackages

func (o *Options) WithPackages(packages ...string) *Options

func (*Options) WithReleaseDownloadLinkBase

func (o *Options) WithReleaseDownloadLinkBase(releaseDownloadLinkBase string) *Options

func (*Options) WithRevision

func (o *Options) WithRevision(revision string) *Options

func (*Options) WithSpecOnly

func (o *Options) WithSpecOnly(specOnly bool) *Options

func (*Options) WithTemplateDir

func (o *Options) WithTemplateDir(templateDir string) *Options

Jump to

Keyboard shortcuts

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