client

package
v0.0.0-...-8452b8d Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2014 License: Apache-2.0 Imports: 33 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

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 {
	ServerVersion  bool
	PreventSkew    bool
	HttpServer     string
	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

	ImageName string

	CAFile   string
	CertFile string
	KeyFile  string

	APIVersion   string
	OSAPIVersion string

	Args []string
}

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