client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 39 Imported by: 0

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

DEPRECATED, use NewCommandCLI instead

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
	BuildConfigID  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