generic

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Name             string `yaml:"name"`
	Version          string `yaml:"version"`
	Hub              string `yaml:"hub"`
	ReleaseURLPrefix string `yaml:"releaseURLPrefix"`
}

type Options

type Options struct {
	DryRun bool // TODO: support dry run

	// HomeDir is an absolute path which most importantly contains "versions" installed from binary. Defaults to DefaultHomeDir
	HomeDir string

	// The interval and timeout used to check installation status.
	WaitInterval time.Duration
	WaitTimeout  time.Duration

	KubeConfig  string
	KubeContext string

	Components map[string]Component
	// contains filtered or unexported fields
}

func New

func New() *Options

func (*Options) AddFlags

func (g *Options) AddFlags(fs *pflag.FlagSet)

AddFlags binds flags to the given flagset.

func (*Options) FlagSet

func (g *Options) FlagSet(n string) *flag.FlagSet

func (*Options) RESTClientGetter

func (g *Options) RESTClientGetter() genericclioptions.RESTClientGetter

RESTClientGetter gets the kubeconfig from EnvSettings

func (*Options) ReloadComponents

func (g *Options) ReloadComponents()

Jump to

Keyboard shortcuts

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