clientcmd

package
v0.0.0-...-6079644 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2015 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ConfigSyntax = " --master=<addr>"

Variables

This section is empty.

Functions

func BindClientConfigSecurityFlags

func BindClientConfigSecurityFlags(config *kclient.Config, flags *pflag.FlagSet)

BindClientConfig adds flags for the supplied client config

func EnvVarsFromConfig

func EnvVarsFromConfig(config *kclient.Config) []api.EnvVar

Types

type Config

type Config struct {
	MasterAddr     flagtypes.Addr
	KubernetesAddr flagtypes.Addr
	// ClientConfig is the shared base config for both the openshift config and kubernetes config
	CommonConfig kclient.Config
}

func NewConfig

func NewConfig() *Config

func (*Config) Bind

func (cfg *Config) Bind(flags *pflag.FlagSet)

func (*Config) Clients

func (cfg *Config) Clients() (kclient.Interface, osclient.Interface, error)

func (*Config) KubeConfig

func (cfg *Config) KubeConfig() *kclient.Config

func (*Config) OpenShiftConfig

func (cfg *Config) OpenShiftConfig() *kclient.Config

Jump to

Keyboard shortcuts

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