client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2014 License: Apache-2.0 Imports: 37 Imported by: 0 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

Overview

Package client contains the implementation of the client side communication with the Kubernetes master. OpenShift currently embeds the Kubernetes's kubecfg command line for prototyping and debugging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandKubecfg

func NewCommandKubecfg(name string) *cobra.Command

Types

type JSONPrinter

type JSONPrinter struct{}

JSONPrinter is an implementation of ResourcePrinter which parsess raw JSON, and re-formats as indented, human-readable JSON.

func (*JSONPrinter) Print

func (y *JSONPrinter) Print(data []byte, w io.Writer) error

Print parses the data as JSON, re-formats as JSON and prints the indented JSON.

type KubeConfig

type KubeConfig struct {
	ClientConfig   kclient.Config
	ServerVersion  bool
	PreventSkew    bool
	Config         string
	TemplateConfig string
	Selector       string
	UpdatePeriod   time.Duration
	PortSpec       string
	ServicePort    int
	AuthConfig     string
	JSON           bool
	YAML           bool
	Verbose        bool
	Proxy          bool
	WWW            string
	TemplateFile   string
	TemplateStr    string
	ID             string
	Namespace      string

	ImageName string

	APIVersion   string
	OSAPIVersion string

	Args []string
	// contains filtered or unexported fields
}

func (*KubeConfig) Arg

func (c *KubeConfig) Arg(index int) string

func (*KubeConfig) Run

func (c *KubeConfig) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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