config

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2015 License: Apache-2.0 Imports: 5 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateObject

func CreateObject(client RESTClientPoster, mapping *meta.RESTMapping, obj runtime.Object) *errs.ValidationError

CreateObject creates the obj using the provided clients and the resource URI mapping. It reports ValidationError when the object is missing the Metadata or the Name and it will report any error occured during create REST call

func CreateObjects

func CreateObjects(typer runtime.ObjectTyper, mapper meta.RESTMapper, clientFor ClientPosterFunc, objects []runtime.Object) []error

CreateObjects creates bulk of resources provided by items list. Each item must be valid API type. It requires ObjectTyper to parse the Version and Kind and RESTMapper to get the resource URI and REST client that knows how to create given type

Types

type ClientPosterFunc added in v0.6.0

type ClientPosterFunc func(mapping *meta.RESTMapping) (RESTClientPoster, error)

ClientFunc returns the RESTClient defined for given resource

type RESTClientPoster added in v0.6.0

type RESTClientPoster interface {
	Post() *client.Request
}

Jump to

Keyboard shortcuts

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