Help us shape the future of Go! Take the 2026 Go Developer Survey

clientcmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

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