cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChartSource

func GetChartSource(path string) (string, error)

GetChartSource is a helper to convert a filepath to a chart to a base64-encoded, gzipped tarball.

func LoadChart

func LoadChart(source string) (*chart.Chart, error)

LoadChart is a helper to turn a base64-encoded, gzipped tarball into a chart.

Types

type EnvSettings

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

EnvSettings describes all of the cli environment settings

func New

func New() *EnvSettings

New relevant environment variables set and returns EnvSettings

func (*EnvSettings) AddFlags

func (s *EnvSettings) AddFlags(fs *pflag.FlagSet)

AddFlags binds flags to the given flagset.

func (*EnvSettings) EnvVars

func (s *EnvSettings) EnvVars() map[string]string

EnvVars returns a map of all OSM related environment variables

func (*EnvSettings) Namespace

func (s *EnvSettings) Namespace() string

Namespace gets the namespace from the configuration

func (*EnvSettings) RESTClientGetter

func (s *EnvSettings) RESTClientGetter() genericclioptions.RESTClientGetter

RESTClientGetter gets the kubeconfig from EnvSettings

Jump to

Keyboard shortcuts

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