Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigSyntax = " --master=<addr>"
Variables ¶
This section is empty.
Functions ¶
func BindClientConfigSecurityFlags ¶
BindClientConfig adds flags for the supplied client config
func DefaultClientConfig ¶
func DefaultClientConfig(flags *pflag.FlagSet) clientcmd.ClientConfig
Copy of kubectl/cmd/DefaultClientConfig, using NewNonInteractiveDeferredLoadingClientConfig
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 (*Config) KubeConfig ¶
func (*Config) OpenShiftConfig ¶
type Factory ¶
type Factory struct {
*kubecmd.Factory
OpenShiftClientConfig clientcmd.ClientConfig
}
Factory provides common options for OpenShift commands
func New ¶
NewFactory creates a default Factory for commands that should share identical server connection behavior. Most commands should use this method to get a factory.
func NewFactory ¶
func NewFactory(clientConfig clientcmd.ClientConfig) *Factory
NewFactory creates an object that holds common methods across all OpenShift commands
type ShortcutExpander ¶
type ShortcutExpander struct {
meta.RESTMapper
}
ShortcutExpander is a RESTMapper that can be used for OpenShift resources.
func (ShortcutExpander) VersionAndKindForResource ¶
func (e ShortcutExpander) VersionAndKindForResource(resource string) (defaultVersion, kind string, err error)
VersionAndKindForResource implements meta.RESTMapper. It expands the resource first, then invokes the wrapped mapper.
Click to show internal directories.
Click to hide internal directories.