install

package
v0.0.0-...-e093d7f Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlagSet *pflag.FlagSet = nil

Functions

func ConfigFiles

func ConfigFiles(o Options) (err error)

func GetClientNamespace

func GetClientNamespace(configPath string) (string, error)

func InstallImporterIntoOpenshift

func InstallImporterIntoOpenshift(o Options, scope RenderScope) error

func MustMarshal

func MustMarshal(data []byte, err error) []byte

func New

func New() *cobra.Command

func Render

func Render(goTemplate string, scope interface{}) (string, error)

func ToUnstructured

func ToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)

func UnifiedDiff

func UnifiedDiff(a string, b string) (string, error)

Types

type Options

type Options struct {
	KubeConfig string
	Namespace  string

	KeySize  int
	Duration time.Duration
	Prefix   string
	Kinds    []string

	ImporterHostPort string
	Proxies          []cmd.ProxySpec
}

func (*Options) GetClient

func (o *Options) GetClient() (c client.Client, err error)

func (*Options) GetClientConfig

func (o *Options) GetClientConfig() *rest.Config

func (*Options) NewApiClient

func (o *Options) NewApiClient() (*kubernetes.Clientset, error)

func (*Options) NewDynamicClient

func (o *Options) NewDynamicClient() (c dynamic.Interface, err error)

type RenderScope

type RenderScope struct {
	ImporterConfig       *cmd.ImporterConfig
	ExporterConfig       *cmd.ExporterConfig
	ImporterConfigBase64 string
	ExporterConfigBase64 string
}

Jump to

Keyboard shortcuts

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