cmd

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrintErrorAfter added in v1.0.7

func NewPrintErrorAfter(mapper meta.RESTMapper, errs io.Writer) func(*resource.Info, error) bool

Types

type AfterFunc added in v1.0.8

type AfterFunc func(*resource.Info, error) bool

AfterFunc takes an info and an error, and returns true if processing should stop.

func HaltOnError added in v1.0.8

func HaltOnError(fn AfterFunc) AfterFunc

func NewPrintNameOrErrorAfter

func NewPrintNameOrErrorAfter(mapper meta.RESTMapper, short bool, operation string, out, errs io.Writer) AfterFunc

func NewPrintNameOrErrorAfterIndent added in v1.0.7

func NewPrintNameOrErrorAfterIndent(mapper meta.RESTMapper, short bool, operation string, out, errs io.Writer, indent string) AfterFunc

type Bulk

type Bulk struct {
	Mapper            meta.RESTMapper
	Typer             runtime.ObjectTyper
	RESTClientFactory func(mapping *meta.RESTMapping) (resource.RESTClient, error)
	After             AfterFunc
	Retry             func(info *resource.Info, err error) runtime.Object
}

Bulk provides helpers for iterating over a list of items

func (*Bulk) Create

func (b *Bulk) Create(list *kapi.List, namespace string) []error

Create attempts to create each item generically, gathering all errors in the event a failure occurs. The contents of list will be updated to include the version from the server.

Jump to

Keyboard shortcuts

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